@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-400-700-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-italic-400-600-latin.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-300-700-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --wald: #0D2310;
  --wald-tief: #060F08;
  --gold: #C8A455;
  --gold-hell: #E0C070;
  --perle: #F8F4E6;
  --perle-matt: rgba(248, 244, 230, 0.68);
  --glas: rgba(13, 35, 16, 0.72);
  --rand: rgba(248, 244, 230, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--wald-tief); color: var(--perle); font-family: "Inter", system-ui, sans-serif; }
#szene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

.kopf { position: fixed; top: 20px; left: 24px; pointer-events: none; text-shadow: 0 1px 12px rgba(0,0,0,.55); max-width: calc(100% - 120px); }
.kicker { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hell); }
.kopf h1 { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.02; margin: 6px 0 4px; }
.kopf h1 em { font-style: italic; font-weight: 500; background: linear-gradient(135deg, var(--gold), var(--gold-hell)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.unterzeile { font-size: 13px; color: var(--perle-matt); }

.kompass { position: fixed; top: 22px; right: 22px; width: 58px; height: 58px; }
.kompass .ring { fill: var(--glas); stroke: var(--gold); stroke-width: 1.2; }
.kompass .nord { fill: var(--gold-hell); }
.kompass .sued { fill: rgba(248,244,230,.35); }
.kompass .nbuchstabe { fill: var(--perle); font: 600 9px "Inter", sans-serif; }

.panel { position: fixed; top: 96px; right: 22px; width: 300px; max-height: calc(100% - 150px); overflow-y: auto; background: var(--glas); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--rand); border-radius: 14px; padding: 6px 16px 14px; scrollbar-width: thin; }
.panel section { padding: 12px 0; border-bottom: 1px solid var(--rand); }
.panel section:last-child { border-bottom: 0; }
.panel h2 { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 20px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }

.ebenen { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.ebenen button { text-align: left; }
button { font: 500 12px "Inter", sans-serif; color: var(--perle); background: rgba(255,255,255,.05); border: 1px solid var(--rand); border-radius: 8px; padding: 7px 9px; cursor: pointer; transition: border-color .15s, background .15s; }
button:hover { border-color: var(--gold); }
button.aktiv { border-color: var(--gold); background: rgba(200,164,85,.18); color: var(--gold-hell); }
.knopf { flex: 1; }
.zeile { display: flex; gap: 6px; margin-top: 8px; }

.schalter { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 6px 0; cursor: pointer; }
.schalter input { accent-color: var(--gold); width: 16px; height: 16px; }

.regler { margin: 8px 0 4px; }
.reglerkopf { display: flex; justify-content: space-between; font-size: 12px; color: var(--perle-matt); margin-bottom: 4px; }
.reglerkopf output { color: var(--perle); font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--gold); }
.marken { display: flex; gap: 4px; margin-top: 4px; }
.marken button { flex: 1; padding: 4px 4px; font-size: 10.5px; }

.sonneninfo { font-size: 12px; color: var(--perle-matt); margin-top: 10px; line-height: 1.55; font-variant-numeric: tabular-nums; }
.sonneninfo b { color: var(--perle); font-weight: 600; }
.klein { font-size: 11.5px; color: var(--perle-matt); line-height: 1.5; margin: 8px 0 0; }

.tag { font: 600 9.5px "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; white-space: nowrap; }
.tag.daten { background: var(--gold); color: var(--wald); }
.tag.modell { border: 1px solid var(--perle-matt); color: var(--perle-matt); }
.tag.darstellung { border: 1px dashed var(--gold); color: var(--gold-hell); }

.herkunft { position: fixed; left: 24px; bottom: 18px; right: 344px; font-size: 11.5px; line-height: 1.55; color: var(--perle-matt); text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.herkunft div { display: flex; gap: 8px; align-items: baseline; }
.herkunft .tag { flex: none; }

.lade { position: fixed; inset: 0; display: grid; place-items: center; background: var(--wald-tief); font-family: "Cormorant Garamond", serif; font-size: 24px; color: var(--gold-hell); transition: opacity .8s; }
.lade.weg { opacity: 0; pointer-events: none; }

/* Steuerung ein- und ausklappbar, am Computer oben rechts unter dem Kompass */
.panelknopf { position: fixed; top: 92px; right: 22px; z-index: 3; background: var(--glas); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--gold); padding: 7px 12px; }
.panel { top: 132px; max-height: calc(100% - 190px); }
.panel:not(.offen) { display: none; }

.hinweis { position: fixed; z-index: 5; max-width: 280px; padding: 10px 12px 9px; background: var(--glas); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--gold); border-radius: 10px; pointer-events: none; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.hinweis b { display: block; font-family: "Cormorant Garamond", serif; font-size: 18px; font-weight: 600; color: var(--gold-hell); margin-bottom: 3px; }
.hinweis p { margin: 0 0 7px; font-size: 12.5px; line-height: 1.45; color: var(--perle); }

@media (max-width: 760px) {
  .kopf { top: 14px; left: 16px; }
  .unterzeile { font-size: 12px; }
  .kompass { top: 14px; right: 14px; width: 48px; height: 48px; }
  .panelknopf { display: block; position: fixed; right: 16px; bottom: 16px; z-index: 3; background: var(--glas); backdrop-filter: blur(12px); border-color: var(--gold); padding: 10px 16px; font-size: 13px; }
  .panel { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 62%; border-radius: 16px 16px 0 0; transform: translateY(105%); transition: transform .3s ease; padding-bottom: 64px; z-index: 2; }
  .panel.offen { transform: none; }
  .panel:not(.offen) { display: block; }
  .panelknopf { top: auto; }
  .herkunft { left: 16px; right: 16px; bottom: 64px; font-size: 10.5px; }
  .herkunft div span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Stationsband (Sonne) und Bedienhinweis */
.stationsband { position: fixed; left: 24px; top: 132px; z-index: 3; max-width: min(460px, calc(100% - 48px)); padding: 8px 12px; background: var(--glas); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--rand); border-radius: 10px; font-size: 13px; color: var(--perle); font-variant-numeric: tabular-nums; }
.stationsband b { color: var(--gold-hell); font-weight: 600; margin-right: 6px; }
.bedienhinweis { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; padding: 7px 14px; background: var(--glas); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--gold); border-radius: 999px; font-size: 12.5px; color: var(--perle); white-space: nowrap; transition: opacity 1s; pointer-events: none; }
.bedienhinweis.weg { opacity: 0; }

/* Eingebettet in die Eden-Seite: ohne Kopf, Steuerung und Kompass oben rechts, Herkunft schmal */
body.eingebettet .kopf { display: none; }
body.eingebettet .kompass { top: 12px; right: 12px; width: 46px; height: 46px; }
body.eingebettet .panelknopf { top: 12px; right: 66px; bottom: auto; padding: 7px 12px; font-size: 12px; }
body.eingebettet .panel { top: 66px; max-height: calc(100% - 120px); }
body.eingebettet .stationsband { left: 12px; top: 12px; }
body.eingebettet .herkunft { left: 12px; right: 12px; bottom: 10px; font-size: 10.5px; }
body.eingebettet .herkunft div span:last-child { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
body.eingebettet .herkunft:hover div span:last-child { -webkit-line-clamp: unset; }
body.eingebettet .bedienhinweis { bottom: auto; top: 64px; }
@media (max-width: 760px) {
  body.eingebettet .panel { top: auto; max-height: 70%; }
  body.eingebettet .panelknopf { top: auto; bottom: 12px; right: 12px; }
  .bedienhinweis { white-space: normal; text-align: center; width: calc(100% - 32px); }
}
body.eingebettet .herkunft.zu div:nth-of-type(n+3) { display: none; }
.herkunft .mehrangaben { margin-top: 3px; padding: 2px 9px; font-size: 10.5px; border-radius: 999px; pointer-events: auto; }
.herkunft { pointer-events: none; }
.herkunft .mehrangaben, .herkunft div { pointer-events: auto; }

/* Knopfleiste: Hilfe, Steuerung, Vollbild (14.10.2026). Ersetzt die Einzelposition des Steuerknopfs. */
.leiste { position: fixed; top: 92px; right: 22px; z-index: 4; display: flex; gap: 6px; align-items: center; }
.leiste .panelknopf { position: static; }
.leiste button { background: var(--glas); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--gold); padding: 7px 12px; font-size: 12.5px; }
.leiste button.aktiv { background: rgba(200,164,85,.28); }
.hilfeknopf { width: 32px; height: 32px; padding: 0 !important; border-radius: 50% !important; font-weight: 700; font-size: 14px !important; color: var(--gold-hell); }
.vollbildknopf { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-hell); font-weight: 600; }
.vollbildknopf[hidden] { display: none; }
.vollbildknopf svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hilfekarte { position: fixed; top: 132px; right: 22px; z-index: 5; width: min(340px, calc(100% - 44px)); padding: 12px 14px 10px; background: rgba(13,35,16,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--gold); border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.4); }
.hilfekarte b#hilfetitel { display: block; font-family: "Cormorant Garamond", serif; font-size: 19px; font-weight: 600; color: var(--gold-hell); margin-bottom: 6px; }
.hilfekarte ul { margin: 0; padding-left: 16px; font-size: 12.5px; line-height: 1.5; color: var(--perle); }
.hilfekarte li { margin-bottom: 4px; }
.hilfekarte li b { color: var(--gold-hell); font-weight: 600; }
.erklaerung { font-size: 11.5px; line-height: 1.45; color: var(--perle-matt); margin: -4px 0 10px; }
@media (max-width: 760px) {
  .leiste { top: auto; bottom: 16px; right: 16px; }
  .leiste .panelknopf { padding: 10px 16px; font-size: 13px; }
  .hilfekarte { top: auto; bottom: 64px; right: 16px; }
}

/* Eingebettet: Leiste oben rechts neben dem Kompass, Steuerung als schmales Seitenfeld,
   das die kleine Buehne nicht zudeckt; Herkunftszeilen weichen ihm aus */
body.eingebettet .leiste { top: 12px; right: 66px; bottom: auto; }
body.eingebettet .leiste button { padding: 6px 10px; font-size: 12px; }
body.eingebettet .hilfeknopf { width: 30px; height: 30px; }
body.eingebettet .hilfekarte { top: 54px; right: 12px; bottom: auto; }
body.eingebettet .panel { top: 54px; right: 12px; left: auto; bottom: auto; width: min(258px, calc(100% - 24px)); max-height: calc(100% - 66px); padding: 2px 12px 10px; border-radius: 12px; transform: none; transition: none; z-index: 4; }
body.eingebettet .panel:not(.offen) { display: none; }
body.eingebettet .panel section { padding: 8px 0; }
body.eingebettet .panel h2 { font-size: 16px; margin-bottom: 6px; }
body.eingebettet .ebenen { gap: 4px; margin-bottom: 6px; }
body.eingebettet .ebenen button { font-size: 11px; padding: 5px 7px; }
body.eingebettet .schalter { font-size: 12px; margin: 4px 0; }
body.eingebettet .erklaerung { font-size: 11px; margin: -2px 0 7px; }
body.eingebettet.panelauf .herkunft { right: 282px; }
body.eingebettet.panelauf .stationsband { max-width: calc(100% - 300px); }
body.eingebettet .bedienhinweis { top: auto; bottom: 80px; }
@media (max-width: 559px) {
  body.eingebettet .vollbildknopf { display: none; }
}

/* Flug beenden: sichtbar, solange ein Kameraflug laeuft (14.10.2026) */
.flugstop { position: fixed; left: 50%; top: 20px; transform: translateX(-50%); z-index: 6; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--wald); background: var(--gold-hell); border-color: var(--gold); border-radius: 999px; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.flugstop:hover { background: var(--perle); }
.flugstop[hidden] { display: none; }
body.eingebettet .flugstop { top: auto; bottom: 122px; font-size: 12px; padding: 7px 14px; }
