/* elbeglanz.com – Fluss & Sommer */
:root {
  --white: #ffffff;
  --mint: #e8f4f1;
  --mint-deep: #d3eae4;
  --ink: #15303a;
  --ink-soft: #4a626b;
  --petrol: #0a8f8f;
  --petrol-dark: #0d5c63;
  --sun: #f2a541;
  --sun-soft: #fde7c4;
  --line: #c9dedb;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1120px;
  --gutter: 20px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--petrol-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h2 em, h1 em, .lead em { font-style: italic; color: var(--petrol); font-weight: 500; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 42em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { max-width: 42em; }

/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--ink); padding: .5rem 1rem; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem 0 0;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}
.brand-word {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: .01em;
  line-height: 1;
}
.brand-wave { width: 110px; height: 12px; color: var(--petrol); }
.brand-wave path { stroke: currentColor; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem .9rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  margin: .9rem auto .9rem;
}
.main-nav ul {
  list-style: none;
  margin: .9rem 0 0;
  padding: 0 0 .9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem .4rem;
}
.main-nav a {
  display: inline-block;
  padding: .45rem .95rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
}
.main-nav a:hover { background: var(--mint); color: var(--petrol-dark); }
.main-nav a[aria-current="page"] { background: var(--petrol); color: var(--white); }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; }
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; margin-top: 0; }
  .main-nav a { display: block; text-align: center; padding: .75rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  color: var(--white);
  isolation: isolate;
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(21,48,58,.05) 0%, rgba(21,48,58,.25) 45%, rgba(13,92,99,.85) 100%);
}
.hero-content { padding: 6rem 0 3.5rem; max-width: 46em; }
.hero h1 { color: var(--white); margin-bottom: .4em; text-shadow: 0 2px 18px rgba(13,92,99,.75), 0 1px 3px rgba(0,0,0,.5); }
.hero h1 em { color: #ffd77a; }
.hero p { font-size: 1.15rem; max-width: 36em; color: rgba(255,255,255,.95); text-shadow: 0 1px 10px rgba(13,92,99,.7); }
.hero-caption {
  position: absolute; right: 1rem; bottom: .6rem;
  font-size: .75rem; color: rgba(255,255,255,.75);
}
.hero-caption a { color: inherit; }

.hero--small { min-height: 54vh; }
.hero--small .hero-content { padding: 4.5rem 0 3rem; }

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
.band-mint { background: var(--mint); }
.band-white { background: var(--white); }
.section-head { max-width: 46em; margin-bottom: 2rem; }

/* Wave divider */
.wave { display: block; width: 100%; height: 48px; line-height: 0; }
.wave svg { width: 100%; height: 100%; display: block; }
.wave-mint svg { fill: var(--mint); }
.wave-white svg { fill: var(--white); }
.wave-petrol svg { fill: var(--petrol-dark); }

/* Pill badge */
.pill {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  font-weight: 600;
  font-size: .85rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pill--mint { background: var(--mint-deep); }

/* Buttons */
.btn {
  display: inline-block;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  background: var(--petrol);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: background .2s;
}
.btn:hover { background: var(--petrol-dark); color: var(--white); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #e6952e; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--petrol); border: 2px solid var(--petrol); }
.btn--ghost:hover { background: var(--petrol); color: var(--white); }

/* ---------- River line (Startseite) ---------- */
.river {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0 0 0 2rem;
  position: relative;
}
.river::before {
  content: "";
  position: absolute;
  left: .55rem; top: .5rem; bottom: .5rem;
  width: 6px;
  border-radius: 3px;
  background: repeating-linear-gradient(180deg, var(--petrol) 0 18px, #5fbfbf 18px 36px);
}
.river li { position: relative; padding: 0 0 2rem 1.2rem; }
.river li:last-child { padding-bottom: 0; }
.river li::before {
  content: "";
  position: absolute;
  left: -1.9rem; top: .45rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--sun);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--petrol);
}
.band-mint .river li::before { border-color: var(--mint); }
.river h3 { margin: 0 0 .25rem; font-size: 1.25rem; }
.river p { margin: 0; color: var(--ink-soft); }
.river .pill { margin-left: .5rem; vertical-align: middle; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.band-white .card { background: var(--mint); border-color: transparent; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 1.25rem 1.35rem 1.5rem; flex: 1; }
.card-body h3 { margin-bottom: .4rem; }
.card-body p { color: var(--ink-soft); margin-bottom: .8rem; }
.card-body a.more { font-weight: 600; text-decoration: none; }
.card-body a.more:hover { text-decoration: underline; }

/* Etappen: horizontal scroll on mobile, grid on desktop */
.stages {
  display: grid;
  gap: 1.25rem;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .25rem var(--gutter) 1rem;
  margin: 0 calc(-1 * var(--gutter));
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--petrol) var(--mint);
}
.stage { scroll-snap-align: start; }
.stage { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 1.4rem 1.4rem 1.5rem; }
.stage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: .5rem; }
.stage-head h3 { margin: 0; font-size: 1.2rem; }
.stage p { color: var(--ink-soft); margin: 0 0 .6rem; font-size: .98rem; }
.stage ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .95rem; }
.stage ul li { margin-bottom: .25rem; }
@media (min-width: 720px) {
  .stages {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    padding: 0;
    margin: 0;
  }
}
@media (min-width: 1040px) {
  .stages { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Zahlen ---------- */
.numbers {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 2rem;
}
@media (min-width: 900px) {
  .numbers { grid-template-columns: repeat(4, 1fr); }
}
.number {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  border-top: 5px solid var(--sun);
}
.number strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--petrol-dark);
  line-height: 1.1;
  margin-bottom: .35rem;
}
.number span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Article / Place blocks ---------- */
.place {
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.place:last-child { border-bottom: none; }
.place h3 { font-size: 1.55rem; margin-bottom: .3rem; }
.place .meta { color: var(--petrol-dark); font-weight: 500; margin-bottom: .6rem; font-size: .95rem; }
.place p:last-child { margin-bottom: 0; }
@media (min-width: 800px) {
  .place { grid-template-columns: 220px 1fr; }
  .place .meta { grid-column: 1; }
}

/* Figure */
figure { margin: 0; }
figure img { border-radius: var(--radius); width: 100%; object-fit: cover; }
figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: .5rem; }
.fig-wide img { aspect-ratio: 21 / 9; }
.fig-tall img { aspect-ratio: 4 / 5; }

.two-col {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 860px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .two-col.rev > figure { order: 2; }
}

/* Info box */
.note {
  background: var(--sun-soft);
  border-left: 5px solid var(--sun);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
}
.note p:last-child { margin: 0; }

/* Timeline (Geschichte) */
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.timeline li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: start; }
.timeline .year {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--petrol);
  line-height: 1.2;
}
.timeline p { margin: 0; color: var(--ink-soft); }
.timeline strong { color: var(--ink); display: block; margin-bottom: .15rem; }

/* Definition lists */
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 1.5rem 0; }
dl.facts dt { font-weight: 600; color: var(--petrol-dark); }
dl.facts dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 520px) { dl.facts { grid-template-columns: 1fr; gap: .1rem; } dl.facts dd { margin-bottom: .7rem; } }

/* Legal pages */
.legal h2 { font-size: 1.45rem; margin-top: 2rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.4rem; }
.legal ul { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--petrol-dark);
  color: rgba(255,255,255,.88);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.site-footer .brand-word { color: var(--white); font-size: 1.7rem; }
.site-footer .brand-wave { color: var(--sun); }
.site-footer .brand { align-items: flex-start; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-weight: 600; font-size: 1rem; margin-bottom: .7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.site-footer p { font-size: .95rem; color: rgba(255,255,255,.78); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
}

/* 404 */
.notfound { text-align: center; padding: 6rem 0; }
.notfound h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--petrol); }

/* Utilities */
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.credits-list { font-size: .9rem; color: var(--ink-soft); }
