/* ===== VARIABLEN & RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #248000;
  --g900: #0d3d22;
  --g800: #1a5c35;
  --g700: #1e6b3e;
  --g600: #257a47;
  --g500: #2e9158;
  --g400: #3dab6d;
  --g100: #d4eddc;
  --g50:  #edf7f1;
  --white: #ffffff;
  --gray50:  #f9fafb;
  --gray100: #f3f4f6;
  --gray200: #e5e7eb;
  --gray500: #6b7280;
  --gray600: #4b5563;
  --gray700: #374151;
  --gray900: #111827;
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --font-head: 'Arial Black', 'Arial Bold', Arial, sans-serif;
  --font-body: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray700);
  line-height: 1.6;
  font-size: 16px;
  background: var(--white);
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--gray900); line-height: 1.25; font-weight: 900; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--g800);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1160px; margin: 0 auto;
}
.nav-logo {
  display: flex; align-items: center;
}
.nav-logo-img {
  height: 44px; width: auto; display: block;
}
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white) !important; font-weight: 700 !important;
  white-space: nowrap;
}
.nav-phone i { font-size: .85rem; opacity: .9; }
.nav-phone:hover { color: rgba(255,255,255,.85) !important; }
.nav-cta {
  background: var(--brand) !important; color: var(--white) !important;
  padding: 8px 18px !important; border-radius: var(--r-sm) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--g500) !important; }
.nav-toggle {
  display: none; background: none; border: none;
  color: white; font-size: 1.4rem; cursor: pointer;
}

/* ===== PAGE HEADER (Unterseiten) ===== */
.page-header {
  padding: 120px 0 56px;
  background: linear-gradient(135deg, var(--g900) 0%, var(--g800) 55%, rgba(36,128,0,.85) 100%);
  color: var(--white);
}
.page-header .sec-label {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .13em; color: rgba(255,255,255,.7); margin-bottom: 10px;
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--white); margin-bottom: 12px;
}
.page-header p {
  font-size: 1rem; color: rgba(255,255,255,.75); max-width: 560px;
}

/* ===== LEGAL CONTENT ===== */
.legal {
  padding: 64px 0 80px;
  background: var(--gray50);
}
.legal-inner {
  max-width: 820px; margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 48px 56px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--brand);
}
.legal-inner h2 {
  font-size: 1.15rem; margin: 32px 0 12px;
  color: var(--g800);
}
.legal-inner h2:first-child { margin-top: 0; }
.legal-inner h3 {
  font-size: 1rem; margin: 24px 0 10px;
  color: var(--gray900);
}
.legal-inner p {
  font-size: .94rem; color: var(--gray600);
  line-height: 1.75; margin-bottom: 14px;
}
.legal-inner ul {
  margin: 0 0 16px 1.2rem;
  font-size: .94rem; color: var(--gray600); line-height: 1.75;
}
.legal-inner li { margin-bottom: 6px; }
.legal-inner a {
  color: var(--brand); text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-inner a:hover { color: var(--g700); }
.legal-inner strong { color: var(--gray900); }
.legal-meta {
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--gray200);
  font-size: .85rem; color: var(--gray500);
}
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 28px; font-size: .9rem; font-weight: 600;
  color: var(--brand); transition: color .2s;
}
.legal-back:hover { color: var(--g700); }

/* ===== FOOTER ===== */
.footer {
  background: var(--g900);
  color: rgba(255,255,255,.65);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand p {
  font-size: .88rem; line-height: 1.68;
  color: rgba(255,255,255,.55); margin-top: 10px;
}
.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.05rem; color: white;
}
.footer h4 {
  font-size: .8rem; font-weight: 700;
  color: rgba(255,255,255,.85);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 16px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul li a {
  font-size: .88rem; color: rgba(255,255,255,.6); transition: color .2s;
}
.footer ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.35); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: .8rem; color: rgba(255,255,255,.35); transition: color .2s;
}
.footer-legal a:hover { color: rgba(255,255,255,.75); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--g900); padding: 20px 24px; gap: 16px;
  }
  .legal-inner { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-header { padding: 100px 0 40px; }
}

/* Cookie-Banner – Wesertaler PDL */
.cookie-banner {
  position: fixed; inset: auto 0 0 0; z-index: 99999;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background: rgba(13, 61, 34, .97);
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .25);
  transform: translateY(110%);
  transition: transform .35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
}
.cookie-banner-text {
  flex: 1 1 280px; margin: 0; color: rgba(255, 255, 255, .82);
  font-size: .88rem; line-height: 1.55;
}
.cookie-banner-text a { color: #fff; font-weight: 700; text-decoration: underline; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: .55rem; flex: 0 1 auto; }
.cookie-btn {
  font: inherit; font-size: .88rem; font-weight: 700;
  padding: .55rem 1.1rem; border-radius: 6px; cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.cookie-btn-accept { background: #248000; color: #fff; border-color: #248000; }
.cookie-btn-accept:hover { background: #2e9158; border-color: #2e9158; }
.cookie-btn-essential {
  background: transparent; color: rgba(255, 255, 255, .9);
  border-color: rgba(255, 255, 255, .35);
}
.cookie-btn-essential:hover { background: rgba(255, 255, 255, .08); }
.cookie-btn-settings {
  background: transparent; color: rgba(255, 255, 255, .65);
  border-color: transparent; text-decoration: underline;
}
.cookie-btn-settings:hover { color: #fff; }
.cookie-modal-overlay {
  position: fixed; inset: 0; z-index: 100000;
  display: grid; place-items: center; padding: 1rem;
  background: rgba(13, 61, 34, .55);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.cookie-modal-overlay.visible { opacity: 1; visibility: visible; }
.cookie-modal {
  width: min(100%, 520px); max-height: min(90vh, 640px); overflow: auto;
  background: #fff; border-radius: 16px; padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .14); border-top: 4px solid #248000;
}
.cookie-modal h3 {
  margin: 0 0 .65em; font-size: 1.15rem; color: #0d3d22;
  font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
}
.cookie-modal > p { color: #4b5563; font-size: .88rem; margin-bottom: 1.25rem; line-height: 1.6; }
.cookie-category {
  border: 1px solid #e5e7eb; border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: .85rem;
}
.cookie-category-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .45rem;
}
.cookie-category-name { font-weight: 700; color: #111827; font-size: .88rem; }
.cookie-category-desc { margin: 0; font-size: .84rem; color: #4b5563; line-height: 1.5; }
.cookie-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle-slider {
  position: absolute; inset: 0; cursor: pointer; border-radius: 999px;
  background: #e5e7eb; transition: background .2s;
}
.cookie-toggle-slider::before {
  content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: #248000; }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { opacity: .75; cursor: not-allowed; }
.cookie-modal-actions {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; margin-top: 1.25rem;
}
.cookie-settings-section {
  margin-top: 2rem; padding: 1.25rem 1.5rem;
  background: #edf7f1; border: 1px solid #d4eddc; border-radius: 10px;
}
.cookie-settings-section h2 { margin-top: 0; font-size: 1rem; color: #0d3d22; }
@media (max-width: 560px) {
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .cookie-btn { flex: 1 1 auto; text-align: center; }
}
