/* =====================================================================
   VEREINS-WEBSITE-VORLAGE  |  HanselCraft
   ---------------------------------------------------------------------
   Layout und Gestaltung der Website.
   >>> FARBEN ändern Sie NICHT hier, sondern bequem in inhalte.js <<<
   (Abschnitt 3 — die Werte unter :root sind nur die Voreinstellung
   und werden beim Laden aus inhalte.js überschrieben.)
   Die Seite lädt KEINE externen Schriften, Skripte oder Tracker
   (DSGVO-freundlich, cookiefrei). Alles liegt lokal.

   Hinweis zur Design-Politur 2026-07: Nur Optik (Typografie, Abstände,
   Schatten, Hover) wurde verfeinert — alle Klassennamen, IDs und die
   Zusammenarbeit mit seite.js/inhalte.js sind unverändert.
   ===================================================================== */

:root {
  /* --- Markenfarben: Voreinstellung; zentral steuerbar in inhalte.js --- */
  --gold: #E8A33D;          /* Akzentfarbe (Buttons, Links, Linien) */
  --gold-dark: #c9861f;     /* dunklere Akzentvariante (Hover) */
  --ink: #1B2230;           /* dunkles Anthrazit (Kopf/Fuss/Text auf hell) */
  --ink-soft: #2a3242;      /* etwas heller als ink */
  --paper: #ffffff;         /* Seitenhintergrund (hell) */
  --paper-2: #f6f7f9;       /* abgesetzte Flaechen */
  --text: #232a36;          /* Fliesstext */
  --muted: #5b6577;         /* Sekundaertext */
  --line: #e2e5ea;          /* Trennlinien */
  --success-bg: #e9f6ec;    /* Erfolgsmeldung Hintergrund */
  --success-line: #57a06a;

  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 34, 48, .08);
  --shadow-hover: 0 16px 40px rgba(27, 34, 48, .14);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color .15s ease; }
a:hover, a:focus { text-decoration: underline; }

/* Sichtbarer Fokusrahmen fuer Tastaturnutzer (Barrierearmut) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Skip-Link fuer Screenreader/Tastatur */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Kopfbereich / Navigation ---------- */
header.site {
  background: var(--ink);
  color: #fff;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 6px 24px rgba(15, 20, 30, .18);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--gold); display: grid; place-items: center;
  color: var(--gold); font-weight: 800; font-size: 1.05rem; flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(232, 163, 61, .12);
}
.brand .name { color: #fff; font-weight: 700; font-size: 1.15rem; line-height: 1.15; letter-spacing: .01em; }
.brand .name small { display: block; color: #b8c0cf; font-weight: 400; font-size: .78rem; letter-spacing: .02em; }

/* Mobile-Menue via reines HTML/CSS (checkbox), kein JS noetig */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none; cursor: pointer; color: #fff; font-size: 1.6rem;
  padding: 4px 10px; border: 1px solid #47506180; border-radius: 8px;
  transition: background .15s ease, border-color .15s ease;
}
.nav-toggle-label:hover { background: #2c3547; border-color: #5a657a; }
nav.menu ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
nav.menu a {
  color: #e7ecf3; padding: 9px 14px; border-radius: 9px; font-weight: 600;
  font-size: .96rem; display: inline-block;
  transition: background .15s ease, color .15s ease;
}
nav.menu a:hover, nav.menu a:focus { background: #2c3547; text-decoration: none; }
nav.menu a.active { color: var(--ink); background: var(--gold); box-shadow: 0 2px 10px rgba(232, 163, 61, .35); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(27,34,48,.78), rgba(27,34,48,.92)),
    var(--ink-soft);
  /* Moderne Browser: zusaetzlich ein weicher Akzent-Glow in Vereinsfarbe.
     Aeltere Browser ignorieren diese zweite Angabe und nutzen die obige. */
  background:
    radial-gradient(820px 400px at 50% -140px, color-mix(in srgb, var(--gold) 26%, transparent), transparent 72%),
    linear-gradient(180deg, rgba(27,34,48,.82), rgba(27,34,48,.94)),
    var(--ink-soft);
  color: #fff; text-align: center; padding: 84px 0 88px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.14;
  margin-bottom: 16px; letter-spacing: -.01em; font-weight: 800;
}
.hero p { color: #d8dde6; font-size: 1.14rem; max-width: 660px; margin: 0 auto 28px; }
.hero .accent { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--gold); color: var(--ink);
  font-weight: 700; padding: 13px 28px; border-radius: 10px; border: 0;
  font-size: 1rem; cursor: pointer;
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px rgba(27, 34, 48, .18);
}
.btn:hover, .btn:focus {
  filter: brightness(1.07); text-decoration: none;
  transform: translateY(-1px); box-shadow: 0 10px 24px rgba(27, 34, 48, .24);
}
.btn.ghost { background: transparent; color: var(--gold); border: 2px solid var(--gold); box-shadow: none; }
.btn.ghost:hover { background: var(--gold); color: var(--ink); }

/* ---------- Sektionen ---------- */
section.block { padding: 64px 0; border-bottom: 1px solid var(--line); }
section.block.alt { background: var(--paper-2); }
.section-title {
  font-size: clamp(1.45rem, 3vw, 2rem); color: var(--ink);
  margin-bottom: 10px; letter-spacing: -.005em;
}
/* Dezente Akzentlinie unter jeder Abschnitts-Ueberschrift */
.section-title::after {
  content: ""; display: block; width: 56px; height: 3px;
  background: var(--gold); border-radius: 2px; margin-top: 10px;
}
.section-title .accent { color: var(--gold-dark); }
.lead { color: var(--muted); max-width: 720px; margin-bottom: 28px; font-size: 1.06rem; }

/* Karten-Raster */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-hover);
  border-color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
}
.card h3 { color: var(--ink); font-size: 1.15rem; margin-bottom: 8px; }
.card .icon { color: var(--gold-dark); font-weight: 800; font-size: 1.5rem; margin-bottom: 8px; line-height: 1.2; }
.card p { color: var(--muted); font-size: .97rem; }

/* News-/Termin-Liste */
.list { list-style: none; }
.item {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.item .meta { color: var(--gold-dark); font-weight: 700; font-size: .84rem; text-transform: uppercase; letter-spacing: .06em; }
.item h3 { color: var(--ink); font-size: 1.22rem; margin: 5px 0 7px; }
.item p { color: var(--muted); }

/* Termin-Tabelle */
table.termine { width: 100%; border-collapse: collapse; background: var(--paper); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
table.termine caption { text-align: left; color: var(--muted); padding: 0 0 12px; font-size: .95rem; }
table.termine th, table.termine td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .98rem; }
table.termine thead th { background: var(--ink); color: #fff; font-size: .88rem; letter-spacing: .05em; text-transform: uppercase; }
table.termine tbody tr:nth-child(even) { background: var(--paper-2); }
table.termine tbody tr { transition: background .15s ease; }
table.termine tbody tr:hover { background: #f1ecdf; }

/* ---------- Formulare ---------- */
form.vform { max-width: 640px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .req { color: #b23; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, .22);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent);
  outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-row input { width: auto; margin-top: 4px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 22px; background: var(--paper); }
legend { font-weight: 700; color: var(--ink); padding: 0 8px; }

/* Info-/Hinweisbox */
.note {
  background: #fff7e6; border: 1px solid var(--gold); border-left: 5px solid var(--gold);
  border-radius: var(--radius); padding: 18px 20px; color: #5a4410; margin: 20px 0;
  box-shadow: 0 6px 18px rgba(27, 34, 48, .06);
}
.note strong { color: #7a5a12; }

/* Zwei-Spalten Kontakt */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* Rechtstext (Impressum/Datenschutz) */
.legal h2 { color: var(--ink); font-size: 1.25rem; margin: 28px 0 8px; }
.legal h3 { color: var(--ink-soft); font-size: 1.05rem; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--text); margin-bottom: 10px; }
.legal ul { margin: 0 0 12px 22px; }
.placeholder { background: #fff3cd; padding: 1px 5px; border-radius: 4px; font-weight: 600; }

/* ---------- Fussbereich ---------- */
footer.site { background: var(--ink); color: #c3cad6; padding: 46px 0 30px; border-top: 3px solid var(--gold); }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; margin-bottom: 26px; }
footer.site h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; letter-spacing: .02em; }
footer.site a { color: #c3cad6; transition: color .15s ease; }
footer.site a:hover { color: var(--gold); }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 7px; }
footer.site .copy { border-top: 1px solid #333c4d; padding-top: 18px; font-size: .85rem; color: #8b95a6; }
footer.site .copy a { color: #a9b3c2; }

/* ---------- Logo-Bild (wenn in inhalte.js ein Logo eingetragen ist) ---------- */
.brand .logo.logo-bild { border: 0; overflow: hidden; background: #fff; }
.brand .logo.logo-bild img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Hinweis, falls JavaScript ausgeschaltet ist ---------- */
.noscript-hinweis {
  background: #fff3cd; color: #5a4410; border-bottom: 2px solid var(--gold);
  padding: 12px 20px; text-align: center; font-size: .95rem;
}

/* ---------- Reduzierte Bewegung respektieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .item, .btn, nav.menu a { transition: none; }
  .card:hover, .item:hover, .btn:hover { transform: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav-toggle-label { display: inline-block; }
  nav.menu {
    flex-basis: 100%; max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-toggle:checked ~ nav.menu { max-height: 520px; }
  nav.menu ul { flex-direction: column; gap: 2px; padding-bottom: 10px; }
  nav.menu a { display: block; }
  .hero { padding: 60px 0 64px; }
  section.block { padding: 48px 0; }
}
