/* =========================================================================
   Friedegg-Treff – Design-Grundlage
   Farben, Typografie und Bausteine stammen aus dem Claude-Design.
   ========================================================================= */

:root {
  /* Grün */
  --gruen-900: #1a2820;
  --gruen-800: #22402f;
  --gruen-700: #244c34;
  --gruen-600: #2c5c3f;
  --gruen-500: #2f6b45;
  --gruen-100: #e9f1e6;
  --gruen-050: #edf3ea;

  /* Orange / Akzent */
  --orange-600: #c05d10;
  --orange-500: #ef7622;
  --orange-700: #d96513;
  --orange-050: #fff5ec;
  --orange-100: #f7dcc2;

  /* Text */
  --text: #22302a;
  --text-soft: #4f5d54;
  --text-muted: #6b7a70;
  --text-light: #90a096;

  /* Flächen */
  --weiss: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f6f6f2;
  --line: #e7e9e4;
  --line-soft: #eff0ec;

  /* Karten-Tints (aus dem Design) */
  --tint-gruen: #e9f1e6;   --tint-gruen-b: #d6e5d2;
  --tint-rot: #fbe9e4;     --tint-rot-b: #f2d6ce;
  --tint-salbei: #e4efe9;  --tint-salbei-b: #cfe2d8;
  --tint-gold: #fdf1da;    --tint-gold-b: #f3e2bf;
  --tint-blau: #e3edf4;    --tint-blau-b: #ccdfea;
  --tint-lila: #ece9f4;    --tint-lila-b: #dcd7ea;
  --tint-sand: #fbe9e4;    --tint-sand-b: #f2d6ce;

  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 16px;
  --radius-xl: 22px;

  --schatten-s: 0 1px 2px rgba(34, 48, 42, .05);
  --schatten: 0 4px 16px rgba(34, 48, 42, .07);
  --schatten-l: 0 14px 40px rgba(34, 48, 42, .12);

  --font-titel: Archivo, "Segoe UI", Helvetica, sans-serif;
  --font-text: "Source Sans 3", "Segoe UI", Helvetica, sans-serif;

  --max: 1360px;
  --pad: 20px;
  --header-h: 66px;
}

@media (min-width: 900px) {
  :root { --pad: 40px; --header-h: 78px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-titel);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 .4em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--gruen-500); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--orange-500); }

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

hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

::selection { background: var(--gruen-100); color: var(--gruen-800); }

/* Fokus für Tastaturbedienung – wichtig für ältere Besucher */
:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Icons --------------------------------------------------------------- */
.icon {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  flex: none;
  user-select: none;
}
.icon-s { font-size: 18px; }
.icon-l { font-size: 28px; }
.icon-xl { font-size: 34px; }

/* --- Layout -------------------------------------------------------------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.wrap-schmal { max-width: 820px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 80px 0; } }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-gruen { background: var(--gruen-050); }

.section-kopf { margin-bottom: 28px; }
.section-kopf p { color: var(--text-muted); font-size: 1.0625rem; margin: 0; }
.section-kopf h2 { margin-bottom: 6px; }

.kopf-zeile {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid { gap: 22px; }
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-text); font-size: 1rem; font-weight: 600;
  padding: 13px 24px; border-radius: var(--radius-s); border: 1px solid transparent;
  cursor: pointer; text-align: center; line-height: 1.2;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
  min-height: 46px;
}
.btn:active { transform: translateY(1px); }

.btn-primar { background: var(--gruen-600); color: #fff; }
.btn-primar:hover { background: var(--gruen-700); color: #fff; box-shadow: var(--schatten); }

.btn-orange { background: var(--orange-500); color: #fff; }
.btn-orange:hover { background: var(--orange-700); color: #fff; box-shadow: var(--schatten); }

.btn-hell { background: #fff; color: var(--gruen-600); border-color: var(--line); }
.btn-hell:hover { background: var(--gruen-050); color: var(--gruen-700); border-color: var(--tint-gruen-b); }

.btn-glas {
  background: rgba(18, 28, 22, .55); color: #fff; border-color: rgba(255,255,255,.32);
  backdrop-filter: blur(4px);
}
.btn-glas:hover { background: rgba(18, 28, 22, .78); color: #fff; }

.btn-geist { background: transparent; color: var(--text-soft); border-color: var(--line); }
.btn-geist:hover { background: var(--bg-soft); color: var(--text); }

.btn-gefahr { background: #fff; color: #b3261e; border-color: #f0d3d0; }
.btn-gefahr:hover { background: #fdeceb; color: #8f1d17; }

.btn-klein { padding: 8px 14px; font-size: .9375rem; min-height: 38px; border-radius: var(--radius-s); }
.btn-breit { width: 100%; }
.btn-rund { border-radius: 999px; }

.btn-icon {
  width: 40px; height: 40px; padding: 0; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); color: var(--text-soft);
}
.btn-icon:hover { background: var(--bg-soft); color: var(--text); }

.link-pfeil { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--gruen-600); }
.link-pfeil .icon { transition: transform .2s ease; }
.link-pfeil:hover .icon { transform: translateX(4px); }

/* --- Badges -------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8125rem; font-weight: 600; line-height: 1;
  padding: 6px 11px; border-radius: 999px;
  background: var(--gruen-100); color: var(--gruen-700);
  white-space: nowrap;
}
.badge-orange { background: var(--orange-050); color: var(--orange-600); }
.badge-grau { background: var(--bg-soft); color: var(--text-muted); }
.badge-blau { background: var(--tint-blau); color: #2c6182; }
.badge-lila { background: var(--tint-lila); color: #5b4f8c; }
.badge-gold { background: var(--tint-gold); color: #8a6008; }
.badge-rot { background: var(--tint-rot); color: #b3261e; }
.badge-demo {
  background: rgba(34,48,42,.06); color: var(--text-muted);
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .6875rem;
}

/* --- Karten -------------------------------------------------------------- */
.karte {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.karte-hover:hover { transform: translateY(-3px); box-shadow: var(--schatten-l); border-color: var(--tint-gruen-b); }

.bild-rahmen { overflow: hidden; background: var(--bg-soft); position: relative; }
.bild-rahmen img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.karte-hover:hover .bild-rahmen img { transform: scale(1.05); }

/* --- Formulare ----------------------------------------------------------- */
.feld { margin-bottom: 18px; }
.feld label, .label {
  display: block; font-weight: 600; font-size: .9375rem;
  color: var(--text); margin-bottom: 6px;
}
.feld-hinweis { font-size: .8125rem; color: var(--text-muted); margin-top: 5px; }

input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=date], input[type=time], input[type=number], input[type=search],
select, textarea {
  width: 100%; font-family: var(--font-text); font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 12px 14px; min-height: 46px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7a70' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gruen-500);
  box-shadow: 0 0 0 3px rgba(47, 107, 69, .14);
}
input::placeholder, textarea::placeholder { color: #a8b3ac; }

.schalter { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.schalter input { position: absolute; opacity: 0; pointer-events: none; }
.schalter-spur {
  width: 46px; height: 27px; border-radius: 999px; background: #d6dad4;
  position: relative; transition: background .2s ease; flex: none;
}
.schalter-spur::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .22s cubic-bezier(.3,.8,.3,1);
}
.schalter input:checked + .schalter-spur { background: var(--gruen-600); }
.schalter input:checked + .schalter-spur::after { transform: translateX(19px); }
.schalter-text { font-size: .9375rem; font-weight: 600; }

.feld-reihe { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .feld-reihe-2 { grid-template-columns: 1fr 1fr; }
  .feld-reihe-3 { grid-template-columns: 1fr 1fr 1fr; }
  .feld-reihe-1-2 { grid-template-columns: 1fr 2fr; }
}

/* --- Meldungen ----------------------------------------------------------- */
.meldungen { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; left: 16px; z-index: 60; pointer-events: none; }
@media (min-width: 700px) { .meldungen { left: auto; width: 420px; } }

.meldung {
  display: flex; align-items: flex-start; gap: 11px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gruen-600);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px;
  box-shadow: var(--schatten-l); pointer-events: auto;
  animation: meldung-ein .35s cubic-bezier(.2,.8,.3,1) both;
  font-size: .9375rem;
}
.meldung-error { border-left-color: #b3261e; }
.meldung-info { border-left-color: #2c6182; }
.meldung .icon { color: var(--gruen-600); }
.meldung-error .icon { color: #b3261e; }
.meldung-zu { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--text-light); padding: 0; }

@keyframes meldung-ein {
  from { opacity: 0; transform: translateY(-10px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.meldung.weg { animation: meldung-weg .3s ease forwards; }
@keyframes meldung-weg { to { opacity: 0; transform: translateX(20px); } }

/* --- Sanftes Einblenden beim Scrollen ------------------------------------
   Ohne JavaScript bleibt alles sichtbar – die Seite darf nie leer wirken. */
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.sichtbar {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal-2.sichtbar { transition-delay: .08s; }
.reveal-3.sichtbar { transition-delay: .16s; }
.reveal-4.sichtbar { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* --- Hilfsklassen -------------------------------------------------------- */
.nur-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-muted { color: var(--text-muted); }
.text-klein { font-size: .875rem; }
.text-mitte { text-align: center; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.stapel { display: flex; flex-direction: column; }
.reihe { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.abstand-oben { margin-top: 24px; }
.leer-hinweis {
  text-align: center; padding: 48px 20px; color: var(--text-muted);
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg-soft);
}
.leer-hinweis .icon { font-size: 42px; color: var(--text-light); margin-bottom: 8px; }

/* --- Gemeinsame Bausteine (öffentliche Seite und Vereinsportal) ---------- */
.termin-datum {
  background: var(--gruen-050); border: 1px solid var(--tint-gruen-b); border-radius: 10px;
  text-align: center; padding: 9px 4px; line-height: 1.1;
}
.termin-tag { font-family: var(--font-titel); font-weight: 800; font-size: 1.5rem; color: var(--gruen-600); display: block; }
.termin-monat { font-size: .75rem; font-weight: 700; color: var(--gruen-500); text-transform: uppercase; letter-spacing: .06em; }

.datei-zeichen {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--gruen-050); color: var(--gruen-600);
  font-family: var(--font-titel); font-size: .6875rem; font-weight: 800; letter-spacing: .04em;
}
.datei-zeichen.pdf { background: #fdecea; color: #b3261e; }
.datei-zeichen.doc, .datei-zeichen.docx { background: var(--tint-blau); color: #2c6182; }
.datei-zeichen.xls, .datei-zeichen.xlsx { background: var(--tint-gruen); color: var(--gruen-600); }
.datei-zeichen.jpg, .datei-zeichen.png, .datei-zeichen.jpeg { background: var(--tint-lila); color: #5b4f8c; }

.person-bild {
  width: 92px; height: 92px; border-radius: 50%; overflow: hidden;
  background: var(--gruen-100); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-titel); font-weight: 800; font-size: 1.75rem; color: var(--gruen-600);
  border: 3px solid var(--gruen-050);
}
.person-bild img { width: 100%; height: 100%; object-fit: cover; }

.beitrag-text { font-size: 1.0625rem; line-height: 1.75; color: var(--text-soft); }
.beitrag-text h3, .beitrag-text h4 { color: var(--text); margin: 1.6em 0 .5em; }
.beitrag-text ul, .beitrag-text ol { padding-left: 22px; margin: 0 0 1em; }
.beitrag-text li { margin-bottom: .35em; }
.beitrag-text blockquote {
  margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--tint-gruen-b);
  color: var(--text); font-size: 1.125rem;
}
.beitrag-text a { text-decoration: underline; }


.hinweis-box {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--tint-blau); border: 1px solid var(--tint-blau-b);
  border-radius: var(--radius); padding: 14px 16px; font-size: .9375rem; color: #24485f;
}
.hinweis-box .icon { color: #2c6182; }
.hinweis-box.demo { background: var(--tint-gold); border-color: var(--tint-gold-b); color: #6b5209; }
.hinweis-box.demo .icon { color: #a5730c; }


/* Vereinszeichen (Kopfzeile und Login) */
.marke { display: flex; align-items: center; gap: 11px; flex: none; }
.marke:hover { color: inherit; }
.marke-zeichen {
  width: 40px; height: 40px; border-radius: 10px; background: var(--gruen-100);
  display: flex; align-items: center; justify-content: center; flex: none;
  transition: transform .3s cubic-bezier(.3,1.4,.5,1);
}
.marke:hover .marke-zeichen { transform: rotate(-4deg) scale(1.05); }
.marke-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
.marke-name {
  font-family: var(--font-titel); font-weight: 800; font-size: 1.28rem;
  letter-spacing: -.02em; color: var(--gruen-500);
}
.marke-claim { font-size: .6875rem; color: var(--text-light); letter-spacing: .01em; }
@media (min-width: 900px) { .marke-zeichen { width: 42px; height: 42px; } .marke-claim { font-size: .6875rem; } }


/* Panels (Vereinsportal und Kontaktseite) */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  overflow: hidden;
}
.panel-kopf {
  padding: 16px 18px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.panel-kopf h2, .panel-kopf h3 { margin: 0; font-size: 1.0625rem; }
.panel-inhalt { padding: 18px; }
.panel-liste { display: flex; flex-direction: column; }
.panel-liste > * { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.panel-liste > *:last-child { border-bottom: 0; }

