@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --grund: #e9ecef;
  --flaeche: #ffffff;
  --tinte: #16202b;
  --leise: #56626e;
  --blau: #1f5fa8;   /* Hallenboden */
  --harz: #e0a21b;   /* Handballharz */
  --rand: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font: 400 1.0625rem/1.5 "Archivo", system-ui, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--harz); outline-offset: 3px; }
h1, h2 { margin: 0; line-height: 1; font-stretch: 62%; font-weight: 800; letter-spacing: -0.01em; }

/* Kopf */
.kopf {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 32px; padding: 20px var(--rand);
}
.marke { font-size: 1.75rem; font-weight: 800; font-stretch: 125%; letter-spacing: -0.03em; text-decoration: none; }
.kopf nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.kopf nav a { font-weight: 600; text-decoration: none; padding: 4px 0; border-bottom: 4px solid transparent; }
.kopf nav a:hover { border-color: var(--tinte); }
.kopf nav a[aria-current] { border-color: var(--harz); }

/* Startseite: neueste Galerie */
.auftakt { display: block; position: relative; margin: 0 var(--rand); text-decoration: none; }
.auftakt img { width: 100%; height: min(72vh, 760px); object-fit: cover; }
.auftakt-text {
  position: absolute; left: 0; bottom: 0; max-width: min(92%, 760px);
  display: flex; flex-direction: column; gap: 10px;
  background: var(--blau); color: #fff; padding: clamp(18px, 3vw, 36px);
}
.auftakt-neu { font-weight: 600; }
.auftakt-titel { font-size: clamp(2.2rem, 6.4vw, 5.2rem); font-weight: 800; font-stretch: 62%; line-height: 0.95; text-wrap: balance; }
.auftakt-info { font-weight: 600; text-decoration: underline; text-decoration-color: var(--harz); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Startseite: die drei Bereiche */
.einstieg { padding: clamp(36px, 6vw, 80px) var(--rand) 0; }
.einstieg h1 { font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 0.95; max-width: 22ch; text-wrap: balance; }
.einstieg p { margin: 16px 0 0; max-width: 60ch; color: var(--leise); font-size: 1.2rem; }
.spalten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 56px); padding: clamp(32px, 5vw, 64px) var(--rand) clamp(40px, 7vw, 96px); }
.spalte-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.spalte h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); margin-top: 20px; }
.spalte h2 a { text-decoration: none; }
.spalte h2 a:hover { color: var(--blau); }
.spalte > p { margin: 8px 0 20px; color: var(--leise); }
.spalte ul { list-style: none; margin: 0 0 20px; padding: 0; border-top: 2px solid var(--tinte); }
.spalte li a { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #c3cad1; text-decoration: none; }
.spalte li a:hover span { text-decoration: underline; }
.spalte li span { font-weight: 600; }
.spalte li time { color: var(--leise); white-space: nowrap; font-variant-numeric: tabular-nums; }
.alle { font-weight: 700; color: var(--blau); }

/* Bereich mit Jahren */
.bereich-kopf { padding: clamp(24px, 5vw, 64px) var(--rand) clamp(16px, 3vw, 40px); }
.bereich-kopf h1 { font-size: clamp(3.5rem, 12vw, 10rem); line-height: 0.85; }
.bereich-kopf p { margin: 20px 0 0; max-width: 60ch; color: var(--leise); font-size: 1.2rem; }
.jahr { display: grid; grid-template-columns: clamp(110px, 16vw, 230px) 1fr; gap: 24px; padding: 32px var(--rand); border-top: 2px solid var(--tinte); margin-top: 24px; }
.jahr h2 { font-size: clamp(3rem, 8vw, 6.5rem); color: var(--blau); position: sticky; top: 16px; align-self: start; font-variant-numeric: tabular-nums; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 32px 24px; }
.karte { text-decoration: none; display: block; }
.karte img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.karte-titel { display: block; margin-top: 10px; font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.karte:hover .karte-titel { text-decoration: underline; text-decoration-color: var(--harz); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.karte-info { display: block; color: var(--leise); font-size: 0.95rem; }
.leer { padding: 0 var(--rand) 80px; color: var(--leise); }

/* Galerie */
.galerie-kopf { padding: clamp(20px, 4vw, 48px) var(--rand) 28px; }
.pfad { margin: 0 0 12px; font-weight: 600; }
.pfad a { color: var(--blau); }
.galerie-kopf h1 { font-size: clamp(2.5rem, 7vw, 6rem); line-height: 0.92; max-width: 18ch; text-wrap: balance; }
.daten { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 600; }
.daten span { color: var(--leise); }
.galerie-kopf .text { max-width: 62ch; margin: 14px 0 0; color: var(--leise); }
.fotos { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 var(--rand) 48px; }
.fotos a { flex: calc(var(--v) * 100) 1 calc(var(--v) * 230px); background: #cfd5db; }
.fotos img { width: 100%; height: 100%; object-fit: cover; }
.fotos::after { content: ""; flex: 1000 1 0; }
.nachbarn { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px var(--rand) 56px; border-top: 2px solid var(--tinte); }
.nachbarn a { text-decoration: none; font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.nachbarn a:hover { text-decoration: underline; text-decoration-color: var(--harz); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.nachbarn a span { display: block; color: var(--leise); font-weight: 400; font-size: 0.95rem; }
.nachbarn > :last-child { text-align: right; }

/* Textseiten und Fuß */
.textseite { padding: clamp(24px, 5vw, 64px) var(--rand) 72px; max-width: calc(68ch + 2 * var(--rand)); }
.textseite h1 { font-size: clamp(2.5rem, 7vw, 5rem); margin-bottom: 28px; }
.textseite h2 { font-size: 1.6rem; margin: 36px 0 8px; }
.textseite a, .fuss a { color: var(--blau); font-weight: 600; }
.fuss { background: var(--flaeche); padding: 28px var(--rand) 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 40px; }
.fuss p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.fuss span { color: var(--leise); }

/* Großansicht */
.gross { position: fixed; inset: 0; z-index: 10; background: #1b1d20; color: #fff; display: grid; grid-template-rows: 1fr auto; }
.gross[hidden] { display: none; }
.gross-bild { min-height: 0; display: grid; place-items: center; padding: 12px; }
.gross-bild img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gross-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding: 10px 16px 14px; font-size: 0.95rem; }
.gross-leiste .zahl { font-weight: 700; font-variant-numeric: tabular-nums; }
.gross-leiste .datei { color: #b4bcc4; margin-right: auto; overflow-wrap: anywhere; }
.gross-leiste a { color: #fff; }
.gross button { font: inherit; color: #fff; background: none; border: 0; cursor: pointer; }
.gross .zu { font-weight: 700; padding: 6px 14px; border: 2px solid #fff; }
.gross .zu:hover { background: #fff; color: #1b1d20; }
.gross .pfeil { position: absolute; top: 0; bottom: 64px; width: 22%; min-width: 64px; font-size: 3rem; font-weight: 300; opacity: 0.75; }
.gross .pfeil:hover { opacity: 1; }
.gross .zurueck { left: 0; text-align: left; padding-left: 18px; }
.gross .weiter { right: 0; text-align: right; padding-right: 18px; }
body.offen { overflow: hidden; }

@media (max-width: 860px) {
  .jahr { grid-template-columns: 1fr; gap: 12px; }
  .jahr h2 { position: static; }
  .auftakt { margin: 0; }
  .auftakt img { height: 62vh; }
  .auftakt-text { position: static; max-width: none; }
  .fotos { gap: 4px; padding-inline: 4px; }
  .fotos a { flex-basis: calc(var(--v) * 130px); }
}
.spalte h2 + ul { margin-top: 16px; }

/* Kommentare, Formulare, Suche */
.leise { color: var(--leise); font-size: 0.95rem; }
.kommentare { padding: 8px var(--rand) 56px; max-width: calc(68ch + 2 * var(--rand)); }
.kommentare h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 20px; }
.kommentar-liste article { background: var(--flaeche); padding: 14px 18px; margin-bottom: 10px; }
.kommentar-liste article p { margin: 0; }
.kommentar-liste time { color: var(--leise); font-size: 0.95rem; margin-left: 12px; }
.kommentar-text { margin-top: 6px !important; white-space: pre-wrap; overflow-wrap: anywhere; }
.formular { display: grid; gap: 16px; margin-top: 28px; max-width: 60ch; }
.formular label { display: grid; gap: 6px; font-weight: 600; }
.formular input, .formular textarea, .suche input {
  font: inherit; color: inherit; background: var(--flaeche); border: 2px solid var(--tinte); border-radius: 0; padding: 10px 12px; width: 100%;
}
.formular textarea { resize: vertical; }
.formular button { justify-self: start; font: inherit; font-weight: 700; color: #fff; background: var(--blau); border: 0; padding: 12px 22px; cursor: pointer; }
.formular button:hover { background: var(--tinte); }
.formular button:disabled { opacity: 0.6; cursor: default; }
.formular p { margin: 0; }
.meldung { font-weight: 700; }
.meldung:empty { display: none; }
.meldung.fehler { color: #a4281c; }
.falle { position: absolute; left: -9999px; }
.betrifft { font-weight: 700; overflow-wrap: anywhere; }
.suchseite { padding-bottom: 24px; }
.suche label { display: grid; gap: 8px; font-weight: 600; }
.suche input { font-size: 1.3rem; padding: 14px 16px; }
.treffer { padding: 0 var(--rand) 72px; }
