/* ============================================================
   jetztentsorgen.de – Haupt-Stylesheet
   Design-System: Grün (#1a6b2f, #2d9e4f), Weiß, Hellgrau
   ============================================================ */

:root {
  color-scheme: only light;
  --green-dark:   #1a6b2f;
  --green-main:   #2d9e4f;
  --green-light:  #e8f5ec;
  --green-hover:  #247a3e;
  --orange:       #e67e22;
  --orange-light: #fef3e8;
  --red:          #cc3333;
  --red-light:    #fdf0f0;
  --amber:        #996600;
  --amber-light:  #fff8e6;
  --text-dark:    #1a1a2e;
  --text-mid:     #4a5568;
  --text-light:   #718096;
  --bg-white:     #ffffff;
  --bg-light:     #f7f9f7;
  --border:       #e2e8e2;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.15);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --font:         'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.section-pad { padding: 80px 0; }
.bg-light { background: var(--bg-light); }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.hidden { display: none !important; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-main);
  color: #fff;
  border-color: var(--green-main);
}
.btn-primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45,158,79,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--green-main);
  border-color: var(--green-main);
}
.btn-outline:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-block { width: 100%; margin-top: 16px; }

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.badge-orange {
  background: var(--orange-light);
  color: var(--orange);
  border: 1px solid #f0c080;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-mid);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 70px;
}
.logo img {
  height: 44px;
  width: auto;
}
.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  gap: 8px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-mid);
  transition: all 0.2s;
}
.nav-link:hover {
  color: var(--green-main);
  background: var(--green-light);
}
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
  margin-left: auto;
}
.mobile-nav {
  display: none;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-mid);
}
.mobile-nav a:hover { background: var(--green-light); color: var(--green-main); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,107,47,0.88) 0%, rgba(26,107,47,0.65) 60%, rgba(0,0,0,0.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 60px 24px;
  max-width: 1200px;
  width: 100%;
}
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero-sub {
  font-size: 1.15rem;
  max-width: 580px;
  margin-bottom: 32px;
  opacity: 0.92;
  line-height: 1.7;
}

/* Hero Search Box */
.hero-search-box {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  max-width: 860px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 32px;
}
.search-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.tab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab:hover { color: var(--green-main); }
.tab.active {
  color: var(--green-main);
  border-bottom-color: var(--green-main);
}
.search-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.search-field {
  flex: 1;
  min-width: 140px;
}
.search-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.search-field input,
.search-field select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color 0.2s;
  font-family: var(--font);
}
.search-field input:focus,
.search-field select:focus {
  outline: none;
  border-color: var(--green-main);
}
.search-btn { flex-shrink: 0; align-self: flex-end; }

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #fff;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
}
.stat span {
  font-size: 0.85rem;
  opacity: 0.85;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--green-main);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.feature-card--highlight {
  border-color: var(--green-main);
  background: linear-gradient(160deg, #f0faf3 0%, #fff 100%);
  box-shadow: var(--shadow-md);
}
.feature-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-main);
  color: #fff;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.feature-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
}
.feature-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}
.feature-card p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.feature-list {
  margin-bottom: 24px;
}
.feature-list li {
  font-size: 0.9rem;
  color: var(--text-mid);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== MAP PREVIEW ===== */
.map-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}
.map-results { display: flex; flex-direction: column; gap: 16px; }
.result-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
}
.result-card:hover {
  border-color: var(--green-main);
  box-shadow: var(--shadow-sm);
}
.result-card--open { border-left: 4px solid var(--green-main); }
.result-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.result-status.open { background: #d4edda; color: #155724; }
.result-status.closed { background: #f8d7da; color: #721c24; }
.result-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.result-address {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.result-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 10px;
}
.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tag {
  background: var(--green-light);
  color: var(--green-dark);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}
.map-placeholder { position: relative; }
.map-mock {
  background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 30%, #81c784 60%, #66bb6a 100%);
  border-radius: var(--radius-lg);
  height: 480px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-mock::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0px, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0px, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 60px);
}
.map-pin {
  position: absolute;
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  animation: bounce 2s infinite;
}
.pin-1 { top: 25%; left: 35%; }
.pin-2 { top: 50%; left: 60%; animation-delay: 0.5s; }
.pin-3 { top: 70%; left: 25%; animation-delay: 1s; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.map-label {
  background: rgba(255,255,255,0.9);
  padding: 16px 24px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
  z-index: 1;
}
.map-label small {
  display: block;
  font-size: 12px;
  color: var(--text-mid);
  font-weight: 400;
  margin-top: 4px;
}

/* ===== CONTAINER TEASER ===== */
.teaser-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.teaser-text .badge-orange { margin-bottom: 16px; }
.teaser-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
}
.teaser-text p {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.teaser-steps { margin-bottom: 32px; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.step-num {
  width: 36px;
  height: 36px;
  background: var(--green-main);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.step-text { font-size: 0.95rem; color: var(--text-mid); line-height: 1.5; }
.step-text strong { color: var(--text-dark); display: block; margin-bottom: 2px; }
.teaser-sizes h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}
.size-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.size-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}
.size-card:hover,
.size-card--active {
  border-color: var(--green-main);
  box-shadow: var(--shadow-sm);
}
.size-card--active { background: var(--green-light); }
.size-visual {
  margin: 0 auto 12px;
  background: var(--green-main);
  border-radius: 4px 4px 0 0;
  opacity: 0.8;
}
.size-s { width: 40px; height: 28px; }
.size-m { width: 56px; height: 38px; }
.size-l { width: 68px; height: 46px; }
.size-xl { width: 80px; height: 54px; }
.size-card strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
}
.size-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-top: 2px;
}
.size-card .price {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-main);
  margin-top: 8px;
}

/* ===== RATGEBER TEASER ===== */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
.article-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
}
.article-card:hover {
  border-color: var(--green-main);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.article-card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--green-light) 0%, #fff 100%);
  border-color: var(--green-main);
}
.article-category {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-dark);
}
.article-card--featured h3 { font-size: 1.3rem; }
.article-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* ===== TRUST ===== */
.trust { background: var(--green-dark); }
.trust .section-pad { padding: 60px 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
/* Als klar begrenzte, gleich große Karten statt freistehendem Text -
   dadurch wirken die 4 Felder unabhängig vom Textumfang symmetrisch. */
.trust-item {
  text-align: center;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.trust-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.trust-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.trust-item p {
  font-size: 0.88rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #111;
  color: #ccc;
}
.footer-inner {
  display: grid;
  /* Original-Aufteilung (Marke + 4 einzelne Nav-Spalten nebeneinander) -
     gilt für alle Seiten mit der "alten", flachen Footer-Struktur (aktuell
     noch die meisten Unterseiten). NICHT einfach auf "1.4fr 2fr" ändern,
     sonst brechen dort 5 Elemente in ein 2-Spalten-Raster um. */
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 24px 40px;
}
/* Neue Struktur (bisher nur index.html): footer-brand + footer-links als
   EIN gemeinsamer Wrapper für die 4 Nav-Spalten. :has() aktiviert die
   2-Spalten-Aufteilung NUR, wenn dieser Wrapper tatsächlich im Markup
   vorhanden ist - alte Seiten ohne footer-links bleiben unangetastet bei
   der Regel oben. (Breite Unterstützung in allen aktuellen Browsern.) */
.footer-inner:has(.footer-links) {
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
}
/* Die 4 Link-Spalten (Bereiche/Ratgeber/Unternehmen/Rechtliches) als eigenes
   Grid, unabhängig vom Marken-Block links - siehe Media-Queries unten für
   die Paarung auf Tablet/Mobil (Bereiche neben Ratgeber, Unternehmen neben
   Rechtliches). */
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  /* Kein Weiß-Filter mehr: Das Logo hat jetzt einen transparenten Hintergrund
     und wird mit seinen echten (grünen) Farben angezeigt. Der frühere
     "brightness(0) invert(1)"-Filter hatte das Logo auf dem dunklen Footer
     unsichtbar/weiß gemacht. */
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #999;
}
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px;
  height: 36px;
  background: #222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #ccc;
  transition: all 0.2s;
}
.social-links a:hover { background: var(--green-main); color: #fff; }
.footer-nav h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  margin-bottom: 16px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
  font-size: 0.88rem;
  color: #999;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--green-main); }
.footer-bottom {
  border-top: 1px solid #222;
  padding: 20px 24px;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.82rem; color: #666; }

/* ===== SUBPAGE HERO ===== */
.subpage-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.subpage-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.subpage-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== WERTSTOFFHOF SEITE ===== */
.search-bar-full {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 70px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.search-bar-full .search-row { flex-wrap: nowrap; }
.map-full-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  height: calc(100vh - 200px);
  min-height: 600px;
}
.results-panel {
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.results-count {
  font-size: 0.9rem;
  color: var(--text-mid);
}
.results-count strong { color: var(--text-dark); }
.sort-select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-mid);
  font-family: var(--font);
}
.map-full {
  background: linear-gradient(135deg, #c8e6c9 0%, #81c784 100%);
  position: relative;
  overflow: hidden;
}
.map-full::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0px, rgba(255,255,255,0.08) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0px, rgba(255,255,255,0.08) 1px, transparent 1px, transparent 80px);
}
.map-full-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.95);
  padding: 24px 36px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.map-full-label h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.map-full-label p { font-size: 0.88rem; color: var(--text-mid); }
.map-pins-demo { position: absolute; inset: 0; pointer-events: none; }
.mp { position: absolute; font-size: 32px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.mp:nth-child(1) { top: 20%; left: 30%; }
.mp:nth-child(2) { top: 40%; left: 55%; }
.mp:nth-child(3) { top: 60%; left: 40%; }
.mp:nth-child(4) { top: 30%; left: 70%; }
.mp:nth-child(5) { top: 70%; left: 65%; }

/* ===== RATGEBER SEITE ===== */
.ratgeber-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 60px 0;
}
.ratgeber-main {}
.ratgeber-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 18px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-white);
  color: var(--text-mid);
  transition: all 0.2s;
  font-family: var(--font);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--green-main);
  background: var(--green-light);
  color: var(--green-dark);
}
.articles-list { display: flex; flex-direction: column; gap: 20px; }
.article-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
}
.article-list-item:hover {
  border-color: var(--green-main);
  box-shadow: var(--shadow-sm);
}
.sidebar-box {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-box h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.sidebar-box ul { display: flex; flex-direction: column; gap: 8px; }
.sidebar-box a {
  font-size: 0.88rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.sidebar-box a:last-child { border-bottom: none; }
.sidebar-box a:hover { color: var(--green-main); }
.sidebar-cta {
  background: linear-gradient(135deg, var(--green-dark), var(--green-main));
  color: #fff;
  border-color: transparent;
}
.sidebar-cta h4 { color: #fff; }
.sidebar-cta p { font-size: 0.88rem; opacity: 0.9; margin-bottom: 16px; }

/* ===== CONTAINER PORTAL ===== */
.container-portal-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 60px 0;
}
.container-filters {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
}
.container-filters h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.filter-group { margin-bottom: 20px; }
.filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.filter-group select,
.filter-group input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-dark);
}
.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--green-main);
}
.provider-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.2s;
}
.provider-card:hover {
  border-color: var(--green-main);
  box-shadow: var(--shadow-sm);
}
.provider-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.provider-name h3 { font-size: 1.05rem; font-weight: 700; }
.provider-name p { font-size: 0.85rem; color: var(--text-mid); margin-top: 2px; }
.provider-price { text-align: right; }
.provider-price .price-main {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-main);
}
.provider-price .price-sub { font-size: 0.78rem; color: var(--text-light); }
.provider-details {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.provider-detail {
  font-size: 0.85rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 6px;
}
.provider-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.provider-badge {
  background: var(--green-light);
  color: var(--green-dark);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}
.provider-actions { display: flex; gap: 12px; }
.order-summary {
  background: var(--bg-white);
  border: 2px solid var(--green-main);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.order-summary h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row strong { color: var(--text-dark); }
.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 16px 0 0;
  color: var(--text-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .map-placeholder { display: none; }
  .teaser-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .map-full-layout { grid-template-columns: 1fr; height: auto; }
  .map-full { height: 400px; }
  .ratgeber-layout { grid-template-columns: 1fr; }
  .ratgeber-sidebar { position: static; }
  .container-portal-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.2rem; }
  .main-nav { display: none; }
  .hamburger { display: block; }
  .header-inner .btn-primary { display: none; }
  .hero-search-box { padding: 16px; }
  .search-row { flex-direction: column; }
  .search-field { min-width: 100%; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
  .section-header h2 { font-size: 1.6rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card--featured { grid-column: auto; }
  .footer-inner { gap: 32px; }
  .footer-links { gap: 24px; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
  .size-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================================
   ANPASSUNGEN jetztentsorgen.de (zentral, ersetzt frühere Inline-Overrides)
   ----------------------------------------------------------------------------
   Dieser Block bündelt alle nachträglichen Layout-/Design-Anpassungen an einer
   Stelle, damit sie wartbar bleiben. Reihenfolge = Aufgaben-Nummern.
   ============================================================================ */

/* --- Punkt 1: App-Hinweis-Banner (unter dem Header) --- */
.app-banner {
  background: var(--green-main);
  color: #fff;
  padding: 10px 46px 10px 18px;
  font-size: 0.92rem;
  position: relative;
  line-height: 1.45;
  /* Flex-Layout: Text links, Buttons rechts daneben, zentriert im Banner.
     Bricht auf schmalen Screens sauber um. */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.app-banner-text { color: #fff; }
.app-banner a { color: #fff; text-decoration: none; }

/* Button-Gruppe rechts im Banner */
.app-banner-buttons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* "Web-App öffnen": heller, klickbarer Button */
.app-banner-btn--primary {
  background: #fff;
  color: var(--green-main) !important;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.app-banner-btn--primary:hover { opacity: 0.9; }
/* "Bald im Play Store": dezenter, nicht klickbarer Hinweis */
.app-banner-btn--soon {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0.85;
  cursor: default;
}
.app-banner-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
/* Auf sehr schmalen Screens: Text und Buttons untereinander */
@media (max-width: 640px) {
  .app-banner { font-size: 0.82rem; gap: 8px; padding: 10px 40px 10px 14px; }
  .app-banner-btn--primary,
  .app-banner-btn--soon { font-size: 0.78rem; padding: 5px 11px; }
}

/* --- Punkt: Startseite "Alles rund um Ihre Entsorgung" -------------------
   Kompakteres Karten-Raster. Auf großen Screens 4 Karten nebeneinander
   (Containerdienst-Highlight etwas breiter), auf Tablets 2x2, mobil 1 Spalte.
   Ersetzt den früheren #home-features-Inline-<style>-Block in index.html. */
#home-features .features-grid {
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 20px;
}
#home-features .feature-card { padding: 24px 22px; }
/* Punkt 5: Karten als Flex-Spalten -> die Buttons rutschen ans untere Ende
   und sitzen dadurch bei allen Karten auf gleicher Höhe (symmetrisch),
   auch wenn der Textinhalt unterschiedlich lang ist. */
#home-features .feature-card {
  display: flex;
  flex-direction: column;
}
/* Der Button ist jeweils das letzte Element in der Karte; mit margin-top:auto
   wird der Freiraum darüber aufgefüllt, sodass alle Buttons bündig abschließen.
   Gilt für die Outline- wie die Primary-Buttons am Kartenende. */
#home-features .feature-card > .btn {
  margin-top: auto;
}
#home-features .feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
#home-features .feature-card p { font-size: 0.88rem; line-height: 1.5; margin-bottom: 12px; }
#home-features .feature-list { margin-bottom: 16px; }
#home-features .feature-list li { font-size: 0.84rem; padding: 3px 0; }
#home-features .feature-icon,
#home-features .feature-icon img { width: 40px; height: 40px; }
/* Emoji-Icons (statt Bilddateien) in der Karten-Icon-Fläche darstellen:
   größere Schrift, damit das Symbol die 40px-Fläche gut ausfüllt. */
#home-features .feature-icon.feature-icon--emoji {
  font-size: 34px;
  line-height: 40px;
  height: 40px;
}

@media (max-width: 899px) {
  /* Tablet: 2x2-Raster, Highlight-Karte oben über beide Spalten */
  #home-features .features-grid { grid-template-columns: 1fr 1fr; }
  #home-features .feature-card--highlight { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  /* Mobil: alles untereinander */
  #home-features .features-grid { grid-template-columns: 1fr; }
  #home-features .feature-card--highlight { grid-column: auto; }
}

/* --- Punkt 16: AVV-Intro-Text zentriert & auf angenehme Lesebreite begrenzt,
   damit er nicht "unsymmetrisch" über die volle Breite läuft. --- */
.avd-intro {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* --- Punkt 13/14: Ratgeber-Paginierung --- */
.ratgeber-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.ratgeber-pagination button {
  min-width: 40px;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ratgeber-pagination button:hover:not(:disabled) {
  border-color: var(--green-main);
  color: var(--green-main);
}
.ratgeber-pagination button.active {
  background: var(--green-main);
  border-color: var(--green-main);
  color: #fff;
  font-weight: 700;
}
.ratgeber-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================================
   Punkt: Mobile Größe/Abstände an Desktop-Optik angleichen
   ----------------------------------------------------------------------------
   Grund: Die großzügigen Desktop-Innenabstände (60-80px pro Section, 60/24px
   im Hero) wurden bisher unverändert auf Mobile übernommen. Auf einem schmalen
   Screen wirkt das proportional viel "größer"/leerer als auf dem Desktop, wo
   dieselben Abstände im Verhältnis zur Seitenbreite klein sind. Dieser Block
   strafft NUR die Innenabstände auf schmalen Screens - Struktur, Reihenfolge
   und Optik bleiben identisch, nur kompakter/proportionaler zum Desktop.
   ============================================================================ */
@media (max-width: 768px) {
  .section-pad { padding: 48px 0; }
  .trust .section-pad { padding: 40px 0; }
  .hero { min-height: auto; }
  .hero-content { padding: 40px 20px; }
  .footer-inner { padding: 40px 20px 28px; }
  .trust-grid { gap: 12px; }
  .trust-item { padding: 18px 14px; }
  .trust-icon { font-size: 1.4rem; margin-bottom: 8px; }
  .trust-item h4 { font-size: 0.92rem; margin-bottom: 6px; }
  .trust-item p { font-size: 0.8rem; line-height: 1.45; }
  #home-features .feature-card { padding: 20px 18px; }
}

@media (max-width: 480px) {
  .trust-item { padding: 16px 12px; }
  .trust-icon { font-size: 1.25rem; margin-bottom: 6px; }
}
