/*
 * WST — Stylesheet des Kind-Themes (lädt nach Pico/Blades und Quark 2).
 *
 * Alle Farben, Schriften und Abstände stehen als Variablen im ersten Block.
 * Für eine andere Farbwelt genügt es, die --wst-*-Werte zu ändern.
 */

/* ---------- Schrift (selbst gehostet) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-wdth.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext-wdth.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Farben und Grundwerte ---------- */
:root,
:root[data-theme="light"] {
  /* Farbpalette – hier zentral ändern */
  --wst-primary: #1f3a5f;        /* Stahlblau: Flächen, Überschriften, Buttons */
  --wst-primary-light: #3a6390;  /* Links, Hover */
  --wst-accent: #5aa9d6;         /* Linien, Markierungen, Fokus (nicht für Text auf Weiß) */
  --wst-surface: #eef3f8;        /* helle Fläche für Bänder */
  --wst-text: #24292f;           /* Fließtext */
  --wst-muted: #6b7785;          /* Nebeninformationen */
  --wst-white: #ffffff;
  --wst-line: #d5dee8;           /* Trennlinien */

  /* Schrift */
  --wst-font: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --wst-display-stretch: 72%;    /* schmal laufende Überschriften */

  /* Maße */
  --wst-wrap: 1200px;
  --wst-gutter: clamp(1rem, 4vw, 2rem);
  --wst-gap: clamp(1.25rem, 3vw, 2.5rem);
  --wst-radius: 3px;
  --wst-section: clamp(3rem, 7vw, 6rem);

  /* Quark-2-/Pico-Variablen auf die WST-Palette umlenken */
  --q2-bg: var(--wst-white);
  --q2-bg-elev: var(--wst-white);
  --q2-bg-muted: var(--wst-surface);
  --q2-text: var(--wst-text);
  --q2-text-strong: var(--wst-primary);
  --q2-text-muted: var(--wst-muted);
  --q2-text-inverse: var(--wst-white);
  --q2-accent: var(--wst-primary);
  --q2-link: var(--wst-primary-light);
  --q2-focus-ring: var(--wst-accent);
  --q2-divider: var(--wst-line);
  --q2-nav-bg: rgba(255, 255, 255, 0.96);
  --q2-nav-border: var(--wst-line);
  --q2-radius: var(--wst-radius);
  --q2-radius-sm: var(--wst-radius);
  --q2-radius-md: var(--wst-radius);
  --q2-header-height: 84px;

  --pico-font-family-sans-serif: var(--wst-font);
  --pico-font-family-display: var(--wst-font);
  --pico-font-size: 17px;
  --pico-line-height: 1.6;
  --pico-background-color: var(--wst-white);
  --pico-color: var(--wst-text);
  --pico-h1-color: var(--wst-primary);
  --pico-h2-color: var(--wst-primary);
  --pico-h3-color: var(--wst-primary);
  --pico-h4-color: var(--wst-primary);
  --pico-primary: var(--wst-primary-light);
  --pico-primary-hover: var(--wst-primary);
  --pico-primary-background: var(--wst-primary);
  --pico-primary-border: var(--wst-primary);
  --pico-primary-focus: rgba(90, 169, 214, 0.45);
  --pico-primary-inverse: var(--wst-white);
  --pico-muted-color: var(--wst-muted);
  --pico-muted-border-color: var(--wst-line);
  --pico-form-element-background-color: var(--wst-white);
  --pico-form-element-border-color: #b7c4d3;
  --pico-form-element-focus-color: var(--wst-accent);
  --pico-border-radius: var(--wst-radius);

  color-scheme: light;
}

html {
  background: var(--wst-white);
  color-scheme: light;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--wst-font);
  font-feature-settings: normal;
  color: var(--wst-text);
  background: var(--wst-white);
}

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
  font-family: var(--wst-font);
  font-stretch: var(--wst-display-stretch);
  font-weight: 700;
  color: var(--wst-primary);
  letter-spacing: -0.005em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.15; }
h4 { font-size: 1.15rem; }
/* Quark 2 setzt eine kurze Linie über jede h2 – im WST-Design übernehmen Rahmenlinien diese Rolle */
h2::before { content: none !important; display: none !important; }

p, li, dd { text-wrap: pretty; }

a {
  color: var(--wst-primary-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--wst-primary); }

:focus-visible {
  outline: 3px solid var(--wst-accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--wst-primary);
  color: var(--wst-white);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--wst-white); }

/* Listen ohne Aufzählungszeichen (Pico setzt sonst eckige Punkte) */
.gallery > li, .service-list > li, .news-list > li, .download-list > li,
.chips li, .footer-legal li { list-style: none; }
.page-aside ul { padding-left: 1.1rem; }
.page-aside li { margin-bottom: 0.35rem; }

/* ---------- Raster ---------- */
.wrap {
  width: 100%;
  max-width: var(--wst-wrap);
  margin-inline: auto;
  padding-inline: var(--wst-gutter);
}
.section-pad { padding-block: var(--wst-section); }
.section-pad--top0 { padding-top: 0; }

.section-title { margin-bottom: 1.25rem; }

.prose { max-width: 68ch; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 0.9rem; }
.prose h3 { margin-top: 2rem; margin-bottom: 0.6rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.35rem; }
.prose li::marker { color: var(--wst-primary-light); }
.prose--lead > p:first-child {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  color: var(--wst-primary);
}

/* ---------- Buttons ---------- */
.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--wst-primary);
  border-radius: var(--wst-radius);
  background: var(--wst-primary);
  color: var(--wst-white);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover, a.btn:hover { background: var(--wst-primary-light); border-color: var(--wst-primary-light); color: var(--wst-white); }
.btn.btn--light { background: var(--wst-white); border-color: var(--wst-white); color: var(--wst-primary); }
.btn.btn--light:hover { background: var(--wst-surface); border-color: var(--wst-surface); color: var(--wst-primary); }
.btn.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.75); color: var(--wst-white); }
.btn.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--wst-white); color: var(--wst-white); }

/* ---------- Kopfzeile ---------- */
#header {
  background: var(--q2-nav-bg);
  border-bottom: 1px solid var(--wst-line);
}
body.scrolled #header { box-shadow: 0 6px 20px -14px rgba(31, 58, 95, 0.45); }

.navbar-brand img {
  height: 56px;
  width: auto;
  transition: height 0.2s ease;
}
.header-animated.scrolled .navbar-brand img { height: 44px; }

.dropmenu > ul,
.dropmenu ul.navigation { gap: 0.1rem; }

.dropmenu a {
  font-family: var(--wst-font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--wst-primary);
  padding: 0.55rem 0.7rem;
  border-radius: var(--wst-radius);
  letter-spacing: 0;
}
.dropmenu a:hover { background: var(--wst-surface); color: var(--wst-primary); }
/* aktiver Menüpunkt: Linie unter dem Wort statt gefüllter Fläche */
.dropmenu > ul > li > a.active,
.dropmenu > ul > li > a.active:hover {
  background: transparent;
  color: var(--wst-primary);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--wst-accent);
  border-radius: 0;
}
.dropmenu li > ul {
  border-radius: var(--wst-radius);
  box-shadow: 0 14px 30px -14px rgba(31, 58, 95, 0.35), 0 0 0 1px var(--wst-line);
  min-width: 240px;
}
.dropmenu li > ul a.active,
.dropmenu li > ul a.active:hover {
  background: var(--wst-surface);
  color: var(--wst-primary);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 0.9rem;
  border-radius: var(--wst-radius);
  background: var(--wst-primary);
  color: var(--wst-white);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-decoration: none;
}
.header-phone:hover { background: var(--wst-primary-light); color: var(--wst-white); }

/* Zwischen Tablet und kleinem Desktop: Telefon ausblenden, damit das Menü passt */
@media (max-width: 1100px) {
  .navbar-section.actions { display: none; }
  .dropmenu a { padding-inline: 0.5rem; font-size: 0.95rem; }
}

/* ---------- Mobilmenü ---------- */
@media (max-width: 860px) {
  .navbar-brand img { height: 44px; }
  #header .navbar { min-height: 64px; }
}
.button_container {
  border-radius: var(--wst-radius) !important;
  background: var(--wst-primary) !important;
  box-shadow: none !important;
}
.button_container span { background: var(--wst-white) !important; height: 2px !important; }
.overlay { padding: 1.25rem var(--wst-gutter) 2rem; }
.overlay .mobile-logo img { height: 44px; width: auto; }
.overlay .overlay-menu a {
  font-family: var(--wst-font);
  font-stretch: var(--wst-display-stretch);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--wst-primary);
  padding: 0.5rem 0;
}
.overlay .overlay-menu a.active { color: var(--wst-primary-light); }
.overlay .overlay-menu ul ul { border-left-color: var(--wst-accent); }
.overlay .overlay-menu ul ul a {
  font-stretch: 100%;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--wst-text);
}
.overlay-contact {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--wst-line);
  line-height: 1.9;
  font-weight: 600;
}
.overlay-contact a { color: var(--wst-primary); text-decoration: none; }

/* ---------- Startseite: Titelbild ---------- */
.home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(82vh, 760px);
  color: var(--wst-white);
  background: var(--wst-primary);
}
.home-hero__img,
.home-hero__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
/* Verlauf aus Stahlblau: hält die Schrift auf jedem Foto lesbar */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(20, 38, 62, 0.92) 0%, rgba(20, 38, 62, 0.55) 45%, rgba(20, 38, 62, 0.1) 80%),
    linear-gradient(to right, rgba(20, 38, 62, 0.55), rgba(20, 38, 62, 0) 70%);
}
.home-hero__text { padding-block: clamp(3rem, 9vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.home-hero h1 {
  max-width: 14ch;
  margin: 0 0 1.25rem;
  color: var(--wst-white);
  font-size: clamp(3rem, 9vw, 7.25rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.home-hero__lead {
  max-width: 46ch;
  margin-bottom: 1.75rem;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

/* Einmalige Einblendung beim Laden – nur ohne reduzierte Bewegung */
@media (prefers-reduced-motion: no-preference) {
  .home-hero h1,
  .home-hero__lead,
  .home-hero__actions {
    animation: wst-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .home-hero__lead { animation-delay: 0.12s; }
  .home-hero__actions { animation-delay: 0.22s; }
}
@keyframes wst-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Unterseiten: Titelbild ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(240px, 36vw, 440px);
  background: var(--wst-primary);
  color: var(--wst-white);
}
.page-hero picture,
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(20, 38, 62, 0.88), rgba(20, 38, 62, 0.15) 70%);
}
.page-hero__text { padding-block: 2rem clamp(1.75rem, 4vw, 2.75rem); }
.page-hero h1 {
  margin: 0;
  color: var(--wst-white);
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 0.95;
}
.page-hero__parent { margin: 0 0 0.5rem; font-weight: 600; color: var(--wst-white); }
.page-hero__parent a { color: inherit; text-decoration: none; opacity: 0.85; }
.page-hero__parent a:hover { opacity: 1; text-decoration: underline; }

.page-title {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: 0.5rem;
}
.page-title h1 { margin: 0; font-stretch: 62%; font-weight: 800; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 0.98; }
.page-title .page-hero__parent a { color: var(--wst-primary-light); }
.post-date { margin: 0.75rem 0 0; color: var(--wst-muted); }

/* ---------- Inhaltsseite mit Randspalte ---------- */
.page-body.has-aside {
  display: grid;
  gap: var(--wst-gap);
}
@media (min-width: 960px) {
  .page-body.has-aside { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}
.page-aside {
  padding: 1.5rem;
  background: var(--wst-surface);
  border-left: 4px solid var(--wst-primary);
}
.page-aside > :last-child { margin-bottom: 0; }
.page-aside h2, .page-aside h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }

/* ---------- Startseite: Einleitung und Eckdaten ---------- */
.home-intro {
  display: grid;
  gap: var(--wst-gap);
}
@media (min-width: 960px) {
  .home-intro { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
}
.facts {
  margin: 0;
  border-top: 3px solid var(--wst-primary);
}
.facts__row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--wst-line);
}
.facts dt { margin: 0; color: var(--wst-muted); font-weight: 500; }
.facts dd { margin: 0; color: var(--wst-primary); font-weight: 600; }
@media (max-width: 420px) {
  .facts__row { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- Leistungen ---------- */
.band { background: var(--wst-surface); }
.band__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1.75rem;
}
.band__head .section-title { margin: 0; }
.band__head p { max-width: 60ch; margin: 0; }

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem) var(--wst-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.service { margin: 0; }
.service__link { display: block; color: inherit; text-decoration: none; }
.service__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--wst-line);
}
.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service__link:hover .service__media img { transform: scale(1.03); }
.service__title {
  margin: 0.9rem 0 0.35rem;
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
}
.service__link:hover .service__title { color: var(--wst-primary-light); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.service__text { margin: 0; color: var(--wst-text); }

/* ---------- Bildband mit Text (Start) ---------- */
.feature { display: grid; gap: var(--wst-gap); align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; } }
.feature__media img { width: 100%; height: auto; display: block; }
.feature__text { max-width: 60ch; }
.link-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.25rem; font-weight: 600; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery li { margin: 0; }
.gallery__link { display: block; overflow: hidden; background: var(--wst-line); }
.gallery__link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.gallery__link:hover img { opacity: 0.85; }
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
}

/* Großansicht */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(14, 26, 43, 0.96);
  color: var(--wst-white);
}
.lightbox::backdrop { background: rgba(14, 26, 43, 0.96); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem var(--wst-gutter);
  font-variant-numeric: tabular-nums;
}
.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 var(--wst-gutter);
}
.lightbox__stage { overflow: hidden; }
.lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; }
.lightbox__nav { display: flex; justify-content: center; gap: 0.75rem; padding: 0.75rem; }
.lightbox button {
  min-width: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--wst-radius);
  background: transparent;
  color: var(--wst-white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Referenzen ---------- */
.chips ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.chips li { margin: 0; }
.chips a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--wst-line);
  border-radius: var(--wst-radius);
  color: var(--wst-primary);
  font-weight: 600;
  text-decoration: none;
}
.chips a:hover { border-color: var(--wst-primary); background: var(--wst-surface); }
.ref-group { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.ref-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 3px solid var(--wst-primary);
}
.ref-group__head .section-title { margin: 0; }
.ref-group__head a { font-weight: 600; }

/* ---------- Downloads ---------- */
.downloads { margin-top: 2.5rem; }
.downloads h2 { margin-top: 0; }
.download-list { list-style: none; margin: 0; padding: 0 !important; border-top: 1px solid var(--wst-line); }
.download-list li { margin: 0; padding: 0; border-bottom: 1px solid var(--wst-line); }
.download-list a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 1rem 0.25rem;
  text-decoration: none;
  color: var(--wst-primary);
}
.download-list a:hover { background: var(--wst-surface); }
.download-list__title { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.download-list__meta { color: var(--wst-muted); font-size: 0.95rem; }
.download-list p { margin: -0.5rem 0.25rem 1rem; color: var(--wst-muted); font-size: 0.95rem; }

/* ---------- Aktuelles ---------- */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wst-gap); }
.news-item { margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 760px) {
  .news-list:not(.news-list--compact) .news-item { grid-template-columns: 320px 1fr; align-items: start; }
}
.news-item__media img { width: 100%; height: auto; display: block; }
.news-item time { color: var(--wst-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.news-item h2, .news-item h3 { margin: 0.2rem 0 0.5rem; font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.news-item h2 a, .news-item h3 a { color: var(--wst-primary); text-decoration: none; }
.news-item h2 a:hover, .news-item h3 a:hover { text-decoration: underline; }
.news-item p { margin: 0; }
.news-list--compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.news-list--compact .news-item { padding-top: 1rem; border-top: 3px solid var(--wst-primary); }

.post__figure { margin: 2rem 0; max-width: 900px; }
.post__figure img { width: 100%; height: auto; display: block; }
.post-back { margin-top: 2.5rem; font-weight: 600; }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: var(--wst-gap); }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
.contact-data {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.6rem 1rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 3px solid var(--wst-primary);
}
.contact-data dt { margin: 0; color: var(--wst-muted); }
.contact-data dd { margin: 0; color: var(--wst-primary); font-weight: 600; }
.contact__form {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--wst-surface);
}
.contact__form .form-label { font-weight: 600; color: var(--wst-primary); }
.contact__form input:not([type="checkbox"]):not([type="radio"]),
.contact__form textarea { background: var(--wst-white); }
.contact__form .form-checkbox label,
.contact__form .checkboxes label { font-weight: 400; color: var(--wst-text); }
.contact__form button[type="submit"],
.contact__form .button {
  width: auto;
  min-height: 48px;
  padding: 0.7rem 1.6rem;
  border: 2px solid var(--wst-primary);
  border-radius: var(--wst-radius);
  background: var(--wst-primary);
  color: var(--wst-white);
  font-weight: 600;
}
.contact__form button[type="submit"]:hover { background: var(--wst-primary-light); border-color: var(--wst-primary-light); }
.contact__form .required { color: #b42318; }

.notice {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--wst-accent);
  background: var(--wst-surface);
  color: var(--wst-primary);
  font-weight: 500;
}
.notice--error { border-left-color: #b42318; }

/* ---------- Handlungsaufforderung ---------- */
.cta { background: var(--wst-primary); color: var(--wst-white); }
.cta__inner { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.cta__title {
  max-width: 22ch;
  margin: 0 0 0.75rem;
  color: var(--wst-white);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 1;
}
.cta__text { margin: 0 0 1.5rem; color: rgba(255, 255, 255, 0.85); max-width: 50ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

/* ---------- Fußzeile ---------- */
#footer {
  --pico-color: rgba(255, 255, 255, 0.86);  /* Pico färbt p, address, dd über diese Variable */
  padding: 0;
  border-top: 0;
  background: #172c48;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  text-align: left;
}
#footer address, #footer dd, #footer p { color: rgba(255, 255, 255, 0.86); }
#footer a { color: var(--wst-white); }
.footer-grid {
  display: grid;
  gap: 1.75rem var(--wst-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
}
.footer-block address { font-style: normal; line-height: 1.6; margin: 0; }
.footer-name { margin: 0 0 0.5rem; color: var(--wst-white); font-weight: 700; }
.footer-contact { display: grid; grid-template-columns: 5rem 1fr; gap: 0.3rem 0.75rem; margin: 0; }
.footer-contact dt { margin: 0; color: rgba(255, 255, 255, 0.62); }
.footer-contact dd { margin: 0; }
#footer .footer-legal ul { display: block; list-style: none; margin: 0; padding: 0; }
.footer-legal li { display: block; padding: 0; }
.footer-legal a { display: inline-block; margin: 0; padding: 0.15rem 0; }
.footer-legal li { margin: 0 0 0.35rem; }
.footer-legal li::before { content: none; }
.footer-base {
  padding-block: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}
.footer-base p { margin: 0; color: rgba(255, 255, 255, 0.62); }

/* ---------- Rechtstexte ---------- */
.tpl-default .prose table { font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
