/* ivi-on-tour.de – gemeinsames Stylesheet */

:root {
  --sky: #2f6fb5; /* nur noch für Akzente, nicht mehr als Flächenfarbe */
  --ink: #1c2a4a;
  --ink-soft: #3b4a6b;
  --accent: #ffd166;
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-dark-bg: rgba(20, 32, 60, 0.55);
  --glass-dark-border: rgba(255, 255, 255, 0.28);
  --page-bg: #786b74; /* Straßenfarbe am unteren Rand des Mobil-Bilds (gemessen) – Safari-Leisten, Überscrollen */
  --sky-top: #3e7fd7; /* Himmelfarbe am oberen Rand des Mobil-Bilds (gemessen) */
  --radius: 22px;
  --shadow: 0 18px 50px rgba(10, 20, 45, 0.28), 0 2px 6px rgba(10, 20, 45, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* iOS Safari füllt seine Leisten immer mit der Seiten-Hintergrundfarbe (nie mit dem Bild).
   Deshalb hier die aus dem Bild gemessene Straßenfarbe, damit der Übergang unten weich ist.
   Nur an html, nicht am body – am body würde sie die fixierte Bildebene (z-index -1) verdecken. */
html {
  /* Verlauf Himmel → Straße über die gesamte Seite; die Farbe davor ist der Fallback,
     falls Safari nur die background-color statt der Pixel liest */
  background-color: var(--page-bg);
  background-image: linear-gradient(180deg, var(--sky-top) 0%, var(--page-bg) 100%);
  min-height: 100%;
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #fff;
  background: transparent;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ---------- Hintergrund (identisch mit der Startseite) ---------- */
.bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Höhe des GROSSEN Viewports: reicht auf iOS unter die Safari-Leiste,
     bottom:0 würde oberhalb der Leiste enden und dort die Grundfarbe zeigen */
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  background-color: transparent; /* Verlauf von html soll durchscheinen, bis das Bild geladen ist */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("../img/background-1920.jpg?v=2");
  background-image: image-set(
    url("../img/background-1920.avif?v=2") type("image/avif"),
    url("../img/background-1920.webp?v=2") type("image/webp"),
    url("../img/background-1920.jpg?v=2")  type("image/jpeg")
  );
}
@media (orientation: portrait) {
  .bg {
    background-image: url("../img/background-mobil-1350x2400.jpg?v=2");
    background-image: image-set(
      url("../img/background-mobil-1350x2400.avif?v=2") type("image/avif"),
      url("../img/background-mobil-1350x2400.webp?v=2") type("image/webp"),
      url("../img/background-mobil-1350x2400.jpg?v=2")  type("image/jpeg")
    );
  }
}
@media (orientation: landscape) and (min-width: 1921px),
       (orientation: landscape) and (min-resolution: 1.5dppx) and (min-width: 1280px) {
  .bg {
    background-image: url("../img/background-3200.jpg?v=2");
    background-image: image-set(
      url("../img/background-3200.avif?v=2") type("image/avif"),
      url("../img/background-3200.webp?v=2") type("image/webp"),
      url("../img/background-3200.jpg?v=2")  type("image/jpeg")
    );
  }
}
/* Unterseiten: Hintergrund weichzeichnen (Bild bleibt hell, nur unscharf).
   inset negativ + scale, damit an den Rändern kein durchscheinender Saum entsteht */
.bg--blur {
  top: -40px;
  left: -40px;
  right: -40px;
  height: calc(100vh + 80px);
  height: calc(100lvh + 80px);
  filter: blur(18px) saturate(115%);
  transform: scale(1.04);
}

/* ---------- Glas ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  color: var(--ink);
}
.glass--dark {
  background: var(--glass-dark-bg);
  border-color: var(--glass-dark-border);
  color: #fff;
}
/* Fallback ohne backdrop-filter: dichteres Glas */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, 0.92); }
  .glass--dark { background: rgba(20, 32, 60, 0.9); }
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  margin: 12px auto 0;
  width: min(960px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 8px 18px;
  border-radius: 999px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.nav__brand img {
  width: 30px;
  height: 30px;
  flex: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.nav__link {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .15s;
}
.nav__link:hover { background: rgba(255,255,255,.14); }
.nav__link[aria-current="page"] { background: rgba(255,255,255,.22); }
@media (max-width: 560px) {
  .nav { padding: 8px 10px; gap: 2px; flex-wrap: wrap; border-radius: var(--radius); }
  .nav__brand { width: 100%; padding: 6px 8px 8px; margin: 0; }
  .nav__link { font-size: .9rem; padding: 7px 11px; }
}

/* ---------- Inhalt ---------- */
.page {
  width: min(880px, calc(100% - 32px));
  margin: 28px auto 40px;
  padding: clamp(24px, 4vw, 48px);
}
.page h1 {
  margin: 0 0 .4em;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}
.page h2 {
  margin: 1.8em 0 .5em;
  font-size: 1.35rem;
  color: var(--ink);
}
.page h3 {
  margin: 1.4em 0 .4em;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.page p, .page li { line-height: 1.6; }
.page p { margin: 0 0 1em; }
.page ul { padding-left: 1.3em; }
.page a { color: #1d4f9e; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.page a:hover { color: #0b2f66; }
.page address { font-style: normal; line-height: 1.6; margin-bottom: 1em; }
.page .lead { font-size: 1.1rem; color: var(--ink-soft); }
.page .caps { text-transform: none; }

/* ---------- Footer ---------- */
.footer {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: .9rem;
}
.footer a { text-decoration: none; opacity: .9; }
.footer a:hover { text-decoration: underline; opacity: 1; }
.footer nav { display: flex; gap: 16px; }
