/* =====================================================================
   Onepage „140 Jahre FFW Hammerbrücke“
   ===================================================================== */

.sprunglink {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--anthrazit); color: #fff; padding: 0.6em 1em; border-radius: 8px;
}
.sprunglink:focus { top: 12px; color: #fff; }

section[id], header[id] { scroll-margin-top: 70px; }

/* ---------- Navigation (erscheint nach dem Hero) ---------- */
.navi {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 8px var(--rand);
  background: rgb(255 253 248 / 92%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--linie);
  transform: translateY(-110%);
  transition: transform 0.3s ease;
}
.navi.ist-sichtbar { transform: none; }
.navi__logo img { height: 34px; width: auto; }
.navi__links {
  display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0;
  overflow-x: auto; scrollbar-width: none;
}
.navi__links::-webkit-scrollbar { display: none; }
.navi__links a {
  display: block; padding: 0.45em 0.8em; border-radius: 999px;
  color: var(--anthrazit); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap;
}
.navi__links a:hover { background: var(--rot-hell); color: var(--rot-dunkel); }
@media (max-width: 560px) {
  .navi__logo { display: none; }
  .navi__links { margin: 0 auto; }
  .navi__links a { font-size: 0.88rem; padding: 0.45em 0.6em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background:
    url("../img/himmel-oben-1000.webp") top center / cover no-repeat,
    linear-gradient(180deg, var(--himmel) 0%, var(--himmel-hell) 60%, var(--creme) 100%);
  overflow: hidden;
  text-align: center;
}
.hero::after {               /* weicher Übergang zum Creme-Hintergrund */
  content: ""; position: absolute; inset: auto 0 0 0; height: 18%;
  background: linear-gradient(180deg, transparent, var(--creme));
  pointer-events: none;
}
.hero__inhalt {
  position: relative; z-index: 2;
  padding: clamp(24px, 4.5vh, 48px) 0 0;
}
.hero__logo {
  width: min(72vw, 400px);
  margin: 0 auto -0.4em;
  position: relative; z-index: 1;
  animation: logo-rein 0.9s cubic-bezier(.2,.8,.2,1) both;
}
.hero__band .band {
  font-size: clamp(1.5rem, 6.4vw, 3rem);
  animation: band-rein 0.8s 0.25s cubic-bezier(.2,.8,.2,1) both;
}
.hero__datum {
  margin: 0.15em 0 0;
  font-size: clamp(3.2rem, 14vw, 6.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--anthrazit);
  animation: hoch 0.8s 0.45s both;
}
.hero__ort {
  margin: 0.25em 0 0;
  font-size: clamp(1.15rem, 4.2vw, 1.9rem);
  font-weight: 700;
  color: var(--anthrazit);
  animation: hoch 0.8s 0.55s both;
}
.hero__countdown {
  display: inline-block;
  margin: 1em 0 0;
  padding: 0.35em 1em;
  border-radius: 999px;
  background: rgb(255 255 255 / 70%);
  font-weight: 700;
  color: var(--rot-dunkel);
  min-height: 2.1em;
  animation: hoch 0.8s 0.65s both;
}
.hero__countdown:empty { visibility: hidden; }
.hero__knoepfe {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin: 1.4em var(--rand) 0;
  animation: hoch 0.8s 0.75s both;
}
.hero__knoepfe .knopf--hell { background: rgb(255 255 255 / 75%); }
.hero__collage {
  position: relative; z-index: 1;
  margin-top: auto;
  padding-top: 24px;
}
.hero__collage img {
  width: 100%;
  min-width: 720px;           /* auf dem Handy wird die Collage seitlich beschnitten statt winzig */
  margin-left: 50%;
  transform: translateX(-50%);
  will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
}

@keyframes logo-rein { from { opacity: 0; transform: scale(.85) translateY(10px); } }
@keyframes band-rein { from { opacity: 0; transform: rotate(-4.5deg) translateX(-30%); } }
@keyframes hoch { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  .hero__logo, .hero__band .band, .hero__datum, .hero__ort, .hero__countdown, .hero__knoepfe { animation: none; }
}

/* ---------- Abschnitte ---------- */
.abschnitt {
  padding: clamp(56px, 10vw, 110px) var(--rand);
  max-width: 1120px;
  margin: 0 auto;
}
.abschnitt--weiss {
  max-width: none;
  background: var(--papier);
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
}
.abschnitt--weiss > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.abschnitt__kopf { text-align: center; margin-bottom: clamp(28px, 5vw, 48px); }
.abschnitt__kopf h2 { font-size: clamp(2.2rem, 7vw, 3.6rem); color: var(--anthrazit); }

.etikett {
  display: inline-block;
  margin: 0 0 0.8em;
  padding: 0.25em 0.9em;
  background: var(--rot);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(-3deg);
}
.etikett--hell { background: #fff; color: var(--rot); }

/* ---------- Zeitplan ---------- */
.zeitplan {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
}
.zeitplan__punkt {
  display: grid;
  grid-template-columns: minmax(7.5em, auto) 1fr;
  gap: 1.2em;
  align-items: baseline;
  padding: 1em 1.2em;
  border-bottom: 1px solid var(--linie);
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
}
.zeitplan__zeit { text-align: right; color: var(--text-leise); font-weight: 600; white-space: nowrap; }
.zeitplan__text { display: flex; flex-direction: column; gap: 0.25em; }
.zeitplan__titel { font-weight: 700; color: var(--anthrazit); }
.zeitplan__titel small { font-weight: 400; font-size: 0.75em; color: var(--text-leise); }
.zeitplan__notiz { font-size: 0.82em; color: var(--text-leise); }
.zeitplan__punkt--highlight .zeitplan__titel { color: var(--rot); }

.zeitplan__punkt--geschlossen {
  background: repeating-linear-gradient(-45deg, #f3efe9, #f3efe9 10px, #eee8e0 10px, #eee8e0 20px);
  border: 2px dashed #c9bfb2;
  border-radius: var(--radius);
  margin-bottom: 0.4em;
}
.zeitplan__punkt--geschlossen .zeitplan__titel { color: var(--text-leise); display: inline-flex; align-items: center; gap: 0.4em; }
.zeitplan__punkt--geschlossen .zeitplan__notiz { color: var(--anthrazit); }
.zeitplan__schloss { width: 1em; height: 1em; flex: none; }

.zeitplan__trenner {
  display: flex; align-items: center; gap: 14px;
  margin: 1.4em 0 0.4em;
  color: var(--rot);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem;
}
.zeitplan__trenner::before, .zeitplan__trenner::after { content: ""; flex: 1; height: 2px; background: var(--rot); }

@media (max-width: 520px) {
  .zeitplan__punkt { grid-template-columns: 1fr; gap: 0.15em; padding: 0.9em 0.4em; }
  .zeitplan__punkt--geschlossen { padding: 0.9em 1em; }
  .zeitplan__zeit { text-align: left; font-size: 0.85em; color: var(--rot); }
}

/* ---------- Highlight-Karten ---------- */
.karten {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 1120px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(14px, 2.4vw, 24px);
}
.karte {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  box-shadow: var(--schatten);
  border-top: 5px solid var(--rot);
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.karte:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(52 50 51 / 6%), 0 14px 34px rgb(52 50 51 / 14%); }
.karte__symbol { width: 52px; height: 52px; color: var(--rot); margin-bottom: 14px; }
.karte h3 { font-size: 1.25rem; color: var(--anthrazit); }
.karte p { margin: 0 0 0.8em; }
.karte__zeit { margin-top: auto !important; font-weight: 700; color: var(--rot); font-size: 0.95rem; }

[data-einblenden] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-einblenden].ist-da { opacity: 1; transform: none; }
.keine-animation [data-einblenden], .no-js [data-einblenden] { opacity: 1; transform: none; }

/* ---------- Chronik-Teaser ---------- */
.chronik-teaser {
  position: relative;
  background: linear-gradient(160deg, #2b2829 0%, #3d2223 60%, #6b1517 100%);
  color: #f4eee8;
  padding: clamp(64px, 11vw, 120px) var(--rand);
  overflow: hidden;
  text-align: center;
}
.chronik-teaser::before {            /* große Jahreszahl im Hintergrund */
  content: "1886";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-4.5deg);
  font-size: clamp(9rem, 38vw, 26rem); font-weight: 800; letter-spacing: -0.05em;
  color: rgb(255 255 255 / 4%);
  pointer-events: none;
}
.chronik-teaser__inhalt { position: relative; max-width: 960px; margin: 0 auto; }
.chronik-teaser h2 { font-size: clamp(2.2rem, 7vw, 3.8rem); color: #fff; }
.chronik-teaser__intro { max-width: 620px; margin: 0 auto 2em; font-size: 1.1rem; color: #e3dad3; }

.zahlen-reihe {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 0 0 2.4em;
}
.zahlen-reihe div { display: flex; flex-direction: column-reverse; }
.zahlen-reihe dd { margin: 0; font-size: clamp(2.2rem, 7.5vw, 4rem); font-weight: 800; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.zahlen-reihe dt { font-size: 0.9rem; color: #d8c9c0; }
@media (max-width: 520px) { .zahlen-reihe { grid-template-columns: 1fr; gap: 20px; } }

.foto-streifen {
  list-style: none; margin: 0 0 2.6em; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.foto-streifen li { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-klein); overflow: hidden; box-shadow: 0 10px 30px rgb(0 0 0 / 35%); }
.foto-streifen li:nth-child(odd) { transform: rotate(-2deg); }
.foto-streifen li:nth-child(even) { transform: rotate(2deg) translateY(8px); }
.foto-streifen img { width: 100%; height: 100%; object-fit: cover; }
.foto-streifen span {
  position: absolute; left: 8px; bottom: 8px;
  background: var(--rot); color: #fff; font-weight: 800; font-size: 0.9rem;
  padding: 0.1em 0.5em; border-radius: 4px;
}
@media (max-width: 640px) { .foto-streifen { grid-template-columns: repeat(2, 1fr); } }
.knopf--gross { font-size: 1.15rem; padding: 1em 1.8em; }

/* ---------- Anfahrt ---------- */
.anfahrt {
  display: grid; grid-template-columns: minmax(260px, 1fr) 1.4fr; gap: clamp(16px, 3vw, 32px);
  align-items: stretch;
}
@media (max-width: 760px) { .anfahrt { grid-template-columns: 1fr; } }
.anfahrt__adresse {
  background: #fff; border-radius: var(--radius); box-shadow: var(--schatten);
  padding: clamp(22px, 4vw, 34px);
}
.anfahrt__adresse h3 { font-size: 1.35rem; }
.anfahrt__adresse address { font-style: normal; font-size: 1.15rem; line-height: 1.5; margin-bottom: 1em; }
.anfahrt__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }

.karte-einbettung {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(rgb(255 253 248 / 82%), rgb(255 253 248 / 82%)),
    url("../img/landschaft-rot-1000.webp") center / cover;
  box-shadow: var(--schatten);
}
.karte-einbettung iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.karte-einbettung__platzhalter {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 24px;
}
.karte-einbettung__platzhalter svg { width: 54px; height: 54px; color: var(--rot); }
.karte-einbettung__platzhalter p { margin: 0; max-width: 300px; font-size: 0.92rem; color: var(--text-leise); }

/* ---------- Spenden ---------- */
.spenden {
  padding: clamp(56px, 10vw, 110px) var(--rand);
  background:
    linear-gradient(180deg, var(--creme) 0%, rgb(251 243 228 / 0%) 30%),
    url("../img/landschaft-rot-1788.webp") bottom center / cover no-repeat;
  background-color: var(--rot);
}
.spenden__karte {
  max-width: 980px; margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgb(90 10 10 / 30%);
  padding: clamp(24px, 5vw, 48px);
  display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 4vw, 44px); align-items: center;
}
@media (max-width: 720px) { .spenden__karte { grid-template-columns: 1fr; } }
.spenden h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.konto { margin: 1.4em 0; }
.konto > div { padding: 0.7em 0; border-bottom: 1px solid var(--linie); }
.konto dt { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-leise); font-weight: 700; }
.konto dd { margin: 0.1em 0 0; font-weight: 700; font-size: 1.12rem; }
.konto__iban { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.kopieren {
  font: inherit; font-size: 0.8rem; font-weight: 700;
  border: 2px solid var(--rot); color: var(--rot); background: #fff;
  padding: 0.2em 0.8em; border-radius: 999px; cursor: pointer;
}
.kopieren:hover { background: var(--rot-hell); }
.kopieren.ist-kopiert { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.spenden__quittung { font-size: 0.95rem; color: var(--text-leise); margin: 0; }
.spenden__qr { margin: 0; text-align: center; max-width: 240px; justify-self: center; }
.spenden__qr img { width: 220px; border: 6px solid #fff; border-radius: var(--radius-klein); box-shadow: 0 0 0 2px var(--linie); margin: 0 auto 10px; }
.spenden__qr figcaption { font-size: 0.85rem; color: var(--text-leise); }

/* ---------- Seitenfuß ---------- */
.seitenfuss {
  background: var(--anthrazit);
  color: #d9d2cc;
  text-align: center;
  padding: 48px var(--rand) 40px;
  font-size: 0.95rem;
}
.seitenfuss__logo {
  width: 160px; margin: 0 auto 18px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.seitenfuss__claim { color: #fff; font-weight: 700; }
.seitenfuss__claim span { font-weight: 400; color: #d9d2cc; }
.seitenfuss a { color: #fff; }
.seitenfuss__links { margin-top: 1.4em; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.unterseite {
  max-width: 760px; margin: 0 auto;
  padding: 40px var(--rand) 80px;
}
.unterseite__kopf { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.unterseite__kopf img { width: 120px; }
.unterseite h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.unterseite h2 { font-size: 1.3rem; margin-top: 1.8em; }
