/* ==========================================================================
   Förderverein der Clus-Kirche Schöningen – Online-Antrag
   Design angelehnt an den Flyer (Clus-Lila, schräge Banner)
   ========================================================================== */

@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap;
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap;
  src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 500; font-display: swap;
  src: url("../fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }

:root {
  --clus: #55508b;          /* Hauptfarbe Flyer */
  --clus-deep: #3d3970;
  --clus-night: #2b2d63;
  --clus-blue: #2a3f86;     /* Blauverlauf im Titelbanner */
  --clus-text: #716d9f;     /* Überschriften im Flyer */
  --clus-soft: #eeedf5;
  --clus-mist: #f6f5fa;
  --ink: #231f20;
  --muted: #5f5c6b;
  --line: #d9d7e6;
  --ok: #2f7d55;
  --err: #b3261e;
  --white: #fff;
  --radius: 4px;
  --shadow: 0 10px 30px -12px rgba(43, 45, 99, .35);
  --head: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--clus-mist); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--clus); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: .01em; }
h2 { color: var(--clus-text); font-size: clamp(1.7rem, 5vw, 2.2rem); }
h3 { color: var(--clus); font-size: 1.35rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a9a4dd; outline-offset: 2px; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--clus); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.topbar a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.topbar .logo { width: 86px; height: auto; color: #fff; }
.topbar .t { font-family: var(--head); font-weight: 600; text-transform: uppercase; font-size: .95rem; line-height: 1.05; letter-spacing: .04em; text-align: right; }
.topbar .t small { display: block; font-weight: 500; font-size: .78rem; opacity: .85; }

/* ---------- Hero (wie Flyer-Titelseite) ---------- */
body[data-view="start"] .topbar .t { visibility: hidden; }
.hero {
  position: relative; min-height: clamp(330px, 50vh, 620px);
  background: #6a7fb0 url("../img/clus-kirche.jpg") center 35% / cover no-repeat;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero::after { /* leichte Abdunklung unten für Lesbarkeit */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,45,99,0) 45%, rgba(43,45,99,.55) 100%);
  pointer-events: none;
}
.hero-banner {
  position: relative; z-index: 1;
  align-self: flex-end; margin: 0 0 0 auto;
  width: min(92%, 560px);
  padding: 22px 22px 30px 34px;
  color: #fff;
  background: linear-gradient(100deg, var(--clus) 0%, var(--clus-blue) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 3% 100%);
}
.hero-banner h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); text-transform: uppercase; letter-spacing: .02em; font-weight: 500; }
.hero-banner p { margin: 4px 0 0; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: clamp(.95rem, 3.6vw, 1.25rem); font-weight: 500; }
.hero-quote {
  position: relative; z-index: 1; align-self: flex-end;
  width: min(94%, 520px); margin: 0 0 0 auto;
  padding: 22px 22px 18px 30px; color: #fff; text-align: right;
  background: rgba(43, 45, 99, .82);
  clip-path: polygon(2% 6%, 100% 0, 100% 100%, 0 100%);
  font-family: var(--head); font-weight: 500; font-size: clamp(1.02rem, 3.6vw, 1.2rem); line-height: 1.3;
}
.hero-quote cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--body); font-size: .9rem; opacity: .9; }
@media (max-width: 599px) { .hero-quote { display: none; } .hero { padding-bottom: 40px; } }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 660px; }
.section { padding-top: 48px; padding-bottom: 48px; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Auswahl-Karten ---------- */
.choice { position: relative; z-index: 2; margin-top: -36px; }
.choice-intro { background: #fff; padding: 22px 20px 6px; box-shadow: var(--shadow); border-radius: var(--radius) var(--radius) 0 0; }
.choice-intro h2 { font-size: clamp(1.6rem, 6vw, 2rem); }
.choice-intro p { color: var(--muted); margin: 6px 0 0; }
.choice-grid { display: grid; gap: 14px; background: #fff; padding: 16px 20px 22px; box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius); }
@media (min-width: 720px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice-card {
  display: grid; grid-template-columns: 52px 1fr 24px; align-items: center; gap: 14px;
  text-decoration: none; color: #fff; padding: 20px 18px;
  background: linear-gradient(110deg, var(--clus) 0%, var(--clus-deep) 100%);
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 16px -8px rgba(43,45,99,.6);
  min-height: 104px;
}
.choice-card.alt { background: linear-gradient(110deg, var(--clus-blue) 0%, var(--clus-night) 100%); }
.choice-card:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgba(43,45,99,.7); }
.choice-card svg.ic { width: 52px; height: 52px; }
.choice-card strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1; }
.choice-card span { display: block; font-size: .98rem; opacity: .92; margin-top: 4px; line-height: 1.3; }
.choice-card .arr { width: 24px; height: 24px; }

/* ---------- Jubiläum 25 Jahre ---------- */
.jubi {
  margin-top: 16px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: center;
  padding: 22px 20px; color: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  background: linear-gradient(120deg, var(--clus-night) 0%, var(--clus) 75%);
}
.jubi::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid rgba(255,255,255,.06); pointer-events: none; }
.jubi-badge { width: 82px; height: 82px; border-radius: 50%; border: 3px solid rgba(255,255,255,.85); display: grid; place-items: center; text-align: center; font-family: var(--head); line-height: 1; }
.jubi-badge b { display: block; font-size: 2.3rem; font-weight: 600; }
.jubi-badge small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.jubi h3 { color: #fff; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .03em; }
.jubi p { margin: 4px 0 0; opacity: .93; }
.jubi-dots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(25, 1fr); gap: 5px; }
@media (max-width: 599px) { .jubi-dots { grid-template-columns: repeat(13, 1fr); } }
.jubi-dots i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); background: rgba(255,255,255,.12); transition: background .3s ease; }
.jubi-dots i.on { background: #fff; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.jubi-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.jubi-count { font-family: var(--head); font-size: 1.2rem; font-weight: 500; }
.jubi-count strong { font-size: 1.55rem; font-weight: 600; }
.btn.light { background: #fff; color: var(--clus); }
.btn.light:hover { background: var(--clus-soft); }
.jubi-pill { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0 !important; padding: 6px 14px; border-radius: 999px; font-size: .92rem; font-weight: 600; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); }
.jubi-pill::before { content: "25"; font-family: var(--head); font-size: .8rem; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; }
.jubi-pill.dark { background: var(--clus-soft); border-color: transparent; color: var(--clus-deep); }

/* ---------- Aufklapp-Bereich ---------- */
.acc { display: grid; gap: 10px; margin-top: 14px; }
.acc details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 10px -8px rgba(43,45,99,.5); transition: border-color .15s ease; }
.acc details[open] { border-color: var(--clus-text); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr 20px; gap: 12px; align-items: center; padding: 13px 14px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover .t { color: var(--clus-deep); }
.acc .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--clus-soft); color: var(--clus); display: grid; place-items: center; }
.acc .ico svg { width: 22px; height: 22px; }
.acc .t { font-family: var(--head); font-weight: 600; font-size: 1.2rem; color: var(--clus); line-height: 1.15; }
.acc .t small { display: block; margin-top: 2px; font-family: var(--body); font-weight: 600; font-size: .84rem; color: var(--muted); }
.acc .chev { width: 20px; height: 20px; color: var(--clus); transition: transform .2s ease; }
.acc details[open] .chev { transform: rotate(180deg); }
.acc .body { padding: 0 16px 16px 66px; font-size: .98rem; color: #3a3846; }
@media (max-width: 459px) { .acc .body { padding-left: 16px; } }
.acc .body p { margin: 6px 0 0; }
.acc .body .checklist { margin-top: 2px; }
.fact { display: inline-flex; margin: 0 6px 6px 0; padding: 4px 10px; border-radius: 999px; background: var(--clus-soft); color: var(--clus-deep); font-size: .86rem; font-weight: 700; }

/* ---------- Inhaltsblöcke ---------- */
.two-col { display: grid; gap: 28px; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1.15fr 1fr; gap: 48px; } }
.checklist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.checklist li { display: flex; gap: 10px; align-items: baseline; }
.checklist li::before { content: ""; flex: 0 0 9px; height: 9px; background: var(--clus); transform: translateY(-1px) skewX(-12deg); }
.photo-band { height: clamp(200px, 38vw, 360px); background: url("../img/gemeinde.jpg") center 30% / cover no-repeat; }
.quote-band { background: var(--clus); color: #fff; padding: 34px 0; clip-path: polygon(0 0, 100% 14px, 100% 100%, 0 100%); margin-top: -14px; position: relative; }
.quote-band blockquote { margin: 0; font-family: var(--head); font-weight: 500; font-size: clamp(1.15rem, 3.8vw, 1.5rem); line-height: 1.3; }
.quote-band cite { display: block; margin-top: 8px; font-style: normal; font-size: .95rem; opacity: .85; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- Footer ---------- */
footer { background: var(--clus-night); color: #d9d7ee; padding: 34px 0 40px; font-size: .95rem; }
footer a { color: #fff; }
footer .cols { display: grid; gap: 22px; }
@media (min-width: 720px) { footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
footer strong { color: #fff; }
footer .logo { width: 110px; color: #fff; margin-bottom: 12px; }
footer .legal { margin-top: 24px; font-size: .85rem; opacity: .8; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--head); font-weight: 600; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em;
  padding: 15px 26px; min-height: 54px; border-radius: var(--radius);
  background: var(--clus); color: #fff;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: var(--clus-deep); }
.btn:active { transform: translateY(1px); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--clus); box-shadow: inset 0 0 0 2px var(--clus); }
.btn.ghost:hover { background: var(--clus-soft); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn svg { width: 20px; height: 20px; }
.backlink { display: inline-flex; align-items: center; gap: 6px; color: var(--clus); text-decoration: none; font-weight: 600; font-size: .98rem; margin-bottom: 14px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.backlink svg { width: 18px; height: 18px; }

/* ---------- Formularseiten ---------- */
.page-head {
  background: linear-gradient(105deg, var(--clus) 0%, var(--clus-blue) 100%);
  color: #fff; padding: 28px 0 48px;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);
}
.page-head h1 { font-size: clamp(2rem, 7vw, 2.8rem); text-transform: uppercase; font-weight: 500; letter-spacing: .02em; }
.page-head p { margin: 6px 0 0; opacity: .92; }
.steps { display: flex; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .85rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.steps li { flex: 1; padding-top: 8px; border-top: 4px solid rgba(255,255,255,.3); color: rgba(255,255,255,.7); }
.steps li.on { border-color: #fff; color: #fff; }
.steps li.done { border-color: rgba(255,255,255,.75); color: rgba(255,255,255,.9); }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 18px; margin: -26px 0 18px; position: relative; }
.card + .card { margin-top: 0; }
@media (min-width: 560px) { .card { padding: 28px 28px; } }
.card h2 { font-size: 1.55rem; margin-bottom: 14px; }
.card .hint { color: var(--muted); font-size: .95rem; }

.grid { display: grid; gap: 14px; }
@media (min-width: 560px) {
  .g2 { grid-template-columns: 1fr 1fr; }
  .g-plz { grid-template-columns: 130px 1fr; }
  .g-str { grid-template-columns: 1fr; }
}
.field { display: grid; gap: 5px; }
.field label, .label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number] {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  padding: 12px 14px; min-height: 50px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { outline: none; border-color: var(--clus); box-shadow: 0 0 0 3px rgba(85,80,139,.18); }
.field.invalid input { border-color: var(--err); }
.field .msg { font-size: .88rem; color: var(--err); min-height: 0; }
.field .msg.ok { color: var(--ok); }
.field.iban input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1rem; letter-spacing: 0; text-transform: uppercase; padding-left: 12px; padding-right: 12px; }
@media (min-width: 420px) { .field.iban input { font-size: 1.05rem; letter-spacing: .03em; } }

.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; cursor: pointer; font-size: .98rem; line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--clus); cursor: pointer; }
.check.invalid { color: var(--err); }
.mandate { background: var(--clus-mist); border-left: 4px solid var(--clus); padding: 14px 16px; font-size: .93rem; color: #3a3846; margin: 6px 0 14px; }
.mandate p { margin: 0 0 .6em; }
.mandate p:last-child { margin: 0; }
.mandate dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 10px 0 0; font-size: .9rem; }
.mandate dt { color: var(--muted); }
.mandate dd { margin: 0; font-weight: 600; word-break: break-all; }

.form-error { background: #fdecea; color: var(--err); border-radius: var(--radius); padding: 12px 14px; font-weight: 600; margin-bottom: 14px; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: .88rem; margin-top: 12px; }
.secure svg { width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Betragswahl (Schieberegler) ---------- */
.amount { display: grid; gap: 16px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--clus-soft); border-radius: var(--radius); padding: 4px; gap: 4px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: 11px 6px; border-radius: 3px; cursor: pointer; font-weight: 600; color: var(--clus); font-size: 1rem; user-select: none; transition: background .15s ease, color .15s ease; }
.seg input:checked + label { background: var(--clus); color: #fff; box-shadow: 0 2px 6px rgba(43,45,99,.3); }
.seg input:focus-visible + label { outline: 3px solid #a9a4dd; outline-offset: 1px; }

.amount-display { text-align: center; padding: 6px 0 0; }
.amount-display .val { font-family: var(--head); font-weight: 600; font-size: clamp(3.2rem, 15vw, 4.4rem); color: var(--clus); line-height: 1; font-variant-numeric: tabular-nums; }
.amount-display .per { display: block; color: var(--muted); font-size: 1rem; margin-top: 4px; }

.range { position: relative; padding: 8px 0 2px; }
.range input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: pointer; margin: 0;
  --pct: 20%;
}
.range input[type=range]::-webkit-slider-runnable-track {
  height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--clus) 0 var(--pct), var(--clus-soft) var(--pct) 100%);
}
.range input[type=range]::-moz-range-track { height: 10px; border-radius: 999px; background: var(--clus-soft); }
.range input[type=range]::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--clus); }
.range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 34px; height: 34px; margin-top: -12px; border-radius: 50%;
  background: #fff; border: 4px solid var(--clus); box-shadow: 0 3px 10px rgba(43,45,99,.35);
}
.range input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--clus); box-shadow: 0 3px 10px rgba(43,45,99,.35); }
.range .scale { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-top: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { flex: 1 0 auto; min-width: 64px; border: 1.5px solid var(--line); background: #fff; color: var(--clus); font: 600 1rem var(--body); padding: 10px 12px; border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--clus); }
.chip[aria-pressed=true] { background: var(--clus); border-color: var(--clus); color: #fff; }
.own { display: grid; }
.own .field input { text-align: right; }
.euro-input { position: relative; }
.euro-input::after { content: "€"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.euro-input input { padding-right: 34px !important; }
.amount-note { font-size: .9rem; color: var(--muted); text-align: center; margin: 0; }

/* ---------- Zusammenfassung / Danke ---------- */
.summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.summary-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--clus-soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.summary-box .big { font-family: var(--head); font-size: 1.9rem; font-weight: 600; color: var(--clus); line-height: 1; }
.summary-box .small { font-size: .92rem; color: var(--muted); }
.summary-box button { flex: none; }

.thanks-mark { width: 74px; height: 74px; margin: 0 auto 14px; color: var(--clus); }
.thanks h2 { text-align: center; font-size: clamp(1.9rem, 7vw, 2.4rem); }
.thanks .lead { text-align: center; }
.thanks .quote { margin: 24px 0 6px; text-align: center; font-family: var(--head); font-size: 1.3rem; color: var(--clus-text); font-weight: 500; }
.thanks .quote cite { display: block; font-family: var(--body); font-style: normal; font-size: .9rem; color: var(--muted); margin-top: 4px; }

.view { animation: fade .25s ease; }
@keyframes fade { from { transform: translateY(8px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Druck ---------- */
@media print {
  .topbar, footer, .btn, .backlink { display: none !important; }
  .page-head { clip-path: none; color: var(--ink); background: none; }
  .card { box-shadow: none; margin: 0; }
}
