/* Heimatverein Musterdorf, Beispielseite */

@font-face { font-family: "Source Serif 4"; src: url("assets/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("assets/atkinson-next.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --grund: #ffffff;
  --text: #1f1e1c;
  --leise: #55524d;
  --linie: #dcd9d4;
  --flaeche: #f4f3f1;
  --rot: #9b1c22;
  --rot-dunkel: #7a1419;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible Next", Arial, sans-serif;
  --breite: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }

a { color: var(--rot); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rot-dunkel); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: 2.4rem; font-weight: 600; }
h2 { font-size: 1.85rem; font-weight: 600; color: var(--rot); }
h3 { font-size: 1.3rem; font-weight: 600; }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.schmal > * { max-width: 712px; }

/* Hinweisband */
.band {
  margin: 0;
  padding: 10px 24px;
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  font-family: var(--sans);
  font-size: 16px;
  text-align: center;
  color: var(--text);
}

/* Kopf */
.kopf { border-bottom: 1px solid var(--linie); }
.kopf-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.marke {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  color: var(--text);
  text-decoration: none;
}
.marke:hover { color: var(--text); }
.wappen { width: 36px; height: 43px; flex: none; }
.marke-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }

.menue ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.menue a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}
.menue a:hover { color: var(--rot); text-decoration: underline; }

/* Titelbild */
.titelbild { max-width: var(--breite); margin: 28px auto 0; padding: 0 24px; }
.titelbild img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.titelbild figcaption { padding: 8px 0 0; }

figcaption {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.45;
  color: var(--leise);
  margin-top: 8px;
}

/* Begrüßung und Termine */
.start-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 56px;
  padding-top: 44px;
  padding-bottom: 56px;
}
.gruss p { max-width: 38em; }
.gezeichnet { font-style: italic; color: var(--leise); }

.termine { border-top: 3px solid var(--rot); padding-top: 18px; }
.termine h2 { font-size: 1.5rem; }
.terminliste { list-style: none; margin: 0 0 18px; padding: 0; }
.terminliste li { padding: 14px 0; border-bottom: 1px solid var(--linie); }
.terminliste li:first-child { padding-top: 0; }
.terminliste p { margin: 0; }
.datum { font-weight: 600; color: var(--rot); }
.was { font-size: 1.05em; }
.wo { font-size: 17px; color: var(--leise); }

/* Abschnitte */
.abschnitt { border-top: 1px solid var(--linie); padding: 56px 0; scroll-margin-top: 8px; }
.termine { scroll-margin-top: 16px; }

/* Skizzen */
:root {
  --skizze: #e6e4e0;
  --skizze-linie: #c9c5be;
  --skizze-schrift: #6b6760;
}
.strich { display: block; height: 11px; background: var(--skizze); border-radius: 2px; margin: 0 0 11px; }
.strich.dick { height: 16px; background: #dcd9d4; }
.s25 { width: 25%; } .s30 { width: 30%; } .s35 { width: 35%; } .s40 { width: 40%; } .s45 { width: 45%; }
.s50 { width: 50%; } .s55 { width: 55%; } .s60 { width: 60%; } .s65 { width: 65%; } .s70 { width: 70%; }
.s75 { width: 75%; } .s80 { width: 80%; } .s85 { width: 85%; } .s90 { width: 90%; } .s95 { width: 95%; } .s100 { width: 100%; }
.skizze-block { display: block; }
.skizze-block.gross .strich { height: 13px; margin-bottom: 14px; }
.skizze-block.gross + .skizze-block.gross { margin-top: 26px; }
.skizze-text {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--skizze-schrift);
  margin: 10px 0 0;
}
.bildfeld {
  display: block;
  position: relative;
  background-color: #f1f0ed;
  border: 1px solid var(--skizze-linie);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0L100 100M100 0L0 100' stroke='%23d3cfc8' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.bildfeld span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #f1f0ed;
  padding: 4px 10px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--skizze-schrift);
  white-space: nowrap;
}

.terminliste .skizze-zeile { padding: 18px 0 10px; }
.terminliste .skizze-zeile .strich:first-child { height: 13px; background: #dcd9d4; }
.termine .skizze-text { margin-top: 0; }

.ab-hier {
  margin: 0;
  border-top: 1px solid var(--linie);
  padding: 18px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--skizze-schrift);
  background: var(--flaeche);
}
.ab-hier .wrap { display: block; }
.ab-hier + .abschnitt { border-top: 0; }

/* Aktuelles */
.meldung { padding: 8px 0 32px; border-bottom: 1px solid var(--linie); }
.meldung.mit-bild { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; }
.meldung-text { max-width: 40em; }
.meldung-datum { font-size: 17px; color: var(--leise); margin-bottom: 4px; }
.meldung h3 { margin-bottom: 0.5em; }
.meldung-text p:last-child { margin-bottom: 0; }
.meldung-skizze { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 36px; padding: 32px 0; border-bottom: 1px solid var(--linie); }
.meldung-skizze:last-child { border-bottom: 0; padding-bottom: 0; }
.meldung-skizze .bildfeld { grid-row: span 2; aspect-ratio: 4 / 3; }
.meldung-skizze .skizze-block { max-width: 560px; padding-top: 8px; }

/* Über uns */
.verein-raster { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: start; }
.bildfeld.hoch { aspect-ratio: 4 / 3; }
.vorstand-titel { margin-top: 44px; }
.vorstand { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; max-width: 820px; }
.vorstand li { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.foto-feld { flex: none; width: 60px; height: 60px; background: #f1f0ed; border: 1px solid var(--skizze-linie); }
.vorstand .feld { flex: 1; }
.namensfeld { display: block; height: 30px; border-bottom: 1px solid #a9a59e; max-width: 240px; }
.vorstand .amt { display: block; font-size: 17px; color: var(--leise); margin-top: 4px; }

/* Aus dem Vereinsleben */
.galerie { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 12px; }
.galerie .bildfeld { height: 190px; }
.galerie .g2 { height: 140px; align-self: end; }
.galerie .g4 { height: 160px; }
.chronik { margin-top: 44px; border-left: 2px solid var(--skizze-linie); padding-left: 24px; max-width: 700px; }
.chronik-zeile { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px; align-items: start; padding: 6px 0 10px; }
.jahr { font-weight: 600; color: var(--skizze-schrift); line-height: 1.2; }
.chronik-zeile .strich { margin-top: 4px; }

/* Mitmachen */
.antrag-skizze { display: flex; align-items: center; gap: 22px; margin-top: 28px; }
.blatt { flex: none; width: 92px; height: 124px; background: #fff; border: 1px solid var(--skizze-linie); padding: 16px 12px; box-shadow: 3px 3px 0 #ebe9e5; }
.blatt .strich { height: 6px; margin-bottom: 9px; }
.antrag-beschriftung { font-family: var(--sans); font-size: 16px; color: var(--skizze-schrift); }

/* Kontakt */
.kontakt-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.kontakt-felder { margin: 0; }
.kontakt-felder div { padding: 10px 0; }
.kontakt-felder dt { font-family: var(--sans); font-size: 16px; color: var(--skizze-schrift); }
.kontakt-felder dd { margin: 0; }
.kontakt-felder dd.namensfeld { max-width: 360px; }
.karte { position: relative; aspect-ratio: 400 / 260; background: #f1f0ed; border: 1px solid var(--skizze-linie); overflow: hidden; }
.karte svg { display: block; width: 100%; height: 100%; }
.karte-text { position: absolute; left: 14px; bottom: 12px; background: #f1f0ed; padding: 4px 8px; font-family: var(--sans); font-size: 16px; color: var(--skizze-schrift); }

/* Vereinsfuß */
.verein-fuss { border-top: 1px solid var(--linie); padding: 24px 0 28px; font-size: 16px; color: var(--leise); }
.verein-fuss p { margin: 0; }

/* Hinweis */
.hinweis { background: var(--flaeche); border-top: 1px solid var(--linie); padding: 28px 0 24px; }
.hinweis p { font-size: 18px; margin: 0; }
.hinweis a { display: inline-block; padding: 10px 0; }

/* Seitenfuß */
.fuss { background: var(--flaeche); border-top: 1px solid var(--linie); padding: 20px 0 32px; font-size: 16px; color: var(--leise); }
.fuss-zeile { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0 0 12px; }
.fuss-zeile a { display: inline-flex; align-items: center; min-height: 44px; }
.bildnachweis { font-size: 15px; line-height: 1.5; }
.bildnachweis p { margin: 0 0 4px; }
.bildnachweis ul { margin: 0; padding: 0; list-style: none; }
.bildnachweis li { margin: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.3em; }
.bildnachweis a { display: inline-flex; align-items: center; min-height: 44px; }

/* Tablet */
@media (max-width: 1000px) {
  .kopf-in { flex-direction: column; align-items: flex-start; gap: 4px; }
  .start-raster { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .verein-raster { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
  .kontakt-raster { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .karte { max-width: 560px; }
}

/* Handy */
@media (max-width: 700px) {
  body { font-size: 18px; }
  .wrap, .titelbild { padding: 0 16px; }
  .band { padding: 10px 16px; font-size: 16px; }
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.22rem; }
  .kopf-in { padding-top: 12px; padding-bottom: 6px; }
  .marke-name { font-size: 1.15rem; }
  .menue ul { gap: 0 18px; }
  .titelbild { margin-top: 16px; }
  .titelbild img { aspect-ratio: 3 / 2; }
  .start-raster { padding-top: 30px; padding-bottom: 40px; }
  .abschnitt { padding: 40px 0; }
  .meldung.mit-bild { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .meldung figure img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 45%; }
  .meldung-skizze { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; border-bottom: 0; }
  .meldung-skizze .bildfeld { grid-row: auto; aspect-ratio: 3 / 2; margin-bottom: 18px; }
  .meldung-skizze + .meldung-skizze { display: none; }
  .verein-raster { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .vorstand { grid-template-columns: minmax(0, 1fr); }
  .foto-feld { width: 52px; height: 52px; }
  .galerie { grid-template-columns: 1.4fr 1fr; }
  .galerie .bildfeld, .galerie .g2, .galerie .g4 { height: 120px; }
  .galerie .g3, .galerie .g4 { display: none; }
  .chronik-zeile { grid-template-columns: 56px minmax(0, 1fr); }
  .meldung-datum, .vorstand .amt { font-size: 16px; }
}
