:root {
  --paper: #f8f6ef;
  --ink: #171313;
  --muted: #63584e;
  --green: #43b02a;
  --green-dark: #236f19;
  --yellow: #f1e51d;
  --white: #fff;
  --wrap: min(1220px, calc(100vw - 36px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}
main { flex: 1 0 auto; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.zsf-wrap { width: var(--wrap); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
.custom-logo-link { display: block; }
.custom-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 50%; }

/* Fallback layout used before the imported per-page styles are available. */
.topbar { position: relative; z-index: 100; padding: 10px 0; }

/* WordPress adds a fixed administration bar for signed-in editors. */
body.admin-bar .topbar {
  top: 32px;
}

body.admin-bar .page-hero {
  padding-top: calc(clamp(132px, 16vh, 174px) + 32px);
}

.topbar-inner {
  width: var(--wrap);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.brand > img { width: 56px; height: 56px; object-fit: contain; border-radius: 50%; }
.brand strong { display: block; font: 900 30px/1 "Roboto Slab", serif; }
.brand span span { display: block; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.menu-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.menu-button { display: none; }
.nav { display: flex; align-items: center; gap: 5px; }
.nav-item { position: relative; }
.nav a { display: inline-flex; padding: 9px 11px; border-radius: 999px; font-weight: 700; }
.nav a:hover, .nav a:focus-visible { color: #fff; background: var(--ink); }
.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  padding: 8px;
  display: none;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(23,19,19,.18);
}
.nav-item:hover .submenu, .nav-item:focus-within .submenu { display: grid; }
.submenu a { border-radius: 10px; }
.nav-social { display: inline-flex; align-items: center; gap: 5px; }
.nav .social-link { width: 34px; height: 34px; padding: 7px; align-items: center; justify-content: center; }
.social-link img, .social-link svg { width: 100%; height: 100%; object-fit: contain; fill: currentColor; }
footer { margin-top: auto; padding: 28px 0; color: #fff; background: var(--ink); }
.footer-inner { width: var(--wrap); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.zsf-page-hero { padding: 120px 0 70px; background: linear-gradient(135deg, #fff, #eaf4dd); }
.zsf-page-hero h1 { max-width: 900px; margin: 0; font: 900 clamp(42px, 7vw, 86px)/.98 "Roboto Slab", serif; }
.zsf-kicker { margin: 0 0 12px; color: var(--green-dark); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.zsf-content, .zsf-listing { padding-block: 64px; }
.zsf-content { max-width: 900px; font-size: 18px; }
.zsf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.zsf-card { overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 18px 50px rgba(23,19,19,.1); }
.zsf-card-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.zsf-card-body { padding: 24px; }
.zsf-card h2 { margin: 4px 0 12px; font-family: "Roboto Slab", serif; }
.zsf-meta { color: var(--muted); font-size: 14px; font-weight: 800; }
.zsf-button {
  display: inline-flex;
  margin-top: 12px;
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--green-dark);
  font-weight: 900;
}

/* Friendly 404 page. */
.zsf-error-page {
  display: grid;
  min-height: clamp(580px, calc(100vh - 176px), 820px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(241, 229, 29, .2), transparent 22rem),
    radial-gradient(circle at 88% 12%, rgba(67, 176, 42, .2), transparent 28rem),
    linear-gradient(180deg, #f5faee 0%, var(--paper) 72%);
}
.zsf-error-section {
  position: relative;
  display: grid;
  align-items: center;
  padding: clamp(34px, 7vw, 84px) 0 clamp(54px, 8vw, 96px);
}
.zsf-error-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .25;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(35, 111, 25, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 111, 25, .08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 78%, transparent);
}
.zsf-error-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  max-width: 1080px;
  margin-inline: auto;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid rgba(23, 19, 19, .08);
  border-radius: clamp(28px, 4vw, 46px);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 32px 90px rgba(36, 74, 24, .14);
  backdrop-filter: blur(12px);
}
.zsf-error-card::after {
  content: "";
  position: absolute;
  right: 26%;
  bottom: -16px;
  z-index: -1;
  width: 110px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  transform: rotate(-4deg);
}
.zsf-error-kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.zsf-error-kicker span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  letter-spacing: .05em;
}
.zsf-error-copy h1 {
  max-width: 690px;
  margin: 0;
  font: 900 clamp(46px, 6.5vw, 82px)/.94 "Roboto Slab", Georgia, serif;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.zsf-error-lead {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}
.zsf-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.zsf-error-button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.zsf-error-button:hover,
.zsf-error-button:focus-visible {
  transform: translateY(-2px);
}
.zsf-error-button--primary {
  color: #fff;
  background: var(--green-dark);
  box-shadow: 0 12px 28px rgba(35, 111, 25, .24);
}
.zsf-error-button--primary:hover,
.zsf-error-button--primary:focus-visible {
  background: #185c12;
  box-shadow: 0 16px 34px rgba(35, 111, 25, .3);
}
.zsf-error-button--secondary {
  border-color: rgba(23, 19, 19, .14);
  background: #fff;
}
.zsf-error-button--secondary:hover,
.zsf-error-button--secondary:focus-visible {
  border-color: var(--green-dark);
}
.zsf-error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-top: 34px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
}
.zsf-error-links > span {
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.zsf-error-links a {
  border-bottom: 1px solid rgba(35, 111, 25, .25);
}
.zsf-error-links a:hover,
.zsf-error-links a:focus-visible {
  border-color: currentColor;
}
.zsf-error-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  color: var(--green-dark);
}
.zsf-error-visual::before,
.zsf-error-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}
.zsf-error-visual::before {
  width: 280px;
  height: 280px;
  background: #edf6e4;
}
.zsf-error-visual::after {
  width: 210px;
  height: 210px;
  border: 2px dashed rgba(35, 111, 25, .2);
}
.zsf-error-number {
  font: 900 clamp(66px, 8vw, 112px)/1 "Roboto Slab", Georgia, serif;
  letter-spacing: -.08em;
}
.zsf-error-compass {
  width: clamp(74px, 8vw, 106px);
  margin-inline: -2px;
  color: var(--ink);
  transform: rotate(8deg);
}
.zsf-error-compass svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.zsf-error-compass circle {
  fill: var(--yellow);
  stroke: currentColor;
  stroke-width: 3;
}
.zsf-error-compass circle:nth-of-type(2) {
  fill: #fff;
  stroke-width: 2;
}
.zsf-error-compass circle:last-child {
  fill: currentColor;
  stroke: none;
}
.zsf-error-compass path {
  fill: var(--green);
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 3;
}
.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; gap: 8px; }
.page-numbers { padding: 9px 13px; border-radius: 999px; background: #fff; }
.page-numbers.current { color: #fff; background: var(--green-dark); }

/* Keep long homepage news titles inside the lead card. The imported homepage
   stylesheet uses a deliberately oversized heading, so these selectors are
   intentionally more specific. */
#aktuality .news-lead-content {
  min-width: 0;
  overflow: hidden;
}
#aktuality .news-lead h3 {
  max-width: min(12ch, 100%);
  font-size: clamp(46px, 6.5vw, 88px);
  line-height: .9;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  text-wrap: balance;
}

/* Shared layout for newly created WordPress news posts. Imported posts bring
   their original page styles and override these rules where necessary. */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(132px, 16vh, 174px) 0 54px;
  color: #fff;
  background: var(--ink);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(23, 19, 19, .72), rgba(23, 19, 19, .48)),
    radial-gradient(circle at 18% 20%, rgba(67, 176, 42, .22), transparent 28rem),
    var(--page-hero-image, none) center 35% / cover no-repeat;
}
.page-hero-inner,
.section-inner {
  width: var(--wrap);
  margin-inline: auto;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 700;
}
.breadcrumbs > * + *::before {
  content: "›";
  margin-right: 8px;
  color: var(--yellow);
}
.page-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
  color: var(--yellow);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font: 900 clamp(46px, 7vw, 92px)/.96 "Roboto Slab", Georgia, serif;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.page-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(17px, 2vw, 21px);
}
.content-section {
  flex: 1 0 auto;
}
.section-inner {
  padding: 74px 0 88px;
}
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}
.content-card {
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(23, 19, 19, .08);
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 28px 80px rgba(23, 19, 19, .12);
}
.article-content {
  max-width: 980px;
  width: 100%;
  margin-inline: auto;
}
.article-content > * {
  max-width: 72ch;
  margin-inline: auto;
}
.article-content > .alignwide,
.article-content > .article-featured {
  max-width: 100%;
}
.article-content p,
.article-content li {
  color: var(--muted);
  font-size: 17px;
}
.article-content p {
  margin-top: 0;
  margin-bottom: 1.2em;
}
.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: "Roboto Slab", Georgia, serif;
  line-height: 1.08;
}
.article-content h2 { font-size: clamp(30px, 4vw, 48px); }
.article-content h3 { font-size: clamp(24px, 3vw, 36px); }
.article-featured {
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 36px;
  border-radius: 22px;
}
.article-featured img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}
.article-content .wp-block-image img,
.article-content .wp-block-video video,
.article-content .wp-block-embed iframe {
  border-radius: 18px;
}
.article-navigation {
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(23, 19, 19, .12);
  font-weight: 800;
}
.article-navigation div:last-child {
  text-align: right;
}
.article-navigation a:hover {
  color: var(--green-dark);
}

@media (max-width: 1050px) {
  .topbar-inner { position: relative; }
  .menu-button { display: inline-flex; padding: 10px 16px; border-radius: 999px; color: #fff; background: var(--ink); font-weight: 900; }
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(390px, calc(100vw - 36px));
    padding: 12px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(23,19,19,.2);
  }
  .topbar-inner > .nav {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  .menu-toggle:checked ~ .nav { display: flex; }
  .nav-item, .nav a { width: 100%; }
  .submenu { position: static; display: grid; box-shadow: none; padding-left: 14px; }
  .zsf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zsf-error-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .zsf-error-visual {
    grid-row: 1;
    min-height: 190px;
  }
  .zsf-error-visual::before { width: 230px; height: 230px; }
  .zsf-error-visual::after { width: 170px; height: 170px; }
}

@media (max-width: 680px) {
  .topbar { padding-top: 0; }
  .brand span span { display: none; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .zsf-grid { grid-template-columns: 1fr; }
  .zsf-page-hero { padding-top: 90px; }
  .page-hero { padding-top: 112px; }
  .page-hero-inner,
  .section-inner { width: min(calc(100vw - 24px), 100%); }
  .content-card { border-radius: 20px; }
  .zsf-error-page { min-height: 0; }
  .zsf-error-section { padding-top: 24px; }
  .zsf-error-card {
    gap: 18px;
    padding: 28px 22px 32px;
    border-radius: 26px;
  }
  .zsf-error-card::after { display: none; }
  .zsf-error-visual { min-height: 150px; }
  .zsf-error-visual::before { width: 190px; height: 190px; }
  .zsf-error-visual::after { width: 142px; height: 142px; }
  .zsf-error-actions { align-items: stretch; flex-direction: column; }
  .zsf-error-button { width: 100%; }
  .article-navigation { grid-template-columns: 1fr; }
  .article-navigation div:last-child { text-align: left; }
  #aktuality .news-lead h3 {
    max-width: 100%;
    font-size: clamp(36px, 11vw, 58px);
    line-height: .94;
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar .topbar {
    top: 46px;
  }

  body.admin-bar .page-hero {
    padding-top: 158px;
  }
}
