/* =========================================================================
   70 Jahre Stahleinbau – Jubiläumsfest
   Designsystem im Stil des Flyers (Navy + Creme, condensed Display-Type,
   Handschrift-Akzente, Zeitungsausschnitte, Pinselkanten).
   ========================================================================= */

/* ---------- Custom Properties --------------------------------------------- */
:root {
  /* Farben */
  --navy:        #1c3d5e;
  --navy-700:    #173451;
  --navy-800:    #112942;
  --navy-900:    #0c1f33;
  --cream:       #ffffff;
  --cream-2:     #f3f4f5;
  --paper:       #ffffff;
  --sand:        #c7ac74;
  --sand-soft:   #d8c29a;
  --ink:         #2c2820;   /* Zeitungstext */
  --text:        #21323f;
  --text-soft:   #51616d;
  --line:        #e5e6ea;
  --white:       #ffffff;
  --danger:      #b23b2e;
  --ok:          #2f7d5b;

  /* Schriften */
  --ff-display: "Anton", "Oswald", Impact, sans-serif;
  --ff-head:    "Oswald", "Arial Narrow", Arial, sans-serif;
  --ff-script:  "Caveat", "Segoe Script", cursive;
  --ff-serif:   "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-news:    Georgia, "Times New Roman", "Playfair Display", serif;

  /* Maße */
  --maxw: 1180px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 4px 14px rgba(12, 31, 51, .08);
  --shadow:    0 16px 44px rgba(12, 31, 51, .16);
  --shadow-navy: 0 22px 50px rgba(12, 31, 51, .28);
  --gap: clamp(1rem, 3vw, 2rem);
  --pad-section: clamp(3.25rem, 8vw, 6.5rem);
}

/* ---------- Reset / Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.62;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.08rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* dezente Papier-Körnung über dem Hintergrund */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; height: auto; }
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1; display: inline-block; vertical-align: middle; user-select: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout -------------------------------------------------------- */
.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--pad-section); }

/* Anker-Offset wegen Sticky-Header */
section[id], #top { scroll-margin-top: 88px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 10px 10px;
  z-index: 200; transition: top .2s ease; font-family: var(--ff-head); letter-spacing: .04em;
}
.skip-link:focus { top: 0; }

/* nur mit JavaScript sichtbar (z. B. die clientseitige Sicherheitsfrage) */
.js-only { display: none; }
.js .js-only { display: block; }

/* ---------- Typografie ---------------------------------------------------- */
.eyebrow {
  font-family: var(--ff-head);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-weight: 600;
  font-size: .82rem;
  color: var(--navy);
  margin-bottom: clamp(1rem, 2.4vw, 1.5rem);
}
.eyebrow.on-navy { color: var(--sand-soft); }

.script {
  font-family: var(--ff-script);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
}

h2.section-title {
  font-family: var(--ff-display);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: .005em;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 6.5vw, 3.6rem);
}
.section-head { margin-bottom: clamp(1.8rem, 4vw, 3rem); max-width: 46ch; }
.section-head p { margin-top: .9rem; color: var(--text-soft); font-size: 1.05rem; }
.section-head.center { margin-inline: auto; text-align: center; max-width: 52ch; }

/* dünne Akzentlinie wie im Flyer (Programm-Titel) */
.rule {
  display: flex; align-items: center; gap: .8rem;
}
.rule::after {
  content: ""; height: 3px; width: clamp(40px, 12vw, 120px);
  background: var(--sand); border-radius: 3px;
}

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  background: var(--bg); color: var(--fg);
  font-family: var(--ff-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: .98rem;
  padding: .92rem 1.7rem; border: 2px solid var(--bg); border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  box-shadow: var(--shadow-sm); cursor: pointer; text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 1.15em; height: 1.15em; }

.btn--light { --bg: var(--cream); --fg: var(--navy); border-color: var(--cream); }
.btn--gold  { --bg: var(--sand); --fg: var(--navy-900); border-color: var(--sand); }
.btn--ghost {
  background: transparent; color: var(--navy); border-color: rgba(28,61,94,.35);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(28,61,94,.06); border-color: var(--navy); }
.btn--ghost-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.5); box-shadow: none;
}
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ---------- Header / Nav -------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 22px rgba(12,31,51,.07);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: clamp(34px, 5vw, 44px); width: auto; display: block; }
.nav-links { display: none; align-items: center; gap: 1.8rem; }
.nav-links a {
  font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .08em;
  font-size: .9rem; font-weight: 500; color: var(--navy); position: relative; padding-block: .2rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--sand); transition: width .22s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: inline-flex; align-items: center; gap: .8rem; }
.nav .btn { padding: .62rem 1.25rem; font-size: .86rem; box-shadow: none; white-space: nowrap; }
.nav .brand-logo { height: clamp(28px, 6vw, 38px); }

@media (min-width: 940px) {
  .nav-links { display: flex; }
}

/* ---------- Hero ---------------------------------------------------------- */
.hero { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); position: relative; }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero-grid > * { min-width: 0; } /* verhindert Überlauf grosser Schrift auf schmalen Screens */

.hero-title { margin-block: .4rem .2rem; }
.hero-title .hl {
  display: block;
  font-family: var(--ff-display); font-weight: 400; color: var(--navy);
  text-transform: uppercase; line-height: 1.0; letter-spacing: .01em;
  font-size: clamp(2.6rem, 9.5vw, 5.4rem); overflow-wrap: break-word;
}
.hero-title .hl + .hl { margin-top: .06em; }
.hero-tagline {
  font-family: var(--ff-script); color: var(--navy);
  font-size: clamp(1.7rem, 6vw, 2.7rem); font-weight: 700; line-height: 1.12;
  margin-top: .7rem; max-width: 22ch;
}
.hero-tagline::after {
  content: ""; display: block; height: 4px; width: 200px; max-width: 70%;
  margin-top: .5rem; border-radius: 4px;
  background: linear-gradient(90deg, var(--sand), transparent);
}
.hero-lead { margin-top: 1.4rem; max-width: 46ch; color: var(--text-soft); font-size: 1.08rem; }
.hero-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .9rem; }
@media (max-width: 460px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

.hero-media { position: relative; }
.hero-media .photo {
  width: 100%; border-radius: 18px 30px 20px 28px / 26px 18px 30px 20px;
  box-shadow: var(--shadow); border: 6px solid #fff;
  aspect-ratio: 1110 / 650; object-fit: cover; background: var(--cream-2);
}

/* Fakten-Karte (Datum / Ort) im Navy-Stil des Flyers */
.facts {
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 1.9rem); box-shadow: var(--shadow-navy);
  border-radius: 22px 30px 22px 30px / 30px 22px 30px 22px;
}
.hero-media .facts { margin-top: -3.2rem; margin-inline: clamp(0px, 4%, 2.5rem); position: relative; }
.facts-row { display: flex; align-items: flex-start; gap: 1rem; padding-block: .65rem; }
.facts-row + .facts-row { border-top: 1px solid rgba(255,255,255,.16); }
.facts .ic {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.12); display: grid; place-items: center;
}
.facts .ic .material-symbols-outlined { font-size: 24px; color: #fff; }
.facts .label { font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--sand-soft); }
.facts .value { font-family: var(--ff-head); font-weight: 600; font-size: 1.12rem; line-height: 1.25; }
.facts .value small { display: block; font-weight: 400; font-size: .92rem; color: rgba(255,255,255,.78); letter-spacing: 0; text-transform: none; font-family: var(--ff-body); }

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.04fr .96fr; }
}

/* ---------- Intro-Band ---------------------------------------------------- */
.intro { text-align: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.intro p {
  font-family: var(--ff-head); font-weight: 500; color: var(--navy);
  font-size: clamp(1.35rem, 3.6vw, 2rem); line-height: 1.4; letter-spacing: .005em; max-width: 32ch; margin-inline: auto;
}
.intro p .accent { color: var(--sand); font-weight: 600; }
.intro .count { display: flex; justify-content: center; gap: clamp(1.4rem, 6vw, 3.6rem); margin-top: 2.2rem; flex-wrap: wrap; }
.intro .count .num { font-family: var(--ff-display); color: var(--navy); font-size: clamp(2.4rem, 7vw, 3.4rem); line-height: 1; }
.intro .count .cap { font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--text-soft); margin-top: .25rem; }

/* ---------- Rahmenprogramm ------------------------------------------------ */
.programm { background: var(--navy); }
.programm .eyebrow { color: var(--sand-soft); }
.programm .section-title { color: #fff; }
.programm .section-head p { color: rgba(255,255,255,.82); }
.prog-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.prog-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem); box-shadow: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.prog-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.30); }
.prog-card .ic {
  width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.12);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.prog-card .ic .material-symbols-outlined { font-size: 30px; color: #fff; }
.prog-card h3 { font-family: var(--ff-head); font-weight: 600; color: #fff; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.prog-card p { margin-top: .55rem; color: rgba(255,255,255,.78); }
@media (min-width: 760px) { .prog-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Geschichte / Zeitungsausschnitte ------------------------------ */
.history { position: relative; }
.clips { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
@media (min-width: 820px) { .clips { grid-template-columns: repeat(3, 1fr); align-items: start; } }

.clip {
  background: #f2ecdd;
  border: 1px solid #ddd2ba;
  padding: 1.1rem 1.1rem 1.3rem;
  box-shadow: 0 12px 30px rgba(44,40,32,.16);
  position: relative;
  /* leicht vergilbter Papierverlauf */
  background-image: linear-gradient(180deg, #f5efe0, #ece3cd);
}
.clip::after {
  /* angedeutete Heftklammer / Tesa */
  content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 74px; height: 22px; background: rgba(199,172,116,.45);
  box-shadow: 0 2px 6px rgba(44,40,32,.18);
}
.clip:nth-child(1) { transform: rotate(-1.4deg); }
.clip:nth-child(2) { transform: rotate(1deg); }
.clip:nth-child(3) { transform: rotate(-0.6deg); }
.clip:hover { transform: rotate(0) translateY(-3px); transition: transform .25s ease; z-index: 2; }

.clip .kicker {
  font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .18em;
  font-size: .66rem; color: #8a724a; border-bottom: 1px solid #d8cbab; padding-bottom: .5rem; margin-bottom: .7rem;
  display: flex; justify-content: space-between; gap: .5rem;
}
.clip h3 {
  font-family: var(--ff-serif); font-weight: 800; color: var(--ink);
  font-size: clamp(1.4rem, 3.4vw, 1.7rem); line-height: 1.08; letter-spacing: -.01em;
}
.clip .photo { width: 100%; margin: .85rem 0; border: 1px solid #cdbf9f; aspect-ratio: 3 / 2; object-fit: cover; filter: sepia(.18) contrast(1.02); }
.clip.portrait .photo { aspect-ratio: 26 / 31; }
.clip p { font-family: var(--ff-news); color: #3b352a; font-size: .95rem; line-height: 1.5; columns: 1; }
.clip p .lead-cap::first-letter { font-size: 1em; }
.clip .date { font-family: var(--ff-head); font-weight: 600; color: #fff; background: var(--navy); display: inline-block; padding: .3rem .7rem; border-radius: 6px; font-size: .76rem; letter-spacing: .04em; margin-top: .9rem; }

/* ---------- Anstossen-Band (Script + Gläser) ------------------------------ */
.anstossen {
  background:
    linear-gradient(rgba(17,41,66,.88), rgba(12,31,51,.93)),
    var(--navy) url("../img/footbridge.svg") center / cover no-repeat;
  color: #fff; text-align: center;
  position: relative; overflow: hidden;
  clip-path: polygon(0 18px, 12% 6px, 28% 14px, 46% 2px, 63% 12px, 80% 3px, 100% 13px, 100% 100%, 0 100%);
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}
.anstossen .glasses { width: clamp(64px, 14vw, 104px); margin: 0 auto 1.2rem; stroke: var(--sand-soft); fill: none; }
.anstossen .script {
  color: #fff; font-size: clamp(2rem, 6.5vw, 3.4rem); max-width: 18ch; margin-inline: auto; line-height: 1.1;
}
.anstossen .script .em { color: var(--sand-soft); }
.anstossen .sub { margin-top: 1rem; color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 44ch; margin-inline: auto; }
.anstossen .btn { margin-top: 1.8rem; }

/* ---------- Anmeldung / Formular ------------------------------------------ */
.anmeldung { background: var(--cream); }
.form-wrap { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
@media (min-width: 940px) { .form-wrap { grid-template-columns: .82fr 1.18fr; align-items: start; } }

.form-aside .deadline {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 1.2rem;
  box-shadow: var(--shadow-navy);
}
.form-aside .deadline .big { font-family: var(--ff-display); font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1; }
.form-aside .deadline .lbl { font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--sand-soft); }
.form-aside .deadline p { margin-top: .6rem; color: rgba(255,255,255,.82); font-size: .96rem; }

.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); }
.info-card h3 { font-family: var(--ff-head); text-transform: uppercase; font-size: 1.05rem; color: var(--navy); letter-spacing: .04em; margin-bottom: .7rem; }
.info-list { list-style: none; display: grid; gap: .85rem; }
.info-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--text-soft); font-size: .96rem; }
.info-list .ic { flex: none; width: 30px; height: 30px; border-radius: 8px; background: rgba(28,61,94,.08); display: grid; place-items: center; }
.info-list .ic .material-symbols-outlined { font-size: 19px; color: var(--navy); }
.info-list a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.qr-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.qr-row .qr { width: 78px; height: 78px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 6px; }
.qr-row .qr svg { width: 100%; height: 100%; }
.qr-row p { font-size: .9rem; color: var(--text-soft); }

/* Formularkarte */
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow);
}
.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset + .fieldset { margin-top: 1.5rem; }
.legend { font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .08em; color: var(--navy); font-weight: 600; font-size: .95rem; margin-bottom: .7rem; }

.grid2 { display: grid; gap: 1rem; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field > label { font-family: var(--ff-head); font-weight: 500; letter-spacing: .03em; color: var(--navy); font-size: .92rem; }
.field .req { color: var(--danger); }
.field .hint { font-size: .82rem; color: var(--text-soft); }
.input, .select, .textarea {
  font: inherit; color: var(--text); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem .95rem;
  transition: border-color .16s ease, box-shadow .16s ease; width: 100%;
}
.textarea { min-height: 116px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(28,61,94,.14);
}
.input:user-invalid, .textarea:user-invalid { border-color: var(--danger); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field .error-msg { color: var(--danger); font-size: .82rem; display: none; }
.field.has-error .error-msg { display: block; }

/* Segmented control An-/Abmeldung */
.segmented { display: grid; gap: .8rem; }
@media (min-width: 480px) { .segmented { grid-template-columns: 1fr 1fr; } }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-label {
  display: flex; align-items: center; gap: .8rem; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: .95rem 1.1rem;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.seg-label .seg-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; background: rgba(28,61,94,.08); display: grid; place-items: center; }
.seg-label .seg-ic .material-symbols-outlined { font-size: 21px; color: var(--navy); }
.seg-label .seg-txt strong { display: block; font-family: var(--ff-head); font-weight: 600; color: var(--navy); }
.seg-label .seg-txt span { font-size: .85rem; color: var(--text-soft); }
.segmented input:focus-visible + .seg-label { outline: 3px solid var(--sand); outline-offset: 2px; }
.segmented input:checked + .seg-label { border-color: var(--navy); background: rgba(28,61,94,.06); box-shadow: 0 0 0 3px rgba(28,61,94,.12); }
.segmented input:checked + .seg-label .seg-ic { background: var(--navy); }
.segmented input:checked + .seg-label .seg-ic .material-symbols-outlined { color: #fff; }

/* Checkbox Datenschutz */
.check { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.6rem; }
.check input { margin-top: .25rem; width: 1.15rem; height: 1.15rem; accent-color: var(--navy); flex: none; }
.check label { font-size: .92rem; color: var(--text-soft); }
.check a { color: var(--navy); text-decoration: underline; }

.form-actions { margin-top: 1.7rem; display: flex; flex-direction: column; gap: .8rem; }
.form-note { font-size: .85rem; color: var(--text-soft); text-align: center; }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Felder je nach Personentyp ein-/ausblenden */
.form-card.is-privat .only-unternehmen { display: none; }
.form-card.is-unternehmen .only-privat { display: none; }
.form-card .only-privat, .form-card .only-unternehmen { margin-bottom: 1rem; }

/* Feedback (Erfolg / Fehler) */
.form-feedback { display: none; border-radius: var(--radius); padding: 1.2rem 1.3rem; gap: .9rem; align-items: flex-start; }
.form-feedback .fb-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.form-feedback.is-ok { display: flex; background: rgba(47,125,91,.12); border: 1px solid rgba(47,125,91,.4); }
.form-feedback.is-ok .fb-ic { background: var(--ok); }
.form-feedback.is-err { display: flex; background: rgba(178,59,46,.1); border: 1px solid rgba(178,59,46,.4); }
.form-feedback.is-err .fb-ic { background: var(--danger); }
.form-feedback .fb-ic .material-symbols-outlined { font-size: 20px; color: #fff; }
.form-feedback h3 { font-family: var(--ff-head); color: var(--navy); font-size: 1.15rem; }
.form-feedback p { font-size: .95rem; color: var(--text-soft); margin-top: .2rem; }

.btn[aria-busy="true"] { opacity: .75; pointer-events: none; position: relative; }
.btn .spinner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 1.1em; height: 1.1em; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: block; }
.btn[aria-busy="true"] .btn-label { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer -------------------------------------------------------- */
.site-footer { background: var(--navy-800); color: rgba(255,255,255,.82); padding-block: clamp(2.8rem, 6vw, 4rem); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { margin-bottom: 1rem; }
.site-footer .brand-logo { height: 38px; }
.site-footer h4 { font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--sand-soft); margin-bottom: .9rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact p { margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- Reveal-Animation ---------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn .spinner { animation: none; }
}
