:root {
    --hg-gold: #FCC400;
    --hg-gold-dark: #DFAE00;
    --hg-gold-light: #FFD84D;
    --hg-gold-50: #FFFBEB;
    --hg-pink: #C34190;
    --hg-pink-light: #E777AA;
    --hg-pink-dark: #A33578;
    --hg-pink-50: #FDF2F8;
    --hg-green: #A0BF34;
    --hg-green-light: #C4DB6E;
    --hg-green-dark: #7A9428;
    --hg-green-50: #F7FBE8;
    --hg-cream: #FFFDF5;
    --hg-sand: #FFF8E7;
    --hg-brown: #6B4423;
    --hg-brown-light: #8B6914;
    --safe-bottom: env(safe-area-inset-bottom, 20px);
    /* Nur für die Diagnose-Zeile im Profil (JS liest die Werte aus) */
    --diag-top: env(safe-area-inset-top, 0px);
    --diag-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* html-Hintergrund weiß: der Home-Indicator-Bereich unten (außerhalb der
   Seiten) zeigt dadurch Weiß passend zur Menüleiste statt Creme-„Balken".
   height-100%-Kette statt 100dvh: iOS rechnet dvh/vh in installierten
   PWAs (standalone) zu klein -> App endete oberhalb der Unterkante und
   unter der Menüleiste blieb ein leerer Streifen. */
html { background: #fff; height: 100%; }

body {
    font-family: 'Nunito', sans-serif;
    background: #fff;
    height: 100%;
    overflow: hidden;
}

h1, h2, h3 { font-family: 'Lilita One', cursive; font-weight: 400; }

.app {
    /* An alle vier Bildschirmkanten pinnen. Zuverlässiger als height:100%/
       100dvh, das im iOS-Standalone-Modus manchmal zu kurz auflöst und
       .app auf Inhaltshöhe kollabieren lässt (weißer Streifen unten). */
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.page { display: none; flex-direction: column; flex: 1; overflow: hidden; background: var(--hg-sand); }
.page.active { display: flex; }

/* Header */
.header {
    background: linear-gradient(135deg, var(--hg-gold) 0%, var(--hg-gold-dark) 100%);
    padding: 16px 20px;
    padding-top: max(16px, env(safe-area-inset-top));
    flex-shrink: 0;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 14px;
}

.logo-text { font-family: 'Lilita One', cursive; font-size: 20px; line-height: 1; text-shadow: 2px 2px 0 white; }
.logo-hoppi { color: var(--hg-pink); display: block; }
.logo-galoppi { color: var(--hg-gold-dark); display: block; }

.header-btn {
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid var(--hg-gold-dark);
    color: var(--hg-pink);
    box-shadow: 0 3px 0 var(--hg-gold-dark);
    position: relative;
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--hg-pink);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rfid-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 16px;
    border-radius: 16px;
    border: 3px solid var(--hg-gold-dark);
    box-shadow: 0 4px 0 var(--hg-gold-dark);
    cursor: pointer;
}

.rfid-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--hg-pink), var(--hg-pink-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.rfid-info { flex: 1; }
.rfid-name { font-family: 'Lilita One', cursive; font-size: 16px; color: var(--hg-brown); }
.rfid-id { font-size: 11px; color: var(--hg-brown-light); font-weight: 700; }
.rfid-status { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--hg-green-dark); }
.rfid-dot { width: 10px; height: 10px; background: var(--hg-green); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.stat-box {
    background: white;
    padding: 14px 10px;
    border-radius: 16px;
    text-align: center;
    border: 3px solid var(--hg-gold-dark);
    box-shadow: 0 3px 0 var(--hg-gold-dark);
    cursor: pointer;
}
.stat-value { font-family: 'Lilita One', cursive; font-size: 22px; color: var(--hg-pink); }
.stat-label { font-size: 10px; font-weight: 800; color: var(--hg-brown-light); letter-spacing: 0.5px; }

/* Content */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.section { margin-bottom: 24px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-title { font-size: 20px; color: var(--hg-brown); }
.section-link { font-size: 13px; font-weight: 700; color: var(--hg-pink); cursor: pointer; }

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    border: 4px solid var(--hg-gold);
    box-shadow: 0 5px 0 var(--hg-gold-dark);
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 12px;
}
.card.pink { border-color: var(--hg-pink); box-shadow: 0 5px 0 var(--hg-pink-dark); }
.card.green { border-color: var(--hg-green); box-shadow: 0 5px 0 var(--hg-green-dark); }
.card-row { display: flex; align-items: center; gap: 14px; padding: 16px; }
.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hg-gold), var(--hg-gold-dark));
    color: var(--hg-brown);
}
.card-icon.pink { background: linear-gradient(135deg, var(--hg-pink), var(--hg-pink-light)); color: white; }
.card-icon.green { background: linear-gradient(135deg, var(--hg-green), var(--hg-green-dark)); color: white; }
.card-content { flex: 1; }
.card-title { font-family: 'Lilita One', cursive; font-size: 16px; color: var(--hg-brown); }
.card-subtitle { font-size: 12px; color: var(--hg-brown-light); font-weight: 700; }

/* Featured */
.featured-card {
    background: linear-gradient(135deg, var(--hg-pink), var(--hg-pink-dark));
    border-radius: 24px;
    padding: 20px;
    color: white;
    border: 4px solid var(--hg-pink-dark);
    box-shadow: 0 6px 0 var(--hg-pink-dark);
    cursor: pointer;
}
.featured-header { display: flex; justify-content: space-between; align-items: flex-start; }
.featured-title { font-family: 'Lilita One', cursive; font-size: 22px; }
.featured-subtitle { font-size: 14px; opacity: 0.9; font-weight: 600; margin-top: 4px; }
.live-badge {
    display: flex; align-items: center; gap: 6px;
    background: white; color: var(--hg-pink);
    padding: 6px 12px; border-radius: 20px;
    font-family: 'Lilita One', cursive; font-size: 12px;
}
.live-dot { width: 8px; height: 8px; background: var(--hg-pink); border-radius: 50%; animation: pulse 1s infinite; }
.lineup-tags { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.lineup-tag { padding: 6px 12px; background: rgba(255,255,255,0.2); border-radius: 12px; font-size: 12px; font-weight: 700; }

/* Offers */
.offer-card {
    background: white;
    border-radius: 20px;
    border: 4px solid var(--hg-gold);
    box-shadow: 0 5px 0 var(--hg-gold-dark);
    overflow: hidden;
    margin-bottom: 16px;
}
.offer-header { padding: 16px; display: flex; align-items: center; gap: 14px; }
.offer-emoji { width: 56px; height: 56px; background: var(--hg-sand); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.offer-info { flex: 1; }
.offer-title { font-family: 'Lilita One', cursive; font-size: 18px; color: var(--hg-brown); }
.offer-meta { font-size: 12px; color: var(--hg-brown-light); font-weight: 700; }
.offer-slots { display: flex; gap: 8px; padding: 0 16px 16px; flex-wrap: wrap; }
.offer-slot {
    padding: 10px 16px;
    background: var(--hg-sand);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    color: var(--hg-brown);
    cursor: pointer;
    border: 3px solid transparent;
}
.offer-slot:hover { border-color: var(--hg-gold); }
.offer-slot.selected { background: var(--hg-gold); border-color: var(--hg-gold-dark); }
.offer-slot.booked { background: #f3f3f3; color: #999; cursor: not-allowed; text-decoration: line-through; }
.offer-btn {
    margin: 0 16px 16px;
    padding: 14px;
    background: var(--hg-green);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: 'Lilita One', cursive;
    font-size: 16px;
    cursor: pointer;
    width: calc(100% - 32px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 3px solid var(--hg-green-dark);
    box-shadow: 0 4px 0 var(--hg-green-dark);
}
.offer-btn:disabled { background: #ccc; border-color: #aaa; box-shadow: 0 4px 0 #aaa; cursor: not-allowed; }

/* Bottom Nav - 4 Items */
.bottom-nav {
    flex-shrink: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 8px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    border-top: 4px solid var(--hg-gold);
    z-index: 100;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    color: var(--hg-brown-light);
    padding: 6px 12px;
    border-radius: 14px;
    /* Anker für .hunt-badge – ohne das landet das absolute Badge
       am Viewport-Ursprung (oben mittig, in der iPhone-Kamera). */
    position: relative;
}
.nav-item.active { color: var(--hg-pink); background: var(--hg-pink-50); }
.nav-label { font-size: 10px; font-weight: 800; }

/* Program Page */
.program-header {
    background: linear-gradient(135deg, var(--hg-pink), var(--hg-pink-dark));
    padding: 16px 20px;
    padding-top: max(16px, env(safe-area-inset-top));
    flex-shrink: 0;
}
.program-header h2 { color: white; font-size: 24px; text-shadow: 2px 2px 0 var(--hg-pink-dark); }
.program-header p { color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 600; }

.day-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: var(--hg-cream);
    overflow-x: auto;
}
.day-tab {
    padding: 10px 20px;
    background: white;
    border: 3px solid var(--hg-taupe, #d9c8b8);
    border-radius: 16px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.day-tab.active { background: var(--hg-pink); border-color: var(--hg-pink-dark); color: white; }

.program-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 20px;
}

.program-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: white;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 3px solid var(--hg-taupe, #d9c8b8);
    cursor: pointer;
}
.program-item:hover { border-color: var(--hg-pink); }
.program-item.now { border-color: var(--hg-pink); background: var(--hg-pink-50); }
.program-time {
    font-family: 'Lilita One', cursive;
    font-size: 16px;
    color: var(--hg-pink);
    min-width: 55px;
}
.program-info { flex: 1; }
.program-name { font-weight: 800; font-size: 15px; color: var(--hg-brown); }
.program-venue { font-size: 12px; color: var(--hg-brown-light); display: flex; align-items: center; gap: 4px; }
.program-badge {
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    background: var(--hg-gold-50);
    color: var(--hg-gold-dark);
}
.program-badge.live { background: var(--hg-pink); color: white; }

/* Map Page */
.map-header {
    background: linear-gradient(135deg, var(--hg-green), var(--hg-green-dark));
    padding: 16px 20px;
    padding-top: max(16px, env(safe-area-inset-top));
    flex-shrink: 0;
}
.map-header h2 { color: white; font-size: 24px; text-shadow: 2px 2px 0 var(--hg-green-dark); }
.map-header p { color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 600; }

.map-filters {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: var(--hg-cream);
    overflow-x: auto;
}
.filter-chip {
    padding: 10px 16px;
    background: white;
    border: 3px solid var(--hg-gold);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.filter-chip.active { background: var(--hg-gold); }

.map-container {
    flex: 1;
    overflow: hidden;
    background: #e8f5e9;
    position: relative;
    touch-action: none;
}
.map-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.map-svg-wrapper { 
    transform-origin: 0 0;
    transition: none;
    cursor: grab;
    position: absolute;
    left: 0;
    top: 0;
}
.map-svg-wrapper.grabbing { cursor: grabbing; }
.map-svg { width: 520px; height: 650px; display: block; }
.map-marker { cursor: pointer; transition: transform 0.2s; }
.map-marker:hover { transform: scale(1.15); }

/* ── Interaktive Bild-Karte ── */
.map-img-inner { position: relative; width: 2200px; height: 1135px; --map-inv: 1; }
.map-img { display: block; width: 2200px; height: 1135px; user-select: none; -webkit-user-drag: none; }
.map-hotspots { position: absolute; inset: 0; }
.map-hotspot {
    position: absolute; transform-origin: center;
    transform: translate(-50%, -50%) scale(var(--map-inv, 1));
    border: none; background: transparent; padding: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.map-hotspot .hs-star, .map-hotspot .hs-dot {
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.35);
}
.map-hotspot .hs-star { width: 38px; height: 38px; font-size: 19px; background: var(--hg-gold); }
.map-hotspot.station.done .hs-star { background: var(--hg-green); }
.map-hotspot .hs-dot { width: 32px; height: 32px; font-size: 16px; background: #fff; }
.map-hotspot.stage .hs-dot { background: var(--hg-pink); }
.map-hotspot:active { filter: brightness(0.92); }

/* „Du bist hier"-Punkt (GPS) – gegen den Karten-Zoom skaliert wie die Marker */
.map-user-dot {
    position: absolute;
    width: 22px; height: 22px;
    transform: translate(-50%, -50%) scale(var(--map-inv, 1));
    background: #2f7cf6;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 6px rgba(0,0,0,0.35);
    pointer-events: none;
    z-index: 5;
}
.map-user-pulse {
    position: absolute; inset: -12px;
    border-radius: 50%;
    background: rgba(47,124,246,0.25);
    animation: userPulse 2s ease-out infinite;
}
@keyframes userPulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}
.map-control-btn.locating { background: #2f7cf6; color: #fff; }

/* Glocken-Posteingang */
.bell-dot {
    position: absolute; top: 6px; right: 6px;
    width: 11px; height: 11px; border-radius: 50%;
    background: #e2374b; border: 2px solid #fff;
    display: none;
}
.notif-inbox {
    background: #fff; border: 3px solid var(--hg-gold);
    border-radius: 16px; padding: 12px 14px; margin-bottom: 14px;
}
.notif-inbox-title { font-weight: 800; color: var(--hg-brown); margin-bottom: 8px; }
.notif-msg { border-top: 1px solid #f0e6d8; padding: 8px 0; }
.notif-msg:first-of-type { border-top: none; }
.notif-msg-head { display: flex; justify-content: space-between; gap: 8px; color: var(--hg-brown); }
.notif-msg-head span { color: var(--hg-brown-light); font-size: 12px; font-weight: 700; }
.notif-msg-body { color: var(--hg-brown-light); font-size: 14px; font-weight: 600; }
.mappoint-emoji { font-size: 46px; text-align: center; margin-bottom: 4px; }
#mapPointAction .modal-btn, #mapPointAction a.modal-btn { margin-top: 14px; text-decoration: none; }

.map-controls {
    position: absolute;
    bottom: 120px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 60;
}
.map-control-btn {
    width: 44px;
    height: 44px;
    background: white;
    border: 3px solid var(--hg-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: 800;
    color: var(--hg-brown);
    box-shadow: 0 3px 0 var(--hg-gold-dark);
}
.map-control-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--hg-gold-dark);
}

.map-legend {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: white;
    padding: 10px 14px;
    border-radius: 14px;
    border: 3px solid var(--hg-gold);
    display: flex;
    gap: 14px;
    font-size: 11px;
    font-weight: 700;
    z-index: 50;
}
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }

/* Profile Page */
.profile-header {
    background: linear-gradient(135deg, var(--hg-pink), var(--hg-pink-dark));
    padding: 24px 20px;
    padding-top: max(24px, env(safe-area-inset-top));
    text-align: center;
    color: white;
    flex-shrink: 0;
}
.profile-avatar {
    width: 80px; height: 80px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hg-pink);
    border: 4px solid var(--hg-pink-dark);
}
.profile-name { font-family: 'Lilita One', cursive; font-size: 24px; text-shadow: 2px 2px 0 var(--hg-pink-dark); }
.profile-ticket { font-size: 14px; opacity: 0.9; font-weight: 600; margin-top: 4px; }
.profile-stats { display: flex; justify-content: center; gap: 24px; margin-top: 20px; }
.profile-stat { text-align: center; cursor: pointer; }
.profile-stat-value { font-family: 'Lilita One', cursive; font-size: 28px; }
.profile-stat-label { font-size: 11px; font-weight: 700; opacity: 0.8; }

.profile-content { flex: 1; overflow-y: auto; padding: 20px; padding-bottom: 20px; }
.app-version { text-align: center; font-size: 11px; font-weight: 700; color: var(--hg-brown-light); opacity: 0.6; padding: 4px 0 8px; }

/* Übernahme-Code (Browser -> installierte App) */
.onb-transfer { margin-top: 14px; padding-top: 14px; border-top: 2px solid #f0e6d0; }
.onb-transfer-link { width: 100%; background: none; border: none; color: var(--hg-pink); font-family: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; padding: 4px; text-align: center; }
.onb-transfer-hint { font-size: 11.5px; color: var(--hg-brown-light); line-height: 1.5; margin-top: 8px; text-align: center; }
.transfer-code { font-family: 'Lilita One', cursive; font-size: 40px; letter-spacing: 8px; text-align: center; color: var(--hg-pink); background: var(--hg-pink-50); border: 3px dashed var(--hg-pink-light); border-radius: 16px; padding: 16px; margin: 8px 0 14px; }
.transfer-steps { font-size: 13px; color: var(--hg-brown); line-height: 1.9; background: var(--hg-sand); border-radius: 14px; padding: 14px 16px; }
.menu-section { margin-bottom: 24px; }
.menu-section-title { font-size: 12px; font-weight: 800; color: var(--hg-brown-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; padding-left: 4px; }
.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: white;
    border-radius: 16px;
    margin-bottom: 8px;
    cursor: pointer;
    border: 3px solid var(--hg-taupe, #d9c8b8);
}
.menu-item:hover { border-color: var(--hg-gold); }
.menu-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hg-sand);
    color: var(--hg-brown);
}
.menu-icon.pink { background: var(--hg-pink-50); color: var(--hg-pink); }
.menu-icon.gold { background: var(--hg-gold-50); color: var(--hg-gold-dark); }
.menu-icon.green { background: var(--hg-green-50); color: var(--hg-green-dark); }
.menu-info { flex: 1; }
.menu-title { font-weight: 800; font-size: 15px; color: var(--hg-brown); }
.menu-desc { font-size: 12px; color: var(--hg-brown-light); }
.menu-badge { padding: 4px 10px; background: var(--hg-pink); color: white; border-radius: 10px; font-size: 11px; font-weight: 800; }

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(107,68,35,0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
    background: white;
    border-radius: 28px 28px 0 0;
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    overflow: hidden;
    border: 4px solid var(--hg-gold);
    border-bottom: none;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-handle { width: 40px; height: 5px; background: var(--hg-taupe, #d9c8b8); border-radius: 3px; margin: 12px auto; }
.modal-content { padding: 0 20px 24px; max-height: 70vh; overflow-y: auto; }
.modal-title { font-family: 'Lilita One', cursive; font-size: 22px; color: var(--hg-brown); text-align: center; margin-bottom: 16px; }
.modal-emoji { font-size: 48px; text-align: center; margin-bottom: 12px; }
.modal-desc { font-size: 14px; color: var(--hg-brown-light); text-align: center; line-height: 1.6; margin-bottom: 20px; }
.modal-info { background: var(--hg-sand); border-radius: 16px; padding: 16px; margin-bottom: 20px; }
.modal-info-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 2px solid rgba(0,0,0,0.05); }
.modal-info-row:last-child { border-bottom: none; }
.modal-info-label { font-weight: 700; color: var(--hg-brown-light); font-size: 13px; }
.modal-info-value { font-weight: 800; color: var(--hg-brown); font-size: 13px; }
.modal-slots { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.modal-slot { flex: 1; min-width: 70px; padding: 12px; background: var(--hg-sand); border-radius: 12px; text-align: center; font-weight: 800; font-size: 14px; cursor: pointer; border: 3px solid transparent; }
.modal-slot:hover { border-color: var(--hg-gold); }
.modal-slot.selected { background: var(--hg-gold); border-color: var(--hg-gold-dark); }
.modal-slot.booked { background: #eee; color: #999; cursor: not-allowed; }
.modal-btn {
    width: 100%;
    padding: 16px;
    background: var(--hg-green);
    color: white;
    border: none;
    border-radius: 16px;
    font-family: 'Lilita One', cursive;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 4px solid var(--hg-green-dark);
    box-shadow: 0 5px 0 var(--hg-green-dark);
}
.modal-btn:disabled { background: #ccc; border-color: #aaa; box-shadow: 0 5px 0 #aaa; }
.modal-btn.pink { background: var(--hg-pink); border-color: var(--hg-pink-dark); box-shadow: 0 5px 0 var(--hg-pink-dark); }
.modal-btn.gold { background: var(--hg-gold); border-color: var(--hg-gold-dark); box-shadow: 0 5px 0 var(--hg-gold-dark); color: var(--hg-brown); }
.modal-btn-secondary { width: 100%; padding: 14px; background: white; color: var(--hg-brown); border: 3px solid var(--hg-taupe, #d9c8b8); border-radius: 14px; font-weight: 800; font-size: 14px; cursor: pointer; margin-top: 10px; }

/* Program Modal List */
.program-list { margin-bottom: 20px; }
.program-modal-item { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--hg-sand); border-radius: 14px; margin-bottom: 10px; }
.program-modal-item.now { background: var(--hg-pink-50); border: 3px solid var(--hg-pink); }

/* Toast */
.toast {
    position: fixed;
    top: 0;
    left: 20px;
    right: 20px;
    background: var(--hg-brown);
    color: white;
    padding: 14px 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 300;
    /* Bei top:0 verankert und im Versteck-Zustand KOMPLETT über den Rand
       geschoben (Höhe + Puffer). Sonst bleibt ein farbiger Streifen oben
       kleben, den iOS Safari als Statusleisten-Farbe übernimmt. */
    transform: translateY(calc(-100% - 24px));
    transition: transform 0.3s ease;
    border: 3px solid var(--hg-gold);
    pointer-events: none;   /* versteckter Toast darf keine Taps abfangen */
}
.toast.show {
    transform: translateY(calc(env(safe-area-inset-top, 0px) + 54px));
    pointer-events: auto;
}
.toast.success { background: var(--hg-green); border-color: var(--hg-green-dark); }
.toast-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.toast-content { flex: 1; }
.toast-title { font-family: 'Lilita One', cursive; font-size: 15px; }
.toast-text { font-size: 12px; opacity: 0.9; }

/* Subpages */
.subpage { position: fixed; inset: 0; background: var(--hg-cream); z-index: 150; display: none; flex-direction: column; }
.subpage.show { display: flex; }
.subpage-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; padding-top: max(16px, env(safe-area-inset-top)); background: white; border-bottom: 3px solid var(--hg-taupe, #d9c8b8); }
.back-btn { width: 40px; height: 40px; background: var(--hg-sand); border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--hg-brown); }
.subpage-title { font-family: 'Lilita One', cursive; font-size: 20px; color: var(--hg-brown); }
.subpage-content { flex: 1; overflow-y: auto; padding: 20px; padding-bottom: 40px; }

.badges-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.badge-item { text-align: center; padding: 16px; background: white; border-radius: 20px; border: 3px solid var(--hg-taupe, #d9c8b8); }
.badge-item.earned { border-color: var(--hg-gold); background: var(--hg-gold-50); }
.badge-emoji { font-size: 36px; margin-bottom: 8px; }
.badge-item:not(.earned) .badge-emoji { filter: grayscale(1); opacity: 0.4; }
.badge-name { font-size: 12px; font-weight: 800; color: var(--hg-brown); }

.booking-item { display: flex; align-items: center; gap: 14px; padding: 16px; background: white; border-radius: 16px; margin-bottom: 12px; border: 3px solid var(--hg-gold); }
.booking-emoji { width: 50px; height: 50px; background: var(--hg-sand); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.booking-info { flex: 1; }
.booking-name { font-weight: 800; font-size: 15px; color: var(--hg-brown); }
.booking-time { font-size: 13px; color: var(--hg-brown-light); font-weight: 600; }
.booking-status { padding: 6px 12px; border-radius: 10px; font-size: 11px; font-weight: 800; }
.booking-status.confirmed { background: var(--hg-green-50); color: var(--hg-green-dark); }
.booking-status.upcoming { background: var(--hg-gold-50); color: var(--hg-gold-dark); }

/* Schnitzeljagd Page */
.hunt-header {
    background: linear-gradient(135deg, #3A7A36, #2B5F1A);
    padding: 20px;
    padding-top: max(20px, env(safe-area-inset-top));
    text-align: center;
    color: white;
    flex-shrink: 0;
}
.hunt-header h2 { font-size: 26px; text-shadow: 2px 2px 0 rgba(0,0,0,0.2); margin-bottom: 8px; }
.hunt-header p { font-size: 14px; opacity: 0.9; }

.hunt-progress {
    background: white;
    margin: -20px 20px 0;
    padding: 16px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border: 3px solid #3A7A36;
    position: relative;
    z-index: 10;
}
.hunt-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.hunt-progress-label { font-weight: 800; font-size: 14px; color: var(--hg-brown); }
.hunt-progress-count { font-family: 'Lilita One', cursive; font-size: 18px; color: #2B5F1A; }
.hunt-progress-bar {
    height: 12px;
    background: #E2F0CF;
    border-radius: 10px;
    overflow: hidden;
}
.hunt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6FA33C, #8CC240);
    border-radius: 10px;
    transition: width 0.5s ease;
}
.hunt-reward {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px;
    background: #FEF3C7;
    border-radius: 12px;
}
.hunt-reward-icon { font-size: 24px; }
.hunt-reward-text { font-size: 13px; font-weight: 700; color: var(--hg-brown); }

.hunt-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 20px;
}

.hunt-section-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--hg-brown-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 20px 0 12px;
    padding-left: 4px;
}

.hunt-station {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: white;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 3px solid #C9E2AC;
    cursor: pointer;
    transition: all 0.2s;
}
.hunt-station:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(58,122,54,0.15); }
.hunt-station.completed { border-color: var(--hg-green); background: var(--hg-green-50); }
.hunt-station.active { border-color: #3A7A36; animation: pulse-border 2s infinite; }

@keyframes pulse-border {
    0%, 100% { box-shadow: 0 0 0 0 rgba(58,122,54,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(58,122,54,0); }
}

.hunt-station-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: #E2F0CF;
}
.hunt-station.completed .hunt-station-icon { background: var(--hg-green-light); }
.hunt-station.active .hunt-station-icon { background: #C9E2AC; }

.hunt-station-info { flex: 1; }
.hunt-station-name { font-weight: 800; font-size: 15px; color: var(--hg-brown); margin-bottom: 2px; }
.hunt-station-hint { font-size: 13px; color: var(--hg-brown-light); }
.hunt-station-points { font-family: 'Lilita One', cursive; font-size: 14px; color: #2B5F1A; }
.hunt-station.completed .hunt-station-points { color: var(--hg-green-dark); }

.hunt-station-status {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.hunt-station.completed .hunt-station-status { background: var(--hg-green); color: white; }
.hunt-station:not(.completed) .hunt-station-status { background: #E2F0CF; color: #3A7A36; }

/* Hunt Modal */
.hunt-modal-content {
    text-align: center;
    padding: 10px 0;
}
.hunt-modal-emoji {
    font-size: 64px;
    margin-bottom: 16px;
}
.hunt-modal-title {
    font-family: 'Lilita One', cursive;
    font-size: 24px;
    color: var(--hg-brown);
    margin-bottom: 8px;
}
.hunt-modal-hint {
    font-size: 15px;
    color: var(--hg-brown-light);
    margin-bottom: 20px;
    line-height: 1.5;
}
.hunt-code-input {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}
.hunt-code-digit {
    width: 48px;
    height: 56px;
    border: 3px solid #C9E2AC;
    border-radius: 12px;
    text-align: center;
    font-family: 'Lilita One', cursive;
    font-size: 24px;
    color: #2B5F1A;
    background: white;
}
.hunt-code-digit:focus {
    outline: none;
    border-color: #3A7A36;
    box-shadow: 0 0 0 3px rgba(58,122,54,0.2);
}
.hunt-scan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3A7A36, #2B5F1A);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 12px;
}
.hunt-manual-btn {
    background: none;
    border: none;
    color: #3A7A36;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

/* Hunt Badge in Nav */
.hunt-badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(50%);
    background: #3A7A36;
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 20px;
}

/* Hunt Riddle Box */
.hunt-riddle-box {
    background: linear-gradient(135deg, #F1F8E6, #E2F0CF);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: left;
}
.hunt-riddle-label {
    font-weight: 800;
    font-size: 12px;
    color: #2B5F1A;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.hunt-riddle-text {
    font-size: 15px;
    color: var(--hg-brown);
    line-height: 1.6;
    font-style: italic;
}

/* Hunt Hint Box */
.hunt-hint-box {
    background: var(--hg-gold-50);
    border: 2px solid var(--hg-gold);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: left;
}
.hunt-hint-label {
    font-weight: 800;
    font-size: 11px;
    color: var(--hg-gold-dark);
    margin-bottom: 4px;
}
.hunt-hint-text {
    font-size: 14px;
    color: var(--hg-brown);
}

.hunt-hint-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px dashed #A7CB7E;
    border-radius: 12px;
    color: #2B5F1A;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s;
}
.hunt-hint-btn:hover {
    background: #F1F8E6;
    border-style: solid;
}

.hunt-code-section {
    margin-bottom: 20px;
}
.hunt-code-label {
    font-weight: 800;
    font-size: 14px;
    color: var(--hg-brown);
    margin-bottom: 12px;
}

.hunt-submit-btn {
    width: 100%;
    padding: 14px;
    background: white;
    border: 3px solid #3A7A36;
    border-radius: 14px;
    color: #2B5F1A;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}
.hunt-submit-btn:hover {
    background: #F1F8E6;
}

.hunt-success-points {
    font-family: 'Lilita One', cursive;
    font-size: 48px;
    color: var(--hg-green);
    text-shadow: 2px 2px 0 var(--hg-green-dark);
}
.hunt-success-next {
    background: var(--hg-sand);
    padding: 16px;
    border-radius: 14px;
    font-size: 15px;
    color: var(--hg-brown);
}

@media (min-width: 768px) {
    .app { max-width: 420px; margin: 0 auto; border-radius: 32px; overflow: hidden; box-shadow: 0 20px 60px rgba(107,68,35,0.2); }
    /* Die Nav ist ein in-flow-Flex-Kind der (bereits zentrierten, 420px
       breiten) .app – KEIN left/transform mehr, sonst schiebt es die
       Leiste seitlich aus dem Bild. Nur die unteren Ecken abrunden. */
    .bottom-nav { border-radius: 0 0 32px 32px; }
    .modal { border-radius: 28px; margin-bottom: 20px; border: 4px solid var(--hg-gold); }
}

/* ═══════════════ QR-SCANNER ═══════════════ */
.qr-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
}

.qr-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-frame {
    position: absolute;
    inset: 15%;
    border: 4px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.qr-scan-hint {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--hg-brown-light);
    margin-bottom: 12px;
}

/* ═══════════════ INSTALL-BANNER ═══════════════ */
.install-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(78px + var(--safe-bottom));
    background: white;
    border: 3px solid var(--hg-gold);
    border-radius: 20px;
    padding: 12px 14px;
    display: none;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(107, 68, 35, 0.25);
    z-index: 90;
}

.install-banner.show { display: flex; }

.install-banner-icon { font-size: 28px; flex-shrink: 0; }

.install-banner-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.install-banner-text strong {
    font-family: 'Lilita One', cursive;
    font-weight: 400;
    font-size: 15px;
    color: var(--hg-brown);
}

.install-banner-text span {
    font-size: 12px;
    font-weight: 600;
    color: var(--hg-brown-light);
}

.install-banner-btn {
    background: linear-gradient(135deg, var(--hg-pink), var(--hg-pink-light));
    color: white;
    border: none;
    border-radius: 14px;
    padding: 10px 14px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 3px 0 var(--hg-pink-dark);
}

.install-banner-close {
    background: none;
    border: none;
    color: var(--hg-brown-light);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

/* ═══════════════ ANIMATIONEN ═══════════════ */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ═══════════════ VENUE-TABS (scrollbar) ═══════════════ */
.venue-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
}
.venue-tabs::-webkit-scrollbar { display: none; }
.venue-tabs .day-tab { white-space: nowrap; flex-shrink: 0; }

/* ═══════════════ WO IST HELLA? ═══════════════ */
.hella-card {
    background: white;
    border: 3px solid var(--hg-pink-light);
    border-radius: 20px;
    padding: 6px 16px;
    box-shadow: 0 4px 0 rgba(195, 65, 144, 0.15);
}

.hella-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 2px dashed var(--hg-pink-50);
}
.hella-item:last-child { border-bottom: none; }

.hella-time {
    font-family: 'Lilita One', cursive;
    font-size: 16px;
    color: var(--hg-pink);
    min-width: 48px;
}

.hella-what { font-weight: 800; font-size: 14px; color: var(--hg-brown); }

.hella-venue {
    font-size: 12px;
    font-weight: 600;
    color: var(--hg-brown-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ═══════════════ GUT ZU WISSEN ═══════════════ */
.gtk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gtk-card {
    background: white;
    border: 3px solid var(--hg-green-light);
    border-radius: 18px;
    padding: 14px 12px;
    text-align: center;
}

.gtk-emoji { font-size: 28px; margin-bottom: 6px; }
.gtk-title { font-weight: 800; font-size: 13px; color: var(--hg-brown); }
.gtk-text { font-size: 11px; font-weight: 600; color: var(--hg-brown-light); margin-top: 2px; }

/* ═══════════════ WORKSHOPS ═══════════════ */
.workshop-intro {
    background: var(--hg-gold-50);
    border: 3px solid var(--hg-gold);
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--hg-brown);
    margin-bottom: 14px;
}

.workshop-card {
    background: white;
    border: 3px solid var(--hg-gold);
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 0 rgba(107, 68, 35, 0.1);
}

.workshop-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.workshop-emoji {
    width: 52px;
    height: 52px;
    background: var(--hg-gold-50);
    border: 3px solid var(--hg-gold);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.workshop-title { font-family: 'Lilita One', cursive; font-size: 17px; color: var(--hg-brown); }
.workshop-meta { font-size: 12px; font-weight: 700; color: var(--hg-pink); margin-top: 2px; }
.workshop-text { font-size: 13px; font-weight: 600; color: var(--hg-brown-light); line-height: 1.5; }

.workshop-hint {
    margin-top: 10px;
    background: var(--hg-green-50);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--hg-green-dark);
}

.workshop-highlight {
    margin-top: 10px;
    background: var(--hg-pink-50);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--hg-pink-dark);
}

/* ═══════════════ SPONSOREN ═══════════════ */
.sponsor-wall { display: flex; flex-direction: column; gap: 10px; }

.sponsor-row { display: flex; gap: 10px; }
.sponsor-row .sponsor-tile { flex: 1; }

.sponsor-tile {
    background: white;
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    overflow: hidden;
}

.tier1 .sponsor-tile { min-height: 76px; border-color: var(--hg-gold); border-width: 3px; }

.sponsor-tile img { max-width: 100%; max-height: 48px; object-fit: contain; }
.tier1 .sponsor-tile img { max-height: 56px; }

.sponsor-text {
    font-family: 'Lilita One', cursive;
    font-size: 13px;
    color: var(--hg-brown-light);
    text-align: center;
}
.tier3 { flex-wrap: wrap; }
.tier3 .sponsor-tile { flex: 1 1 30%; min-height: 56px; }
.tier3 .sponsor-tile img { max-height: 36px; }

/* ═══════════════ FORMULARE (Onboarding, Kind anlegen) ═══════════════ */
.form-label {
    display: block;
    font-weight: 800;
    font-size: 13px;
    color: var(--hg-brown);
    margin: 14px 0 6px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 3px solid var(--hg-gold);
    border-radius: 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--hg-brown);
    background: var(--hg-cream);
    outline: none;
}
.form-input:focus { border-color: var(--hg-pink); }

.kid-input-row { display: flex; gap: 8px; align-items: stretch; }
.kid-input-row .form-input:first-child { flex: 2; }
.kid-input-row .form-input:nth-child(2) { flex: 1; min-width: 70px; }

.kid-add-btn {
    width: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--hg-green), var(--hg-green-dark));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 24px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 3px 0 var(--hg-green-dark);
}

.onb-kid-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--hg-green-50);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--hg-brown);
}

.onb-kid-row button {
    background: none;
    border: none;
    color: var(--hg-brown-light);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
}

/* ═══════════════ FAMILIE & BÄNDER ═══════════════ */
.band-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.band-card {
    padding: 16px;
    background: var(--hg-cream);
    border: 4px solid #eee;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
}
.band-card.pink { background: var(--hg-pink-50); border-color: var(--hg-pink-light); }
.band-card.gold { background: var(--hg-gold-50); border-color: var(--hg-gold-light); }
.band-card.green { background: var(--hg-green-50); border-color: var(--hg-green-light); }
.band-card.active { border-color: var(--hg-pink); box-shadow: 0 0 0 2px var(--hg-pink); }
.band-card.active.gold { border-color: var(--hg-gold-dark); box-shadow: 0 0 0 2px var(--hg-gold-dark); }
.band-card.active.green { border-color: var(--hg-green-dark); box-shadow: 0 0 0 2px var(--hg-green-dark); }

.band-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #bbb, #999);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Lilita One', cursive;
    font-size: 24px;
}
.band-avatar.pink { background: linear-gradient(135deg, var(--hg-pink), var(--hg-pink-light)); }
.band-avatar.gold { background: linear-gradient(135deg, var(--hg-gold), var(--hg-gold-dark)); }
.band-avatar.green { background: linear-gradient(135deg, var(--hg-green), var(--hg-green-dark)); }

.band-name { font-family: 'Lilita One', cursive; font-size: 16px; color: var(--hg-brown); }
.band-id { font-size: 11px; color: var(--hg-brown-light); font-weight: 600; }

.add-kid-btn {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    background: white;
    border: 3px dashed var(--hg-green);
    border-radius: 18px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: var(--hg-green-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.kid-remove-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}

.empty-hint {
    text-align: center;
    color: var(--hg-brown-light);
    font-weight: 600;
    font-size: 14px;
    padding: 24px 12px;
    line-height: 1.6;
}

.hunt-task-hint {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--hg-brown-light);
}

/* ═══════════════ PREIS-KARTE (alle Stationen geschafft) ═══════════════ */
.prize-card {
    background: linear-gradient(135deg, var(--hg-gold-50), white);
    border: 4px solid var(--hg-gold);
    border-radius: 24px;
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 5px 0 var(--hg-gold-dark);
}

.prize-emoji { font-size: 56px; margin-bottom: 10px; }

.prize-title {
    font-family: 'Lilita One', cursive;
    font-size: 22px;
    color: var(--hg-pink);
    margin-bottom: 8px;
}

.prize-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--hg-brown);
    line-height: 1.5;
}

/* ═══════════════ KÜNSTLER-AVATARE & DETAIL ═══════════════ */
.program-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(107, 68, 35, 0.18);
}

.program-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.program-avatar.initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lilita One', cursive;
    font-size: 15px;
    color: white;
    background: linear-gradient(135deg, #bbb, #999);
}
.program-avatar.initials.pink { background: linear-gradient(135deg, var(--hg-pink), var(--hg-pink-light)); }
.program-avatar.initials.gold { background: linear-gradient(135deg, var(--hg-gold), var(--hg-gold-dark)); }
.program-avatar.initials.green { background: linear-gradient(135deg, var(--hg-green), var(--hg-green-dark)); }

.artist-photo {
    width: 104px;
    height: 104px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--hg-gold);
    box-shadow: 0 4px 0 var(--hg-gold-dark);
}

.artist-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.artist-photo .program-avatar {
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: none;
    border-radius: 0;
}
.artist-photo .program-avatar.initials { font-size: 40px; }

.fav-star { color: var(--hg-gold-dark); }

.my-program-item { border-color: var(--hg-gold) !important; }

/* ═══════════════ OFFLINE-CHIP ═══════════════ */
.offline-chip {
    display: none;
    background: var(--hg-brown);
    color: white;
    font-size: 11px;
    font-weight: 800;
    border-radius: 20px;
    padding: 6px 10px;
    white-space: nowrap;
}
.offline-chip.show { display: block; }

/* ═══════════════ HELLA: ALS NÄCHSTES ═══════════════ */
.hella-item.next {
    background: var(--hg-pink-50);
    border-radius: 12px;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
}

.hella-next-chip {
    background: var(--hg-pink);
    color: white;
    font-size: 10px;
    font-weight: 800;
    border-radius: 12px;
    padding: 4px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.program-item { align-items: center; }

/* ═══════════════ LOGO (echtes Marken-Logo) ═══════════════ */
.logo-img { height: 56px; width: auto; display: block; }

/* ═══════════════ COUNTDOWN (wie Website) ═══════════════ */
.countdown-card {
    background: linear-gradient(135deg, #3A7A36, #2B5F1A);
    border-radius: 24px;
    padding: 18px 16px;
    text-align: center;
    color: white;
    box-shadow: 0 5px 0 #1F4712;
}

.countdown-title {
    font-family: 'Lilita One', cursive;
    font-size: 16px;
    margin-bottom: 12px;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.countdown-cell {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 10px 0;
    flex: 1;
    max-width: 96px;
    display: flex;
    flex-direction: column;
}

.countdown-cell span { font-family: 'Lilita One', cursive; font-size: 26px; line-height: 1; }
.countdown-cell label { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; opacity: 0.85; margin-top: 4px; }

.countdown-ticket-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--hg-gold), var(--hg-gold-dark));
    color: var(--hg-brown);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 14px;
    border: none;
    border-radius: 16px;
    padding: 12px 22px;
    cursor: pointer;
    box-shadow: 0 3px 0 #B58E00;
}

/* ═══════════════ MODAL-HEADER (Stationen, Scanner, Onboarding) ═══════════════ */
.modal-header {
    padding: 22px 20px 18px;
    text-align: center;
    color: white;
    position: relative;
}

.modal-header .modal-title { color: white; margin-bottom: 4px; }
.modal-header .modal-emoji { margin-bottom: 8px; }

.modal-subtitle {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.92;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    max-height: 62vh;
    overflow-y: auto;
}

/* ═══════════════ BAND ZUORDNEN ═══════════════ */
.band-assign-kid {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: var(--hg-gold-50);
    border: 3px solid var(--hg-gold);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 8px;
    font-family: 'Lilita One', cursive;
    font-size: 16px;
    color: var(--hg-brown);
    cursor: pointer;
}

.band-assign-kid span {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--hg-brown-light);
}

/* ═══════════════ SÄULEN-PAIRING ═══════════════ */
.pair-status {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--hg-brown);
    padding: 10px 4px 14px;
    line-height: 1.5;
}
.pair-status.error { color: #B3261E; }

.pair-wait-emoji {
    font-size: 52px;
    margin-bottom: 10px;
    animation: pair-bounce 1.2s ease-in-out infinite;
}

@keyframes pair-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.pair-hint { font-size: 12px; font-weight: 600; color: var(--hg-brown-light); }

.pair-done-row {
    background: var(--hg-green-50);
    border: 2px solid var(--hg-green-light);
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: 8px;
    font-weight: 800;
    font-size: 14px;
    color: var(--hg-green-dark);
}

/* ═══════════════ BAND-VERBINDUNGS-STATUS ═══════════════ */
.rfid-status.pending {
    color: var(--hg-brown-light);
    font-weight: 800;
    font-size: 12px;
    opacity: 0.85;
}
.rfid-status.pending .rfid-dot { display: none; }

.band-card.unpaired { opacity: 0.7; }
.band-card.unpaired .band-id { color: var(--hg-brown-light); font-style: italic; }

/* ═══════════════ HILFE / SO FUNKTIONIERT'S ═══════════════ */
.help-card {
    background: white;
    border: 3px solid var(--hg-gold);
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: 0 4px 0 rgba(107, 68, 35, 0.08);
}
.help-card h3 {
    font-family: 'Lilita One', cursive;
    font-weight: 400;
    font-size: 18px;
    color: var(--hg-brown);
    margin-bottom: 8px;
}
.help-card p {
    font-size: 14px;
    font-weight: 600;
    color: var(--hg-brown-light);
    line-height: 1.55;
    margin-bottom: 8px;
}
.help-card p:last-child { margin-bottom: 0; }
.help-card strong { color: var(--hg-brown); }

.help-ok {
    background: var(--hg-green-50);
    border: 2px solid var(--hg-green-light);
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 700;
    color: var(--hg-green-dark);
    font-size: 14px;
}

.help-install { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.help-install-col {
    background: var(--hg-sand);
    border: 2px solid #eadfc8;
    border-radius: 14px;
    padding: 12px 14px;
}
.help-install-col.highlight {
    border-color: var(--hg-pink);
    background: var(--hg-pink-50);
}
.help-install-head { font-weight: 800; font-size: 14px; color: var(--hg-brown); margin-bottom: 6px; }
.help-install-col ol { margin: 0; padding-left: 18px; }
.help-install-col li { font-size: 13px; font-weight: 600; color: var(--hg-brown-light); line-height: 1.5; margin-bottom: 3px; }

/* ── Benachrichtigungen ── */
.notif-card {
    background: #fff;
    border: 2px solid #eadfc8;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
}
.notif-card.ok { border-color: var(--hg-green); background: #f6faec; }
.notif-head { display: flex; align-items: flex-start; gap: 12px; }
.notif-emoji { font-size: 26px; line-height: 1; }
.notif-title { font-weight: 800; font-size: 16px; color: var(--hg-brown); }
.notif-sub { font-size: 13px; font-weight: 600; color: var(--hg-brown-light); line-height: 1.5; margin-top: 2px; }
.notif-btn {
    display: block; width: 100%; margin-top: 14px;
    padding: 13px; border: none; border-radius: 12px;
    background: var(--hg-pink); color: #fff;
    font-size: 15px; font-weight: 800; cursor: pointer;
    box-shadow: 0 4px 0 #9c2f72;
}
.notif-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #9c2f72; }
.notif-btn.ghost {
    background: #fff; color: var(--hg-brown);
    border: 2px solid #eadfc8; box-shadow: none;
}
.notif-info-list { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 16px; }
.notif-info {
    display: flex; align-items: flex-start; gap: 12px;
    background: var(--hg-sand);
    border-radius: 14px; padding: 13px 14px;
    font-size: 13px; font-weight: 600; color: var(--hg-brown-light); line-height: 1.5;
}
.notif-info span { font-size: 20px; line-height: 1.2; }
.notif-info b { color: var(--hg-brown); }
.notif-foot { font-size: 12px; font-weight: 600; color: #999; line-height: 1.5; text-align: center; padding: 0 8px; }

/* ── Stationen: Kind-Umschalter (Punkte pro Kind) ── */
.hunt-kid-bar {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; padding: 0 4px 14px; margin-top: -4px;
}
.hunt-kid-bar-label {
    font-size: 12px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .4px; color: var(--hg-brown-light); margin-right: 2px;
}
.hunt-kid-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 12px; border-radius: 999px; cursor: pointer;
    border: 2px solid #e7ddc8; background: #fff;
    font-size: 14px; font-weight: 800; color: var(--hg-brown);
}
.hunt-kid-chip .hunt-kid-chip-pts {
    font-size: 12px; font-weight: 800; color: #fff;
    background: var(--hg-brown-light); border-radius: 999px;
    padding: 1px 8px; min-width: 34px; text-align: center;
}
.hunt-kid-chip.active { border-color: var(--hg-pink); background: var(--hg-pink-50); }
.hunt-kid-chip.active .hunt-kid-chip-pts { background: var(--hg-pink); }
.hunt-kid-chip.gold.active { border-color: var(--hg-gold-dark); background: var(--hg-gold-50); }
.hunt-kid-chip.gold.active .hunt-kid-chip-pts { background: var(--hg-gold-dark); }
.hunt-kid-chip.green.active { border-color: var(--hg-green); background: #f6faec; }
.hunt-kid-chip.green.active .hunt-kid-chip-pts { background: var(--hg-green-dark); }

/* ── Hilfe: Hinweis + Kontakt-Buttons ── */
.help-hint {
    font-size: 13px; font-weight: 600; color: var(--hg-brown-light);
    background: var(--hg-sand); border-radius: 12px; padding: 10px 12px; margin-top: 10px; line-height: 1.5;
}
.help-contact-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin-top: 10px; padding: 13px; border-radius: 12px;
    background: var(--hg-pink); color: #fff; font-size: 15px; font-weight: 800;
    text-decoration: none; box-shadow: 0 4px 0 #9c2f72;
}
.help-contact-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #9c2f72; }
.help-contact-btn.whatsapp { background: #25D366; box-shadow: 0 4px 0 #1da851; }
.help-contact-btn.whatsapp:active { box-shadow: 0 2px 0 #1da851; }

/* ── Support-Postfach ── */
.help-contact-btn.secondary { background: #fff; color: var(--hg-brown); border: 2px solid #eadfc8; box-shadow: none; }
.support-thread { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 16px; max-height: 40vh; overflow-y: auto; }
.support-q, .support-a {
    border-radius: 14px; padding: 10px 12px; font-size: 14px; font-weight: 600; line-height: 1.5;
}
.support-q { background: var(--hg-pink-50); color: var(--hg-brown); align-self: flex-end; max-width: 88%; border-bottom-right-radius: 4px; }
.support-a { background: #f6faec; color: var(--hg-brown); align-self: flex-start; max-width: 88%; border-bottom-left-radius: 4px; }
.support-who { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: var(--hg-brown-light); margin-bottom: 3px; }
.support-pending { align-self: flex-start; font-size: 12px; font-weight: 700; color: #999; padding: 2px 4px; }

/* ── Intro / Erst-Öffnen ── */
.intro-point { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 14px; }
.intro-ic { font-size: 30px; line-height: 1; flex-shrink: 0; }
.intro-t { font-family: 'Lilita One', cursive; font-size: 17px; color: var(--hg-brown); margin-bottom: 2px; }
.intro-d { font-size: 13.5px; font-weight: 600; color: var(--hg-brown-light); line-height: 1.5; }
.intro-foot { font-size: 12px; font-weight: 600; color: #999; text-align: center; margin-top: 12px; line-height: 1.5; }

/* ── RFID-Modal: Kopplungs-Erklärung ── */
.rfid-howto {
    background: var(--hg-sand); border: 2px solid #eadfc8; border-radius: 14px;
    padding: 12px 14px; margin-bottom: 16px;
}
.rfid-howto-title { font-family: 'Lilita One', cursive; font-size: 16px; color: var(--hg-brown); margin-bottom: 6px; }
.rfid-howto ol { margin: 0; padding-left: 18px; }
.rfid-howto li { font-size: 13px; font-weight: 600; color: var(--hg-brown-light); line-height: 1.5; margin-bottom: 4px; }

/* Der Notch-/Statusleisten-Bereich wird bereits von jedem Seiten-Header
   in dessen eigener Farbe gefüllt (padding-top: env(safe-area-inset-top)) –
   deshalb KEIN eigener Streifen mehr oben, sonst „klebt" er als Balken. */


/* ── Station: Säulen-Dynamik (Band an der Säule) ── */
.hunt-pillar-btn {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 14px 16px; border-radius: 16px; cursor: pointer;
    background: linear-gradient(135deg, #3A7A36, #2B5F1A); color: #fff;
    border: none; box-shadow: 0 4px 0 #1f4713; text-align: left;
}
.hunt-pillar-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #1f4713; }
.hunt-pillar-btn .hpb-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hunt-pillar-btn .hpb-text { flex: 1; display: flex; flex-direction: column; }
.hunt-pillar-btn .hpb-text b { font-size: 15px; font-weight: 800; }
.hunt-pillar-btn .hpb-text small { font-size: 12px; opacity: .9; font-weight: 600; margin-top: 1px; }
.hunt-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: #999; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.hunt-or::before, .hunt-or::after { content: ''; flex: 1; height: 2px; background: #eadfc8; border-radius: 2px; }

.pillar-reader { position: relative; width: 140px; height: 140px; margin: 8px auto 6px; display: flex; align-items: center; justify-content: center; }
.pillar-core { width: 74px; height: 74px; border-radius: 50%; background: linear-gradient(135deg, var(--hg-green), var(--hg-green-dark)); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(42,95,26,.4); z-index: 2; }
.pillar-ring { position: absolute; width: 90px; height: 90px; border-radius: 50%; border: 3px solid var(--hg-green); opacity: 0; animation: pillar-pulse 2s ease-out infinite; }
.pillar-ring.d2 { animation-delay: 1s; }
@keyframes pillar-pulse { 0% { width: 74px; height: 74px; opacity: .7; } 100% { width: 150px; height: 150px; opacity: 0; } }
.pillar-status { text-align: center; font-size: 15px; font-weight: 700; color: var(--hg-brown); line-height: 1.5; padding: 0 10px; }
.pillar-status b { color: var(--hg-green-dark); }
.pillar-status.ok { color: var(--hg-green-dark); }
.pillar-code { text-align: center; font-family: 'Lilita One', cursive; font-size: 13px; color: #fff; background: var(--hg-green-dark); border-radius: 999px; padding: 4px 16px; width: fit-content; margin: 10px auto 16px; letter-spacing: .5px; }
.hunt-scan-btn.demo { background: var(--hg-gold-50); color: var(--hg-brown); border: 2px dashed var(--hg-gold-dark); }

/* ═══════════════ DESKTOP: fixierte Systemmeldungen ═══════════════
   Toast + Install-Banner auf die App-Breite (420px) begrenzen und
   zentrieren. Steht bewusst am DATEIENDE, damit es die Basisregeln
   sicher überschreibt. margin-left statt translateX, damit die
   translateY-Animation des Toasts unangetastet bleibt. */
@media (min-width: 768px) {
    .toast { left: 50%; right: auto; width: 380px; margin-left: -190px; }
    .install-banner { left: 50%; right: auto; width: 396px; margin-left: -198px; }
}
