/* GRØV HOMEPAGE – Stil (Welt-Oberfläche, Schnellansicht, Panels, Rechtsseiten) */
@font-face { font-family: 'Jakarta'; src: url('../assets/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('../assets/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('../assets/fonts/cinzel-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --bg: #0b0a08; --bg2: #13110d; --glas: rgba(16, 15, 11, 0.86);
  --gold: #d6b26e; --gold-hell: #ecd29a; --beige: #e5dfc9; --text: #ece6d4; --leise: #a59d88;
  --gruen: #24503a; --gruen-dunkel: #10261b; --neon: #7ee08a; --rot: #e0806a;
  --rand: rgba(214, 178, 110, 0.28); --radius: 16px;
  --sicher-oben: env(safe-area-inset-top, 0px); --sicher-unten: env(safe-area-inset-bottom, 0px);
  --sicher-links: env(safe-area-inset-left, 0px); --sicher-rechts: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-family: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; }
a { color: var(--gold-hell); }
a:hover { color: var(--beige); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 3px; }
[hidden] { display: none !important; }
img { max-width: 100%; }

/* ---------- Modi ---------- */
#welt, #lader { display: none; }
html.modus-lade, html.modus-welt { overflow: hidden; height: 100dvh; overscroll-behavior: none; }
html.modus-lade body, html.modus-welt body { overflow: hidden; height: 100dvh; }
html.modus-lade #schnell, html.modus-welt #schnell { display: none; }
html.modus-lade #welt, html.modus-welt #welt { display: block; }
html.modus-lade #lader { display: flex; }
html.modus-lade #welt-ui { visibility: hidden; }
/* Weicher Übergang vom Ladebildschirm in die Welt */
html.lader-aus #lader { display: flex; opacity: 0; pointer-events: none; }

/* ---------- Welt ---------- */
#welt { position: fixed; inset: 0; height: 100dvh; background: #050505; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#welt-leinwand, #welt-leinwand canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#welt-leinwand canvas { cursor: pointer; }
#welt-ui { position: absolute; inset: 0; pointer-events: none; }
#welt-ui > * { pointer-events: auto; }
/* Logo als Wasserzeichen: transparent, ohne Kasten (Auftrag 1B) */
.ui-logo { position: absolute; left: calc(3.2vw + var(--sicher-links) - 10px); top: calc(3.4vh + var(--sicher-oben) - 10px); display: block; padding: 10px; width: calc(clamp(84px, 8.4vw, 158px) + 20px); min-height: 44px; opacity: .4; filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); transition: opacity .3s ease; }
.ui-logo:hover, .ui-logo:focus-visible { opacity: .85; }
.ui-logo img { width: 100%; height: auto; display: block; }
html.ist-tag .ui-logo { opacity: .48; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)) drop-shadow(0 2px 10px rgba(20,12,4,.4)); }
html.ist-tag .ui-rechts { text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.ui-rechts { position: absolute; right: calc(3vw + var(--sicher-rechts)); top: calc(3.2vh + var(--sicher-oben)); display: flex; align-items: center; gap: clamp(6px, 1.6vw, 26px); }
.sprachwahl { display: flex; align-items: center; gap: 2px; color: var(--beige); font-size: clamp(15px, 1.15vw, 20px); letter-spacing: .04em; }
.sprachwahl span { opacity: .8; }
.sprachwahl button { background: none; border: 0; padding: 10px 6px; min-height: 44px; min-width: 36px; cursor: pointer; color: var(--beige); opacity: .62; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.sprachwahl button[aria-pressed="true"] { opacity: 1; }
.ui-knopf { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--beige); }
.ui-knopf:hover { background: rgba(229, 223, 201, .08); }
.ico-ton, .ico-sonne { width: 24px; height: 24px; display: block; background: currentColor; filter: drop-shadow(0 1px 6px rgba(0,0,0,.7)); }
.ico-ton { -webkit-mask: url('../assets/ico-ton-aus.svg') center/contain no-repeat; mask: url('../assets/ico-ton-aus.svg') center/contain no-repeat; }
[data-ton-knopf][aria-pressed="true"] .ico-ton { -webkit-mask-image: url('../assets/ico-ton-an.svg'); mask-image: url('../assets/ico-ton-an.svg'); }
.ico-sonne { width: 20px; height: 20px; opacity: .78; -webkit-mask: url('../assets/ico-mond.svg') center/contain no-repeat; mask: url('../assets/ico-mond.svg') center/contain no-repeat; }
html.ist-tag .ico-sonne { -webkit-mask-image: url('../assets/ico-sonne.svg'); mask-image: url('../assets/ico-sonne.svg'); }
.ui-fuss { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(8px + var(--sicher-unten)); display: flex; gap: 8px; align-items: center; font-size: 12px; color: rgba(229,223,201,.55); white-space: nowrap; }
.ui-fuss a { color: rgba(229,223,201,.62); text-decoration: none; padding: 12px 4px; text-shadow: 0 1px 6px #000; }
.ui-fuss a:hover { color: var(--beige); }
.hinweis-laufen { position: absolute; left: 50%; bottom: calc(52px + var(--sicher-unten)); transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: rgba(10,10,8,.66); border: 1px solid var(--rand); color: var(--beige); font-size: 13px; pointer-events: none; white-space: nowrap; transition: opacity .8s ease; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hinweis-laufen.weg { opacity: 0; }
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.objekt-label { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); padding: 6px 12px 6px 12px; border-radius: 999px; background: rgba(12,11,8,.78); border: 1px solid rgba(214,178,110,.55); color: var(--beige); font-size: 13px; line-height: 1.3; white-space: nowrap; opacity: 0; transition: opacity .25s ease; pointer-events: none; box-shadow: 0 4px 18px rgba(0,0,0,.45), 0 0 14px rgba(214,178,110,.16); }
.objekt-label.sichtbar { opacity: 1; }
.objekt-label small { display: block; font-size: 11px; color: var(--gold); text-align: center; }

/* ---------- Lader ---------- */
#lader { position: fixed; inset: 0; z-index: 20; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: radial-gradient(ellipse at 50% 40%, #1c1912 0%, #0b0a08 60%, #050504 100%); transition: opacity .6s ease; padding: 24px; }
.lader-logo { width: min(260px, 60vw); height: auto; animation: glimmen 2.4s ease-in-out infinite; }
.lader-spur { width: min(280px, 62vw); height: 2px; background: rgba(229,223,201,.14); border-radius: 2px; overflow: hidden; }
#lade-balken { height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hell)); transform-origin: left; transform: scaleX(.02); transition: transform .25s ease; }
.lader-text { margin: 0; font-size: 13px; color: var(--leise); letter-spacing: .1em; text-transform: uppercase; }
@keyframes glimmen { 0%,100% { opacity: .78; } 50% { opacity: 1; } }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--rand); background: rgba(229,223,201,.04); color: var(--beige); text-decoration: none; cursor: pointer; font-weight: 600; font-size: 15px; transition: background .2s, border-color .2s, transform .15s; }
.knopf:hover { background: rgba(229,223,201,.1); border-color: var(--gold); color: var(--beige); }
.knopf:active { transform: scale(.98); }
.knopf.gold { background: linear-gradient(180deg, #e3c27f, #c09a52); color: #17120a; border-color: transparent; }
.knopf.gold:hover { background: linear-gradient(180deg, #edd095, #caa45c); color: #17120a; }
.knopf.klein { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.knopf.gross { width: 100%; min-height: 50px; font-size: 16px; }
.knopf:disabled { opacity: .6; cursor: wait; }
.rund { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rand); background: rgba(229,223,201,.05); color: var(--beige); cursor: pointer; display: inline-grid; place-items: center; font-size: 16px; }
.rund:hover { border-color: var(--gold); }
.rund.gross { width: 64px; height: 64px; background: linear-gradient(180deg, #e3c27f, #c09a52); border: 0; position: relative; }
.rund.gross::before { content: ''; width: 0; height: 0; border-left: 18px solid #17120a; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.rund.gross.spielt::before { width: 18px; height: 20px; border: 0; margin: 0; background: linear-gradient(90deg, #17120a 0 6px, transparent 6px 12px, #17120a 12px 18px); }
.textlink { color: var(--gold-hell); font-size: 14px; }
.leise { color: var(--leise); }
.klein { font-size: 13px; }

/* ---------- Panel ---------- */
#panel { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: calc(16px + var(--sicher-oben)) calc(14px + var(--sicher-rechts)) calc(16px + var(--sicher-unten)) calc(14px + var(--sicher-links)); }
.panel-hintergrund { position: absolute; inset: 0; background: rgba(5,5,4,.5); opacity: 0; transition: opacity .25s ease; }
.panel-box { position: relative; width: min(520px, 100%); max-height: min(86dvh, 820px); overflow: auto; overscroll-behavior: contain; background: linear-gradient(180deg, rgba(24,22,16,.96), rgba(12,11,8,.97)); border: 1px solid var(--rand); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.02) inset, 0 0 60px rgba(214,178,110,.08); padding: 0 22px 24px; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .25s ease, transform .25s ease; scrollbar-width: thin; scrollbar-color: #4a4232 transparent; }
.panel-box.breit { width: min(640px, 100%); }
#panel.offen .panel-hintergrund { opacity: 1; }
#panel.offen .panel-box { opacity: 1; transform: none; }
.panel-kopf { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 12px; background: linear-gradient(180deg, rgba(24,22,16,1) 70%, rgba(24,22,16,0)); }
.panel-kopf h2 { margin: 0; font-family: 'Cinzel', serif; font-weight: 600; color: var(--gold-hell); font-size: 22px; letter-spacing: .06em; }
.panel-inhalt p { margin: 0 0 12px; }
.text-block p { margin: 0 0 14px; }

/* ---------- Inhalte ---------- */
.spotify-platzhalter { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 26px 16px; border-radius: 16px; background: radial-gradient(ellipse at 50% 0%, rgba(30,215,96,.1), rgba(0,0,0,0) 70%), rgba(255,255,255,.02); border: 1px dashed rgba(229,223,201,.18); }
.spotify-icon { width: 44px; height: 44px; border-radius: 50%; background: #1ed760; -webkit-mask: url('../assets/ico-wellen.svg') center/62% no-repeat, linear-gradient(#000,#000); -webkit-mask-composite: xor; mask: url('../assets/ico-wellen.svg') center/62% no-repeat exclude, linear-gradient(#000,#000); }
.spotify-platzhalter p { margin: 0; max-width: 40ch; }
.hoerproben { margin-top: 22px; }
.hoerproben h3 { font-family: 'Cinzel', serif; color: var(--gold); font-size: 16px; margin: 0 0 10px; }
.hoerprobe { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid rgba(229,223,201,.08); }
.hoerprobe audio { width: 100%; }
.umschalter { display: inline-flex; border: 1px solid var(--rand); border-radius: 999px; overflow: hidden; width: max-content; }
.umschalter button { border: 0; background: transparent; padding: 8px 16px; min-height: 40px; cursor: pointer; color: var(--leise); }
.umschalter button[aria-pressed="true"] { background: var(--gold); color: #17120a; font-weight: 600; }
.termine { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.termine li { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'datum titel link' 'datum ort link'; column-gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(229,223,201,.1); }
.termine time { grid-area: datum; font-family: 'Cinzel', serif; color: var(--gold-hell); font-size: 15px; }
.termin-titel { grid-area: titel; font-weight: 600; }
.termin-ort { grid-area: ort; color: var(--leise); font-size: 14px; }
.termine .knopf { grid-area: link; }
.termine-leer { text-align: center; padding: 22px 0; }
.termine-leer .gross { font-family: 'Cinzel', serif; font-size: 28px; color: var(--gold-hell); margin: 0; letter-spacing: .08em; }
.plakat-panel { background: radial-gradient(ellipse at 50% 0%, rgba(214,178,110,.08), transparent 70%); border-radius: 12px; }
.linkliste { list-style: none; padding: 0; margin: 8px 0 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.linkliste li { min-width: 0; }
.linkliste a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(229,223,201,.12); background: rgba(255,255,255,.02); text-decoration: none; color: var(--beige); }
.linkliste a:hover { border-color: var(--gold); }
.link-name { font-weight: 600; }
.link-ziel { color: var(--leise); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; min-width: 0; }
.automat-panel { text-align: center; }
.automat-bild { margin: 4px auto 18px; width: 220px; height: 150px; border-radius: 12px; display: grid; place-content: center; background: radial-gradient(circle at 50% 50%, #1a2c4a 0%, #0a0f1d 70%); border: 3px solid #2b2619; box-shadow: 0 0 30px rgba(110,160,255,.2) inset; font-family: 'Cinzel', serif; color: var(--gold-hell); letter-spacing: .2em; }
.automat-bild span { font-size: 34px; } .automat-bild small { font-size: 14px; color: #7ee08a; }
.pixel { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; animation: glimmen 1.4s steps(2) infinite; }
.radio { display: grid; gap: 16px; }
.radio-display { border-radius: 12px; padding: 14px 16px; background: #0b1410; border: 1px solid rgba(126,224,138,.25); box-shadow: 0 0 22px rgba(126,224,138,.08) inset; }
.radio-fm { font-size: 11px; letter-spacing: .2em; color: var(--neon); }
.radio-titel { margin: 2px 0 0 !important; font-family: ui-monospace, Consolas, monospace; color: #b9f0c1; min-height: 1.6em; }
.radio-knoepfe { display: flex; justify-content: center; align-items: center; gap: 18px; }
.laut { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; font-size: 13px; color: var(--leise); }
input[type=range] { accent-color: var(--gold); min-height: 44px; }

/* ---------- Formular ---------- */
.anfrage-form { display: grid; gap: 14px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feld { display: grid; gap: 5px; }
.feld label, .chips legend { font-size: 13px; color: var(--leise); font-weight: 600; letter-spacing: .02em; }
.pflicht { color: var(--gold); }
.feld input, .feld textarea { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(229,223,201,.16); background: rgba(0,0,0,.35); color: var(--text); font-size: 16px; }
.feld textarea { resize: vertical; min-height: 110px; }
.feld input:focus, .feld textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(214,178,110,.18); }
.feld-fehler { color: var(--rot); font-size: 13px; min-height: 0; }
.feld-fehler:empty { display: none; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 8px; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(229,223,201,.18); font-size: 14px; transition: all .15s; }
.chip input:checked + span { background: var(--gruen); border-color: var(--neon); color: #f0f7ef; }
.chip input:focus-visible + span { outline: 2px solid var(--gold-hell); outline-offset: 2px; }
.chips .feld-fehler { flex-basis: 100%; }
.haken { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--leise); cursor: pointer; }
.haken input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--gold); }
.falle { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 14px; }
.form-status.ok { color: #9fe0a6; } .form-status.fehler { color: var(--rot); }
.form-status .leise { color: var(--leise); }

/* ---------- Schnellansicht ---------- */
#schnell { display: none; min-height: 100dvh; background: radial-gradient(ellipse 120% 60% at 50% 0%, #1d2a20 0%, rgba(11,10,8,0) 60%), radial-gradient(ellipse 80% 50% at 80% 30%, rgba(214,178,110,.08), transparent 60%), var(--bg); }
html.modus-schnell #schnell, html:not(.js) #schnell { display: block; }
.q-kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: calc(10px + var(--sicher-oben)) calc(18px + var(--sicher-rechts)) 10px calc(18px + var(--sicher-links)); background: rgba(11,10,8,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(214,178,110,.12); }
.q-logo img { height: 34px; width: auto; display: block; }
.q-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.q-nav a { color: var(--beige); text-decoration: none; padding: 10px 10px; font-size: 14px; opacity: .8; }
.q-nav a:hover { opacity: 1; color: var(--gold-hell); }
.q-rechts { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.q-rechts .sprachwahl { font-size: 15px; }
main { display: block; }
.q-held { text-align: center; padding: clamp(60px, 12vh, 140px) 20px clamp(30px, 6vh, 70px); }
.q-held-logo { width: min(420px, 74vw); height: auto; }
.q-claim { font-family: 'Jakarta', sans-serif; font-weight: 400; font-size: clamp(14px, 1.6vw, 18px); color: var(--leise); letter-spacing: .3em; text-transform: uppercase; margin: 18px 0 0; }
.q-abschnitt { max-width: 760px; margin: 0 auto; padding: 44px 22px; border-top: 1px solid rgba(214,178,110,.1); scroll-margin-top: 70px; }
.q-abschnitt h2 { font-family: 'Cinzel', serif; font-weight: 600; color: var(--gold-hell); letter-spacing: .08em; font-size: clamp(24px, 3vw, 32px); margin: 0 0 18px; }
.q-fuss { text-align: center; padding: 50px 20px calc(40px + var(--sicher-unten)); color: var(--leise); font-size: 14px; border-top: 1px solid rgba(214,178,110,.1); }
.q-fuss img { width: 110px; height: auto; opacity: .85; }
.q-fuss a { color: var(--beige); }

/* ---------- Rechtsseiten ---------- */
.rechtsseite { background: var(--bg); }
.recht { max-width: 760px; margin: 0 auto; padding: 40px 22px 60px; overflow-wrap: anywhere; hyphens: auto; }
.recht h1 { font-family: 'Cinzel', serif; color: var(--gold-hell); font-weight: 600; letter-spacing: .06em; font-size: clamp(28px, 4vw, 38px); }
.recht h2 { font-size: 18px; color: var(--gold); margin: 30px 0 8px; }
.recht p { color: #d9d2bd; }
.fehlt { color: var(--rot); font-style: italic; }

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; bottom: calc(60px + var(--sicher-unten)); transform: translateX(-50%); z-index: 40; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 24px); padding: 12px 18px; border-radius: 14px; background: rgba(16,15,11,.95); border: 1px solid var(--rand); color: var(--beige); font-size: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }

/* ---------- Handy ---------- */
@media (max-width: 720px) {
  .q-nav { display: none; }
  .zwei { grid-template-columns: 1fr; }
  .panel-box { padding: 0 16px 20px; border-radius: 20px; }
  #panel { align-items: end; }
  .panel-box { max-height: 88dvh; }
  .ui-fuss { font-size: 11px; gap: 4px; }
  .termine li { grid-template-columns: 1fr auto; grid-template-areas: 'datum link' 'titel link' 'ort link'; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
