/* Wilson's Garden — Layout-Ergänzungen (Header-Pills, Home-Prosa, Footer)
   Farbakzente angelehnt an die mitgelieferte css/styles.css (:root --primary / --surface). */

:root {
  /* Abgestimmt auf Wilson’s (Buttons/Karten #c6cf1b / #215c38) + grüner Akzent aus styles.css */
  --wrg-surface: #ffffff;
  --wrg-text: #152238;
  --wrg-primary: #7fb51f;
  --wrg-primary-strong: #5b8f09;
  --wrg-primary-soft: #e4efd5;
  --wrg-primary-mid: #c6e6a8;
  --wrg-accent: #f0b429;
  --wrg-accent-2: #20b486;
  --wrg-glow: rgba(240, 180, 41, 0.34);
  --wrg-brand-dark: #215c38;
  --wrg-brand-lime: #c6cf1b;
  --wrg-header-border: rgba(33, 92, 56, 0.12);
  --wrg-pill-shadow: 0 1px 2px rgba(14, 27, 42, 0.06);
}

/* --- Shell: Menü + Footer bleiben sichtbar, nur #site-home scrollt (eine „Seite“, kein neuer Tab) --- */
html {
  height: 100%;
}

body#top.bg-white {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.wrg-site-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

#site-header {
  flex: 0 0 auto;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(7px);
  box-shadow: 0 1px 0 var(--wrg-header-border), 0 6px 20px rgba(14, 27, 42, 0.05);
}

#site-home.site-home-root {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#site-footer {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(7px);
  box-shadow: 0 -1px 0 rgba(14, 27, 42, 0.08), 0 -6px 20px rgba(14, 27, 42, 0.05);
}

/* --- Header (Bild 1): zentrierte Nav, Pill-Buttons für Textlinks --- */
.wrg-header-wrap {
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
}

.wrg-header-wrap .navbar-nav {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
}

.wrg-header-wrap .navbar-nav .nav-item {
  padding-top: 0 !important;
}

.wrg-header-wrap .nav-link.wrg-pill,
.wrg-footer .nav-link.wrg-pill {
  display: inline-block;
  background: transparent;
  color: var(--wrg-text) !important;
  border-radius: 999px;
  padding: 0.45rem 0.9rem !important;
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: var(--wrg-pill-shadow);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.wrg-header-wrap .nav-link.wrg-pill:hover,
.wrg-header-wrap .nav-link.wrg-pill:focus,
.wrg-footer .nav-link.wrg-pill:hover,
.wrg-footer .nav-link.wrg-pill:focus {
  background: linear-gradient(135deg, rgba(240, 180, 41, 0.22), rgba(32, 180, 134, 0.18));
  color: #0b1a29 !important;
  border-color: rgba(240, 180, 41, 0.32);
  box-shadow: 0 10px 18px rgba(14, 27, 42, 0.12), 0 0 0 1px rgba(32, 180, 134, 0.12);
  transform: translateY(-1px);
}

.wrg-header-wrap .nav-link.wrg-pill.wrg-nav-active,
.wrg-footer .nav-link.wrg-pill.wrg-nav-active {
  background: linear-gradient(135deg, rgba(127, 181, 31, 0.22), rgba(32, 180, 134, 0.18));
  color: #0b1a29 !important;
  border-color: rgba(127, 181, 31, 0.44);
  box-shadow: 0 10px 18px rgba(14, 27, 42, 0.12), 0 0 0 1px rgba(127, 181, 31, 0.14);
  text-decoration: none;
}

.wrg-header-wrap .nav-link.wrg-icon-link.wrg-nav-active {
  background: linear-gradient(135deg, rgba(127, 181, 31, 0.22), rgba(32, 180, 134, 0.18));
  color: #0b1a29 !important;
  box-shadow: 0 10px 18px rgba(14, 27, 42, 0.12), 0 0 0 1px rgba(127, 181, 31, 0.14);
  text-decoration: none;
}

.wrg-header-wrap .nav-link.wrg-icon-link {
  padding: 0.45rem 0.55rem !important;
  color: var(--wrg-text) !important;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.wrg-header-wrap .nav-link.wrg-icon-link:hover,
.wrg-header-wrap .nav-link.wrg-icon-link:focus {
  background: linear-gradient(135deg, rgba(240, 180, 41, 0.22), rgba(32, 180, 134, 0.18));
  color: #0b1a29 !important;
  border-color: rgba(240, 180, 41, 0.32);
  box-shadow: 0 10px 18px rgba(14, 27, 42, 0.12), 0 0 0 1px rgba(32, 180, 134, 0.12);
  transform: translateY(-1px);
}

.wrg-header-wrap .navbar-toggler {
  border-color: rgba(33, 92, 56, 0.25);
}

.wrg-header-wrap .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(240, 180, 41, 0.25);
}

/* Seitenüberschriften oberhalb Intro-Bereichen */
.wrg-page-title-wrap {
  margin-top: 0.7rem;
  margin-bottom: 0.8rem;
  padding-top: 0.15rem;
}

.wrg-page-title {
  font-family: 'Arbutus Slab', serif;
  color: #09572c;
  font-size: clamp(1.85rem, 4.4vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  position: relative;
  display: inline-block;
  text-wrap: balance;
  text-shadow: 0 6px 18px rgba(14, 27, 42, 0.1);
  animation: wrg-title-rise 0.55s ease-out both;
}

.wrg-page-title::after {
  content: "";
  display: block;
  width: min(8.5rem, 40%);
  height: 3px;
  margin: 0.45rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wrg-primary), var(--wrg-accent-2));
  transform-origin: center;
  animation: wrg-title-underline 0.7s ease-out 0.08s both;
}

/* Projektpartner-Seite */
.wrg-projektpartner-lead {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
  color: #4a5560;
  line-height: 1.65;
}

.wrg-projektpartner-section {
  margin-top: 2.2rem;
}

.wrg-projektpartner-section h2 {
  font-family: 'Arbutus Slab', serif;
  color: #08562c;
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  margin-bottom: 0.9rem;
  display: inline-block;
  position: relative;
  padding-bottom: 0.2rem;
}

.wrg-projektpartner-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(127, 181, 31, 0.9), rgba(32, 180, 134, 0.85));
  opacity: 0.95;
}

@keyframes wrg-title-rise {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wrg-title-underline {
  from {
    opacity: 0;
    transform: scaleX(0.55);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wrg-page-title,
  .wrg-page-title::after {
    animation: none;
  }
}

.wrg-partner-card {
  border-radius: 0.85rem;
  border: 1px solid rgba(33, 92, 56, 0.18) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf2 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wrg-partner-card:hover,
.wrg-partner-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(127, 181, 31, 0.45) !important;
  box-shadow: 0 8px 22px rgba(14, 27, 42, 0.12);
}

.wrg-partner-card h3 {
  color: #09572c;
  font-weight: 700;
}

.wrg-partner-card p {
  color: var(--bs-body-color, #212529);
  line-height: 1.65;
}

.wrg-partner-card a {
  color: var(--wrg-primary-strong);
  font-weight: 600;
  word-break: break-word;
}

.wrg-partner-card a:hover,
.wrg-partner-card a:focus-visible {
  color: #0b1a29;
}

/* --- Bad Vöslau-Style CTA-Buttons projektweit --- */
.page-content .btn {
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease;
}

.page-content .btn.btn-primary {
  background: linear-gradient(135deg, var(--wrg-primary), #9acc38, rgba(240, 180, 41, 0.95)) !important;
  color: #0b1a29 !important;
  border: 0 !important;
}

.page-content .btn.btn-primary:hover,
.page-content .btn.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(14, 27, 42, 0.24);
  color: #0b1a29 !important;
}

.page-content .btn.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(127, 181, 31, 0.22), 0 12px 24px rgba(14, 27, 42, 0.2);
}

.page-content .btn.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(14, 27, 42, 0.18);
}

/* --- Home: Kräuter-Story als Card (Bad Vöslau Style) --- */
.wrg-kraeuter-story-wrap {
  margin-bottom: 0.5rem;
}

.wrg-kraeuter-story-card {
  max-width: 56rem;
  margin-inline: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f7fbf2 42%, #ffffff 100%);
  border-radius: 0.9rem;
  border: 1px solid rgba(127, 181, 31, 0.22) !important;
  box-shadow: 0 8px 20px rgba(14, 27, 42, 0.08);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.wrg-kraeuter-story-card:hover,
.wrg-kraeuter-story-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(127, 181, 31, 0.4) !important;
  box-shadow: 0 14px 28px rgba(14, 27, 42, 0.13), 0 0 0 1px rgba(32, 180, 134, 0.14);
}

.wrg-kraeuter-story {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.wrg-kraeuter-story h2 {
  font-family: 'Arbutus Slab', serif;
  color: #08562c;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 1rem;
  text-align: center;
}

.wrg-kraeuter-story .wrg-tagline {
  font-family: 'Arbutus Slab', serif;
  color: #09572c;
  font-size: 1.1rem;
  text-align: center;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.wrg-kraeuter-story p {
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.wrg-kraeuter-story .wrg-subline {
  text-align: center;
  font-style: italic;
  margin-top: 0.5rem;
}

.wrg-kraeuter-story a {
  color: var(--wrg-primary-strong);
  font-weight: 700;
}

.wrg-kraeuter-story a:hover,
.wrg-kraeuter-story a:focus-visible {
  color: #0b1a29;
}

/* --- Footer: kompakte Zeile (nicht über volle Breite verteilt) --- */
.wrg-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

@media (min-width: 992px) {
  .wrg-footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.65rem 1.1rem;
  }

  .wrg-footer-links,
  .wrg-footer-social {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .wrg-footer-copy {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* --- Footer: Kontakt/Impressum = gleiche Pills wie Header; Social = gleiche Farbwelt (kein Bootstrap-Linkblau) --- */
.wrg-footer .wrg-footer-links .nav-link.wrg-pill {
  text-decoration: none !important;
}

.wrg-footer .wrg-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: transparent;
  color: var(--wrg-text) !important;
  border: 1px solid transparent;
  box-shadow: var(--wrg-pill-shadow);
  font-size: 1rem;
  text-decoration: none !important;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.wrg-footer .wrg-icon-btn:hover,
.wrg-footer .wrg-icon-btn:focus {
  background: linear-gradient(135deg, rgba(240, 180, 41, 0.22), rgba(32, 180, 134, 0.18));
  color: #0b1a29 !important;
  border-color: rgba(240, 180, 41, 0.32);
  box-shadow: 0 10px 18px rgba(14, 27, 42, 0.12), 0 0 0 1px rgba(32, 180, 134, 0.12);
  transform: translateY(-1px);
}

.wrg-footer .wrg-icon-btn svg {
  display: block;
}

@media (max-width: 991.98px) {
  .wrg-footer-inner {
    gap: 0.65rem;
  }
}

/* --- Solar-LW: Hero-Foto klickbar, Hover = grüner Rahmen --- */
.wrg-solar-hero-img-link {
  line-height: 0;
  border-radius: 1rem;
  max-width: 100%;
  transition: transform 0.2s ease;
}

.wrg-solar-hero-img-link:hover,
.wrg-solar-hero-img-link:focus-visible {
  transform: translateY(-1px);
}

.wrg-solar-hero-img-link:focus-visible {
  outline: none;
}

.wrg-solar-hero-img-link img {
  border-radius: 1rem;
  border: 1px solid rgba(33, 92, 56, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wrg-solar-hero-img-link:hover img,
.wrg-solar-hero-img-link:focus-visible img {
  border-color: var(--wrg-brand-dark);
  box-shadow: 0 6px 22px rgba(33, 92, 56, 0.14);
  transform: translateY(-1px);
}

/* Solar-LW: Karussell-Bilder mit gleichen Rundungen (Bootstrap rounded-4 ≈ 1rem) */
#carousel-solarlw .carousel-inner img {
  border-radius: 1rem;
}

.wrg-solar-hero-wrap img {
  border-radius: 1rem;
}

/* Solar-LW: klickbare Karten- und Karussell-Bilder (dezent wie Hero) */
.wrg-solar-card-img-link,
.wrg-solar-carousel-img-link {
  line-height: 0;
  border-radius: 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wrg-solar-card-img-link:hover,
.wrg-solar-card-img-link:focus-visible,
.wrg-solar-carousel-img-link:hover,
.wrg-solar-carousel-img-link:focus-visible {
  transform: translateY(-1px);
}

.wrg-solar-card-img-link img,
.wrg-solar-carousel-img-link img {
  border-radius: 1rem;
  border: 1px solid rgba(33, 92, 56, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wrg-solar-card-img-link:hover img,
.wrg-solar-card-img-link:focus-visible img,
.wrg-solar-carousel-img-link:hover img,
.wrg-solar-carousel-img-link:focus-visible img {
  border-color: var(--wrg-brand-dark);
  box-shadow: 0 6px 22px rgba(33, 92, 56, 0.12);
  transform: translateY(-1px);
}

/* --- Editorial-Intro-Karten (Solar-LW, Kräuter-Produkte): Hover = dünner grüner Rahmen --- */
.wrg-solar-intro-wrap .wrg-solar-intro-card,
.wrg-kp-intro-wrap .wrg-kp-intro-card {
  max-width: 52rem;
  background: linear-gradient(180deg, var(--wrg-primary-soft) 0%, #ffffff 42%);
  border-radius: 0.75rem;
  border: 1px solid rgba(33, 92, 56, 0.2) !important;
  box-shadow: 0 1px 4px rgba(14, 27, 42, 0.07);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.wrg-solar-intro-wrap .wrg-solar-intro-card:hover,
.wrg-kp-intro-wrap .wrg-kp-intro-card:hover {
  border-color: var(--wrg-brand-dark) !important;
  box-shadow: 0 6px 22px rgba(33, 92, 56, 0.14);
  transform: translateY(-2px);
  background: #fff;
}

.wrg-solar-intro-wrap .wrg-solar-intro-card:focus-within,
.wrg-kp-intro-wrap .wrg-kp-intro-card:focus-within {
  border-color: var(--wrg-brand-dark) !important;
  box-shadow: 0 0 0 2px rgba(127, 181, 31, 0.35);
}

/* Intro-Text linksbündig, ruhiger Satzspiegel */
.wrg-solar-intro-wrap .wrg-solar-intro-text,
.wrg-kp-intro-wrap .wrg-kp-intro-text {
  text-align: start;
  font-size: clamp(1rem, 0.98rem + 0.35vw, 1.125rem);
  line-height: 1.72;
  color: var(--bs-body-color, #212529);
  max-width: 48rem;
  margin-inline: 0;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

.wrg-solar-intro-wrap .wrg-solar-intro-text > p + p,
.wrg-kp-intro-wrap .wrg-kp-intro-text > p + p {
  margin-top: 0.9rem;
}

.wrg-ws-intro-wrap .wrg-ws-intro-text {
  text-align: start;
  font-size: clamp(1rem, 0.98rem + 0.35vw, 1.125rem);
  line-height: 1.72;
  color: var(--bs-body-color, #212529);
  max-width: 48rem;
  margin-inline: 0;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

.wrg-ws-intro-wrap .wrg-ws-intro-text > p + p {
  margin-top: 0.9rem;
}

.wrg-ws-intro-img-wrap {
  padding: 0.35rem 0;
}

@media (min-width: 768px) {
  .wrg-ws-intro-img-wrap {
    padding: 0.25rem 0 0.25rem 0.75rem;
  }
}

.wrg-ws-intro-photo {
  max-width: min(100%, 520px);
  width: auto;
  height: auto;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(14, 27, 42, 0.09);
}

.wrg-solar-intro-wrap .wrg-solar-intro-accent,
.wrg-kp-intro-wrap .wrg-kp-intro-accent {
  color: rgb(47, 57, 67);
  font-weight: 600;
}

/* Kräuter-Produkte: Sprichwort + Foto neben der Karte */
.wrg-kp-intro-pullquote {
  font-style: italic;
  font-weight: 500;
  color: var(--wrg-brand-dark, #215c38);
  font-size: clamp(1.05rem, 1rem + 0.45vw, 1.2rem);
  line-height: 1.55;
}

.wrg-kp-intro-img-wrap {
  padding: 0.35rem 0;
}

@media (min-width: 768px) {
  .wrg-kp-intro-img-wrap {
    padding: 0.25rem 0 0.25rem 0.75rem;
  }
}

.wrg-kp-intro-photo {
  max-width: min(100%, 440px);
  width: auto;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(33, 92, 56, 0.2);
  box-shadow: 0 1px 4px rgba(14, 27, 42, 0.09);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wrg-kp-intro-photo-link {
  display: inline-block;
  width: auto;
  max-width: 100%;
  line-height: 0;
  border-radius: 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wrg-kp-intro-photo-link:hover,
.wrg-kp-intro-photo-link:focus-visible {
  box-shadow: 0 6px 22px rgba(33, 92, 56, 0.14), 0 0 0 2px rgba(127, 181, 31, 0.35);
  transform: translateY(-1px);
}

.wrg-kp-intro-photo-link:hover .wrg-kp-intro-photo,
.wrg-kp-intro-photo-link:focus-visible .wrg-kp-intro-photo,
.wrg-kp-intro-photo-link:hover .wrg-ws-intro-photo,
.wrg-kp-intro-photo-link:focus-visible .wrg-ws-intro-photo {
  border-color: var(--wrg-brand-dark);
  box-shadow: 0 6px 22px rgba(33, 92, 56, 0.14);
  transform: translateY(-1px);
}

.wrg-kp-intro-photo-modal {
  max-height: min(82vh, 1100px);
  width: auto;
}

@media (prefers-reduced-motion: reduce) {
  .page-content .btn,
  .page-content .btn:hover,
  .page-content .btn:focus-visible,
  .page-content .btn:active {
    transition: none;
    transform: none;
  }

  .wrg-kp-intro-photo,
  .wrg-kp-intro-photo-link,
  .wrg-kp-intro-photo-link:hover .wrg-kp-intro-photo,
  .wrg-kp-intro-photo-link:hover .wrg-ws-intro-photo {
    transition: none;
    transform: none;
  }
}

.wrg-solar-intro-tagline {
  display: inline-block;
  margin-top: 0.25rem;
}

.wrg-solar-intro-tagline:hover .wrg-solar-intro-tagline-em,
.wrg-solar-intro-tagline:focus-visible .wrg-solar-intro-tagline-em {
  text-decoration: underline;
}

.wrg-solar-intro-tagline-em {
  color: var(--wrg-brand-dark) !important;
  font-size: 1.05rem !important;
  font-style: italic;
  font-weight: 500;
}

/* --- Impressum / Datenschutz: typografisch wie Home --- */
.impressum-main,
.datenschutz-main {
  max-width: 48rem;
  margin-inline: auto;
  font-family: var(--bs-body-font-family, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif);
  color: var(--bs-body-color, #212529);
}

.impressum-main h1,
.datenschutz-main h1 {
  font-family: 'Arbutus Slab', serif;
  font-weight: 700;
  color: #09572c;
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.impressum-main h2,
.datenschutz-main h2 {
  font-family: 'Arbutus Slab', serif;
  font-weight: 600;
  color: #08562c;
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  margin-top: 1.7rem;
  margin-bottom: 0.75rem;
  border-bottom: 0;
  padding-bottom: 0;
}

.impressum-main h2:first-of-type,
.datenschutz-main h2:first-of-type {
  margin-top: 1.15rem;
}

.impressum-main p,
.impressum-main li,
.datenschutz-main p,
.datenschutz-main li {
  line-height: 1.72;
  margin-bottom: 0.9rem;
}

.impressum-main .lead-in,
.datenschutz-main .lead-in {
  font-size: 1rem;
  color: #4a5560;
  margin-bottom: 0.65rem;
}

.impressum-main a,
.datenschutz-main a {
  color: var(--wrg-primary-strong);
  font-weight: 600;
  word-break: break-word;
}

.impressum-main a:hover,
.impressum-main a:focus-visible,
.datenschutz-main a:hover,
.datenschutz-main a:focus-visible {
  color: #0b1a29;
}

.impressum-main ul.clean-list,
.datenschutz-main ul.clean-list {
  padding-left: 1.15rem;
  margin-bottom: 0.7rem;
}

.impressum-main ul.clean-list li,
.datenschutz-main ul.clean-list li {
  margin-bottom: 0.35rem;
}

/* --- Mobile: Lesbarkeit, Safe Areas, kollabierbares Menü --- */
@media (max-width: 767.98px) {
  html {
    height: 100%;
    height: 100dvh;
  }

  body#top.bg-white {
    height: 100%;
    height: 100dvh;
  }

  #site-header {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    padding-top: env(safe-area-inset-top, 0);
  }

  #site-footer {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0));
  }

  #site-home.site-home-root {
    padding-left: max(0.65rem, env(safe-area-inset-left, 0));
    padding-right: max(0.65rem, env(safe-area-inset-right, 0));
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .wrg-header-wrap {
    padding-top: 0.2rem;
    padding-bottom: 0.1rem;
  }

  .wrg-header-wrap > .container,
  .wrg-header-wrap .navbar > .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .wrg-header-wrap .navbar {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }

  .wrg-header-wrap .navbar-nav {
    gap: 0.28rem;
    row-gap: 0.35rem;
  }

  .wrg-header-wrap .nav-link.wrg-pill,
  .wrg-footer .nav-link.wrg-pill {
    font-size: 0.82rem;
    padding: 0.45rem 0.65rem !important;
    line-height: 1.2;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .wrg-header-wrap .nav-link.wrg-icon-link {
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Offcanvas-Menü: nicht über die volle Bildschirmhöhe hinaus, scrollbar */
  #navcol-wrg.navbar-collapse {
    max-height: min(72vh, calc(100dvh - 5.5rem));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
    margin-top: 0.35rem;
  }

  .wrg-footer {
    padding-top: 0.85rem !important;
    padding-bottom: 0.75rem !important;
  }

  .wrg-footer .small {
    font-size: 0.72rem !important;
    line-height: 1.35;
  }

  /* Eingebettete Inhalte: kein seitliches Überlaufen */
  #site-home img,
  #site-home video,
  #site-home iframe,
  #site-home .embed-responsive,
  #site-home .ratio {
    max-width: 100%;
  }

  #site-home .page-content p {
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }

  #site-home .page-content .card-text {
    font-size: 0.95rem !important;
  }

  #site-home .carousel-control-prev,
  #site-home .carousel-control-next {
    width: 2.75rem;
    opacity: 0.92;
  }
}

@media (max-width: 575.98px) {
  .wrg-header-wrap .nav-link.wrg-pill,
  .wrg-footer .nav-link.wrg-pill {
    font-size: 0.76rem;
    padding: 0.4rem 0.5rem !important;
  }

  .wrg-kraeuter-story p {
    font-size: 0.95rem;
    overflow-wrap: anywhere;
  }
}
