/* Farben und Schrift: hier zentral anpassen */
:root {
  --navy: #13294B;
  --red: #C4122F;
  --paper: #F4F6F9;
  --ink: #1A1F29;
  --steel: #5A6474;
  --line: #D9DEE6;
  --white: #FFFFFF;
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 720px; }

h1, h2, h3 { line-height: 1.15; color: var(--navy); margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; }

/* Kopfleiste */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand img { height: 36px; width: auto; }
.topbar nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.topbar nav a:hover { color: var(--red); }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) { .topbar nav { display: none; } }

/* Hero */
.hero { display: grid; background: var(--navy); color: var(--white); overflow: hidden; }
.hero > * { grid-area: 1 / 1; }
.hero-img { width: 100%; height: 100%; min-height: clamp(380px, 52vw, 560px); object-fit: cover; opacity: .55; }
.hero-text { align-self: end; padding-block: 4rem 2.5rem; position: relative; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 6vw, 4.2rem); letter-spacing: -.01em; max-width: 14ch; }
.hero-meta { font-size: clamp(1.1rem, 2vw, 1.4rem); margin: 0 0 1.4rem; }
.countdown { display: flex; gap: .6rem; }
.countdown div {
  background: var(--red); padding: .6rem .9rem; min-width: 4.6rem; text-align: center; border-radius: 4px;
}
.countdown span { display: block; font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown small { font-size: .8rem; opacity: .9; }
.countdown-done { font-size: 1.15rem; max-width: 44ch; background: var(--red); padding: .8rem 1rem; border-radius: 4px; }

/* Landkreis / Hauptpartner */
.host-strip { border-bottom: 1px solid var(--line); }
.host-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.6rem; flex-wrap: wrap; }
.host-inner img { max-height: 70px; width: auto; }

/* Sektionen */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--paper); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2 { color: var(--white); }
.motto { color: var(--red); font-weight: 600; margin-top: -.4rem; }
.lead { color: var(--steel); max-width: 60ch; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 2rem; }
.btn {
  display: inline-block; padding: .8rem 1.3rem; border: 2px solid var(--navy);
  color: var(--navy); text-decoration: none; font-weight: 600; border-radius: 4px;
}
.btn:hover { background: var(--navy); color: var(--white); }
.btn-primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-primary:hover { background: #A30E27; border-color: #A30E27; }
.textlink { font-weight: 600; }

/* Logos */
.logos { list-style: none; padding: 0; margin: 0 0 3rem; }
.logos-gold { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.logos-gold img { background: var(--white); padding: 1.5rem; width: 100%; aspect-ratio: 18 / 7; object-fit: contain; }
.logos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 0; }
.logos-grid img { background: var(--white); padding: 1rem; width: 100%; aspect-ratio: 20 / 9; object-fit: contain; }

.wide-img { width: 100%; }

/* Zeitleiste */
.timeline { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; gap: 2.2rem; }
.timeline li { display: grid; grid-template-columns: 7rem 1fr; column-gap: 2rem; border-top: 2px solid var(--navy); padding-top: 1.2rem; }
.timeline .year { grid-row: span 2; font-size: 2rem; font-weight: 700; color: var(--red); line-height: 1; font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; max-width: 68ch; }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) { .timeline li { grid-template-columns: 1fr; } .timeline .year { margin-bottom: .5rem; } }

.quote { margin: 0; padding-left: 1.4rem; border-left: 4px solid var(--red); max-width: 60ch; }
.quote p { font-size: 1.3rem; line-height: 1.45; color: var(--navy); margin: 0; }

/* Team */
.team { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.team li { background: var(--white); padding: 1.4rem; border-top: 4px solid var(--red); }
.team p { margin: .2rem 0 .6rem; color: var(--steel); }
.team a { overflow-wrap: anywhere; }

/* Footer */
.footer { background: var(--navy); color: var(--white); padding-block: 2.5rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.claim { font-weight: 700; font-size: 1.15rem; margin: 0; }
.claim span { font-weight: 400; font-size: .95rem; opacity: .8; }
.footer nav { display: flex; gap: 1.4rem; }
.footer a { color: var(--white); }

/* Platzhalter, solange ein Bild noch nicht auf R2 liegt */
.img-missing {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(135deg, #E6EAF0 0 10px, #EEF1F5 10px 20px);
  color: var(--steel); font-size: .85rem; font-weight: 600; padding: 1rem;
  min-height: 80px; border: 1px dashed #B5BECB;
}
.hero .img-missing { min-height: clamp(380px, 52vw, 560px); background: #1D3760; color: #9FB0C8; border: 0; align-items: flex-start; padding-top: 2rem; }

/* Rechtsseiten */
.legal { padding-block: 3rem 5rem; }
.legal h1 { font-size: 2rem; }
.legal .todo { background: #FFF4D6; border-left: 4px solid #D9A300; padding: 1rem 1.2rem; }

.brand .img-missing { min-height: 36px; padding: .3rem .6rem; font-size: .75rem; }

/* 2027: Aussteller-Ansprache, Veranstaltungsort */
.hero-kicker { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; margin: 0 0 .5rem; opacity: .9; }
.note { color: var(--steel); font-size: .95rem; margin-top: -1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.benefits { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .9rem; }
.benefits li { padding-left: 1.6rem; position: relative; }
.benefits li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; background: var(--red); border-radius: 2px; }
.benefits strong { color: var(--navy); }
.contact-card { background: var(--white); border-top: 4px solid var(--red); padding: 1.2rem 1.4rem; }
.contact-card p { margin: 0; color: var(--steel); }
.contact-card h3 { margin: .2rem 0 .4rem; }
.venue { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.venue img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) { .venue { grid-template-columns: 1fr 1fr; } .venue li:first-child { grid-column: 1 / -1; } .venue li:first-child img { aspect-ratio: 4 / 3; } }
.host-inner > img { max-height: 90px; }

/* Rückblick-Galerie */
.page-head { background: var(--navy); color: var(--white); padding-block: clamp(3rem, 7vw, 5rem); }
.page-head h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.4rem); }
.page-lead { max-width: 60ch; margin: 0; opacity: .9; }
.gallery { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-flow: dense; gap: .75rem; }
.gallery li.tall { grid-row: span 2; }
.gallery a { display: block; height: 100%; overflow: hidden; background: var(--line); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.gallery li.tall img { aspect-ratio: auto; }
.gallery a:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; gap: .5rem; } }
.credit { color: var(--steel); font-size: .85rem; padding-block: 1.2rem; margin-block: 0; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(10, 18, 33, .92); }
.lightbox img { max-width: calc(100vw - 7rem); max-height: calc(100vh - 6rem); width: auto; height: auto; }
.lb-caption { color: #DDE3EC; font-size: .9rem; margin: .8rem 1rem 0; text-align: center; }
.lightbox button { position: fixed; background: rgba(255,255,255,.12); color: var(--white); border: 0; font: inherit; font-size: 2rem; line-height: 1; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: var(--red); }
.lightbox button:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.lb-close { top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) { .lightbox img { max-width: 100vw; } .lb-prev, .lb-next { top: auto; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: none; } }

/* Rückblick-Teaser auf der Startseite */
.teaser { list-style: none; padding: 0; margin: 1.5rem 0 1.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.teaser img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 760px) { .teaser { grid-template-columns: 1fr 1fr; } }
.section:not(.section-alt) .team li { background: var(--paper); }

/* BVMW-Logo (SVG aus dem offiziellen Logo-Paket, Stand 2025-12-03) */
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand span { font-weight: 700; font-size: 1.05rem; color: var(--navy); padding-left: .7rem; border-left: 2px solid var(--line); line-height: 1.2; }
.footer-logo { height: 50px; width: auto; }
.footer-inner { align-items: center; }
.footer-inner .claim { margin-right: auto; padding-left: 1.2rem; border-left: 1px solid rgba(255,255,255,.25); }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) { .footer-inner .claim { padding-left: 0; border-left: 0; flex-basis: 100%; } }

/* Wirtschaftstag-Logo in der Kopfzeile */
.brand img { height: 48px; }
/* Partner ohne Logo-Datei: Name als Kachel */
.logo-text { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--white); color: var(--navy); font-weight: 700; padding: 1rem; aspect-ratio: 20 / 9; }
.logos-gold .logo-text { aspect-ratio: 18 / 7; font-size: 1.3rem; }
.host-inner .logo-text { aspect-ratio: auto; min-height: 60px; }
.logos-gold { grid-template-columns: repeat(auto-fill, minmax(240px, 360px)); }

/* Jahrgänge der Rückblicke */
.year-switch { display: flex; gap: .5rem; margin-top: 1.6rem; flex-wrap: wrap; }
.year-switch a { color: var(--white); text-decoration: none; font-weight: 700; padding: .4rem .9rem; border: 2px solid rgba(255,255,255,.4); border-radius: 4px; }
.year-switch a:hover { border-color: var(--white); }
.year-switch a[aria-current="page"] { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- Logoleiste: Ort | BVMW | Hauptpartner ---------- */
.host-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.host-inner > :first-child { justify-self: start; }
.host-inner > :last-child { justify-self: end; }
.host-bvmw { width: clamp(120px, 22vw, 230px); }
.host-bvmw svg, .host-bvmw img { width: 100%; height: auto; display: block; overflow: visible; }
.host-bvmw .signet { transform-box: fill-box; transform-origin: 50% 50%; }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) {
  .host-inner { gap: .8rem; padding-block: 1.2rem; }
  .host-inner > img, .host-inner > a img { max-height: 44px; }
}

/* ---------- Geschichte: Zeitleiste ---------- */
.lead-light { color: #C9D2E0; }
.quote-light { border-left-color: var(--red); margin-top: 3rem; }
.quote-light p { color: var(--white); }
.tl { position: relative; margin-top: 2.5rem; }
.tl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; }
.tl-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; background: rgba(255,255,255,.18); border-radius: 2px; }
.tl-progress { position: absolute; inset: 0; background: var(--red); border-radius: 2px; transform-origin: top; transform: scaleY(0); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; }
.tl-dot { grid-column: 2; grid-row: 1; justify-self: center; width: 44px; height: 44px; padding: 8px; border-radius: 50%; background: #2A3E61; box-shadow: 0 0 0 4px var(--navy); position: relative; z-index: 1; transition: background .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.tl-year { grid-row: 1; font-size: 1.6rem; font-weight: 700; color: #8D9AB0; font-variant-numeric: tabular-nums; transition: color .5s ease; }
.tl-card { grid-row: 1; background: var(--white); color: var(--ink); padding: 1.4rem 1.5rem; border-radius: 4px; position: relative; }
.tl-card h3 { color: var(--navy); }
.tl-card p { margin: 0 0 .6rem; color: var(--steel); }
.tl-card p:last-child { margin-bottom: 0; }
.tl-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 1rem; border-radius: 2px; }
/* abwechselnd: ungerade Kachel rechts, gerade links */
.tl-item:nth-child(odd) .tl-card { grid-column: 3; }
.tl-item:nth-child(odd) .tl-year { grid-column: 1; justify-self: end; padding-right: 1.2rem; }
.tl-item:nth-child(even) .tl-card { grid-column: 1; }
.tl-item:nth-child(even) .tl-year { grid-column: 3; padding-left: 1.2rem; }
.tl-item.is-active .tl-dot { background: var(--red); transform: scale(1.12); }
.tl-item.is-active .tl-year { color: var(--white); }
/* Kacheln gleiten herein, sobald JavaScript die Zeitleiste steuert */
.tl-js .tl-card { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.tl-js .tl-item.is-active .tl-card { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .tl-js .tl-card { opacity: 1; transform: none; transition: none; }
  .tl-dot, .tl-year { transition: none; }
}
@media (max-width: 760px) {
  .tl-line { left: 22px; }
  .tl-item { grid-template-columns: 44px 1fr; column-gap: 1rem; align-items: start; }
  .tl-item .tl-dot { grid-column: 1; grid-row: 1 / span 2; justify-self: start; }
  .tl-item:nth-child(n) .tl-year { grid-column: 2; grid-row: 1; justify-self: start; padding: .4rem 0 .5rem; }
  .tl-item:nth-child(n) .tl-card { grid-column: 2; grid-row: 2; }
}

/* ---------- Partner-Laufband ---------- */
.marquee { overflow: hidden; margin-bottom: 0; }
.marquee-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; width: min(1140px, 100% - 2.5rem); margin: 0 auto; padding: 0; list-style: none; }
.marquee-list img, .marquee-list .logo-text { background: var(--white); padding: 1rem; width: 100%; aspect-ratio: 20 / 9; object-fit: contain; }
.marquee.is-running { mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee.is-running .marquee-track { display: flex; width: max-content; animation: marquee linear infinite; }
.marquee.is-running .marquee-list { display: flex; width: auto; margin: 0; gap: 1rem; padding-right: 1rem; }
.marquee.is-running .marquee-list li { flex: 0 0 200px; }
.marquee.is-running:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Team mit Fotos ---------- */
.team { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.team .portrait { width: 100%; aspect-ratio: 1; object-fit: cover; margin: -1.4rem -1.4rem 1.2rem; width: calc(100% + 2.8rem); max-width: none; }
@media (max-width: 560px) { .team .portrait { aspect-ratio: 4 / 3; object-position: 50% 20%; } }

/* Rechtsseiten */
.legal h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .3rem; }
.legal-date { color: var(--steel); font-size: .9rem; margin-top: 2.5rem; }

/* ---------- Logoleiste: alle drei Logos gleich hoch (Dateien auf sichtbare Kanten zugeschnitten) ---------- */
:root { --host-logo-h: 56px; }
.host-inner > img, .host-inner > a img, .host-bvmw svg, .host-bvmw img { height: var(--host-logo-h); max-height: none; width: auto; }
.host-bvmw { width: auto; }
.host-inner > a { display: block; }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) { :root { --host-logo-h: 34px; } }

/* ---------- Ansprechpartnerin mit rundem Bild ---------- */
.contact-card { display: grid; grid-template-columns: 76px 1fr; column-gap: 1.1rem; align-items: center; }
.contact-card > :not(.contact-portrait) { grid-column: 2; }
.contact-portrait { grid-column: 1; grid-row: 1 / span 3; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--red); }
.contact-card.will-reveal .contact-portrait { opacity: 0; transform: scale(.6); }
.contact-card.is-visible .contact-portrait { animation: portrait-in .7s cubic-bezier(.2, .8, .2, 1) forwards, portrait-pulse 1.6s ease-out .7s 6; }
@keyframes portrait-in { to { opacity: 1; transform: none; } }
@keyframes portrait-pulse {
  0%   { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--red), 0 0 0 5px rgba(196, 18, 47, .45); }
  100% { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--red), 0 0 0 18px rgba(196, 18, 47, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-card.will-reveal .contact-portrait { opacity: 1; transform: none; animation: none; }
}

/* ---------- Team: Bilder bewegen sich beim Darüberfahren ---------- */
.team li { overflow: hidden; }
.team .portrait { transition: transform .7s cubic-bezier(.2, .8, .2, 1); transform-origin: 50% 30%; }
.team li:hover .portrait { transform: scale(1.06) translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .team .portrait { transition: none; } .team li:hover .portrait { transform: none; } }

/* ---------- Handy: etwas kleinere Schrift und Abstände, damit die Seite kürzer wird ---------- */
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) {
  body { font-size: .95rem; line-height: 1.55; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.05rem; }
  .section { padding-block: 2.4rem; }
  .hero h1 { font-size: 2rem; }
  .hero-meta { font-size: 1rem; }
  .hero-text { padding-block: 2.5rem 1.8rem; }
  .countdown div { min-width: 3.8rem; padding: .45rem .6rem; }
  .countdown span { font-size: 1.45rem; }
  .actions { margin: 1.2rem 0 1.4rem; }
  .btn { padding: .65rem 1rem; font-size: .95rem; }
  .benefits { gap: .6rem; }
  .tl-list { gap: 1.6rem; }
  .tl-year { font-size: 1.25rem; }
  .tl-card { padding: 1.1rem 1.2rem; }
  .quote p { font-size: 1.1rem; }
  .page-head h1 { font-size: 1.7rem; }
  .team { gap: 1rem; }
}

/* ---------- Partnerbereich auf Weiß (Logos haben teils weißen Hintergrund) ---------- */
.section-white { background: var(--white); border-top: 1px solid var(--line); }
.center { text-align: center; }
#partner .logos-gold { justify-content: center; }
.partner-sub { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--steel); margin: 0 0 1rem; }
#partner .marquee-list img, #partner .marquee-list .logo-text { border: 1px solid var(--line); }

/* ---------- Aussteller-Ticker unter der Zeitleiste ---------- */
.ticker { display: flex; align-items: center; gap: 1.2rem; margin-top: clamp(2.5rem, 6vw, 4rem); background: #0D1E38; color: var(--white); padding: .9rem clamp(1rem, 4vw, 2.5rem); }
.ticker-label { flex: none; background: var(--red); color: var(--white); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: .45rem .9rem .45rem .8rem; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.ticker-run { flex: 1; min-width: 0; }
.ticker-list { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; width: auto; margin: 0; padding: 0; list-style: none; }
.ticker-list li { white-space: nowrap; font-size: .95rem; position: relative; }
.marquee.is-running .ticker-list { flex-wrap: nowrap; gap: 0; padding-right: 0; }
.marquee.is-running .ticker-list li { flex: none; padding-right: 1.4rem; }
.ticker-list li::after { content: "•"; color: var(--red); position: absolute; right: .45rem; }
.ticker-claim { flex: none; margin: 0; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; text-align: right; line-height: 1.3; }
.ticker-claim span { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .75; }
@media (max-width: 760px) { .ticker-claim { display: none; } .ticker { gap: .8rem; } }

/* ---------- Vorteile gleiten von rechts herein ---------- */
.benefits.will-reveal li { opacity: 0; transform: translateX(48px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.benefits.will-reveal.is-visible li { opacity: 1; transform: none; }
.split { overflow-x: clip; }
#partner .logos-gold { display: flex; justify-content: center; }
#partner .logos-gold img { width: min(360px, 100%); }
/* Ring pulsiert auch, solange die Maus auf der Kachel liegt */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .contact-card.is-visible:hover .contact-portrait { animation-iteration-count: 1, infinite; }
}

/* ---------- Feinschliff nach Handy-Durchsicht ---------- */
.nowrap { white-space: nowrap; }
.note { font-style: italic; }
.credit-sep { color: var(--line); margin: 0 .2rem; }

/* Zitat unter der Zeitleiste: kleiner, weißer statt roter Strich (die Linie ist schon rot) */
.quote-light { border-left-color: rgba(255,255,255,.7); }
.quote-light p { font-size: 1.05rem; line-height: 1.55; }

/* Zeitleiste „Heute“: die drei Veranstalter als überlappende runde Bilder */
.tl-avatars { display: flex; margin-bottom: 1rem; }
.tl-avatars img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--red); background: var(--navy); }
.tl-avatars img + img { margin-left: -14px; }
.tl-js .tl-avatars img { transform: scale(.6); opacity: 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .5s ease; }
.tl-js .tl-item.is-active .tl-avatars img { transform: none; opacity: 1; }
.tl-js .tl-item.is-active .tl-avatars img:nth-child(2) { transition-delay: .12s; }
.tl-js .tl-item.is-active .tl-avatars img:nth-child(3) { transition-delay: .24s; }

/* Hamburger-Menü (Handy) */
.nav-toggle { display: none; }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) {
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer; border-radius: 4px; }
  .nav-toggle span { display: block; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav-toggle:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
  .topbar { position: sticky; }
  .topbar nav { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(19, 41, 75, .12); padding: .4rem 0 .8rem; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s; }
  .nav-open .topbar nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .topbar nav a { padding: .8rem 1.25rem; font-size: 1.05rem; border-top: 1px solid var(--paper); }
}

/* Nach-oben-Knopf */
.to-top { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 20; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: var(--white); box-shadow: 0 6px 18px rgba(19, 41, 75, .25); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .35s ease, transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .4s, background .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: #A30E27; }
.to-top:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* Handy: Partnerbereich linksbündig */
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) {
  #partner .center { text-align: left; }
  #partner .logos-gold { justify-content: flex-start; }
  #partner .logos-gold img { width: min(240px, 100%); padding: 1rem 0; }
}

/* Vorteile: Überschrift eigene Zeile, Text darunter */
.benefits strong { display: block; margin-bottom: .15rem; }

/* iPhone vergrößert im Querformat sonst eigenmächtig die Schrift */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Handy quer: Titelbild passt in die Bildschirmhöhe */
@media (max-height: 500px) and (orientation: landscape) {
  .topbar-inner { min-height: 52px; }
  .brand img { height: 38px; }
  .hero-img, .hero .img-missing { min-height: calc(100svh - 52px); max-height: calc(100svh - 52px); }
  .hero-text { padding-block: 1.2rem; }
  .hero h1 { font-size: 1.7rem; max-width: none; }
  .hero-kicker { margin-bottom: .2rem; }
  .hero-meta { margin-bottom: .8rem; }
}

/* Titelbild: Name steht im Logo, sichtbar nur Datum und Ort */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-date { font-size: clamp(2.4rem, 6.5vw, 4.4rem); font-weight: 700; line-height: 1.05; margin: 0 0 .4rem; letter-spacing: -.01em; }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) { .hero-date { font-size: 2.2rem; } }

/* ---------- Logo-Tafel im Titelbild (Logo | Strich | Datumsblock) ---------- */
@font-face { font-family: "Roboto WT"; src: url("fonts/Roboto-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto WT"; src: url("fonts/Roboto-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
.lockup { display: inline-flex; align-items: center; gap: clamp(1rem, 2.6vw, 2rem); background: var(--white); padding: clamp(1rem, 2.4vw, 1.8rem) clamp(1.2rem, 3vw, 2.4rem); margin-bottom: 1.2rem; box-shadow: 0 18px 40px rgba(10, 20, 40, .28); max-width: 100%; }
.lockup-logo { width: clamp(240px, 34vw, 470px); height: auto; }
.lockup-info { margin: 0; padding-left: clamp(1rem, 2.6vw, 2rem); border-left: 2px solid #1A1F29; font-family: "Roboto WT", var(--font); text-transform: uppercase; line-height: 1.2; white-space: nowrap; }
.lockup-info dd { margin: 0; font-size: clamp(.8rem, 1.45vw, 1.2rem); }
.lockup-info .g { color: #878786; letter-spacing: .22em; }
.lockup-info .r { color: #E30613; font-weight: 700; letter-spacing: .08em; }
.lockup-info dd:nth-of-type(2) { letter-spacing: .2em; margin-bottom: .45em; }
.hero-text { padding-top: 6rem; }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) {
  .lockup { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
  .lockup-logo { width: min(300px, 100%); }
  .lockup-info { border-left: 0; border-top: 2px solid #1A1F29; padding: .8rem 0 0; display: grid; grid-template-columns: auto auto; column-gap: 1.6rem; }
  .lockup-info dd:nth-of-type(2) { margin-bottom: 0; }
}
@media (max-height: 500px) and (orientation: landscape) { .lockup { flex-direction: row; align-items: center; } .lockup-logo { width: 220px; } .lockup-info { border-top: 0; border-left: 2px solid #1A1F29; padding: 0 0 0 1rem; } }

/* Kopfzeilen-Logo auf der Startseite erst nach der Tafel */

/* ---------- Titelbild: niedriger (ohne viel Himmel), Datum über dem Countdown ---------- */
.brand img { height: 48px; }
.hero-img { min-height: clamp(380px, 40vw, 560px); max-height: 560px; object-position: 50% 62%; }
.hero-text { align-self: end; display: block; padding-block: 2rem 2rem; }
.hero-when { margin-bottom: 1rem; }
.hero-date { font-family: "Roboto WT", var(--font); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: .06em; line-height: 1; margin: 0 0 .45rem; }
.hero-meta { font-family: "Roboto WT", var(--font); text-transform: uppercase; letter-spacing: .16em; font-size: clamp(.8rem, 1.3vw, 1rem); margin: 0; opacity: .95; }
.host-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
.host-bvmw { width: auto; }
@media (max-width: 640px) {
  .hero-img, .hero .img-missing { min-height: 360px; max-height: 420px; object-position: 62% 85%; }
  .hero-text { padding-block: 1.2rem 1.3rem; }
  .hero-date { font-size: 2.1rem; }
  .hero-meta { letter-spacing: .1em; font-size: .78rem; }
  .brand img { height: 40px; }
}
.brand .brand-anim { border: 0; padding: 0; }

/* Datum/Ort-Block: Breite folgt dem Countdown (site.js) */
.hero-when { display: inline-block; }
.hero-date, .hero-meta { white-space: nowrap; }

/* Rückblick-Kopf: Jahres-Knöpfe unter dem Text, aber immer an derselben Stelle –
   der Einleitungstext bekommt eine feste Höhe (längster Jahrgang), keine einzelnen Wörter in der letzten Zeile */
.page-head h1 { white-space: nowrap; }
.page-head .page-lead { max-width: 74ch; text-wrap: pretty; min-height: calc(2 * 1.6em); }
@media (max-width: 640px) {
  .page-head h1 { white-space: normal; min-height: 2.3em; }
  .page-head .page-lead { min-height: calc(5 * 1.55em); }
}

/* Rückblick-Kopf: Veranstaltungsbild diffus im Hintergrund, läuft nach links (Schrift) unregelmäßig aus */
.page-head { position: relative; overflow: hidden; isolation: isolate; }
.page-head-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -1; opacity: .42; filter: saturate(.85);
  -webkit-mask-image: radial-gradient(ellipse 55% 85% at 92% 40%, #000 30%, transparent 75%), radial-gradient(ellipse 40% 60% at 70% 95%, rgba(0,0,0,.7) 10%, transparent 70%), linear-gradient(100deg, transparent 18%, rgba(0,0,0,.35) 48%, #000 82%);
  mask-image: radial-gradient(ellipse 55% 85% at 92% 40%, #000 30%, transparent 75%), radial-gradient(ellipse 40% 60% at 70% 95%, rgba(0,0,0,.7) 10%, transparent 70%), linear-gradient(100deg, transparent 18%, rgba(0,0,0,.35) 48%, #000 82%);
  -webkit-mask-composite: source-over; mask-composite: add; }
@media (max-width: 640px) {
  .page-head-bg { opacity: .3; object-position: 70% 50%;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 85% 25%, #000 25%, transparent 75%), linear-gradient(170deg, rgba(0,0,0,.6) 0%, transparent 55%);
    mask-image: radial-gradient(ellipse 80% 70% at 85% 25%, #000 25%, transparent 75%), linear-gradient(170deg, rgba(0,0,0,.6) 0%, transparent 55%); }
}

/* Anmeldung: drei gleich breite Knöpfe nebeneinander */
#anmeldung .actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; max-width: 560px; }
#anmeldung .actions .btn { text-align: center; padding-inline: .5rem; }
.btn-soon { border-style: dashed; color: var(--steel); border-color: #AEB6C3; cursor: default; }
.btn-soon:hover { background: none; color: var(--steel); }
#anmeldung .note { margin-top: 0; }
#anmeldung .welcome { font-weight: 600; color: var(--navy); margin-top: 1.4rem; }

/* ---------- Kurze „Bühnen“-Abschnitte mittig: Titelbild, Anmeldung, dunkle Textblöcke ---------- */
.hero-text { text-align: center; }
.hero-when { display: inline-block; }
.hero .countdown, .hero .countdown-done { justify-content: center; margin-inline: auto; }
.hero .countdown-done { display: block; max-width: 44ch; }
.hero-date { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.hero-meta { font-size: clamp(.74rem, 1.1vw, .9rem); }
.countdown { gap: .5rem; }
.countdown div { min-width: 4rem; padding: .45rem .7rem; }
.countdown span { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.countdown small { font-size: .72rem; }

.section .wrap.narrow { text-align: center; }
.section .wrap.narrow .actions { margin-inline: auto; }
.section .wrap.narrow .hero-kicker { opacity: .85; }
@media (max-width: 640px) {
  .hero-date { font-size: 1.85rem; }
  .countdown div { min-width: 3.5rem; padding: .4rem .5rem; }
  .countdown span { font-size: 1.3rem; }
}

/* Datum/Countdown-Block mittig im Titelbild (vertikal und horizontal) */
.hero-text { align-self: center; padding-block: 2rem; }
.hero-when { text-align: left; }

/* Global: keine Zeilen mit nur einem Wort (Hurenkinder/Witwen) */
p, li, dd, blockquote, figcaption, .lead { text-wrap: pretty; }
h1, h2, h3, .motto, .hero-kicker { text-wrap: balance; }
.lead { max-width: 72ch; }
/* Bildnachweis auf dem Handy als sauberer Dreizeiler statt Restwort */
@media (max-width: 640px) { .credit .nowrap { display: block; } .credit-sep { display: none; } }

/* ---------- Gold-Partner: Logo groß, Beschriftung klein in Gold rechts unten ---------- */
.gold-partner { display: grid; justify-items: center; width: fit-content; margin: 0 auto 2.6rem; }
.gold-partner img { width: clamp(260px, 34vw, 400px); height: auto; }
.gold-partner figcaption { justify-self: end; margin-top: .2rem; margin-right: -.2rem; font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(100deg, #9A7420 0%, #D9B45A 45%, #F3DC94 55%, #B88A2E 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 640px) { .gold-partner { margin-left: 0; } .gold-partner img { width: min(280px, 100%); } }
.gold-partner figcaption { margin-top: .6rem; }
.gold-partner figcaption { margin-top: .25rem; }
.gold-partner figcaption { margin-right: -.14em; } /* Buchstabenabstand nach dem letzten Zeichen ausgleichen: bündig mit Logo-Kante */

/* ---------- Lade- und Einblend-Animationen ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Titelbild: erst Datum/Uhrzeit/Ort, kurz danach der Countdown */
  .hero-when { animation: rise-in .9s cubic-bezier(.2, .8, .2, 1) .25s both; }
  .hero .countdown { animation: rise-in .9s cubic-bezier(.2, .8, .2, 1) .7s both; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  /* Gold-Partner: Logo blendet sich ein, Beschriftung steht schon da */
  .gold-partner.will-appear img { opacity: 0; transform: scale(.94); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .8, .2, 1); }
  .gold-partner.will-appear.is-visible img { opacity: 1; transform: none; }

  /* Team: Knight-Rider-Licht läuft einmal über den roten Balken (hin und zurück) */
  .team li { position: relative; }
  .team li.will-appear::before { content: ""; position: absolute; top: -4px; left: 0; width: 22%; height: 4px; z-index: 2; pointer-events: none; opacity: 0;
    background: linear-gradient(90deg, transparent, #FF6B6B 35%, #FFE3E3 50%, #FF6B6B 65%, transparent);
    box-shadow: 0 0 10px 2px rgba(255, 70, 70, .75); border-radius: 2px; }
  .team li.will-appear.is-visible::before { animation: knight-rider 2.2s cubic-bezier(.45, 0, .55, 1) var(--scan-delay, 0s) 1 both; }
  @keyframes knight-rider {
    0% { left: 0; opacity: 0; }
    8% { opacity: 1; }
    50% { left: 78%; }
    92% { opacity: 1; }
    100% { left: 0; opacity: 0; }
  }
}
.lead-italic { font-style: italic; }
/* Roter Balken der Teamkacheln als eigene Ebene in der Kachel (sonst schneidet overflow:hidden das Licht ab) */
.team li { border-top: 0; position: relative; }
.team li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--red); z-index: 1; }
@media (prefers-reduced-motion: no-preference) { .team li.will-appear::before { top: 0; } }

/* Laufband: Verschiebung um eine feste Pixelstrecke (site.js setzt --shift) */
.marquee.is-running .marquee-track { animation-name: marquee-px; will-change: transform; }
.marquee.is-running .marquee-list { flex: none; }
@keyframes marquee-px { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--shift, -50%), 0, 0); } }

/* Gold-Partner auf dem Handy: mittig und etwas kleiner */
@media (max-width: 640px) {
  .gold-partner { margin-left: auto; margin-right: auto; }
  .gold-partner img { width: min(220px, 70vw); }
  .gold-partner figcaption { font-size: .72rem; }
}

/* Tempi (Wunsch Marcus): Countdown weicher, DigiFors langsamer nach der Beschriftung, Knight Rider gemächlicher */
@media (prefers-reduced-motion: no-preference) {
  .hero-when { animation: rise-in 1.2s cubic-bezier(.22, .61, .36, 1) .25s both; }
  .hero .countdown { animation: soft-in 1.6s cubic-bezier(.22, .61, .36, 1) .9s both; }
  @keyframes soft-in { from { opacity: 0; transform: translateY(10px) scale(.985); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
  .gold-partner.will-appear img { transition: opacity 1.8s ease .45s, transform 2s cubic-bezier(.22, .61, .36, 1) .45s, filter 1.8s ease .45s; filter: blur(4px); }
  .gold-partner.will-appear.is-visible img { filter: none; }
  .team li.will-appear.is-visible::before { animation-duration: 3.6s; }
}

/* Social Media in der Fußzeile: einfache Links, keine eingebetteten Plugins */
.social { display: flex; gap: .6rem; }
.footer .social a { display: grid; place-items: center; width: 34px; height: 34px; text-decoration: none; }
.footer .social .ico { display: block; width: 30px; height: 30px; background: var(--white); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; transition: background-color .25s, transform .25s; }
.footer .social .ico-li { -webkit-mask-image: url(icon-linkedin.png); mask-image: url(icon-linkedin.png); }
.footer .social .ico-fb { -webkit-mask-image: url(icon-facebook.png); mask-image: url(icon-facebook.png); }
.footer .social a:hover .ico, .footer .social a:focus-visible .ico { transform: scale(1.1); }
.footer .social a:hover .ico-li, .footer .social a:focus-visible .ico-li { background: #0a66c2; }
.footer .social a:hover .ico-fb, .footer .social a:focus-visible .ico-fb { background: #0866ff; }
@media (max-width: 640px) { .social { order: 3; } }

/* Zitat unter der Zeitleiste: Strich mobil genau unter der roten Linie (Linie 20–24 px) */
@media (max-width: 760px) { .quote-light { margin-left: 20px; } }

/* Copyright-Zeile; mobil Platz unten, damit der Nach-oben-Knopf nichts verdeckt */
.footer .copyright { order: 4; flex-basis: 100%; margin: 0; font-size: .8rem; color: rgba(255,255,255,.6); }
@media (max-width: 640px) { .footer { padding-bottom: 5rem; } }

/* Team-Kacheln: Zeilen kachelübergreifend ausrichten (Foto, Name, Bezeichnung, Kontakt),
   damit Telefon und E-Mail in allen Kacheln auf derselben Höhe stehen – auch wenn eine
   Bezeichnung mehr Zeilen braucht. Ohne Subgrid-Unterstützung bleibt es wie bisher. */
@supports (grid-template-rows: subgrid) {
  .team li { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .team li > p:last-child { align-self: end; }
}
/* Bezeichnung unter dem Namen etwas kleiner (Desktop), damit sie in der Regel in zwei Zeilen passt */
@media (min-width: 641px) { .team h3 + p { font-size: .88em; line-height: 1.45; } }
