/*
Theme Name: Loheland
Template: kadence
Description: Child-Theme der Loheland-Stiftung auf Basis von Kadence. Gestaltung nach Entwurf „Warm und editorial" (2026-09-09).
Version: 0.1.0
Text Domain: loheland
*/

:root {
  --lh-papier: #f5f0e6;
  --lh-karte: #fbf8f1;
  --lh-karte-rand: #e6dccb;
  --lh-linie: #d9d0bf;
  --lh-tinte: #2b2622;
  --lh-tinte-mittel: #4a433c;
  --lh-tinte-gedaempft: #5c554d;
  --lh-tinte-hell: #7a7066;
  --lh-ocker: #b8862b;
  --lh-terrakotta: #b3573a;
  --lh-titel: 'Newsreader', Georgia, 'Times New Roman', serif;
  --lh-text: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

/* Bereichsfarben, gesetzt über die Taxonomie „Bereich" */
:root {
  --lh-bereich-kita: #d9a8a8;
  --lh-bereich-schule: #b04a4a;
  --lh-bereich-familienzentrum: #6f8fa8;
  --lh-bereich-hof: #7a8a3a;
  --lh-bereich-schreinerei: #8b5a4a;
  --lh-bereich-laden: #e0c85a;
  --lh-bereich-wiesenhaus: #93b34a;
  --lh-bereich-gymnastik: #a9bcd6;
  --lh-bereich-archiv: #5a5f66;
  --lh-bereich-loheland: #5a5f66;
}

body {
  text-wrap: pretty;
}

h1, h2, h3, h4, .lh-titel {
  font-family: var(--lh-titel);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Kopfzeile */
.site-header .site-branding img {
  height: 64px;
  width: auto;
}
.header-navigation .primary-menu-container > ul > li > a {
  font-weight: 500;
}
.header-button-wrap .button {
  border-radius: 999px;
}

/* Überzeile in Ocker, z. B. „Loheland-Stiftung bei Fulda, seit 1919" */
.lh-ueberzeile {
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lh-ocker);
  font-weight: 600;
  margin-bottom: 0;
}
.lh-ueberzeile--bereich {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Startseiten-Hero */
.lh-hero h1 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
}
.lh-hero .lh-vorspann {
  font-size: 21px;
  color: var(--lh-tinte-mittel);
  max-width: 560px;
}
.lh-hero figure img,
.lh-bild-abgerundet img {
  border-radius: 4px;
  object-fit: cover;
  width: 100%;
}
.lh-hero figure img {
  height: 560px;
}
.lh-bildunterschrift {
  font-size: 15px;
  color: var(--lh-tinte-hell);
}

/* Knöpfe */
.wp-block-button__link,
.lh-knopf {
  border-radius: 999px;
  font-weight: 600;
  padding: 16px 28px;
}
.lh-textlink,
.lh-textlink a {
  color: var(--lh-terrakotta);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--lh-terrakotta);
}
a.lh-weiter {
  color: var(--lh-terrakotta);
  font-weight: 600;
  text-decoration: none;
}

/* Abschnittstitel mit Linie darüber */
.lh-abschnitt-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--lh-linie);
  padding-top: 32px;
  margin-bottom: 40px;
}
.lh-abschnitt-kopf h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.1;
}

/* Bereiche: neun Karten */
.lh-bereiche {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 900px) {
  .lh-bereiche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .lh-bereiche { grid-template-columns: minmax(0, 1fr); }
}
.lh-bereich-karte {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--lh-karte);
  border: 1px solid var(--lh-karte-rand);
  padding: 28px;
  border-radius: 4px;
  color: var(--lh-tinte);
  text-decoration: none;
}
.lh-bereich-karte:hover {
  border-color: var(--lh-tinte-hell);
}
.lh-bereich-karte .lh-titel {
  font-size: 28px;
  line-height: 1.15;
}
.lh-bereich-karte p {
  margin: 0;
  color: var(--lh-tinte-gedaempft);
  font-size: 17px;
}
.lh-punkt {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--lh-punkt-farbe, var(--lh-tinte-hell));
  flex-shrink: 0;
  display: inline-block;
}
.lh-punkt--klein {
  width: 10px;
  height: 10px;
}

/* Dunkles Band, z. B. Geschichte oder Aufnahme */
.lh-band {
  background: var(--lh-tinte);
  color: var(--lh-papier);
  border-radius: 4px;
}
.lh-band h2, .lh-band h3, .lh-band p {
  color: var(--lh-papier);
}
.lh-band .lh-zitat {
  font-family: var(--lh-titel);
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.25;
}
.lh-band .lh-textlink {
  color: var(--lh-papier);
  border-bottom-color: var(--lh-ocker);
}
.lh-band .wp-block-button__link {
  background: var(--lh-papier);
  color: var(--lh-tinte);
}
.lh-band .lh-gedaempft {
  color: var(--lh-linie);
}

/* Meldungen (Liste) */
.lh-meldungen {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--lh-linie);
}
.lh-meldung {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--lh-linie);
}
.lh-meldung--mit-bild {
  grid-template-columns: 150px minmax(0, 1fr) 180px;
}
@media (max-width: 700px) {
  .lh-meldung, .lh-meldung--mit-bild { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
.lh-meldung__bereich {
  color: var(--lh-tinte-hell);
  font-size: 15px;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lh-meldung__bereich span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lh-meldung__titel {
  font-family: var(--lh-titel);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 6px 0;
}
.lh-meldung__titel a {
  color: var(--lh-tinte);
  text-decoration: none;
}
.lh-meldung__titel a:hover {
  color: var(--lh-terrakotta);
}
.lh-meldung__text {
  color: var(--lh-tinte-gedaempft);
  margin: 0;
}
.lh-meldung__bild img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

/* Termine (Karte) */
.lh-termine-karte {
  background: var(--lh-karte);
  border: 1px solid var(--lh-karte-rand);
  padding: 36px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.lh-termine-karte h3 {
  margin: 0;
  font-size: 30px;
}
.lh-termine {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lh-termin {
  display: flex;
  gap: 20px;
}
.lh-termin__datum {
  font-family: var(--lh-titel);
  font-size: 22px;
  width: 96px;
  flex-shrink: 0;
  color: var(--lh-terrakotta);
  line-height: 1.3;
}
.lh-termin__titel {
  font-weight: 600;
}
.lh-termin__titel a {
  color: var(--lh-tinte);
  text-decoration: none;
}
.lh-termin__ort {
  color: var(--lh-tinte-hell);
  font-size: 15px;
}
.lh-termine--liste .lh-termin {
  padding: 16px 0;
  border-top: 1px solid var(--lh-linie);
}
.lh-termine--liste {
  gap: 0;
  border-bottom: 1px solid var(--lh-linie);
}

/* Filterchips auf der Seite Aktuelles */
.lh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}
.lh-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--lh-linie);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 16px;
  color: var(--lh-tinte);
  text-decoration: none;
  min-height: 44px;
}
.lh-chip--aktiv {
  background: var(--lh-tinte);
  color: var(--lh-papier);
  border-color: var(--lh-tinte);
}

/* Kalender */
.lh-kalender {
  background: var(--lh-karte);
  border: 1px solid var(--lh-karte-rand);
  padding: 32px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lh-kalender__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lh-kalender__kopf h2 {
  margin: 0;
  font-size: 28px;
}
.lh-kalender__pfeil {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lh-linie);
  border-radius: 999px;
  color: var(--lh-tinte);
  text-decoration: none;
}
.lh-kalender__raster {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
  font-size: 15px;
}
.lh-kalender__wochentag {
  color: var(--lh-tinte-hell);
  font-size: 13px;
  padding: 6px 0;
}
.lh-kalender__tag {
  padding: 10px 0;
  border-radius: 999px;
}
.lh-kalender__tag--fremd {
  color: #c9c0b0;
}
.lh-kalender__tag--heute {
  background: var(--lh-tinte);
  color: var(--lh-papier);
}
.lh-kalender__tag--termin {
  background: var(--lh-terrakotta);
  color: var(--lh-papier);
  font-weight: 600;
  text-decoration: none;
  display: block;
}
.lh-kalender__legende {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--lh-tinte-hell);
}
.lh-kalender__legende span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Bereichsnavigation (Unterseiten eines Bereichs) */
.lh-bereichsnav {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  border-top: 1px solid var(--lh-linie);
  border-bottom: 1px solid var(--lh-linie);
  padding: 18px 0;
  margin: 0 0 56px 0;
  list-style: none;
  font-size: 17px;
  font-weight: 500;
}
.lh-bereichsnav a {
  color: var(--lh-tinte);
  text-decoration: none;
}
.lh-bereichsnav .current-menu-item a,
.lh-bereichsnav a:hover {
  color: var(--lh-terrakotta);
}

/* Karten mit Bild (Unterstufe, Mittelstufe, Oberstufe) */
.lh-karte {
  background: var(--lh-karte);
  border: 1px solid var(--lh-karte-rand);
  padding: 28px;
  border-radius: 4px;
  height: 100%;
}
.lh-karte figure {
  margin: 0 0 14px 0;
}
.lh-karte figure img {
  height: 160px;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.lh-karte h3 {
  font-size: 30px;
  margin: 0 0 8px 0;
}
.lh-karte p {
  color: var(--lh-tinte-gedaempft);
  font-size: 17px;
  margin: 0;
}

/* Kleine Kacheln mit Linie oben (Schulleben) */
.lh-kachel {
  border-top: 2px solid var(--lh-kachel-farbe, var(--lh-terrakotta));
  padding-top: 18px;
}
.lh-kachel h3 {
  font-size: 24px;
  margin: 0 0 6px 0;
}
.lh-kachel p {
  color: var(--lh-tinte-gedaempft);
  font-size: 16px;
  margin: 0;
}

/* Downloads */
.lh-downloads {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lh-downloads a {
  color: var(--lh-tinte);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Fußzeile */
.site-footer {
  border-top: 1px solid var(--lh-linie);
}
.site-footer .widget-title {
  font-family: var(--lh-text);
  font-weight: 600;
  font-size: 16px;
  color: var(--lh-tinte);
}
.site-footer a {
  text-decoration: none;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin: 0 0 8px 0;
}

/* Handy: Bilder im Hero niedriger, Abstände enger */
@media (max-width: 700px) {
  .lh-hero figure img {
    height: 260px;
  }
  .lh-termine-karte,
  .lh-kalender {
    padding: 24px;
  }
  .lh-abschnitt-kopf {
    flex-direction: column;
    gap: 8px;
  }
}
