/* Zeitreise-Rundgang, Timon Rochholz Webdesign
   Schrift: Literata (TypeTogether, SIL OFL 1.1), auf lateinische Zeichen gekürzt.
   Navigation und Handy-Ausschnitte in der Systemschrift.
   Farben: weißer Grund, dunkle Schrift, Tintenblau für Links. */

@font-face { font-family: "Literata"; src: url("assets/fonts/literata-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --text: #1c1b19;
  --muted: #55504a;
  --line: #d9d5ce;
  --soft: #f3f2ef;
  --blau: #1c4d7a;
  --blau-dunkel: #143a5c;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1080px;
  --text-max: 42rem;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 19px/1.65 var(--serif); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blau); text-underline-offset: 3px; }
a:hover { color: var(--blau-dunkel); }
main p a, .fuss .klein-fuss a { padding-block: 12px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 650; color: var(--text); }
figure { margin: 0; }
figcaption { font: 400 16px/1.5 var(--serif); color: var(--muted); margin-top: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--blau); color: #fff; padding: 10px 16px; z-index: 100; font-family: var(--sans); }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Hinweisband und Kopf */
.band { margin: 0; background: #eef2f6; border-bottom: 1px solid #d5dee8; color: #22303d; font: 400 16px/1.45 var(--sans); padding: 10px 16px; text-align: center; }
.kopf { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; }
.marke { display: inline-flex; align-items: center; min-height: 44px; font: 650 20px/1 var(--serif); color: var(--text); text-decoration: none; }
.nav { display: flex; gap: 22px; font: 400 16px/1 var(--sans); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); text-decoration: underline; }

/* Kopfbereich der Seite */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 5vw, 64px); }
.hero h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.15; max-width: 20em; margin-bottom: 24px; }
.hero-text { max-width: var(--text-max); margin-bottom: 32px; }
.inhalt-liste { display: none; }
.hero-text .letzter { margin-bottom: 0; }

.zeitfenster { position: relative; overflow: hidden; aspect-ratio: 1600 / 450; background: #f3ecdd; border-radius: 6px; }
.pano { position: absolute; inset: 0; width: 100%; height: 100%; }
.pano .strich, .pano .tagebau, .pano .see-linien { fill: none; stroke: #5b3f25; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pano .strich *, .pano .tagebau *, .pano .see-linien * { vector-effect: non-scaling-stroke; }
.pano .fein { stroke-width: 1; opacity: .7; }
.pano .notiz { fill: #6b4a2b; stroke: none; font: 400 22px var(--serif); }
.pano .farbe, .pano .see-linien { opacity: 0; transition: opacity 1.8s ease; }
.pano .tagebau { opacity: 1; transition: opacity 1.2s ease; }
.zeitfenster.an .farbe, .zeitfenster.an .see-linien, html:not(.js) .farbe, html:not(.js) .see-linien { opacity: 1; }
.zeitfenster.an .tagebau, html:not(.js) .tagebau { opacity: 0; }

/* Abschnitte */
.abschnitt { padding: clamp(44px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.abschnitt h2 { font-size: clamp(27px, 3vw, 36px); line-height: 1.2; margin-bottom: 18px; max-width: 24em; }
.abschnitt h3 { font-size: 22px; line-height: 1.3; margin-bottom: 8px; }
.einleitung { max-width: var(--text-max); }
.hinweis { font: 400 16px/1.5 var(--serif); color: var(--muted); }
.nach-bild { margin-top: 24px; margin-bottom: 0; }

/* Schieber */
.vergleich-figur { margin-top: 24px; max-width: 58rem; }
.vergleich { position: relative; overflow: hidden; aspect-ratio: 16 / 10; --pos: 50%; background: #ddd; border-radius: 6px; user-select: none; touch-action: pan-y; }
.vergleich img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vergleich .alt { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.vergleich .griff { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.vergleich .griff span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: #fff; color: var(--text); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.vergleich .griff svg { width: 24px; height: 24px; }
.vergleich input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.vergleich:focus-within .griff span { outline: 3px solid var(--blau); outline-offset: 2px; }
.etikett { position: absolute; top: 12px; background: #fff; color: var(--text); padding: 5px 10px; border-radius: 4px; font: 650 17px/1.2 var(--serif); pointer-events: none; }
.etikett--alt { left: 12px; }
.etikett--neu { right: 12px; }

/* Handy */
.station-block { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin: 28px 0 48px; }
.station-text { max-width: 36rem; }
.telefon { width: 100%; max-width: 300px; aspect-ratio: 9 / 18.5; border-radius: 36px; padding: 10px; background: #1f1f1f; }
.bildschirm { position: relative; width: 100%; height: 100%; border-radius: 27px; overflow: hidden; background: #fff; color: var(--text); font: 400 14px/1.4 var(--sans); }
.s-station .foto { position: relative; height: 40%; }
.s-station .foto img { width: 100%; height: 100%; object-fit: cover; }
.s-station .foto-tabs { position: absolute; bottom: 10px; left: 10px; display: flex; background: rgba(0, 0, 0, .6); border-radius: 6px; padding: 3px; font-weight: 700; }
.s-station .foto-tabs span { padding: 4px 9px; border-radius: 4px; color: #eee; }
.s-station .foto-tabs span.an { background: #fff; color: #111; }
.s-station .inhalt { padding: 12px 14px 14px; }
.h-station { font: 650 20px/1.2 var(--serif); margin: 0 0 10px; }
.audio { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 9px; display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; }
.audio .play { width: 36px; height: 36px; border-radius: 50%; background: var(--blau); color: #fff; display: grid; place-items: center; }
.audio .play svg { width: 14px; height: 14px; margin-left: 2px; }
.audio-titel { display: block; font-weight: 700; margin-bottom: 4px; }
.welle { display: flex; align-items: center; gap: 2px; height: 18px; }
.welle i { flex: 1; background: #b9c7d6; border-radius: 1px; }
.welle i.gespielt { background: var(--blau); }
.mitlesen { margin: 12px 0 0; font: 400 14px/1.5 var(--serif); }

.screen.skizze { display: flex; flex-direction: column; background: #f3f2ef; border-color: #dcd8d0; }
.skizze svg { flex: 1; width: 100%; min-height: 0; }
.skizze .linie, .skizze .weg { fill: none; stroke: #bdb7ad; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.skizze .weg { stroke: #9a948a; stroke-width: 2; }
.skizze .weg circle { fill: #f3f2ef; }
.skizze .fein { stroke-width: 1; stroke: #d3cec5; }
.skizze .schild-flaeche { fill: #faf9f7; stroke: #bdb7ad; stroke-width: 1.5; }
.skizze-label { margin: 0; padding: 10px 14px; border-top: 1px solid #e2ded6; font: 400 16px/1.3 var(--serif); color: #5f5a53; }
.screen.skizze--breit { height: 260px; }
.ausschnitte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.screen { position: relative; height: 340px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: var(--sans); }

/* Ideen */
.idee-zeile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 48px); align-items: start; margin: 32px 0 0; }
.ideen-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; margin-top: 44px; }
.ideen-liste p { margin: 0; }
.eigene-idee { max-width: var(--text-max); margin: 36px 0 0; }

/* Kosten und Ablauf */
#ablauf h3 { margin-top: 36px; }
#ablauf h2 + h3 { margin-top: 8px; }
.ablauf { max-width: var(--text-max); padding-left: 1.4em; margin: 12px 0 20px; }
.ablauf li { margin-bottom: 12px; padding-left: 6px; }
.ablauf li::marker { font: 650 19px var(--serif); color: var(--muted); }
.tabelle-rahmen { margin-top: 8px; max-width: 58rem; }
.pakete { width: 100%; border-collapse: collapse; font: 400 17px/1.4 var(--serif); }
.pakete th, .pakete td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pakete thead th { font-weight: 650; background: var(--soft); border-bottom: 2px solid var(--text); }
.pakete tbody th { font-weight: 400; }
.pakete td { width: 24%; }
.pakete .leer { color: var(--muted); }

/* Kontakt */
.kontakt-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.portrait { width: 100%; height: auto; border-radius: 6px; }
.kontakt-grid p { max-width: var(--text-max); }
.mail-zeile { margin: 0 0 12px; }
.mail-zeile a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; font-size: 20px; }
.absender { font: 400 16px/1.5 var(--serif); color: var(--muted); }

/* Fuß */
.fuss { border-top: 1px solid var(--line); background: var(--soft); padding: 24px 0 32px; font: 400 16px/1.5 var(--serif); color: var(--muted); }
.fuss p { margin: 0 0 6px; }
.fuss a { color: var(--text); }
.fuss p:not(.klein-fuss) a { display: inline-flex; align-items: center; min-height: 44px; }
.klein-fuss { font-size: 14px; line-height: 1.6; margin-top: 10px !important; max-width: 58rem; }

/* Breiten */
@media (max-width: 899px) {
  .ausschnitte { grid-template-columns: 1fr; gap: 24px; }
  .ausschnitt { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: center; }
  .ausschnitt figcaption { margin-top: 0; }
  .screen { height: 300px; }
  .idee-zeile { grid-template-columns: 1fr; }
  .ideen-liste { grid-template-columns: 1fr; gap: 20px; max-width: var(--text-max); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .inhalt-liste { display: block; margin: 0 0 24px; font: 400 17px/1.3 var(--serif); }
  .inhalt-liste p { margin: 0; color: var(--muted); font-size: 16px; }
  .inhalt-liste ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 20px; }
  .inhalt-liste a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
  .station-block { grid-template-columns: 1fr; justify-items: center; margin-bottom: 36px; }
  .station-text { justify-self: stretch; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 128px; }
}
@media (max-width: 599px) {
  body { font-size: 18px; }
  .hero-text p:first-child { margin-bottom: .8em; }
  .zeitfenster { aspect-ratio: 16 / 9; }
  .ausschnitt { display: block; }
  .ausschnitt figcaption { margin-top: 10px; }
  .screen { height: 220px; }
  .screen.skizze--breit { height: 200px; }
  .nur-gross { display: none; }
  .telefon { aspect-ratio: 9 / 16.5; max-width: 290px; }
  .s-station .foto { height: 36%; }
  .abschnitt { padding: 40px 0; }
  .pakete { font-size: 16px; }
  .pakete th, .pakete td { padding: 10px 6px; }
  .pakete th[scope="row"] { width: 44%; }
  .pakete td { width: 28%; }
  .hero h1 { font-size: 30px; }
  .abschnitt h3 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .pano .farbe, .pano .see-linien, .pano .tagebau { transition: none; }
}
