/* =====================================================================
   Blomberger Ausbildungsmesse – App  (Messe-Design)
   Schriften: Nunito Sans (Body/Black-Überschriften), Playfair Display (Highlights)
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;0,6..12,800;0,6..12,900;1,6..12,400&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

.ma-app {
    --ma-purple: #9A4C8A;
    --ma-magenta: #8E2E6A;
    --ma-red: #C42B2E;
    --ma-red-dark: #a81f22;
    --ma-gray: #646363;
    --ma-grad: linear-gradient(150deg, #9A4C8A 0%, #8E2E6A 46%, #C42B2E 100%);
    --ma-ink: #2c2530;
    --ma-soft: #6d6675;
    --ma-bg: #f4f1f4;
    --ma-card: #ffffff;
    --ma-border: #e7e1e8;
    --ma-radius: 16px;
    --ma-font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --ma-font-hl: 'Playfair Display', Georgia, serif;

    position: relative;
    max-width: 460px;
    margin: 24px auto;
    background: var(--ma-bg);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(80, 30, 70, 0.25);
    font-family: var(--ma-font);
    color: var(--ma-ink);
    -webkit-font-smoothing: antialiased;
}
.ma-app *, .ma-app *::before, .ma-app *::after { box-sizing: border-box; }
.ma-app button { font-family: inherit; cursor: pointer; }

/* ---------- App-Leiste ---------- */
.ma-appbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    background: var(--ma-grad);
    color: #fff;
}
.ma-home-link { background: none; border: 0; padding: 0; text-align: left; color: #fff; }
.ma-appbar-title {
    font-family: var(--ma-font);
    font-weight: 900;
    font-size: 1.02rem;
    line-height: 1.1;
    letter-spacing: 0.2px;
}
.ma-burger { background: none; border: 0; width: 30px; height: 24px; position: relative; padding: 0; }
.ma-burger span { display: block; height: 3px; border-radius: 3px; background: #fff; margin: 4px 0; transition: transform 0.25s ease, opacity 0.2s ease; }
.ma-app.ma-menu-open .ma-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ma-app.ma-menu-open .ma-burger span:nth-child(2) { opacity: 0; }
.ma-app.ma-menu-open .ma-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Menü-Overlay ---------- */
.ma-menu {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 25;
    background: #fff;
    box-shadow: 0 16px 30px rgba(0,0,0,0.18);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}
.ma-app.ma-menu-open .ma-menu { max-height: 460px; opacity: 1; }
.ma-menu-inner { display: flex; flex-direction: column; padding: 8px 0; }
.ma-menu-item {
    background: none;
    border: 0;
    text-align: left;
    padding: 14px 22px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ma-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ma-border);
}
.ma-menu-item:last-child { border-bottom: 0; }
.ma-menu-item:hover { background: #faf6fa; color: var(--ma-red); }
.ma-menu-matching { color: #fff; background: var(--ma-red); margin: 8px 16px 4px; border-radius: 12px; text-align: center; border-bottom: 0; }
.ma-menu-matching:hover { background: var(--ma-red-dark); color: #fff; }

/* ---------- Views ---------- */
.ma-views { position: relative; }
.ma-view { display: none; padding: 0 18px 26px; }
.ma-view.is-active { display: block; animation: ma-fade 0.25s ease; }
@keyframes ma-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ma-view-head { display: flex; align-items: center; gap: 12px; padding: 18px 0 10px; }
.ma-back {
    width: 38px; height: 38px; border-radius: 50%;
    border: 0; background: #fff; color: var(--ma-red);
    font-size: 1.2rem; font-weight: 900; line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ma-view-title { font-family: var(--ma-font); font-weight: 900; font-size: 1.5rem; margin: 0; color: var(--ma-ink); }

/* ---------- Hero (Startseite) ---------- */
.ma-hero {
    background: var(--ma-grad);
    color: #fff;
    margin: 0 -18px;
    padding: 26px 22px 30px;
    position: relative;
    overflow: hidden;
}
.ma-hero::after {
    content: "";
    position: absolute;
    right: -60px; top: -60px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.07);
    border-radius: 30px;
    transform: rotate(25deg);
}
.ma-hero-badge {
    display: inline-block;
    background: #fff;
    color: var(--ma-red);
    font-family: var(--ma-font-hl);
    font-style: italic;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 7px 18px;
    border-radius: 999px;
    transform: rotate(-3deg);
    box-shadow: 0 6px 16px rgba(0,0,0,0.16);
    margin-bottom: 16px;
}
.ma-hero-title { font-family: var(--ma-font); font-weight: 900; font-size: 2rem; line-height: 1.05; margin: 0 0 18px; }
.ma-hero-facts { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; position: relative; z-index: 1; }
.ma-fact { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; }
.ma-fact-ico { font-size: 1.1rem; }

.ma-stats { display: flex; gap: 9px; position: relative; z-index: 1; }
.ma-stat {
    flex: 1;
    background: var(--ma-red);
    border-radius: 14px;
    padding: 14px 6px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(150,20,30,0.28);
}
.ma-stat-num { font-family: var(--ma-font); font-weight: 900; font-size: 1.55rem; line-height: 1; }
.ma-stat-label { font-size: 0.74rem; font-weight: 700; margin-top: 4px; opacity: 0.95; }

/* ---------- Intro-Text ---------- */
.ma-intro { font-family: var(--ma-font-hl); font-size: 1rem; line-height: 1.6; color: var(--ma-soft); margin: 18px 2px; }

/* ---------- Großer Matching-Button ---------- */
.ma-cta {
    display: block;
    text-decoration: none;
    background: var(--ma-red);
    color: #fff;
    border-radius: var(--ma-radius);
    padding: 18px 20px;
    margin: 4px 0 20px;
    box-shadow: 0 10px 24px rgba(196,43,46,0.32);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ma-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(196,43,46,0.4); }
.ma-cta-label { display: block; font-weight: 900; font-size: 1.18rem; line-height: 1.15; }
.ma-cta-sub { display: block; font-family: var(--ma-font-hl); font-style: italic; font-size: 0.92rem; margin-top: 6px; opacity: 0.95; }

/* ---------- Kachel-Menü ---------- */
.ma-tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.ma-tile {
    flex: 1 1 calc(50% - 6px);
    background: var(--ma-card);
    border: 1px solid var(--ma-border);
    border-radius: var(--ma-radius);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(80,30,70,0.06);
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.ma-tile:hover { transform: translateY(-2px); border-color: var(--ma-red); }
.ma-tile-ico { font-size: 1.7rem; }
.ma-tile-label { font-weight: 800; font-size: 1rem; color: var(--ma-ink); }

/* ---------- Footer ---------- */
.ma-footer { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--ma-border); }
.ma-footer-logo { width: 78px; height: auto; }
.ma-footer-text { font-size: 0.74rem; line-height: 1.4; color: var(--ma-soft); font-weight: 700; }

/* ---------- Aussteller ---------- */
.ma-exhibitors { display: flex; flex-wrap: wrap; gap: 12px; }
.ma-exhibitor {
    flex: 1 1 calc(50% - 6px);
    background: var(--ma-card);
    border: 1px solid var(--ma-border);
    border-radius: var(--ma-radius);
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--ma-ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(80,30,70,0.06);
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.ma-exhibitor:hover { transform: translateY(-2px); border-color: var(--ma-red); }
.ma-exhibitor-logo { width: 100%; height: 72px; display: flex; align-items: center; justify-content: center; }
.ma-exhibitor-logo img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.ma-exhibitor-noimg { font-family: var(--ma-font); font-weight: 900; font-size: 2rem; color: #fff; background: var(--ma-grad); border-radius: 12px; }
.ma-exhibitor-name { font-weight: 800; font-size: 0.95rem; line-height: 1.2; }
.ma-exhibitor-web { font-size: 0.78rem; font-weight: 700; color: var(--ma-red); }

/* ---------- Hallenplan ---------- */
.ma-floorplan { display: block; border-radius: var(--ma-radius); overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.ma-floorplan img { width: 100%; height: auto; display: block; }
.ma-hint-center { text-align: center; font-size: 0.85rem; color: var(--ma-soft); margin-top: 10px; }

/* ---------- Karten (Verpflegung / Workshops) ---------- */
.ma-cards { display: flex; flex-direction: column; gap: 14px; }
.ma-card {
    background: var(--ma-card);
    border: 1px solid var(--ma-border);
    border-radius: var(--ma-radius);
    padding: 16px 16px 18px;
    box-shadow: 0 4px 12px rgba(80,30,70,0.06);
}
.ma-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ma-card-title { font-family: var(--ma-font); font-weight: 900; font-size: 1.12rem; line-height: 1.2; color: var(--ma-ink); }
.ma-stand { background: var(--ma-grad); color: #fff; font-weight: 800; font-size: 0.78rem; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.ma-card-info { font-family: var(--ma-font-hl); font-size: 0.95rem; line-height: 1.55; color: var(--ma-soft); margin: 10px 0 0; }

/* ---------- Workshops ---------- */
.ma-workshop-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.ma-meta-pill { font-size: 0.78rem; font-weight: 700; background: #f3eef3; color: var(--ma-ink); padding: 5px 10px; border-radius: 999px; }
.ma-meta-free { background: #e7f6ec; color: #1f8a4c; }
.ma-meta-full { background: #fdeaea; color: #c0392b; }
.ma-workshop-closed { margin-top: 14px; font-weight: 700; color: #c0392b; font-size: 0.9rem; }

.ma-btn { border: 0; border-radius: 12px; font-weight: 800; font-size: 1rem; padding: 12px 18px; transition: transform 0.15s ease, background 0.15s ease; }
.ma-btn-toggle { margin-top: 14px; background: #fff; color: var(--ma-red); border: 2px solid var(--ma-red); width: 100%; }
.ma-btn-toggle:hover { background: var(--ma-red); color: #fff; }
.ma-btn-primary { background: var(--ma-red); color: #fff; width: 100%; margin-top: 4px; box-shadow: 0 6px 16px rgba(196,43,46,0.28); }
.ma-btn-primary:hover { background: var(--ma-red-dark); }

.ma-signup-form { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--ma-border); }
.ma-signup-form.is-open { display: block; animation: ma-fade 0.2s ease; }
.ma-field { margin-bottom: 12px; }
.ma-field label { display: block; font-weight: 800; font-size: 0.9rem; margin-bottom: 5px; }
.ma-field input {
    width: 100%; padding: 12px 13px; border: 1.5px solid var(--ma-border); border-radius: 11px;
    font-size: 1rem; font-family: var(--ma-font); background: #fff; color: var(--ma-ink);
}
.ma-field input:focus { outline: none; border-color: var(--ma-red); }

.ma-flash { margin-top: 12px; padding: 12px 14px; border-radius: 11px; font-weight: 700; font-size: 0.92rem; }
.ma-flash-ok { background: #e7f6ec; color: #1f8a4c; }
.ma-flash-error { background: #fdeaea; color: #c0392b; }

/* ---------- leere Bereiche ---------- */
.ma-empty { font-family: var(--ma-font-hl); font-size: 1rem; line-height: 1.6; color: var(--ma-soft); background: #fff; border: 1px dashed var(--ma-border); border-radius: var(--ma-radius); padding: 22px; text-align: center; margin-top: 8px; }

@media (max-width: 480px) {
    .ma-app { margin: 0; border-radius: 0; max-width: 100%; box-shadow: none; }
    .ma-hero-title { font-size: 1.7rem; }
}

/* ---------- Workshop-Datenschutz & Einwilligung ---------- */
.ma-privacy { border: 1px solid var(--ma-border); border-radius: 11px; background: #faf6fa; margin: 4px 0 12px; }
.ma-privacy > summary { cursor: pointer; list-style: none; padding: 11px 13px; font-weight: 800; font-size: 0.9rem; color: var(--ma-ink); position: relative; }
.ma-privacy > summary::-webkit-details-marker { display: none; }
.ma-privacy > summary::after { content: "▾"; position: absolute; right: 13px; color: var(--ma-red); }
.ma-privacy[open] > summary::after { content: "▴"; }
.ma-privacy-body { padding: 0 13px 13px; font-size: 0.85rem; line-height: 1.55; color: var(--ma-soft); }
.ma-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 0.85rem; color: var(--ma-soft); margin: 4px 0 12px; line-height: 1.45; }
.ma-consent input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--ma-red); }

/* ---------- Inline-Button (z.B. Maps) ---------- */
.ma-btn-inline { display: inline-block; width: auto; margin-top: 12px; text-decoration: none; text-align: center; }

/* ---------- Social Media ---------- */
.ma-social-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.ma-social-btn { flex: 1 1 calc(50% - 5px); text-align: center; text-decoration: none; color: #fff; font-weight: 800; padding: 14px 12px; border-radius: 13px; box-shadow: 0 6px 16px rgba(80,30,70,0.18); }
.ma-social-ig { background: linear-gradient(135deg, #feda75, #d62976 45%, #962fbf 75%, #4f5bd5); }
.ma-social-fb { background: #1877f2; }
.ma-social-heading { font-family: var(--ma-font); font-weight: 900; font-size: 1.1rem; margin: 6px 0 12px; color: var(--ma-ink); }
.ma-social-feed { margin-top: 10px; }
.ma-social-feed iframe, .ma-social-feed img { max-width: 100%; border-radius: 12px; }
