/* =========================================================================
   GFS Wasserkuppe – Stylesheet
   Keine externen Ressourcen. Schriften liegen lokal unter /assets/fonts/.
   ========================================================================= */

/* ---------- Schriften (lokal, variabel) ---------------------------------- */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Farb- und Maßtokens ------------------------------------------ */

:root {
  --ink: #10222f;
  --ink-soft: #33495a;
  --muted: #5c7081;
  --paper: #ffffff;
  --paper-2: #eff4f7;
  --line: #d8e2e9;
  --accent: #14607d;
  --accent-ink: #0c4157;
  --focus: #b8410e;
  --scrim: linear-gradient(
    180deg,
    rgba(6, 17, 26, 0.62) 0%,
    rgba(6, 17, 26, 0.38) 42%,
    rgba(6, 17, 26, 0.78) 100%
  );

  --shell: 52rem;
  --measure: 68ch;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9f0f5;
    --ink-soft: #bccbd6;
    --muted: #93a6b4;
    --paper: #0f1c25;
    --paper-2: #16252f;
    --line: #273d4b;
    --accent: #6fc3e3;
    --accent-ink: #9ad8f1;
    --focus: #ffb27a;
    --scrim: linear-gradient(
      180deg,
      rgba(4, 11, 17, 0.7) 0%,
      rgba(4, 11, 17, 0.5) 42%,
      rgba(4, 11, 17, 0.88) 100%
    );
  }
}

/* ---------- Grundlagen --------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0b1a25;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  text-wrap: balance;
  margin: 0;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Sprungmarke -------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -110%);
  z-index: 50;
  background: var(--paper);
  color: var(--ink);
  padding: 0.85rem 1.4rem;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- Hintergrundbild ---------------------------------------------- */
/* Fest stehendes Vollbild; der Inhalt scrollt darüber hinweg.               */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scrim);
}

/* ---------- Kopfzeile ---------------------------------------------------- */

.topbar {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2.25rem) var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wordmark svg {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
}

.wordmark .wm-short {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}

.wordmark .wm-long {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  padding-left: 0.7rem;
}

@media (max-width: 34rem) {
  .wordmark .wm-long {
    display: none;
  }
}

/* ---------- Titelbereich ------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(72svh, 40rem);
  padding: 4rem var(--gutter) clamp(3rem, 8vh, 6rem);
  color: #fff;
  text-shadow: 0 1px 14px rgba(3, 12, 20, 0.55);
}

.hero--slim {
  min-height: 0;
  padding-top: 1rem;
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
}

/* Innerer Container, damit Dachzeile, Titel und Lead bündig links stehen */
.hero-inner {
  max-width: var(--shell);
  margin-inline: auto;
  width: 100%;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 1.15rem + 3.4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.012em;
}

.hero .lead {
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.93);
  max-width: 46ch;
  margin: 1.4rem 0 0;
}

/* ---------- Inhaltsfläche ------------------------------------------------ */

.sheet {
  position: relative;
  background: var(--paper);
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 -8px 40px rgba(3, 14, 22, 0.28);
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(2rem, 5vw, 3rem);
}

.sheet > * {
  max-width: var(--shell);
  margin-inline: auto;
}

.sheet section + section {
  margin-top: clamp(2.75rem, 6vw, 4rem);
}

.sheet h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  margin-bottom: 0.9rem;
}

.sheet h3 {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2rem 0 0.6rem;
}

/* Zeilenlänge auf eine gut lesbare Spaltenbreite begrenzen (WCAG 1.4.8) */
.sheet p {
  margin: 0 0 1.1rem;
  max-width: var(--measure);
  color: var(--ink-soft);
}

.sheet ul {
  color: var(--ink-soft);
  padding-left: 1.2rem;
  margin: 0 0 1.1rem;
  max-width: var(--measure);
}

.sheet li + li {
  margin-top: 0.4rem;
}

.sheet section > :last-child {
  margin-bottom: 0;
}

/* Hinweis auf den vorläufigen Charakter der Seite */

.notice {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.1rem 1.3rem;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.notice svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  margin-top: 0.15rem;
  color: var(--accent);
}

.notice p {
  margin: 0;
  color: inherit;
}

/* Eckdaten als Beschreibungsliste */

.facts {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 0.35rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 30rem) {
  .facts > div {
    grid-template-columns: 1fr;
  }
}

.facts dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.15rem;
}

.facts dd {
  margin: 0;
  color: var(--ink-soft);
}

/* Anschrift */

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}

.contact address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.75;
}

.contact .label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

/* ---------- Fußzeile ----------------------------------------------------- */

.site-footer {
  position: relative;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 1.75rem var(--gutter) 2.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer > div {
  max-width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  align-items: baseline;
  justify-content: space-between;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--ink-soft);
}

.site-footer a[aria-current="page"] {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Rechtstexte -------------------------------------------------- */

.legal h2 {
  margin-top: clamp(2.25rem, 5vw, 3rem);
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal h3 {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  margin: 1.75rem 0 0.5rem;
}

.legal address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.legal .updated {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Kontrastanhebung --------------------------------------------- */

@media (prefers-contrast: more) {
  :root {
    --ink-soft: var(--ink);
    --muted: var(--ink);
    --line: var(--ink);
  }

  a {
    text-decoration-thickness: 2px;
  }
}

/* ---------- Druck -------------------------------------------------------- */

@media print {
  .backdrop,
  .skip-link,
  .topbar,
  .hero {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .sheet,
  .site-footer {
    background: #fff;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .legal a[href^="mailto:"]::after,
  .legal a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }
}
