/**
 * K21 campaign theme — lime + park photo, Dropbits structure (not a Divi clone).
 */
:root {
  --color-bg: #1a2114;
  --color-surface: #fffef6;
  --color-content-bg: #fffef6;
  --color-content-fg: #1a1a1a;
  --color-content-heading: #14180f;
  --color-text: #14180f;
  --color-muted: #3d4634;
  --color-primary: #2a331c;
  --color-accent: #c9d51b;
  --color-accent-deep: #a8b310;
  --color-border: #d5d8c4;
  --color-link: #0a4e86;
  --color-link-hover: #083964;
  --color-header-bg: #cbe043;
  --color-header-fg: #14180f;
  --color-nav-fg: var(--color-header-fg);
  --color-brand: #14180f;
  --color-hero-bg: rgb(20 24 15 / 0.42);
  --color-hero-fg: #fffef6;
  --color-scrim: rgb(255 254 246 / 0.92);
  --max-width: 40rem;
  --space: 1.25rem;
  --radius: 2px;
  --header-h: 4.25rem;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --font-ui: Poly, Georgia, "Times New Roman", serif;
  --hero-aspect-ratio: auto;
  --hero-max-height: none;
  --nav-mobile-max: 900px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Privacy-respecting: local() first, then vendored woff2 — no Google Fonts runtime. */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local("Source Sans 3"), local("Source Sans Pro"),
    url("assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poly";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Poly"),
    url("assets/fonts/poly-latin-400-normal.woff2") format("woff2");
}

html {
  font-size: 17px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

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

a {
  color: var(--color-link);
  text-underline-offset: 0.14em;
}

a:hover {
  color: var(--color-link-hover);
}

/* Fixed park photo — slower than content (does not scroll). */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #2a331c;
  background-image: url("assets/parkerweiterung.jpg");
  background-image: -webkit-image-set(
    url("assets/parkerweiterung.webp") type("image/webp"),
    url("assets/parkerweiterung.jpg") type("image/jpeg")
  );
  background-image: image-set(
    url("assets/parkerweiterung.avif") type("image/avif"),
    url("assets/parkerweiterung.webp") type("image/webp"),
    url("assets/parkerweiterung.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

/* Subtle compositor drift where supported; off when reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .site-bg {
      inset: auto;
      top: -8vh;
      right: 0;
      bottom: -8vh;
      left: 0;
      animation: k21-bg-drift linear both;
      animation-timeline: scroll();
    }

    @keyframes k21-bg-drift {
      to {
        transform: translate3d(0, 8vh, 0);
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-bg {
    animation: none;
    transform: none;
  }
}

.site-frame {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  min-height: var(--header-h);
  padding: 0.45rem clamp(1rem, 4vw, 2rem);
  background: var(--color-header-bg);
  color: var(--color-header-fg);
  border-bottom: 3px solid var(--color-accent-deep);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.08);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--color-brand);
}

.site-logo {
  width: auto;
  height: 2.6rem;
  max-width: 7.5rem;
  object-fit: contain;
}

.site-brand-text {
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
  padding: 0.4rem 0.45rem;
  border: 1px solid rgb(20 24 15 / 0.25);
  background: var(--color-header-bg);
  color: inherit;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
}

.site-nav > .nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem 1.1rem;
}

.site-nav a {
  font-family: var(--font-body);
  color: var(--color-nav-fg);
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

html.db-nav-compact .site-header .nav-toggle {
  display: flex;
}

html.db-nav-compact .site-header .main-nav.site-nav {
  display: none;
  width: 100%;
  order: 3;
  flex-basis: 100%;
}

html.db-nav-compact .site-header .main-nav.site-nav.open {
  display: block;
}

html.db-nav-compact .site-header .main-nav.site-nav.open > .nav-links {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  padding: 0.35rem 0 0.5rem;
}

html.db-nav-compact .site-header .main-nav.site-nav.open > .nav-links a {
  display: block;
  padding: 0.55rem 0.15rem;
}

.db-page-body {
  flex: 1 1 auto;
  padding-block: 1.25rem 3rem;
}

.region-main {
  padding-inline: clamp(1rem, 4vw, 1.75rem);
}

.region-main > section.db-widget {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 1.15rem 1.25rem 1.25rem;
  background: var(--color-scrim);
  border: 1px solid rgb(20 24 15 / 0.08);
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.12);
}

.region-main > section.db-widget + section.db-widget {
  margin-top: 1.25rem;
}

.region-hero {
  padding: 0;
}

article[data-page="home"] .hero-jumbo {
  aspect-ratio: auto;
  max-height: none;
  min-height: 0;
  background: transparent;
  overflow: visible;
}

article[data-page="home"] .hero-inner {
  position: relative;
  inset: auto;
  display: block;
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding: 0 clamp(1rem, 4vw, 1.75rem);
}

article[data-page="home"] .hero-title-box {
  padding: 1.35rem 1.4rem 1.45rem;
  background: color-mix(in srgb, #14180f 58%, transparent);
  color: var(--color-hero-fg);
  box-shadow: 0 10px 32px rgb(0 0 0 / 0.22);
}

article[data-page="home"] .hero-title {
  font-family: var(--font-ui);
  font-size: clamp(1.7rem, 4.4vw, 2.35rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--color-hero-fg);
  text-shadow: none;
}

article[data-page="home"] .hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  font-weight: 400;
  line-height: 1.4;
  color: color-mix(in srgb, var(--color-hero-fg) 88%, var(--color-accent));
  text-shadow: none;
}

.hero-media img {
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#home_neu_hier h2,
[data-widget-id="home_neu_hier"] h2,
.db-listing-section-heading {
  font-family: var(--font-ui);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 400;
  margin: 0 0 0.65em;
}

/* Home teasers: title + date cards on the cream scrim. */
[data-widget-id="home_aktuelles"] .db-listing--cards .db-records {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

[data-widget-id="home_aktuelles"] .db-listing-card {
  background: var(--color-surface);
  border: 1px solid rgb(20 24 15 / 0.1);
  border-left: 4px solid var(--color-accent);
  box-shadow: 0 2px 12px rgb(20 24 15 / 0.08);
}

[data-widget-id="home_aktuelles"] .db-listing-card__link {
  display: block;
  padding: 0.8rem 0.95rem 0.9rem;
  color: inherit;
  text-decoration: none;
}

[data-widget-id="home_aktuelles"] .db-listing-card__link:hover .card__title,
[data-widget-id="home_aktuelles"] .db-listing-card__link:focus-visible .card__title {
  color: var(--color-link);
}

[data-widget-id="home_aktuelles"] .db-listing-card__image--empty,
[data-widget-id="home_aktuelles"] .db-listing-card__category:empty {
  display: none;
}

[data-widget-id="home_aktuelles"] .card__title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.28;
  margin: 0 0 0.28rem;
  color: var(--color-content-heading);
}

[data-widget-id="home_aktuelles"] .db-listing-card__meta,
[data-widget-id="home_aktuelles"] .card__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-muted);
}

.headline {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.65em;
  color: var(--color-content-heading);
}

.lede {
  font-size: 1.15em;
  line-height: 1.45;
  margin: 0 0 1em;
}

.callout {
  display: block;
  margin: 1em 0;
  padding: 0.75em 1em;
  border-left: 4px solid var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 16%, var(--color-content-bg));
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.45em 0.9em;
  border: 1px solid var(--color-primary);
  background: var(--color-surface);
  color: inherit;
  text-decoration: none;
  line-height: 1.3;
}

.btn:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Legal nav in chrome footer (Impressum / Kontakt). */
.site-footer {
  margin-top: auto;
  padding: 0.85rem clamp(1rem, 4vw, 2rem) 1.1rem;
  background: var(--color-header-bg);
  color: var(--color-header-fg);
  font-size: 0.92rem;
}

.site-footer .main-nav > .nav-links {
  justify-content: center;
}

.site-footer a {
  color: inherit;
}
