/* =========================================
   POLSTERREINIGUNG.NET – MAIN STYLES v1.1.0
   ========================================= */

/* --- CSS CUSTOM PROPERTIES --- */
:root {
  --color-primary:       #1E3A5F;
  --color-primary-dark:  #152B47;
  --color-primary-light: #2A4D7F;
  --color-secondary:     #4CAF50;
  --color-cta:           #2E7D32;
  --color-cta-hover:     #1B5E20;
  --color-bg:            #F7F9FB;
  --color-white:         #FFFFFF;
  --color-text:          #1A1A1A;
  --color-text-muted:    #6B7280;
  --color-border:        #E5E7EB;
  --color-card:          #FFFFFF;
  --color-overlay:       rgba(30,58,95,0.82);

  --font-heading: 'Inter', 'Poppins', sans-serif;
  --font-body:    'Open Sans', 'Roboto', sans-serif;

  --container:   1280px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 999px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --shadow-cta: 0 4px 14px rgba(46,125,50,.35);

  --transition: .22s ease;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-primary);
}

/* --- UTILITIES --- */
.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  box-sizing: border-box;
}
.section-pad  { padding: clamp(56px, 7vw, 96px) 0; }
section, .usp-strip { max-width: 100%; overflow-x: clip; }
.text-center  { text-align: center; }
.text-white   { color: #fff !important; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-cta);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  background: var(--color-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(46,125,50,.45);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--color-cta);
}
.btn-white:hover {
  background: var(--color-bg);
  transform: translateY(-1px);
}
.btn-lg { padding: 18px 36px; font-size: 17px; }
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--color-text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* =========================================
   HEADER / NAVIGATION
   ========================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-dot { color: var(--color-secondary); font-style: normal; }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 20px; height: 20px; }

/* Desktop Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: color .2s, background .2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a:hover,
.main-nav .current-menu-item { color: var(--color-primary); background: var(--color-bg); }
.main-nav .has-dropdown { position: relative; }
.main-nav .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  padding: 8px;
  display: none;
  z-index: 200;
}
.main-nav .has-dropdown:hover .dropdown { display: block; }
.main-nav .dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 6px;
  color: var(--color-text);
}
.main-nav .dropdown a:hover { background: var(--color-bg); color: var(--color-primary); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* CTA-Button im Header – auf Mobile versteckt (Sticky-Bar übernimmt) */
.nav-cta {
  font-size: 13px;
  padding: 9px 18px;
}
@media (max-width: 768px) {
  .nav-cta { display: none !important; }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sticky Mobile CTA – nur Mobile */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-primary);
  padding: 10px 16px;
  z-index: 990;
  gap: 10px;
  box-shadow: 0 -2px 12px rgba(0,0,0,.15);
  align-items: center;
}
.sticky-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.sticky-tel:hover { color: #fff; }
.sticky-cta-btn {
  flex: 1;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  padding: 11px 16px;
}

.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 499;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.5);
}
.whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }

/* =========================================
   MODAL / ANFRAGE FORM
   ========================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { transform: scale(.94); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-text-muted);
  transition: background var(--transition);
}
.modal-close:hover { background: var(--color-border); }
.modal-box h3 { font-size: 22px; margin-bottom: 8px; }
.modal-box p  { font-size: 14px; color: var(--color-text-muted); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--color-primary); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color var(--transition);
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-submit { width: 100%; padding: 15px; font-size: 16px; }
.form-privacy {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 12px;
  text-align: center;
}
.form-privacy a { color: var(--color-primary); text-decoration: underline; }
.form-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}
.form-success .checkmark {
  width: 64px;
  height: 64px;
  background: rgba(76,175,80,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.form-success .checkmark svg { width: 32px; height: 32px; stroke: var(--color-cta); fill: none; }
.form-success h4 { font-size: 20px; margin-bottom: 8px; }
.form-success p  { font-size: 14px; color: var(--color-text-muted); }

/* =========================================
   CITY / SERVICE LANDING PAGES
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 72px 0;
  color: #fff;
}
.page-hero h1 { color: #fff; font-size: clamp(28px, 4.5vw, 52px); margin-bottom: 16px; }
.page-hero p  { font-size: 17px; color: rgba(255,255,255,.8); max-width: 640px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.breadcrumb a:hover { color: rgba(255,255,255,1); }
.breadcrumb-sep { font-size: 10px; }

.content-section { background: #fff; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr min(340px, 100%);
  gap: 56px;
  align-items: start;
}
.content-main h2 { font-size: clamp(22px, 3vw, 30px); margin: 32px 0 14px; }
.content-main h2:first-child { margin-top: 0; }
.content-main p   { margin-bottom: 16px; color: var(--color-text); line-height: 1.75; }
.content-main ul  { margin: 16px 0 16px 20px; list-style: disc; }
.content-main ul li { margin-bottom: 8px; color: var(--color-text); }
.sidebar-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  position: sticky;
  top: 90px;
}
@media (max-width: 900px) {
  .sidebar-card { position: static; top: auto; }
}
.sidebar-card h3 { font-size: 18px; margin-bottom: 16px; }
.sidebar-card .btn { width: 100%; text-align: center; justify-content: center; margin-bottom: 12px; }

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-section { background: var(--color-bg); }
.faq-list { max-width: 760px; margin: 48px auto 0; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--color-bg); }
.faq-icon { width: 24px; height: 24px; flex-shrink: 0; }
.faq-icon svg { width: 20px; height: 20px; stroke: var(--color-primary); fill: none; transition: transform var(--transition); }
.faq-item.active .faq-icon svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding var(--transition);
}
.faq-item.active .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 14px; color: var(--color-text-muted); line-height: 1.7; }

/* =========================================
   BOOKING SYSTEM PAGE
   ========================================= */
.booking-section { background: var(--color-bg); }
.booking-grid {
  display: grid;
  grid-template-columns: 1fr min(380px, 100%);
  gap: 48px;
  align-items: start;
}
.booking-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.booking-form-wrap h2 { font-size: 26px; margin-bottom: 8px; }
.booking-form-wrap > p { color: var(--color-text-muted); margin-bottom: 32px; }
.pricing-card {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  color: #fff;
  position: sticky;
  top: 90px;
}
.pricing-card h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.pricing-card .tagline { color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 28px; }
.price-option {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.price-option:hover, .price-option.selected {
  background: rgba(255,255,255,.15);
  border-color: var(--color-secondary);
}
.price-option .plan-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.price-option .plan-price { font-size: 28px; font-weight: 900; }
.price-option .plan-price sup { font-size: 14px; vertical-align: super; }
.price-option .plan-price small { font-size: 14px; font-weight: 400; opacity: .7; }
.price-option .plan-note { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }
.price-badge {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-left: 8px;
}
.pricing-features { margin: 24px 0; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  margin-bottom: 10px;
}
.pricing-features svg { width: 16px; height: 16px; stroke: var(--color-secondary); fill: none; flex-shrink: 0; }

/* City Selector in booking */
.city-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.city-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
.city-check-item input[type="checkbox"] { accent-color: var(--color-cta); width: 15px; height: 15px; }
.city-total-bar {
  background: rgba(30,58,95,.06);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-weight: 700;
}
.city-total-bar .total-label { font-size: 14px; color: var(--color-text-muted); }
.city-total-bar .total-price { font-size: 22px; color: var(--color-primary); }

/* =========================================
   ADMIN DASHBOARD (Subunternehmer)
   ========================================= */
.dashboard-wrap { min-height: 80vh; padding: 48px 0; }
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.dashboard-header h1 { font-size: 26px; }
.dash-grid {
  display: grid;
  grid-template-columns: min(260px, 100%) 1fr;
  gap: 32px;
  align-items: start;
}
.dash-sidebar {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.dash-nav a:hover, .dash-nav a.active {
  color: var(--color-primary);
  background: rgba(30,58,95,.04);
  border-left-color: var(--color-primary);
}
.dash-nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.dash-content { display: flex; flex-direction: column; gap: 24px; }
.dash-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 28px;
}
.dash-card h3 { font-size: 16px; margin-bottom: 20px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-chip {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.stat-chip .val { font-size: 28px; font-weight: 800; color: var(--color-primary); }
.stat-chip .lbl { font-size: 12px; color: var(--color-text-muted); }
.city-list-table { width: 100%; border-collapse: collapse; }
.city-list-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--color-border);
}
.city-list-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
}
.city-list-table tr:last-child td { border-bottom: none; }
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}
.status-badge.active { background: rgba(76,175,80,.12); color: var(--color-cta); }
.status-badge.pending { background: rgba(245,158,11,.12); color: #D97706; }
.status-badge.expired { background: rgba(239,68,68,.12); color: #DC2626; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ba-layout { grid-template-columns: 1fr; }
  .steps-layout { grid-template-columns: 1fr; }
  .reviews-layout { grid-template-columns: 1fr; }
  .local-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  /* Hero: Bild kleiner auf Tablet */
  .hero-image-wrap { width: 48%; }
  .hero-content { max-width: 100%; padding-right: calc(48% + 20px); }
}
@media (max-width: 768px) {
  /* Navigation */
  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 16px 80px; /* Platz für Sticky-Bar */
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    z-index: 980;
  }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 15px; padding: 12px 14px; border-radius: 8px; }
  /* Dropdown im Mobile-Menü inline */
  .main-nav .has-dropdown .dropdown {
    display: block !important;
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--color-secondary);
    border-radius: 0;
    margin: 4px 0 4px 14px;
    padding: 4px 0;
    background: none;
  }
  .main-nav .dropdown a { font-size: 14px; padding: 9px 14px; color: var(--color-text-muted); }
  .hamburger { display: flex; }

  /* Layout */
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .usp-item { border-right: none; border-bottom: 1px solid var(--color-border); }
  .usp-item:nth-child(2n) { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .ba-sliders { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; }
  .step-arrow { display: none; }
  .reviews-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }

  /* Sticky CTA einblenden */
  .sticky-mobile-cta { display: flex; }
  .whatsapp-fab { bottom: 76px; }

  /* Hero auf Mobile */
  .hero { min-height: auto; }
  .hero-content { max-width: 100%; padding: 40px 0 36px; }

  /* Body Padding für Sticky-Bar */
  body { padding-bottom: 62px; }
}

@media (max-width: 480px) {
  .usp-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 28px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .city-checkbox-grid { grid-template-columns: 1fr; }
  .site-logo span { font-size: 15px; }
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-up {
  opacity: 1;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.animate-up.visible { /* keep class for JS compat */
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   PRINT / ACCESSIBILITY
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* =========================================
   OVERRIDE BLOCK v1.1.1
   Überschreibt Divi / Theme-Reste
   ========================================= */

/* Hero: Weiß erzwingen, kein dunkler Overlay */
.hero,
.hero.section,
body .hero,
body.page .hero {
  background: #ffffff !important;
  background-image: none !important;
  color: #1A1A1A !important;
  position: relative !important;
  overflow: visible !important;
}
.hero::before,
.hero::after,
.hero > .et_pb_section_cover_background {
  display: none !important;
}

/* Hero Image Wrap: immer sichtbar */
.hero-image-wrap {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 54% !important;
  height: 100% !important;
  z-index: 0 !important;
  pointer-events: none;
}
.hero-image-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}
.hero-image-wrap::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 140px !important;
  height: 100% !important;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 100%) !important;
  z-index: 1 !important;
}

/* Hero: Text soll oben bleiben */
.hero .container {
  position: relative !important;
  z-index: 2 !important;
}
.hero h1,
.hero .hero-eyebrow,
.hero .hero-sub {
  color: inherit !important;
}
.hero h1 { color: #1E3A5F !important; }
.hero h1 span { color: #4CAF50 !important; }
.hero-eyebrow { color: #4CAF50 !important; }
.hero-sub { color: #6B7280 !important; }

/* Service-Icons: sicherstellen dass SVG sichtbar ist */
.service-icon svg,
.step-icon-box svg,
.usp-icon svg,
.ba-handle-icon svg {
  display: block !important;
  overflow: visible !important;
}

/* Section-Titel */
.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  color: #1E3A5F;
}
.section-sub {
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 0;
}

/* Divi-spezifische Overrides */
.et_pb_section.hero,
.et_pb_row.hero,
#et-main-area .hero {
  background: #ffffff !important;
  padding: 0 !important;
}

/* Kein WordPress-Standard-Padding auf Seiten */
body.page .entry-content,
body.home .entry-content {
  padding: 0 !important;
  margin: 0 !important;
}


/* =========================================
   CSS-VARIABLEN ALIASES
   --pr-* = Alias für --color-* (page-leistung.php Kompatibilität)
   ========================================= */
:root {
  --pr-primary:      #1E3A5F;
  --pr-secondary:    #4CAF50;
  --pr-cta:          #2E7D32;
  --pr-bg:           #F7F9FB;
  --pr-text:         #1A1A1A;
  --pr-muted:        #6B7280;
  --pr-border:       #E5E7EB;
  --pr-font-heading: 'Inter', sans-serif;
  --pr-font-body:    'Open Sans', sans-serif;
}

/* =========================================
   FIXES v1.3.0
   ========================================= */

/* H3-Abstände im generierten Content erhöhen */
.content-main h3,
.entry-content h3,
.page-content h3 {
  margin-top: 36px;
  margin-bottom: 12px;
  padding-top: 4px;
}
.content-main h3:first-child,
.entry-content h3:first-child {
  margin-top: 0;
}

/* Hero: "Jetzt anrufen" und Bewertung auf dunklem Hintergrund sichtbar machen */
.page-hero .hero-phone,
.page-hero .hero-phone span,
.page-hero .hero-phone small {
  color: #ffffff !important;
}
.page-hero .hero-phone small {
  color: rgba(255,255,255,.75) !important;
}
.page-hero .phone-icon {
  background: rgba(255,255,255,.18) !important;
}
.page-hero .trust-item {
  color: #ffffff !important;
}
.page-hero .trust-item span,
.page-hero .trust-item strong {
  color: #ffffff !important;
}
.page-hero .trust-icon {
  background: rgba(255,255,255,.18) !important;
}
/* Breadcrumb auf dunklem BG */
.page-hero .breadcrumb a,
.page-hero .breadcrumb span {
  color: rgba(255,255,255,.75) !important;
}
.page-hero .breadcrumb a:hover { color: #fff !important; }


/* =========================================
   PERFORMANCE: will-change, contain
   ========================================= */
.hero-image-wrap img { will-change: auto; }
/* contain removed from animate-up – breaks Safari IO */
.card { /* contain removed – broke SVG rendering */ }

/* Services-Grid: 8 Kacheln = 4 Spalten auf Desktop */
@media(min-width:1024px){
  .services-grid { grid-template-columns: repeat(4,1fr); }
}
@media(min-width:768px) and (max-width:1023px){
  .services-grid { grid-template-columns: repeat(4,1fr); }
}
@media(max-width:767px){
  .services-grid { grid-template-columns: repeat(2,1fr); }
}

/* Kostenrechner */
.calc-service select:focus,
.calc-service input:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}

/* Preis-Highlight im Rechner */
#total-price { font-variant-numeric: tabular-nums; }

/* =========================================
   KOSTENRECHNER – RESPONSIVE
   ========================================= */

/* Layout: 2 Spalten → 1 Spalte */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr min(340px, 100%);
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .calc-layout {
    grid-template-columns: 1fr !important;
  }
  .calc-layout > div[style*="position:sticky"],
  .calc-layout > div[style*="sticky"] {
    position: static !important;
    top: auto !important;
  }
}

/* Service-Zeile: 2 Spalten → 1 Spalte */
.calc-service .svc-options,
.calc-service-s > div[style*="grid-template-columns:1fr 1fr"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .calc-service .svc-options,
  .calc-service-s > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .calc-service select,
  .calc-service-s select {
    font-size: 16px; /* iOS: kein Auto-Zoom */
  }
}

/* Preistabelle horizontal scrollbar auf Mobile */
.price-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }


/* Sticky-Ergebnis-Box: static auf Mobile */
@media (max-width: 900px) {
  .calc-result-sticky {
    position: static !important;
    top: auto !important;
  }
}

/* =========================================
   FEHLENDE BASIS-STYLES – KOMPLETTER FIX
   ========================================= */

/* ── Sterne: feste Größe ── */
.review-stars svg,
.trust-icon svg[fill="#F59E0B"],
.hero-trust svg {
  width: 16px !important;
  height: 16px !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.review-stars {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-bottom: 10px;
}

/* ── USP Strip ── */
.usp-strip {
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.usp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 20px;
  border-right: 1px solid var(--color-border);
}
.usp-item:last-child { border-right: none; }
.usp-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(76,175,80,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.usp-icon svg { width: 20px; height: 20px; display: block; }
.usp-text { flex: 1; min-width: 0; }
.usp-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--color-primary); margin-bottom: 3px; }
.usp-text span  { font-size: 12px; color: var(--color-text-muted); line-height: 1.4; }

/* ── Before/After Section ── */
.before-after-section { background: var(--color-bg); }
.ba-layout {
  display: grid;
  grid-template-columns: min(260px, 100%) 1fr;
  gap: 40px;
  align-items: start;
}
.before-after-intro .badge { margin-bottom: 8px; }
.before-after-intro h2 { font-size: clamp(1.4rem,2.5vw,2rem); color: var(--color-primary); margin: 0 0 12px; }
.before-after-intro p  { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }
.ba-sliders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ba-card { display: flex; flex-direction: column; gap: 10px; }
.ba-card-title { text-align: center; font-size: 13px; font-weight: 600; color: var(--color-text); }
.ba-slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  width: 100%;
  aspect-ratio: 4/3;
  cursor: ew-resize;
  user-select: none;
  background: var(--color-border);
}
.ba-after,
.ba-before {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ba-before {
  clip-path: inset(0 50% 0 0);
}
.ba-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.ba-label {
  position: absolute;
  top: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 4px;
}
.ba-label.before { left: 10px; background: rgba(0,0,0,.55); color: #fff; }
.ba-label.after  { right: 10px; background: var(--color-secondary); color: #fff; }
.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: #fff;
  z-index: 10;
  pointer-events: all;
}
.ba-handle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.ba-handle-icon svg { width: 14px; height: 14px; display: block; }

/* ── Steps Section ── */
.steps-section { background: var(--color-bg); }
.steps-layout {
  display: grid;
  grid-template-columns: min(280px, 100%) 1fr;
  gap: 48px;
  align-items: center;
}
.steps-intro .badge { margin-bottom: 8px; }
.steps-intro h2 { font-size: clamp(1.5rem,2.8vw,2.2rem); color: var(--color-primary); margin: 0; line-height: 1.25; }
.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.step-number {
  width: 36px;
  height: 36px;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.step-icon-box {
  width: 52px;
  height: 52px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon-box svg { width: 24px; height: 24px; display: block; }
.step-body strong { display: block; font-size: 14px; font-weight: 700; color: var(--color-primary); margin-bottom: 4px; }
.step-body p { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; margin: 0; }
.step-arrow {
  color: var(--color-border);
  font-size: 20px;
  padding-top: 24px;
  flex-shrink: 0;
}

/* ── Reviews Section ── */
.reviews-section { background: #fff; }
.reviews-layout {
  display: grid;
  grid-template-columns: min(260px, 100%) 1fr;
  gap: 40px;
  align-items: start;
}
.reviews-intro .badge { margin-bottom: 8px; }
.reviews-intro h2 { font-size: clamp(1.4rem,2.5vw,2rem); color: var(--color-primary); margin: 0; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 22px;
}
.review-text { font-size: 14px; color: var(--color-text); line-height: 1.65; margin: 0 0 12px; font-style: italic; }
.review-author { font-size: 13px; font-weight: 700; color: var(--color-primary); }

/* ── Local Section ── */
/* local-grid: see full definition below */

/* ── Responsive Fixes für alle Sektionen ── */
@media (max-width: 900px) {
  .ba-layout      { grid-template-columns: 1fr !important; }
  .steps-layout   { grid-template-columns: 1fr !important; }
  .reviews-layout { grid-template-columns: 1fr !important; }
  .local-grid     { grid-template-columns: 1fr !important; }
  .ba-layout     { grid-template-columns: 1fr !important; }
  .ba-sliders     { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .usp-grid     { grid-template-columns: 1fr 1fr !important; }
  .usp-item     { border-right: none; border-bottom: 1px solid var(--color-border); padding: 16px; }
  .usp-item:nth-child(2n) { border-right: none; }
  .usp-item:nth-last-child(-n+2) { border-bottom: none; }
  .ba-sliders   { grid-template-columns: 1fr !important; }
  .steps-row    { flex-direction: column; align-items: stretch; }
  .step-item    { flex-direction: row; text-align: left; align-items: flex-start; }
  .step-arrow   { display: none; }
  .reviews-grid { grid-template-columns: 1fr !important; }
  .local-stats  { grid-template-columns: 1fr 1fr; }
  /* Prevent any grid from overflowing */
  .container    { padding-left: 16px !important; padding-right: 16px !important; }
}
@media (max-width: 480px) {
  .usp-grid     { grid-template-columns: 1fr !important; }
  .usp-item     { border-bottom: 1px solid var(--color-border) !important; }
  .usp-item:last-child { border-bottom: none !important; }
  .local-stats  { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr !important; }
  .services-grid { grid-template-columns: 1fr 1fr !important; }
}

/* Social Icons – feste Größe */
.social-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  transition: background .2s;
  flex-shrink: 0;
}
.social-link:hover { background: rgba(255,255,255,.2); }
.social-link svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block;
}

/* =========================================
   HERO – VOLLSTÄNDIGE BASIS-STYLES
   ========================================= */
.hero {
  position: relative;
  background: #fff;
  min-height: 580px;
  display: flex;
  align-items: center;
  /* NO overflow:hidden – würde absolut positioniertes Bild abschneiden */
}
.hero-content {
  max-width: 52%;
  padding: 64px 0 56px;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  display: block;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-primary);
  margin: 0 0 18px;
}
.hero h1 span { color: var(--color-secondary); }
.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: #6B7280;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 480px;
}

/* Trust-Items: immer horizontal */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.4;
}
.trust-icon {
  width: 32px;
  height: 32px;
  background: rgba(76,175,80,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}
.trust-item strong { display: block; font-weight: 700; }
.trust-item span   { font-size: 11px; color: var(--color-text-muted); }

/* CTA-Gruppe */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 15px;
}
.phone-icon {
  width: 36px;
  height: 36px;
  background: rgba(76,175,80,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phone-icon svg { width: 16px; height: 16px; display: block; }
.hero-phone small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* Footer CSS fixes */
.footer-contact { list-style: none; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  margin-bottom: 10px;
  line-height: 1.5;
}
.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  stroke: rgba(255,255,255,.6);
  fill: none;
}
.footer-contact a { color: rgba(255,255,255,.85); }
.footer-contact a:hover { color: #fff; }

/* ── Hero Responsive ── */
@media (max-width: 900px) {
  .hero-content { max-width: 60%; }
}
@media (max-width: 768px) {
  .hero { min-height: auto; }
  .hero-content { max-width: 100%; padding: 40px 0 32px; }
  .hero-trust { gap: 14px; }
  /* Trust items bleiben horizontal, Icons klein */
  .trust-item { gap: 8px; font-size: 12px; }
  .trust-icon { width: 28px; height: 28px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
  .hero-phone { justify-content: flex-start; }
  /* Hero CTA Button auf Mobile ausblenden (Sticky-Bar unten) */
  .hero-ctas .btn-primary { display: none; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 14px; }
  .hero-trust { gap: 10px; }
  .trust-item { font-size: 12px; }
}



/* =========================================
   FOOTER – BASIS (nach Responsive-Blöcken)
   ========================================= */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.8);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  margin-top: 14px;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
}
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a {
  color: rgba(255,255,255,.45);
  font-size: 12px;
  text-decoration: none;
  transition: color .2s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.8); }

/* Footer Responsive – kommt nach der Base-Definition */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================
   LOCAL SECTION – SAUBER (ersetzt alle alten)
   ========================================= */
.local-section { background: var(--color-bg); }
.local-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  min-width: 0;
}
.local-text { min-width: 0; max-width: 100%; }
.local-text .badge { margin-bottom: 8px; }
.local-text h2 { font-size: clamp(1.4rem,3vw,2.2rem); color: var(--color-primary); margin: 0 0 16px; }
.local-text p  { font-size: 14px; color: var(--color-text-muted); line-height: 1.7; margin-bottom: 12px; }
.local-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}
.stat-box {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}
.stat-box .number {
  font-size: clamp(1.4rem,4vw,2rem);
  font-weight: 800;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  word-break: break-all;
}
.stat-box .label {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 6px;
  line-height: 1.4;
}
.cities-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; max-width: 100%; }
.city-tag {
  padding: 5px 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--color-text);
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.city-tag:hover { border-color: var(--color-secondary); color: var(--color-secondary); }
@media (max-width: 900px) {
  .local-grid { grid-template-columns: 1fr !important; gap: 32px; }
}
@media (max-width: 480px) {
  .local-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-box .number { font-size: 1.5rem; }
}

/* =========================================
   GLOBAL GRID-OVERFLOW FIX
   Alle direkten Grid-Kinder: min-width:0
   verhindert Overflow aus CSS-Grid
   ========================================= */
.local-grid > *,
.reviews-layout > *,
.steps-layout > *,
.ba-layout > *,
.footer-grid > *,
.booking-grid > *,
.hero-grid > * {
  min-width: 0;
  max-width: 100%;
}

/* Cities cloud: nie über Viewport */
.cities-cloud {
  max-width: 100%;
  overflow: hidden;
}

/* Stat boxes: immer 2 spaltig, aber responsiv */
@media (max-width: 400px) {
  .local-stats { grid-template-columns: 1fr 1fr !important; }
  .stat-box .number { font-size: 1.3rem; }
}

/* ── Hero-Button: kurze/lange Textvariante ── */
.btn-text-short { display: none; }
.btn-text-long  { display: inline; }
@media (max-width: 480px) {
  .city-hero-btn { width: 100%; justify-content: center; }
  .btn-text-long  { display: none; }
  .btn-text-short { display: inline; }
}

/* ── page-hero: Button overflow verhindern ── */
.page-hero .btn {
  white-space: normal;
  word-break: break-word;
  text-align: center;
}
@media (max-width: 600px) {
  .page-hero .btn-lg {
    font-size: 14px;
    padding: 12px 18px;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .page-hero > .container > div[style*="display:flex"],
  .page-hero .hero-ctas-city {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

/* ── Bild-Upload Bereich ── */
.upload-area {
  border: 2px dashed var(--color-border);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-area:hover,
.upload-area.dragover {
  border-color: var(--color-secondary);
  background: rgba(76,175,80,.04);
}
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #9CA3AF;
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}
.upload-placeholder strong { color: var(--color-secondary); }
#upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.upload-thumb {
  position: relative;
  width: 72px;
  text-align: center;
}
.upload-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  display: block;
}
.upload-thumb span {
  display: block;
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-thumb-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: #EF4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}
.upload-add-more {
  width: 72px;
  height: 72px;
  border: 2px dashed var(--color-border);
  background: none;
  border-radius: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color .2s;
  align-self: flex-start;
}
.upload-add-more:hover { border-color: var(--color-secondary); color: var(--color-secondary); }

/* ── Kostenrechner Stadtseite: sticky nur auf Desktop ── */
.calc-result-sticky {
  position: sticky;
  top: 90px;
}
@media (max-width: 900px) {
  .calc-result-sticky {
    position: static !important;
    top: auto !important;
  }
  /* Calc-Layout immer single-column auf Mobile */
  section .calc-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ── FAQ: sicherstellen dass Sektion kein overflow erzeugt ── */
.faq-section {
  overflow: hidden;
}

/* ── Leistungskarten Mini-Grid: responsive ── */
.leistungen-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .leistungen-mini-grid { grid-template-columns: 1fr; }
}

/* ── Sicherstellen: alle Sektionen sichtbar ── */
.content-section,
.faq-section,
.cta-banner,
.reviews-section,
.steps-section,
.before-after-section,
.services-section,
.local-section,
.usp-strip {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Sicherstellen dass KI-Content die Umgebung nicht bricht */
.post-content-safe {
  overflow: hidden;
  display: block;
  max-width: 100%;
}
.post-content-safe * { max-width: 100%; box-sizing: border-box; }

/* CSS-Variablen sicherstellen (Fallback-Werte) */
:root {
  --color-primary:   #1E3A5F;
  --color-secondary: #4CAF50;
  --color-cta:       #2E7D32;
  --color-bg:        #F7F9FB;
  --color-text:      #1A1A1A;
  --color-text-muted:#6B7280;
  --color-border:    #E5E7EB;
  --font-heading:    'Inter', sans-serif;
  --font-body:       'Open Sans', sans-serif;
  --radius-md:       10px;
  --transition:      .2s ease;
  --container:       1200px;
  --shadow-md:       0 4px 16px rgba(0,0,0,.1);
}

/* =========================================
   STADT-CONTENT STYLING
   ========================================= */
.stadt-content h2 {
  font-size: clamp(1.2rem,2.5vw,1.6rem);
  font-weight: 700;
  color: #1E3A5F !important;
  margin: 28px 0 10px;
  font-family: var(--font-heading);
  line-height: 1.3;
}
.stadt-content h2:first-child { margin-top: 0; }
.stadt-content h3 {
  font-size: clamp(1rem,2vw,1.2rem);
  font-weight: 700;
  color: #1E3A5F !important;
  margin: 22px 0 8px;
  font-family: var(--font-heading);
}
.stadt-content p {
  margin-bottom: 14px;
  color: #374151;
  line-height: 1.75;
}
.stadt-content ul,
.stadt-content ol {
  margin: 12px 0 16px 20px;
  padding: 0;
}
.stadt-content ul { list-style: disc; }
.stadt-content ol { list-style: decimal; }
.stadt-content li {
  margin-bottom: 6px;
  color: #374151;
  line-height: 1.65;
}
.stadt-content strong { color: #1E3A5F; }
.stadt-content a { color: #4CAF50; text-decoration: underline; }
