/* Allmende – Webseite. Farben und Schriften wie im Spiel (docs/DESIGN.md, Abschnitt Auftritt). */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Italic-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --elfenbein: #F4EFE4;
  --gold: #E3BD7A;
  --dunkel: #14130F;
  --dunkel-2: #1C1A15;
  --linie: rgba(244, 239, 228, 0.14);
  --text: rgba(244, 239, 228, 0.86);
  --leise: rgba(244, 239, 228, 0.6);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --breite: 68rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--dunkel);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--elfenbein); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--elfenbein);
  line-height: 1.1;
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1em; }

.leitsatz {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
}

.innen { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }

/* Kopf */

.hero {
  position: relative;
  min-height: min(100svh, 56rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem var(--rand) 5rem;
  isolation: isolate;
  overflow: hidden;
}
.hero-bild {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bild img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(20, 19, 15, 0.35) 0%, rgba(20, 19, 15, 0.7) 70%),
    linear-gradient(to bottom, rgba(20, 19, 15, 0) 60%, var(--dunkel) 100%);
}
.hero .emblem { width: clamp(9rem, 22vw, 13rem); margin: 0 auto 1.5rem; }
.hero h1 {
  font-size: clamp(3.5rem, 11vw, 7rem);
  font-weight: 400;
  margin-bottom: 0.15em;
  letter-spacing: 0.01em;
}
.hero .leitsatz { font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: 1.6rem; }
.hero .stand {
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.knopf {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--dunkel);
  background: var(--gold);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.knopf:hover { background: var(--elfenbein); border-color: var(--elfenbein); color: var(--dunkel); }
.knopf.leer { background: transparent; color: var(--elfenbein); border-color: rgba(244, 239, 228, 0.5); }
.knopf.leer:hover { border-color: var(--elfenbein); background: rgba(244, 239, 228, 0.08); }

/* Abschnitte */

section { padding: clamp(4rem, 9vw, 7rem) 0; }
section + section { border-top: 1px solid var(--linie); }

.zweispaltig {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.zweispaltig.gedreht > :first-child { order: 2; }

figure { margin: 0; }
figure img { border-radius: 2px; }
figcaption { font-size: 0.85rem; color: var(--leise); margin-top: 0.6rem; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.jahreszeiten {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.jahreszeiten figcaption { font-family: var(--serif); font-size: 1.15rem; color: var(--elfenbein); }

.bilderpaar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.schmal { max-width: 42rem; }

.stand-box {
  border-left: 2px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 2rem 0;
}

/* Fuß */

footer {
  border-top: 1px solid var(--linie);
  padding: 2.5rem 0 3rem;
  font-size: 0.85rem;
  color: var(--leise);
}
footer .innen { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
footer a { color: var(--leise); text-decoration: none; }
footer a:hover { color: var(--elfenbein); }
.marke { display: flex; align-items: center; gap: 0.6rem; color: var(--text); }
.marke img { width: 1.6rem; }

/* Rechtstexte */

.recht { padding: 4rem 0 5rem; }
.recht .kopf { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 3rem; text-decoration: none; color: var(--elfenbein); font-family: var(--serif); font-size: 1.6rem; }
.recht .kopf img { width: 2rem; }
.recht h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.recht h2 { font-size: 1.6rem; margin-top: 2.2em; }
.recht address { font-style: normal; margin-bottom: 1em; }
.offen { background: rgba(227, 189, 122, 0.18); color: var(--gold); padding: 0 0.25em; }

@media (max-width: 52rem) {
  .zweispaltig { grid-template-columns: 1fr; }
  .zweispaltig.gedreht > :first-child { order: 0; }
  .jahreszeiten { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 30rem) {
  .bilderpaar { grid-template-columns: 1fr; }
}

/* Zustimmungsdialog */

.zustimmung {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  max-width: 34rem;
  margin-left: auto;
  padding: 1.25rem 1.4rem;
  background: var(--dunkel-2);
  border: 1px solid var(--linie);
  border-radius: 3px;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  line-height: 1.55;
}
.zustimmung-titel { font-family: var(--serif); font-size: 1.45rem; color: var(--elfenbein); margin-bottom: 0.4rem; }
.zustimmung .knoepfe { justify-content: flex-end; margin-top: 0.4rem; }
.zustimmung .knopf { font: inherit; font-weight: 500; cursor: pointer; }
.zustimmung .knopf[data-wahl="ja"] { background: var(--gold); color: var(--dunkel); border-color: var(--gold); }
.zustimmung .knopf[data-wahl="ja"]:hover { background: var(--elfenbein); border-color: var(--elfenbein); }
footer [hidden] { display: none; }

/* Fortschritt */

.seitenkopf { padding: 3rem 0 1rem; }
.seitenkopf .kopf { display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: 3rem; text-decoration: none; color: var(--elfenbein); font-family: var(--serif); font-size: 1.6rem; }
.seitenkopf .kopf img { width: 2rem; }
.seitenkopf h1 { font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 400; margin-bottom: 0.2em; }
.seitenkopf .leitsatz { font-size: clamp(1.25rem, 3vw, 1.6rem); }

.fahrplan-spalten { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.fahrplan-spalten > div { border-top: 1px solid var(--gold); padding-top: 1rem; }
.fahrplan-spalten p { font-size: 0.95rem; }

.eintrag { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--linie); }
.eintrag h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.eintrag .bilderpaar, .eintrag .einzelbild { margin-top: 1.5rem; }
.einzelbild { max-width: 48rem; }
.eintrag figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

@media (max-width: 52rem) {
  .fahrplan-spalten { grid-template-columns: 1fr; }
}
