/*
Theme Name: Gedenkstätte
Theme URI: https://gedenkstaette-schlieben.de
Author: Verein Gedenkstätte KZ-Außenlager Schlieben-Berga e. V.
Description: Eigenes Block-Theme (Full Site Editing) für die Gedenkstätte KZ-Außenlager Schlieben-Berga, nach freigegebenem Gestaltungsentwurf.
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.0
Version: 2.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gedenkstaette
*/

/* ===== Grundlayout ===== */
.leiste-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Skip-Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: #0B2A5B;
  color: #fff;
  padding: 0.75em 1.25em;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #17408B;
  outline-offset: 2px;
}

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

/* ===== Metaleiste ===== */
.meta-leiste {
  background: var(--wp--preset--color--metaleiste);
  color: var(--wp--preset--color--meta-muted);
}
.meta-leiste-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-height: 40px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  font-size: 0.875rem;
}
.meta-verein { color: var(--wp--preset--color--meta-muted); }
.meta-rechts { align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.meta-leiste a { color: var(--wp--preset--color--meta-muted); text-decoration: none; }
.meta-leiste a:hover, .meta-leiste a:focus { text-decoration: underline; color: #fff; }

.sprachumschalter { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; align-items: center; }
.sprachumschalter li { list-style: none; }
.sprachumschalter a { color: var(--wp--preset--color--meta-muted); }
.sprachumschalter a[aria-current="true"] { color: #fff; font-weight: 700; text-decoration: none; }

.meta-leiste .wp-block-search__input {
  background: transparent;
  border: 1px solid var(--wp--preset--color--meta-trenner);
  color: #fff;
  height: 30px;
}
.meta-leiste .wp-block-search__input::placeholder { color: var(--wp--preset--color--meta-muted); }
.meta-leiste .wp-block-search__button {
  background: transparent;
  border: 1px solid var(--wp--preset--color--meta-trenner);
  border-left: 0;
  color: #fff;
  height: 30px;
}

/* ===== Kopfbereich ===== */
.kopf-bereich { background: var(--wp--preset--color--akzent); }
.kopf-inner {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  min-height: 168px;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}
.kopf-bild {
  position: relative;
  width: 282px;
  height: 168px;
  flex-shrink: 0;
  overflow: hidden;
}
.kopf-bild img { width: 282px; height: 168px; object-fit: cover; display: block; }
.kopf-bild-verlauf {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,42,91,0) 55%, rgba(11,42,91,1) 100%);
}
.kopf-titel { color: #fff; gap: 0.5rem !important; }
.kopf-titel .wp-block-site-title,
.kopf-titel .wp-block-site-title a { margin: 0; color: #fff; text-decoration: none; }
.kopf-titel .wp-block-site-tagline { margin: 0; font-size: 1.1875rem; color: var(--wp--preset--color--meta-muted); }

/* ===== Hauptnavigation ===== */
.hauptnavigation { background: var(--wp--preset--color--navigation); }
.hauptnavigation .wp-block-navigation__container,
.hauptnavigation.wp-block-navigation {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hauptnavigation .wp-block-navigation-item > a,
.hauptnavigation .wp-block-navigation-item > .wp-block-navigation-item__content {
  padding: 1rem 1.375rem;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}
.hauptnavigation .wp-block-navigation-item:hover > a,
.hauptnavigation .wp-block-navigation-item:hover > .wp-block-navigation-item__content {
  background: var(--wp--preset--color--menu-hover);
  text-decoration: underline;
}
.hauptnavigation .wp-block-navigation-item.current-menu-item > a,
.hauptnavigation .wp-block-navigation-item.current-menu-ancestor > a,
.hauptnavigation .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.hauptnavigation .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content {
  background: var(--wp--preset--color--menu-aktiv);
  color: var(--wp--preset--color--menu-aktiv-text) !important;
  font-weight: 700;
}

/* Schlichte Link-Navigation (Kontakt in der Metaleiste, Footer-Links) */
.plain-links, .plain-links .wp-block-navigation__container { background: transparent !important; }
.plain-links .wp-block-navigation-item a {
  padding: 0; background: transparent !important; color: inherit; text-decoration: underline;
}
.plain-links .wp-block-navigation-item a:hover,
.plain-links .wp-block-navigation-item a:focus { background: transparent !important; }
.meta-kontakt .wp-block-navigation-item a { color: var(--wp--preset--color--meta-muted); }
.site-footer .plain-links .wp-block-navigation-item a { color: #fff; }

/* ===== Hauptinhalt ===== */
#hauptinhalt { display: block; }
.hauptinhalt-inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 2.5rem 1rem 4rem; box-sizing: border-box; }

/* Leitbild + Aktuelles (Startseite Reihe 1) */
.leitbild-reihe { display: grid; grid-template-columns: 66% 1fr; gap: 1.5rem; align-items: stretch; }
.leitbild-box { position: relative; min-height: 470px; overflow: hidden; background: var(--wp--preset--color--akzent); box-shadow: 0 2px 10px rgba(0,0,0,0.12); color: #fff; }
.leitbild-box .leitbild-bild { position: absolute; top: 0; left: 0; width: 100%; height: 53%; object-fit: cover; }
.leitbild-box .leitbild-text {
  position: absolute; left: 0; right: 0; bottom: 0; height: 53%;
  background: var(--wp--preset--color--akzent);
  padding: 2.1rem 2.5rem; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 0.75rem; justify-content: center;
}
.leitbild-overline { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--meta-muted); font-weight: 600; }
.leitbild-text h1, .leitbild-text h2 { margin: 0; font-size: 2.125rem; line-height: 1.2; color: #fff; }
.leitbild-text p { margin: 0; max-width: 42em; color: var(--wp--preset--color--hell-auf-navy); font-size: 1.0625rem; line-height: 1.55; }
.leitbild-text .wp-block-buttons { margin-top: 0.25rem; }
.leitbild-text .wp-block-button__link { background: #fff; color: var(--wp--preset--color--akzent); font-weight: 700; padding: 0.75rem 1.25rem; }
.leitbild-text .wp-block-button__link:hover { background: var(--wp--preset--color--akzent-hover); color: var(--wp--preset--color--weiss); }

.aktuelles-spalte { display: flex; flex-direction: column; gap: 1.5rem; }
.aktuelles-box { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.aktuelles-box > h2, .aktuelles-box .wp-block-query > h2 {
  margin: 0; background: var(--wp--preset--color--akzent); color: #fff;
  font-size: 1.375rem; padding: 0.9rem 1.5rem;
}
.aktuelles-liste { padding: 0.25rem 1.5rem 1.25rem; }
.aktuelles-liste .wp-block-post-template > li { list-style: none; margin: 0; }
.aktuelles-eintrag { display: block; padding: 0.875rem 0; border-bottom: 1px solid var(--wp--preset--color--linien); text-decoration: none; }
.aktuelles-eintrag:last-child { border-bottom: 0; }
.aktuelles-eintrag .wp-block-post-date { display: block; font-size: 0.8125rem; color: var(--wp--preset--color--label-grau); }
.aktuelles-eintrag .wp-block-post-title { display: block; font-size: 1.0625rem; font-weight: 700; color: var(--wp--preset--color--akzent); margin: 0.2rem 0; }
.aktuelles-eintrag .wp-block-post-excerpt { font-size: 0.9375rem; color: var(--wp--preset--color--text-dunkel); }
.alle-meldungen-link { display: inline-block; margin-top: 0.875rem; font-weight: 700; text-decoration: none; }

.geoeffnet-box { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.geoeffnet-box h2, .geoeffnet-box h3 { margin: 0; font-size: 1.25rem; color: var(--wp--preset--color--akzent); }
.geoeffnet-box p { margin: 0; }

/* Zahlenleiste */
.zahlenleiste { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.zahlenleiste .zahl-item { padding: 1.875rem 1.75rem; display: flex; flex-direction: column; gap: 0.5rem; border-left: 1px solid var(--wp--preset--color--linien); }
.zahlenleiste .zahl-item:first-child { border-left: 0; }
.zahlenleiste .zahl-wert { font-family: var(--wp--preset--font-family--system-serif); font-size: 2.625rem; font-weight: 600; color: var(--wp--preset--color--akzent); line-height: 1; }
.zahlenleiste .zahl-text { font-size: 1rem; line-height: 1.45; }

/* Kacheln + Reiter (Startseite Reihe 3) */
.kacheln-reihe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.kachel {
  position: relative; background: var(--wp--preset--color--kachel);
  padding: 2.75rem 1.875rem 1.875rem; display: flex; flex-direction: column; gap: 0.75rem;
  text-decoration: none; min-height: 376px; box-sizing: border-box; box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  color: #fff;
}
.kachel::before {
  content: ""; position: absolute; top: -14px; left: 1.875rem;
  width: 30px; height: 30px; background: var(--wp--preset--color--kachel-akzent);
}
.kachel h3, .kachel .kachel-titel { margin: 0; font-size: 1.5625rem; line-height: 1.2; color: #fff; }
.kachel p { margin: 0; color: var(--wp--preset--color--hell-auf-navy); font-size: 1rem; line-height: 1.55; }
.kachel .kachel-mehr { margin-top: auto; font-size: 1rem; font-weight: 700; color: #fff; }
.kachel:hover { background: var(--wp--preset--color--akzent-hover); }

.reiter-spalte { display: flex; flex-direction: column; gap: 0.5rem; }
.reiter-spalte a {
  height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem; color: #fff; font-size: 1.0625rem; font-weight: 700; text-decoration: none;
  background: var(--wp--preset--color--akzent);
}
.reiter-spalte a:hover { background: var(--wp--preset--color--akzent-hover); }
.reiter-spalte a.reiter-sekundaer { background: var(--wp--preset--color--navigation); }
.reiter-spalte a.reiter-sekundaer:hover { background: var(--wp--preset--color--menu-hover); }

/* Besuchsinformation (Startseite Reihe 4) */
.besuch-box { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); padding: 2.25rem 2.5rem; }
.besuch-box h2 { margin: 0 0 1.375rem; font-size: 1.75rem; color: var(--wp--preset--color--akzent); }
.besuch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.besuch-grid .besuch-label { display: block; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--label-grau); font-weight: 700; margin-bottom: 0.375rem; }
.besuch-grid p { margin: 0 0 0.375rem; }

/* ===== Unterseiten ===== */
.brotkrumen { display: flex; gap: 0.5rem; flex-wrap: wrap; font-size: 0.9375rem; color: var(--wp--preset--color--text-mittel); margin-bottom: 1.375rem; }
.brotkrumen a { color: var(--wp--preset--color--text-mittel); }
.brotkrumen .aktuell { color: var(--wp--preset--color--text); font-weight: 600; }

.unterseite-grid { display: grid; grid-template-columns: 288px 1fr; gap: 1.5rem; align-items: start; }
.bereich-nav { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); margin-bottom: 1.5rem; }
.bereich-nav .bereich-titel { display: block; background: var(--wp--preset--color--akzent); color: #fff; font-size: 1.1875rem; padding: 0.875rem 1.25rem; font-family: var(--wp--preset--font-family--system-serif); font-weight: 600; }
.bereich-nav ul { list-style: none; margin: 0; padding: 0.5rem 0; }
.bereich-nav li { list-style: none; }
.bereich-nav a { display: block; padding: 0.6875rem 1.25rem; font-size: 1rem; text-decoration: none; color: var(--wp--preset--color--text); }
.bereich-nav a:hover { background: var(--wp--preset--color--hauptbereich); }
.bereich-nav a.aktiv { background: var(--wp--preset--color--aktiv-hell); color: var(--wp--preset--color--akzent); font-weight: 700; }

.besuchen-box { background: var(--wp--preset--color--akzent); color: var(--wp--preset--color--hell-auf-navy); padding: 1.375rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9375rem; line-height: 1.5; }
.besuchen-box .titel { font-family: var(--wp--preset--font-family--system-serif); font-size: 1.1875rem; font-weight: 600; color: #fff; }
.besuchen-box a { color: #fff; font-weight: 700; }

.inhalt-artikel { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); padding: 3rem 3.5rem 2.75rem; display: flex; flex-direction: column; gap: 1.75rem; }
.inhalt-artikel .ueberschrift-block { display: flex; flex-direction: column; gap: 0.625rem; }
.inhalt-artikel .overline { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--label-grau); font-weight: 700; }
.inhalt-artikel h1 { margin: 0; font-size: 2.75rem; line-height: 1.15; color: var(--wp--preset--color--akzent); }
.inhalt-artikel > .wp-block-post-content,
.inhalt-artikel .inhalt-text { border-top: 1px solid var(--wp--preset--color--linien); padding-top: 1.75rem; font-size: 1.0625rem; line-height: 1.65; }
.inhalt-artikel blockquote {
  margin: 0.375rem 0; padding: 1.5rem 1.75rem; background: var(--wp--preset--color--aktiv-hell);
  font-family: var(--wp--preset--font-family--system-serif); font-size: 1.375rem; line-height: 1.45; color: var(--wp--preset--color--akzent);
  border: 0;
}

.jahreszahl-eintrag { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.25rem 2rem; margin-bottom: 1.25rem; }
.jahreszahl-eintrag .jahr { font-family: var(--wp--preset--font-family--system-serif); font-size: 1.75rem; font-weight: 600; color: var(--wp--preset--color--akzent); line-height: 1.2; }
.jahreszahl-eintrag .jahr-inhalt { display: flex; flex-direction: column; gap: 1rem; }
.jahreszahl-eintrag .jahr-inhalt p { margin: 0; }

.seiten-navigation { border-top: 1px solid var(--wp--preset--color--linien); padding-top: 1.375rem; display: flex; justify-content: space-between; font-size: 1rem; font-weight: 700; flex-wrap: wrap; gap: 0.5rem; }
.seiten-navigation a { text-decoration: none; }

/* ===== Footer ===== */
.site-footer { position: relative; background: var(--wp--preset--color--akzent); overflow: hidden; }
.footer-band-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.12; }
.footer-band-bild img { width: 100%; height: 100%; object-fit: cover; }
.footer-inner { position: relative; padding: 3.25rem 1rem 1.75rem; display: flex; flex-direction: column; gap: 2.25rem; }
.footer-spalten { color: var(--wp--preset--color--hell-auf-navy); font-size: 0.9375rem; line-height: 1.6; }
.footer-spalten h3 { font-size: 1.1875rem; margin-bottom: 0.625rem; }
.footer-spalten a { color: #fff; }
.foerderlogo-platz { width: 200px; height: 64px; border: 1px dashed var(--wp--preset--color--linien); display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; color: var(--wp--preset--color--linien); margin-top: 0.5rem; }
.footer-unten { border-top: 1px solid rgba(169,184,214,0.4); padding-top: 1.125rem; font-size: 0.875rem; color: var(--wp--preset--color--meta-muted); flex-wrap: wrap; gap: 0.75rem; }

/* ===== Sonstiges ===== */
.content-box { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }

/* ===== Responsiv < 900px ===== */
@media (max-width: 899px) {
  .kopf-inner { gap: 1.25rem; }
  .kopf-bild { width: 140px; height: 84px; }
  .kopf-bild img { width: 140px; height: 84px; }
  .kopf-titel .wp-block-site-title { font-size: 1.5rem !important; }

  .hauptnavigation .wp-block-navigation__responsive-container-open { display: flex !important; }
  .hauptnavigation:not(.is-menu-open) > .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }

  .leitbild-reihe { grid-template-columns: 1fr; }
  .leitbild-box { min-height: 340px; }
  .zahlenleiste { grid-template-columns: repeat(2, 1fr); }
  .zahlenleiste .zahl-item:nth-child(2n+1) { border-left: 0; }
  .zahlenleiste .zahl-item:nth-child(n+3) { border-top: 1px solid var(--wp--preset--color--linien); }
  .kacheln-reihe { grid-template-columns: 1fr; }
  .besuch-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .unterseite-grid { grid-template-columns: 1fr; }
  .footer-spalten { grid-template-columns: repeat(2, 1fr) !important; }
  .inhalt-artikel { padding: 1.75rem 1.25rem; }
  .inhalt-artikel h1 { font-size: 2rem; }
  .jahreszahl-eintrag { grid-template-columns: 1fr; gap: 0.375rem; }
}

@media (min-width: 900px) {
  .hauptnavigation .wp-block-navigation__responsive-container-open,
  .hauptnavigation .wp-block-navigation__responsive-container-close { display: none !important; }
  .hauptnavigation .wp-block-navigation__responsive-container {
    display: block !important; position: static !important; width: auto !important; height: auto !important;
    background: transparent !important; z-index: auto;
  }
  .hauptnavigation .wp-block-navigation__responsive-container-content { padding: 0 !important; }
  .hauptnavigation ul.wp-block-navigation__container { display: flex !important; }
}
