/* homfeldt.org — Stil. Keine fremden Schriften (kein Google-Fonts-Abruf, Datenschutz). */
:root {
  --text: #2b2f33;
  --leise: #5d6670;
  --linie: #e4e2dd;
  --grund: #faf8f4;
  --flaeche: #ffffff;
  --akzent: #3f6f8f;      /* Lech-Blau, aus dem Kopfbild abgeleitet */
  --akzent-dunkel: #2c5470;
  --warm: #b5835a;
  --schatten: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --rund: 14px;
  --breit: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--text); background: var(--grund); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--akzent); }
a:hover { color: var(--akzent-dunkel); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: #1f2326; }
.sprung { position: absolute; left: -999px; }
.sprung:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }

/* Kopf und Menue */
.kopf { position: sticky; top: 0; z-index: 20; background: rgba(250,248,244,.94); backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--linie); }
.kopf-innen { max-width: var(--breit); margin: 0 auto; padding: 0 20px; display: flex; align-items: center;
              justify-content: center; min-height: 68px; gap: 16px; }
.hauptmenue > ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.hauptmenue li { position: relative; }
.hauptmenue a { display: block; padding: 10px 12px; color: var(--text); text-decoration: none; font-size: .95rem;
                border-radius: 8px; }
.hauptmenue a:hover, .hauptmenue .aktiv > a { background: #efebe4; color: #000; }
.untermenue { list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; min-width: 240px;
              background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; box-shadow: var(--schatten);
              display: none; }
.hat-kinder:hover > .untermenue, .hat-kinder:focus-within > .untermenue { display: block; }
.unter-knopf { display: none; }
.menue-knopf { display: none; }

/* Startseite */
.held { position: relative; max-width: var(--breit); margin: 24px auto 0; padding: 0 20px; }
.held-bild { width: 100%; height: clamp(180px, 28vw, 340px); object-fit: cover; border-radius: var(--rund); }
.held::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 65%; border-radius: 0 0 var(--rund) var(--rund);
              background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0)); pointer-events: none; }
.held-text { z-index: 1; }
.held-text { position: absolute; left: 44px; bottom: 22px; right: 44px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.held-text h1 { color: #fff; margin: 0; font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
.held-text h1 .zusatz { font-size: .62em; font-weight: 400; letter-spacing: .03em; }
.held-text p { margin: 4px 0 0; font-size: 1.05rem; }
/* Gelber Satz wie im alten Kopfbild (Elementor-Farbe #F8EB2A) */
.held-text .held-hinweis { margin-top: 10px; font-family: var(--serif); font-size: clamp(1rem, 1.7vw, 1.3rem); line-height: 1.3; }
.held-hinweis, .held-hinweis a { color: #f8eb2a; text-decoration: none; }
.held-hinweis a:hover { text-decoration: underline; }

.bereich { max-width: var(--breit); margin: 40px auto 64px; padding: 0 20px; }
.bereich-titel, .seiten-titel { font-size: calc(clamp(1.7rem, 3vw, 2.3rem) * var(--s, 1)); margin: 0 0 22px; }

/* Raster: 3 Artikel je Zeile, neueste oben */
/* align-items:start: jede Karte so hoch wie ihr Inhalt (ein Hochformatbild ohne Text
   soll gross sein duerfen, ohne die Nachbarn mit Leerraum aufzublaehen). */
.raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.karte { background: var(--flaeche); border-radius: var(--rund); overflow: hidden; box-shadow: var(--schatten);
         border: 1px solid var(--linie); transition: transform .15s, box-shadow .15s; }
.karte:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 14px 32px rgba(0,0,0,.1); }
.karte-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.karte-bild { position: relative; aspect-ratio: 4 / 3; background: #e9e5de; overflow: hidden; }
.karte-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* "ganz": Bild nicht beschneiden, sondern einpassen (Ausschnitt in der Verwaltung waehlbar) */
.karte-bild img.ganz { object-fit: contain; }
/* Baustein-Option "ganzes Bild": natuerliche Hoehe statt 4:3 */
.karte-bild.natur { aspect-ratio: auto; }
.karte-bild.natur img { position: static; height: auto; }
.karte-text + .karte-bild, .karte-bild + .karte-text { border-top: 0; }
.karte-text + .karte-text { padding-top: 0; }
.termin { margin: 0 0 6px; color: var(--leise); font-size: calc(.95rem * var(--s, 1)); }
.karte-untertitel { margin: 0 0 6px; font-family: var(--serif); font-size: calc(1.1rem * var(--s, 1)); color: var(--text); }
.hinweis-zeile { background: var(--warm); color: #fff; font-size: calc(.8rem * var(--s, 1)); padding: 3px 10px; border-radius: 99px; }
.hinweis { position: absolute; top: 12px; left: 12px; background: var(--warm); color: #fff; font-size: .8rem;
           padding: 3px 10px; border-radius: 99px; }
.karte-text { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.kicker { margin: 0 0 6px; font-size: calc(.78rem * var(--s, 1)); letter-spacing: .06em; text-transform: uppercase; color: var(--leise); }
.karte h3 { margin: 0 0 4px; font-size: calc(1.3rem * var(--s, 1)); }
.titel2 { margin: 0 0 8px; color: var(--akzent-dunkel); font-family: var(--serif); font-style: italic; font-size: calc(1em * var(--s, 1)); }
.titel2.gross { font-size: calc(1.3rem * var(--s, 1)); }
.auszug { margin: 0 0 14px; color: var(--leise); font-size: calc(.95rem * var(--s, 1)); display: -webkit-box; -webkit-line-clamp: 4;
          -webkit-box-orient: vertical; overflow: hidden; }
.weiter { display: inline-block; margin-top: 4px; color: var(--akzent); font-weight: 600; font-size: calc(.92rem * var(--s, 1)); }
.nachladen { text-align: center; margin: 32px 0 0; }
.knopf { display: inline-block; padding: 10px 22px; border: 1px solid var(--akzent); border-radius: 99px;
         text-decoration: none; }
.leer { color: var(--leise); }
.laedt { opacity: .5; pointer-events: none; }

/* Text- und Artikelseiten */
.text-seite { max-width: 820px; margin: 40px auto 72px; padding: 0 20px; }
.seiten-bild { width: 100%; border-radius: var(--rund); margin: 8px 0 26px; max-height: 560px; object-fit: cover; object-position: center 30%; }
.seiten-bild.ganz { object-fit: contain; max-height: none; }
.seiten-bild.natur { max-height: none; object-fit: initial; }
.untertitel { color: var(--leise); font-size: calc(1.1rem * var(--s, 1)); margin-top: -8px; }
.fliesstext img { border-radius: 10px; margin: 18px 0; }
.fliesstext iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; margin: 18px 0; }
.fliesstext audio { width: 100%; margin: 8px 0 18px; }
.fliesstext h2 { font-size: 1.55rem; margin: 1.8em 0 .5em; }
.fliesstext h3 { font-size: 1.25rem; margin: 1.5em 0 .4em; }
.fliesstext blockquote { margin: 1.2em 0; padding: .2em 1.2em; border-left: 3px solid var(--warm); color: #444; font-style: italic; }
.eckdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 20px 0;
            padding: 16px 18px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); }
.eckdaten dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--leise); }
.eckdaten dd { margin: 0; }
.eckdaten .wichtig dd { color: var(--warm); font-weight: 600; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 26px 0; }
.galerie img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; width: 100%; }
.links { margin-top: 34px; padding-top: 10px; border-top: 1px solid var(--linie); }
.zurueck { margin-top: 40px; }
.referenzen { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 30px; }
.referenz { margin: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund);
            padding: 20px; box-shadow: var(--schatten); }
.referenz img { border-radius: 10px; margin-bottom: 12px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.referenz blockquote { margin: 0 0 12px; font-style: italic; }

/* Fuss */
.fuss { border-top: 1px solid var(--linie); background: #f2efe9; }
.fuss-innen { max-width: var(--breit); margin: 0 auto; padding: 22px 20px; display: flex; flex-wrap: wrap;
              justify-content: space-between; gap: 12px; color: var(--leise); font-size: .92rem; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fuss a { color: var(--leise); text-decoration: none; }
.fuss a:hover { color: var(--text); text-decoration: underline; }

/* Schmalere Schirme */
@media (max-width: 1000px) {
  .raster { grid-template-columns: repeat(2, 1fr); }
  .kopf-innen { justify-content: flex-end; }
  .menue-knopf { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 44px; height: 44px;
                 background: none; border: 1px solid var(--linie); border-radius: 10px; cursor: pointer; padding: 0 11px; }
  .menue-knopf span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
  .menue-knopf b { position: absolute; left: -999px; }
  .hauptmenue { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--grund);
                border-bottom: 1px solid var(--linie); padding: 8px 12px 16px; box-shadow: var(--schatten);
                max-height: calc(100vh - 68px); overflow-y: auto; }
  .hauptmenue.offen { display: block; }
  .hauptmenue > ul { flex-direction: column; }
  .hauptmenue li { display: flex; flex-wrap: wrap; align-items: center; }
  .hauptmenue li > a { flex: 1; }
  .untermenue { position: static; display: none; box-shadow: none; border: 0; width: 100%; padding: 0 0 0 16px; background: none; }
  .hat-kinder:hover > .untermenue { display: none; }
  .hat-kinder.offen > .untermenue, .hat-kinder:focus-within > .untermenue { display: block; }
  .unter-knopf { display: block; width: 44px; height: 40px; background: none; border: 0; cursor: pointer; }
  .unter-knopf::after { content: ""; display: block; margin: 0 auto; width: 8px; height: 8px; border-right: 2px solid var(--leise);
                        border-bottom: 2px solid var(--leise); transform: rotate(45deg); }
  .hat-kinder.offen .unter-knopf::after { transform: rotate(-135deg); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .raster { grid-template-columns: 1fr; gap: 20px; }
  .held-text { left: 34px; bottom: 14px; }
  .held-bild { height: 240px; }
  .held::after { height: 90%; }
  .held-text p { font-size: .92rem; line-height: 1.35; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Schrift je Baustein (Baukasten): zentriert, fett, Groesse in Stufen.
   --s skaliert die Grundgroesse des jeweiligen Elements; gesetzt wird es nur
   am Element selbst, darum erbt kein Nachbar etwas davon. */
.s-mitte { text-align: center; }
.weiter.s-mitte { display: block; }
.s-fett, .s-fett * { font-weight: 700; }
.s-g-2 { --s: .8; } .s-g-1 { --s: .9; } .s-g1 { --s: 1.15; } .s-g2 { --s: 1.3; } .s-g3 { --s: 1.5; }
.fliesstext.s-g-2, .fliesstext.s-g-1, .fliesstext.s-g1, .fliesstext.s-g2, .fliesstext.s-g3 { font-size: calc(1em * var(--s)); }
.s-mitte .galerie, .eckdaten.s-mitte { justify-items: center; }
