/* Seitenlayout des Onepagers.
   Farben, Schrift und Komponenten kommen aus tokens.css und components.css (Design System „Andreas Kernke“);
   hier steht nur, was diese eine Seite anordnet. */
*, *::before, *::after { box-sizing: border-box; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.page { max-width: 960px; margin: 0 auto; padding: 0 var(--space-2); }
.col { max-width: 640px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-2); top: var(--space-2); background: var(--paper-raised); padding: var(--space-1) var(--space-2); z-index: 10; }

/* 1 · Hero
   Das Bild läuft randlos über die volle Fensterbreite und beginnt ganz oben.
   Die Kopfzeile (SiteHeader onPhoto) liegt darauf und bleibt an der Textkante der 960px-Spalte. */
html, body { overflow-x: clip; }
.hero-stage { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 1;
  padding: var(--space-2) max(var(--space-2), calc(50vw - 480px + var(--space-2))) var(--space-4); }
.hero-art { margin: 0; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 85vh; object-fit: cover; object-position: center 40%; }
.hero-svg { display: block; width: 100%; height: auto; max-height: 85vh; }
.g-amber { fill: var(--amber); }
.g-soft { fill: var(--amber-soft); }
.g-screen { fill: var(--screen); }
.g-sun { fill: var(--marker); }
.g-ink { fill: var(--ink); }
.g-river { fill: var(--rhine); }
.g-arch { fill: none; stroke: var(--amber); stroke-width: 6; }
.g-rule { stroke: var(--paper); stroke-width: 1; opacity: .5; }
.hero-text { margin: var(--space-3) var(--space-2) 0; max-width: 640px; }
.hero-shade { display: none; }
/* Sprunglinks: verbinden den Hero sichtbar mit den zwei Abschnitten darunter */
.hero-jump { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) 0 0 calc(-1 * var(--space-1)); }

/* Ab 900px steht die Begrüßung rechts unten im Bild, über Fluss, Schreibtisch und Notizbuch,
   mit Abstand zum rechten Bildrand (nicht zur Textspalte), damit sie den Monitor nicht berührt.
   Dom und Brücke bleiben frei.
   Ein dunkler Verlauf aus der Ecke (scrim) hält die helle Schrift lesbar. */
/* Nur wenn das Fenster auch hoch genug ist: sonst wird das Bild (max. 85vh) so flach,
   dass die Begrüßung in die Kopfzeile ragt. Dann steht sie wie auf dem Handy darunter. */
@media (min-width: 900px) and (min-height: 620px) {
  .hero-shade { display: block; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 62% 58% at 100% 100%, rgba(8, 12, 22, .82) 0%, rgba(8, 12, 22, .66) 50%, rgba(8, 12, 22, 0) 100%); }
  .hero-text { position: absolute; z-index: 1; margin: 0; width: min(460px, 34vw);
    right: max(var(--space-3), 4vw); bottom: max(var(--space-3), 7%); }
  /* Weicher dunkler Hof direkt hinter dem Text (zusätzlich zum Eckverlauf).
     Gemessen am hellsten Punkt (Sonnenspiegelung auf dem Rhein im Abendbild):
     Titel mind. 4,6:1, Fließtext mind. 9,2:1. */
  .hero-stage { overflow: hidden; }
  .hero-text::before { content: ""; position: absolute; z-index: -1; inset: -300px -420px; pointer-events: none;
    background: radial-gradient(ellipse 382px 270px at 50% 50%, rgba(8, 12, 22, .7) 0%, rgba(8, 12, 22, .6) 70%, rgba(8, 12, 22, 0) 100%); }
  .hero-text .ak-intro-title { font-size: clamp(44px, 4.6vw, 64px); line-height: 1; }
  .hero-text .ak-intro-title,
  .hero-text .ak-intro-lead { color: var(--on-photo); text-shadow: 0 1px 3px rgba(8, 12, 22, .6); }
  .hero-text .ak-btn-quiet { color: var(--on-photo); }
  .hero-text .ak-btn-quiet:focus-visible { outline-color: var(--on-photo); }
}

/* Abschnitte */
.section { padding: var(--space-4) 0 0; scroll-margin-top: var(--space-2); }
.section-label { margin: 0 0 var(--space-1); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rhine); }
.section-title { margin: 0 0 var(--space-2); font-family: var(--font-serif); font-size: 32px; line-height: 40px; font-weight: 400; letter-spacing: -.01em; }
.section p { margin: 0 0 var(--space-2); }
.section .ak-row { margin-top: var(--space-3); }
.ak-videos, .ak-topics { margin-top: var(--space-3); }

.ak-footer { margin-top: var(--space-4); }

@media (max-width: 720px) {
  .section-title { font-size: 28px; line-height: 36px; }
  .site-header { padding: var(--space-1) var(--space-2) var(--space-3); }
  .site-header .ak-header-mark { font-size: 18px; line-height: 24px; }
  .hero-text { margin: var(--space-2) var(--space-2) 0; }
}
/* Handy: oben auf dem Foto nur Wortmarke und Umschalter; die Sprunglinks unter der Begrüßung übernehmen die Navigation */
@media (max-width: 520px) {
  .site-header .ak-header-nav { display: none; }
  .hero-art img, .hero-svg { aspect-ratio: 4 / 3; }
}
