/* Bosnischer Kermes Dornbirn 2026
   Farben vom Flyer: Dunkelgrün und Gold, Creme als Fläche.
   Mobil zuerst, weil die meisten Besucher aus WhatsApp kommen. */

/* Schriften lokal (SIL Open Font License, Lizenztexte in /assets/fonts/).
   Zwei Teilmengen je Familie; latin-ext enthält Ć Č Š Ž Đ. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
  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: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("/assets/fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations");
  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;
}

:root {
  --gruen: #123b2c;
  --gruen-tief: #0b2a1f;
  --gruen-mitte: #1d5a43;
  --gold: #d4ad57;
  --gold-hell: #ecd391;
  --creme: #f7f0e2;
  --creme-tief: #efe4cd;
  --tinte: #1c211d;
  --tinte-weich: #4a4f45;
  --rand: #d9c9a6;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 70rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--creme);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--gruen-mitte); text-underline-offset: 0.18em; }
a:hover { color: var(--gruen); }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--gold);
  color: var(--gruen-tief);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

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

/* Kopfzeile: nur Name und Sprachwechsel. */
.kopf {
  background: var(--gruen-tief);
  color: var(--creme);
}
.kopf .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.25rem;
}
.kopf__name {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--creme);
  text-decoration: none;
  font-size: 1.05rem;
}
.kopf__name span { color: var(--gold); }
.sprache {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-hell);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.sprache:hover { background: var(--gold); color: var(--gruen-tief); }

/* Hero: Foto oben, Text auf ruhiger grüner Fläche darunter (mobil).
   Ab Tablet stehen Text und Foto nebeneinander; Text liegt nie auf dem Bild. */
.hero {
  background: var(--gruen);
  color: var(--creme);
}
.hero__bild {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gruen-tief);
}
.hero__bild picture { display: block; width: 100%; height: 100%; }
.hero__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__text {
  padding: 1.75rem var(--gutter) 2.5rem;
}
.hero__dach {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.6rem;
}
.hero h1 {
  font-size: clamp(2rem, 1.4rem + 3.4vw, 3.6rem);
  color: var(--creme);
  margin-bottom: 0.4em;
}
.hero h1 .datum { display: block; color: var(--gold-hell); font-weight: 500; }
.bruecke {
  display: block;
  width: 9rem;
  height: auto;
  color: var(--gold);
  margin: 0.2rem 0 1.2rem;
}
.hero__tage {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 1.1rem;
}
.hero__tage li { display: flex; flex-wrap: wrap; gap: 0 0.6rem; }
.hero__tage strong { min-width: 6.5rem; color: var(--gold-hell); font-weight: 700; }
.hero__ort { margin: 0 0 1.5rem; font-size: 1.1rem; }

.status {
  display: inline-block;
  margin: 0 0 1.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--gruen-tief);
  border: 1px solid var(--gruen-mitte);
  color: var(--creme);
  font-weight: 600;
  font-size: 0.98rem;
}
.status:empty { display: none; }
.hero__text .status, .hero__text .knopf { align-self: flex-start; }
@media (max-width: 39.99rem) { .hero__text .knopf { align-self: stretch; } }
.status--offen { background: var(--gold); color: var(--gruen-tief); border-color: var(--gold); }

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gruen-tief);
  font-weight: 800;
  font-size: 1.12rem;
  text-decoration: none;
  border: 2px solid var(--gold);
}
.knopf:hover { background: var(--gold-hell); border-color: var(--gold-hell); color: var(--gruen-tief); }
.knopf svg { width: 1.25rem; height: 1.25rem; flex: none; }
.hero .knopf { width: 100%; }

.knopf--rand {
  background: transparent;
  color: var(--gruen);
  border-color: var(--gruen);
}
.knopf--rand:hover { background: var(--gruen); color: var(--creme); border-color: var(--gruen); }

/* Abschnitte */
.abschnitt { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.abschnitt--tief { background: var(--creme-tief); }
.abschnitt--gruen { background: var(--gruen); color: var(--creme); }
.abschnitt--gruen h2 { color: var(--creme); }
.abschnitt--gruen a { color: var(--gold-hell); }
.einleitung { max-width: 40rem; font-size: 1.12rem; color: var(--tinte-weich); }
.abschnitt--gruen .einleitung { color: var(--creme); }

/* Gerichte */
.gerichte {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.gericht {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rand);
}
.gericht img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gericht__text { padding: 1.1rem 1.2rem 1.3rem; }
.gericht h3 { margin-bottom: 0.35em; }
.gericht p { margin: 0; color: var(--tinte-weich); }
.gericht__name-bs { display: block; font-family: var(--sans); font-size: 0.92rem; font-weight: 600; color: var(--gruen-mitte); letter-spacing: 0.02em; margin-top: 0.2rem; }
.auch { margin-top: 1.75rem; max-width: 42rem; color: var(--tinte-weich); }

/* Die drei Tage: der einzige Effekt der Seite.
   Ohne JavaScript oder mit reduzierter Bewegung sind alle Karten sofort sichtbar. */
.tage {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.tag {
  position: relative;
  background: var(--gruen-tief);
  border: 1px solid var(--gruen-mitte);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
}
.tag__name { font-family: var(--serif); font-size: 1.7rem; font-weight: 650; color: var(--gold-hell); margin: 0; }
.tag__datum { margin: 0 0 0.6rem; font-weight: 600; }
.tag__zeit { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; margin: 0; color: var(--creme); }
.tag__hinweis {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: var(--gold);
  color: var(--gruen-tief);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}
.tag__hinweis:empty { display: none; }
.tag--heute { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.tage-satz { margin-top: 1.6rem; }

.js .tag {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .tag.ist-da { opacity: 1; transform: none; }
.js .tag:nth-child(2) { transition-delay: 0.15s; }
.js .tag:nth-child(3) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .tag { opacity: 1; transform: none; transition: none; }
}

/* Anfahrt */
.adresse { font-style: normal; font-size: 1.25rem; line-height: 1.45; margin: 0 0 1.4rem; }
.adresse strong { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; display: block; }
.anfahrt-text { max-width: 40rem; }

/* Wer lädt ein */
.verein { max-width: 44rem; }
.verein p { font-size: 1.1rem; }
.zusage {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 0.8rem;
}
.zusage li {
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--gold);
  background: #fff;
  border-radius: 0 10px 10px 0;
  font-weight: 600;
}

/* Fragen */
.fragen { max-width: 46rem; margin-top: 1.5rem; }
.fragen details {
  border-bottom: 1px solid var(--rand);
}
.fragen summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 2.2rem 1.05rem 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  position: relative;
  min-height: 44px;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: "+";
  position: absolute;
  right: 0.3rem;
  top: 0.85rem;
  font-family: var(--sans);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gruen-mitte);
}
.fragen details[open] summary::after { content: "\2212"; }
.fragen details p { margin: 0 0 1.2rem; color: var(--tinte-weich); }

/* Teilen */
.teilen { display: grid; gap: 0.9rem; margin-top: 1.6rem; max-width: 28rem; }
.teilen .knopf { width: 100%; }
.abschnitt--gruen .knopf--rand { color: var(--creme); border-color: var(--gold); }
.abschnitt--gruen .knopf--rand:hover { background: var(--gold); color: var(--gruen-tief); }
.social { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.social a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Fuß */
.fuss {
  background: var(--gruen-tief);
  color: var(--creme);
  padding: 2.5rem 0 3rem;
  font-size: 0.98rem;
}
.fuss a { color: var(--gold-hell); }
.fuss__name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4rem; }
.fuss nav ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; }
.fuss nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* Rechtsseiten */
.recht { padding: 2.5rem 0 4rem; }
.recht .wrap { max-width: 48rem; }
.recht h1 { font-size: clamp(2rem, 1.6rem + 2vw, 2.8rem); }
.recht h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.recht h3 { font-size: 1.15rem; margin-top: 1.4rem; }
.recht dl { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.35rem 1.2rem; }
.recht dt { font-weight: 700; }
.recht dd { margin: 0; }
.recht table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.recht th, .recht td { text-align: left; border-bottom: 1px solid var(--rand); padding: 0.5rem 0.5rem 0.5rem 0; vertical-align: top; }
.zurueck { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.offen { background: var(--gold-hell); padding: 0 0.3rem; border-radius: 3px; }

/* Breitere Bildschirme */
@media (min-width: 40rem) {
  .gerichte { grid-template-columns: repeat(2, 1fr); }
  .hero .knopf { width: auto; }
  .teilen { grid-template-columns: 1fr 1fr; max-width: 40rem; }
}

@media (min-width: 52rem) {
  .hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: min(46rem, 88vh);
  }
  .hero__bild { aspect-ratio: auto; order: 2; }
  .hero__text {
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem var(--gutter) 3.5rem max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }
  .tage { grid-template-columns: repeat(3, 1fr); }
  .gerichte { grid-template-columns: repeat(4, 1fr); }
  .zweispaltig { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
}

/* Erinnerung per E-Mail (Formspree). Direkt unter dem Hero. */
.abschnitt--erinnerung { background: var(--creme-tief); padding: clamp(2.2rem, 5vw, 3.5rem) 0; border-bottom: 1px solid var(--rand); }
.abschnitt--erinnerung h2 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.1rem); }
.eintragen { display: grid; gap: 1rem; max-width: 34rem; margin-top: 1.2rem; }
.feld label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.feld input {
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--tinte);
  background: #fff;
  border: 2px solid var(--tinte-weich);
  border-radius: 10px;
}
.feld input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--gruen); }
.haken { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.haken input { width: 1.5rem; height: 1.5rem; margin: 0.15rem 0 0; accent-color: var(--gruen); }
.haken label { font-size: 0.98rem; }
.eintragen .knopf { justify-self: start; cursor: pointer; font-family: inherit; }
.eintragen .knopf[disabled] { opacity: 0.6; cursor: wait; }
.formular-hinweis { font-size: 0.9rem; color: var(--tinte-weich); margin: 0; }
.formular-status { font-weight: 700; margin: 0; }
.formular-status:empty { display: none; }
.formular-status.ist-ok { color: var(--gruen); }
.formular-status.ist-fehler { color: #8a1c1c; }
/* Falle für Spam-Programme: für Menschen unsichtbar, Formspree verwirft Einträge mit Inhalt. */
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Ohne JavaScript würde der Browser auf die Danke-Seite von Formspree wechseln,
   die Drittanbieter-Skripte lädt. Darum erscheint das Formular nur mit JavaScript;
   ohne JavaScript steht dort der Weg per E-Mail. */
.eintragen { display: none; }
.js .eintragen { display: grid; }
.js .ohne-js { display: none; }
/* Links im grünen Abschnitt sind hellgold; Knöpfe behalten ihre eigene Schriftfarbe. */
.abschnitt--gruen .knopf:not(.knopf--rand) { color: var(--gruen-tief); }
/* Hinweis auf die Umsetzung, bewusst klein unter der Fußzeile. */
.fuss__credit { margin: 1.4rem 0 0; font-size: 0.85rem; opacity: 0.85; }
.fuss__credit a { display: inline-flex; align-items: center; min-height: 44px; }
