/* Hessenstammtisch Konstanz — Basis-Styles
   Bewusst grosse Schrift und hoher Kontrast: die Leserschaft ist 60+. */

:root {
  --rot: #c1121f;
  --rot-tief: #8f0e18;
  --rot-blass: #fdeced;
  --gruen: #1f8a4c;
  --tinte: #241f1c;
  --tinte-weich: #5f554b;
  --sand: #faf5ee;
  --karte: #ffffff;
  --linie: #e7ddce;
  --schatten: 0 1px 2px rgba(36, 31, 28, .05), 0 8px 24px -12px rgba(36, 31, 28, .18);
  --radius: 14px;
  --breite: 1040px;
  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--tinte);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-wrap: break-word;
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--rot-tief); }
img { max-width: 100%; height: auto; display: block; }

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

.container { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Hessenflagge als Zierstreifen (rot-weiss-rot-weiss-rot) */
.flagge {
  height: 6px;
  background: repeating-linear-gradient(
    180deg, var(--rot) 0 2px, #fff 2px 4px
  );
}

/* ---------- Kopf ---------- */

.kopf {
  background: var(--karte);
  border-bottom: 1px solid var(--linie);
}
.kopf__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0;
}
.marke { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.marke__wappen { width: 34px; height: 42px; flex: none; border-radius: 4px; box-shadow: var(--schatten); }
.marke__name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.marke__zusatz { font-size: .8rem; color: var(--tinte-weich); letter-spacing: .04em; text-transform: uppercase; }

.kopf__nav { display: flex; gap: 1.4rem; font-size: .95rem; font-weight: 500; }
.kopf__nav a { color: var(--tinte-weich); text-decoration: none; }
.kopf__nav a:hover { color: var(--rot); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .kopf__nav { display: none; } }

/* ---------- Hero ---------- */

.hero { padding: clamp(2rem, 6vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.hero__grid {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1.15fr .85fr; align-items: center;
}
/* Zwei Spalten erst ab 1000px: darunter wird die linke Spalte zu schmal
   fuer ein langes Datum wie "14. September 2026". */
@media (max-width: 1000px) { .hero__grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--rot); margin-bottom: .6rem;
}
.hero__datum {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.6rem, 8.2vw, 3.3rem); line-height: 1.05; margin: 0 0 .4rem;
}
/* Wochentag bekommt eine eigene Zeile, damit "9. September 2026" nie umbricht. */
.hero__wochentag { display: block; font-size: .52em; color: var(--tinte-weich); }
.hero__tag { display: block; white-space: nowrap; }
.hero__abgesagt { color: var(--rot); text-decoration: line-through; }
.hero__meta { font-size: 1.15rem; color: var(--tinte-weich); margin: 0 0 1.1rem; }
.hero__meta strong { color: var(--tinte); font-weight: 600; }

.countdown {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--rot-blass); color: var(--rot-tief);
  border: 1px solid #f6d3d6; border-radius: 999px;
  padding: .4rem .95rem; font-weight: 600; font-size: .95rem; margin-bottom: 1.4rem;
}
.hinweis {
  background: #fff8e6; border-left: 4px solid #e0a500; border-radius: 0 8px 8px 0;
  padding: .7rem 1rem; margin: 0 0 1.2rem; font-size: .98rem;
}

.portrait {
  background: var(--karte); padding: 12px 12px 0; border-radius: var(--radius);
  box-shadow: var(--schatten); border: 1px solid var(--linie);
}
.portrait img { border-radius: 8px; }
.portrait figcaption {
  font-size: .88rem; color: var(--tinte-weich); text-align: center; padding: .7rem .3rem .8rem;
}

/* ---------- Knöpfe ---------- */

.knopfreihe { display: flex; flex-wrap: wrap; gap: .7rem; }
.knopf {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.3rem; border-radius: 10px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .05s;
}
.knopf:active { transform: translateY(1px); }
.knopf--primaer { background: var(--rot); color: #fff; }
.knopf--primaer:hover { background: var(--rot-tief); }
.knopf--rand { background: var(--karte); color: var(--tinte); border-color: var(--linie); }
.knopf--rand:hover { border-color: var(--tinte-weich); }
.knopf--whatsapp { background: var(--gruen); color: #fff; }
.knopf--whatsapp:hover { background: #16693a; }
.knopf[disabled] { opacity: .55; cursor: not-allowed; }
.knopf svg { flex: none; }

/* ---------- Abschnitte ---------- */

.block { padding: clamp(2.2rem, 6vw, 3.5rem) 0; }
.block--karte { background: var(--karte); border-block: 1px solid var(--linie); }
.block__titel { font-size: clamp(1.5rem, 3.6vw, 2rem); margin-bottom: .4rem; }
.block__lead { color: var(--tinte-weich); margin-bottom: 1.8rem; max-width: 60ch; }

/* Gruppenbild */
.gruppenbild { border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); background: var(--karte); }
/* Kein festes Seitenverhältnis: ein Gruppenbild darf niemanden am Rand
   verlieren, egal ob es 4:3 oder 16:9 aufgenommen wurde. */
.gruppenbild img { width: 100%; height: auto; display: block; }
.gruppenbild figcaption { padding: .9rem 1.1rem; font-size: .95rem; color: var(--tinte-weich); }
.gruppenbild figcaption strong { color: var(--tinte); }

/* Terminliste */
.termine { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); }
.termin {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem;
  background: var(--sand); border: 1px solid var(--linie); border-radius: 10px; padding: .7rem .9rem;
}
.block--karte .termin { background: var(--sand); }
.termin--naechster { background: var(--rot-blass); border-color: #f2c6ca; }
.termin--abgesagt { opacity: .55; }
.termin--abgesagt .termin__tag { text-decoration: line-through; }
.termin__tag { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
/* Freie Notizen dürfen umbrechen, kurze Marken wie "als Nächstes" nicht. */
.termin__zusatz { font-size: .85rem; color: var(--tinte-weich); min-width: 0; }
.termin__zusatz--marke { white-space: nowrap; }
.termin--naechster .termin__zusatz { color: var(--rot-tief); font-weight: 600; }

/* Ort */
.ort { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 760px) { .ort { grid-template-columns: 1fr; } }
.karte-embed {
  border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--schatten); background: #e8e4dd;
}
.karte-embed iframe { display: block; width: 100%; height: 320px; border: 0; }
.adresse { font-style: normal; font-size: 1.05rem; line-height: 1.75; }
.adresse a { color: var(--rot-tief); }

/* Anmeldung */
.spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 760px) { .spalten { grid-template-columns: 1fr; } }
.box {
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--schatten); display: flex; flex-direction: column;
}
.block--karte .box { background: var(--sand); }
.box h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.box p { color: var(--tinte-weich); font-size: .98rem; }
.box .knopfreihe, .box form { margin-top: auto; padding-top: 1rem; }

.feld { display: grid; gap: .35rem; margin-bottom: .8rem; }
.feld label { font-size: .9rem; font-weight: 600; }
input[type="text"], input[type="email"], input[type="date"], input[type="time"],
input[type="password"], input[type="file"], textarea, select {
  font: inherit; padding: .7rem .85rem; border: 1px solid var(--linie);
  border-radius: 9px; background: #fff; color: inherit; width: 100%;
}
input:focus, textarea:focus { border-color: var(--rot); }
.hp { position: absolute; left: -9999px; }

.meldung { font-size: .95rem; padding: .7rem .9rem; border-radius: 9px; margin-top: .8rem; }
.meldung--ok { background: #e9f6ee; color: #12653a; border: 1px solid #bfe3ce; }
.meldung--fehler { background: var(--rot-blass); color: var(--rot-tief); border: 1px solid #f2c6ca; }
.meldung[hidden] { display: none; }

/* Galerie */
.galerie { list-style: none; margin: 0; padding: 0;
  display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.galerie figure { margin: 0; background: var(--karte); border: 1px solid var(--linie);
  border-radius: 10px; overflow: hidden; box-shadow: var(--schatten); }
.galerie img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.galerie figcaption { padding: .55rem .7rem; font-size: .85rem; color: var(--tinte-weich); }

/* ---------- Fuss ---------- */

.fuss { background: var(--tinte); color: #d8cfc4; padding: 2.5rem 0 2rem; font-size: .95rem; }
.fuss__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
@media (max-width: 640px) { .fuss__grid { grid-template-columns: 1fr; } }
.fuss h2 { font-size: 1.15rem; color: #fff; margin-bottom: .6rem; }
.fuss a { color: #fff; }
.fuss__links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.6rem;
  padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; }

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */

.text-seite { background: var(--karte); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: clamp(1.5rem, 5vw, 2.75rem); max-width: 72ch; }
.text-seite h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: 1.2rem; }
.text-seite h2 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
.text-seite ul { padding-left: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
