/* Dorfgemeinschaft Wolkertshofen – Stylesheet
   Farben aus dem Ortswappen (Rot/Gold), Papier-Hintergrund, keine externen Ressourcen. */

/* ---- Schriften (lokal, SIL Open Font License) ---- */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-ext.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens ---- */
:root {
  --paper: #f7f2e8;
  --paper-2: #efe5d0;
  --card: #fffdf8;
  --ink: #23201b;
  --ink-soft: #5b544a;
  --line: #ddd1ba;
  --red: #b3261e;
  --red-dark: #8c1c16;
  --gold: #e8b524;
  --gold-soft: #f6dd8f;
  --green: #2f5b3b;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-variation-settings: "opsz" 96;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; font-variation-settings: "opsz" 24; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---- Kopfzeile ---- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 242, 232, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(6px)) {
  .top { background: rgba(247, 242, 232, 0.82); backdrop-filter: blur(8px); }
}
.top .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none; line-height: 1.15;
}
.brand:hover { color: var(--ink); }
.brand img { width: auto; height: 48px; }
@media (max-width: 480px) { .brand img { height: 40px; } }
.brand strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; display: block; }
.brand small { font-size: 0.8rem; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; font-size: 0.97rem;
}
.nav a:hover { background: var(--paper-2); }
.nav a.nav-cta { background: var(--red); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--red-dark); }

@media (max-width: 880px) {
  .top .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; min-height: 0; gap: 6px; }
  .nav {
    width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; width: calc(100% + var(--gutter) * 2);
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 6px 10px; font-size: 0.92rem; }
  html { scroll-padding-top: 120px; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 1rem/1 var(--sans);
  padding: 15px 22px; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Hero ---- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--green); margin-bottom: 18px;
}
.hero-kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.hero h1 em { font-style: italic; color: var(--red); font-weight: 600; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-figure { margin: 0; position: relative; }
.hero-figure img {
  border-radius: var(--radius);
  aspect-ratio: 16 / 10; object-fit: cover; width: 100%;
  box-shadow: 16px 16px 0 0 var(--gold);
}

.hero-figure figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 28px; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure img { box-shadow: 10px 10px 0 0 var(--gold); }
  .hero-figure { margin-right: 10px; }
}

/* ---- Abschnitte ---- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 44rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---- Aktueller Stand (Bauschild) ---- */
.status {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start;
}
.status-note {
  border-left: 4px solid var(--gold); background: var(--card);
  padding: 18px 20px; border-radius: 0 10px 10px 0; margin: 24px 0;
}
.status-note strong { display: block; margin-bottom: 4px; }
.status-date { font-size: 0.9rem; color: var(--ink-soft); }

.sign {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 18px 40px -30px rgba(35, 32, 27, .5);
}
.sign-head {
  background: var(--red); color: #fff; padding: 14px 22px;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.sign-head span { font: 600 0.75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.sign dl { margin: 0; padding: 6px 22px 10px; }
.sign dl div {
  display: grid; grid-template-columns: 10.5rem 1fr; gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.sign dl div:last-child { border-bottom: 0; }
.sign dt { color: var(--ink-soft); font-size: 0.92rem; }
.sign dd { margin: 0; font-weight: 600; }
.sign dd small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.88rem; }
.sign-foot { padding: 12px 22px; font-size: 0.82rem; color: var(--ink-soft); background: var(--paper); border-top: 1px solid var(--line); }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--gold-soft); color: #5a4300; font-size: 0.85rem; font-weight: 600;
}

@media (max-width: 880px) {
  .status { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .sign dl div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- Zeitstrahl ---- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 46rem; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line);
}
.timeline li { position: relative; padding: 0 0 32px 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green); border: 3px solid var(--paper-2);
  box-shadow: 0 0 0 2px var(--green);
}
.timeline .when { font-weight: 700; font-size: 0.9rem; color: var(--green); letter-spacing: .02em; }
.timeline h3 { margin: 2px 0 6px; }
.timeline p { margin: 0; color: var(--ink-soft); }
.timeline li.is-now::before { background: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 0 7px rgba(232, 181, 36, .25); }
.timeline li.is-now .when { color: #8a6500; }
.timeline li.is-next::before { background: var(--paper-2); box-shadow: 0 0 0 2px var(--ink-soft); }
.timeline li.is-next .when { color: var(--ink-soft); }

/* ---- Projekt ---- */
.project { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.project-figure { margin: 0; }
.project-figure img { border-radius: var(--radius); aspect-ratio: 4 / 4.2; object-fit: cover; width: 100%; }
.project-figure figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }

.benefits { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.benefits li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.benefits .icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--paper-2);
  display: grid; place-items: center; color: var(--red);
}
.benefits .icon svg { width: 22px; height: 22px; }
.benefits strong { display: block; }
.benefits span { color: var(--ink-soft); }

@media (max-width: 880px) {
  .project { grid-template-columns: 1fr; }
  .project-figure { order: -1; }
  .project-figure img { aspect-ratio: 16 / 11; }
}

/* ---- Zahlen ---- */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); margin-top: 56px; }
.figure { padding: 22px 24px 4px 0; }
.figure + .figure { padding-left: 24px; border-left: 1px solid var(--line); }
.figure b { display: block; font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 600; line-height: 1.1; }
.figure span { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 720px) {
  .figures { grid-template-columns: 1fr; }
  .figure, .figure + .figure { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---- Vereine ---- */
.clubs {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 32px);
}
.clubs img { width: 100%; max-width: 640px; margin: 0 auto; }
.club-list {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 28px;
}
.club-list li { padding-left: 18px; position: relative; }
.club-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--red); border-radius: 2px; transform: rotate(45deg); }

/* ---- Mitglied werden ---- */
.join {
  background: var(--green); color: #f3efe4; border-radius: calc(var(--radius) + 6px);
  padding: clamp(32px, 6vw, 64px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.join::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px;
  border: 2px solid rgba(232, 181, 36, .45); border-radius: 50%;
}
.join h2 { color: #fff; }
.join p { color: #dcd8cb; max-width: 34em; }
.join .btn-primary { background: var(--gold); color: var(--ink); }
.join .btn-primary:hover { background: #fff; color: var(--ink); }
.join-actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.join-meta { color: #dcd8cb; font-size: 0.85rem; }
.join-link { color: #fff; font-weight: 500; }
.join-link:hover { color: var(--gold); }
@media (max-width: 880px) { .join { grid-template-columns: 1fr; } }

/* ---- Kontakt ---- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

.form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 91, 59, .18); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 0.93rem; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); }
.form .btn { justify-self: start; }
.form-hint { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }

/* Honeypot – für Menschen unsichtbar */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- Fußzeile ---- */
.foot { background: var(--ink); color: #cfc8ba; padding: 40px 0; font-size: 0.93rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.foot a { color: #fff; }
.foot nav { display: flex; gap: 20px; }

/* ---- Rechtstexte / Einzelseiten ---- */
.legal { padding: clamp(40px, 6vw, 80px) 0; }
.legal .wrap { max-width: 50rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5em; }
.legal ul { padding-left: 1.2em; }
.legal .errors { color: var(--red-dark); font-weight: 600; }
.todo { background: var(--gold-soft); padding: 0 4px; border-radius: 3px; }

.timeline-title { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: clamp(48px, 6vw, 80px) 0 28px; }
