/* =========================================================
   fensterbau.online – Stylesheet
   Modernes Design: Anthrazit / Blau / Weiß
   ========================================================= */

:root {
  --color-primary: #1a56db;
  --color-primary-dark: #123f9e;
  --color-primary-light: #e8f0fe;
  --color-anthracite: #22282f;
  --color-anthracite-2: #2e363f;
  --color-white: #ffffff;
  --color-off-white: #f5f7fa;
  --color-gray: #667085;
  --color-gray-light: #d0d5dd;
  --color-border: #e4e7ec;
  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-danger: #dc2626;

  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.16);

  --container-width: 1180px;
  --header-height: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  color: var(--color-anthracite);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}


img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { color: var(--color-gray); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin-bottom: 14px; color: var(--color-anthracite); }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Buttons / CTA ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--color-anthracite); color: #fff; }
.btn-secondary:hover { background: #10151a; }
.btn-outline { background: transparent; border-color: var(--color-gray-light); color: var(--color-anthracite); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-white { background: #fff; color: var(--color-anthracite); }
.btn-white:hover { background: var(--color-off-white); }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--color-anthracite);
  color: #cbd2d9;
  font-size: 0.85rem;
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.3s ease;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 0; padding-bottom: 0; flex-wrap: wrap; gap: 6px; min-height: 0; overflow: hidden; transition: padding-top 0.3s ease, padding-bottom 0.3s ease; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .topbar-links { display: flex; gap: 20px; }
.topbar .topbar-links span, .topbar .topbar-links a { display: inline-flex; align-items: center; gap: 6px; }
body.scrolled-past-promo .topbar { grid-template-rows: 1fr; }
body.scrolled-past-promo .topbar .container { padding-top: 8px; padding-bottom: 8px; }
.topbar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  transition: background 0.15s ease;
}
.topbar-btn:hover { background: rgba(255,255,255,0.22); }
.topbar-btn .topbar-btn-short { display: none; }
@media (max-width: 420px) {
  .topbar-btn .topbar-btn-full { display: none; }
  .topbar-btn .topbar-btn-short { display: inline; }
}

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 500;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  max-width: 100vw;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); gap: 10px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--color-anthracite); min-width: 0; flex-shrink: 1; }
.logo .logo-mark {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-primary), #4f86f7);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem;
}
.logo > span:not(.logo-mark) { min-width: 0; overflow-wrap: anywhere; }
.logo small { display: block; font-weight: 500; font-size: 0.68rem; color: var(--color-gray); letter-spacing: 0.04em; }

/* ---------- Marken-Logo (Fenster-Icon + Wortmarke) ---------- */
.brand-logo { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 36px; height: 36px; flex-shrink: 0; color: var(--color-primary); }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.08; white-space: nowrap; }
.brand-wordmark .l1 { font-weight: 800; font-size: 0.9rem; letter-spacing: 0.04em; color: var(--color-anthracite); }
.brand-wordmark .l2 { display: flex; align-items: baseline; gap: 5px; }
.brand-wordmark .l2 .bau { font-weight: 800; font-size: 0.9rem; letter-spacing: 0.04em; color: var(--color-primary); }
.brand-wordmark .l2 .dotonline { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-style: italic; font-size: 0.92rem; color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
footer.site-footer .brand-icon { color: #fff; }
footer.site-footer .brand-wordmark .l1 { color: #fff; }
footer.site-footer .brand-wordmark .l2 .bau { color: #fff; }
footer.site-footer .brand-wordmark .l2 .dotonline { color: #cfe0fb; text-decoration-color: rgba(255,255,255,0.5); }
.footer-logo.brand-logo { margin-bottom: 14px; }

nav.main-nav ul { display: flex; gap: 30px; align-items: center; }
nav.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--color-anthracite-2); position: relative; padding: 6px 0; }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--color-primary); }
nav.main-nav a.active::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px; background: var(--color-primary); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .phone-cta { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--color-anthracite); font-size: 1.2rem; }
.header-actions .phone-cta span.txt { display: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-anthracite); border-radius: 2px; }

@media (max-width: 960px) {
  nav.main-nav {
    /* Position relativ zum gesamten (sticky) Header inkl. Top-Bar –
       "top: 100%" statt eines fest berechneten Pixelwerts, damit das
       Dropdown korrekt unterhalb von Top-Bar + Menüzeile sitzt und dem
       Header beim Scrollen zuverlässig folgt (Header bleibt selbst über
       position: sticky immer sichtbar). */
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: auto;
    bottom: auto;
    width: min(300px, calc(100vw - 32px));
    max-height: 70vh;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    overflow-y: auto;
    padding: 10px;
    z-index: 550;
  }
  nav.main-nav.open { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; }
  nav.main-nav ul { flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; }
  nav.main-nav ul li { width: 100%; border-bottom: 1px solid var(--color-border); }
  nav.main-nav ul li:last-child { border-bottom: none; }
  nav.main-nav a { display: block; padding: 13px 10px; color: var(--color-anthracite); font-size: 0.98rem; }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .header-actions { flex-shrink: 0; gap: 10px; }
  .header-actions .btn.btn-primary { display: none; }
}

@media (max-width: 420px) {
  .logo span:not(.logo-mark) small { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% -10%, #2c3a55 0%, var(--color-anthracite) 55%), var(--color-anthracite);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 100px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: #7fb0ff; }
.hero p.lead { color: #c6ccd6; font-size: 1.12rem; max-width: 540px; margin-bottom: 32px; }
.hero-trust { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust div strong { display: block; font-size: 1.5rem; color: #fff; }
.hero-trust div span { font-size: 0.82rem; color: #9aa4b2; }

.hero-visual {
  background: linear-gradient(160deg, #33415a, #1a222d);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
}
.hero-visual .window-frame {
  aspect-ratio: 4/5; border-radius: var(--radius-md);
  background: linear-gradient(160deg, #dfeaff 0%, #a9c6f5 60%, #7fa8e8 100%);
  border: 10px solid #eef2f6;
  position: relative; overflow: hidden;
}
.hero-visual .window-frame::before,
.hero-visual .window-frame::after {
  content: ""; position: absolute; background: #eef2f6;
}
.hero-visual .window-frame::before { left: 50%; top: 0; bottom: 0; width: 8px; transform: translateX(-50%); }
.hero-visual .window-frame::after { top: 50%; left: 0; right: 0; height: 8px; transform: translateY(-50%); }
.badge-float.badge-static {
  position: static; margin-top: 24px;
  background: #fff; color: var(--color-anthracite);
  border-radius: var(--radius-md); padding: 14px 18px; box-shadow: var(--shadow-lg); font-weight: 700; font-size: 0.85rem;
  display: inline-flex; gap: 10px; align-items: center;
}
.hero-visual .badge-float {
  position: absolute; bottom: -18px; left: -18px; background: #fff; color: var(--color-anthracite);
  border-radius: var(--radius-md); padding: 14px 18px; box-shadow: var(--shadow-lg); font-weight: 700; font-size: 0.85rem;
  display: flex; gap: 10px; align-items: center;
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
}

/* ---------- USP / Feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 30px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--color-primary-light); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

.bg-off { background: var(--color-off-white); }
.bg-anthracite { background: var(--color-anthracite); color: #fff; }
.bg-anthracite p { color: #b7bfc9; }
.bg-anthracite h2 { color: #fff; }
.bg-primary-grad { background: linear-gradient(120deg, var(--color-primary), #123f9e); color: #fff; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 12px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary); color: #fff;
  font-weight: 800; margin-bottom: 18px;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonial { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); }
.testimonial .stars { color: #f5a524; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial .author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius-lg); padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.85); }

/* ---------- Forms (general) ---------- */
.form-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 7px; }
.field .hint { font-weight: 400; color: var(--color-gray); font-size: 0.78rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number],
.field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--color-gray-light); border-radius: var(--radius-sm);
  background: #fbfcfd; transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
.choice-card { border: 1.5px solid var(--color-gray-light); border-radius: var(--radius-sm); padding: 16px 12px; text-align: center; cursor: pointer; transition: all 0.15s ease; background: #fbfcfd; }
.choice-card:hover { border-color: var(--color-primary); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card .ci { font-size: 1.6rem; margin-bottom: 8px; }
.choice-card.selected, .choice-card:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-light); box-shadow: 0 0 0 1px var(--color-primary) inset; }

.checkbox-line { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--color-gray); }
.checkbox-line input { margin-top: 3px; }

.form-status { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; display: none; }
.form-status.ok { display: block; background: #ecfdf3; color: var(--color-success); border: 1px solid #b9f0cd; }
.form-status.err { display: block; background: #fef3f2; color: var(--color-danger); border: 1px solid #fecdca; }

/* ---------- Multi-step form ---------- */
.ms-progress { display: flex; gap: 8px; margin-bottom: 30px; }
.ms-progress .bar { flex: 1; height: 6px; border-radius: 4px; background: var(--color-border); overflow: hidden; }
.ms-progress .bar span { display: block; height: 100%; width: 0%; background: var(--color-primary); transition: width 0.3s ease; }
.ms-step-label { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 700; color: var(--color-gray); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.ms-layer { display: none; animation: fadeIn 0.25s ease; }
.ms-layer.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.ms-nav { display: flex; justify-content: space-between; margin-top: 26px; gap: 12px; }
.ms-summary { background: var(--color-off-white); border-radius: var(--radius-sm); padding: 18px; font-size: 0.9rem; }
.ms-summary dt { font-weight: 700; color: var(--color-anthracite); }
.ms-summary dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 8px; }

/* ---------- Kalkulator ---------- */
.calc-wrap { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.calc-grid { display: grid; grid-template-columns: 1.4fr 1fr; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-main { padding: 40px; }
.calc-side { background: var(--color-anthracite); color: #fff; padding: 40px; }
.calc-side .price-value { font-size: 2.6rem; font-weight: 800; margin: 10px 0; color: #fff; }
.calc-side .price-range { color: #c9d2db; font-size: 0.85rem; margin-bottom: 24px; }
.calc-side ul.summary-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.88rem; }
.calc-side ul.summary-list li span:last-child { font-weight: 700; color: #fff; }
.calc-side ul.summary-list li span:first-child { color: #c9d2db; }
.qty-control { display: flex; align-items: center; gap: 12px; }
.qty-control button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--color-gray-light); background: #fff; font-size: 1.1rem; font-weight: 700; }
.qty-control span { font-weight: 700; font-size: 1.1rem; min-width: 24px; text-align: center; }
.range-slider { width: 100%; margin-top: 8px; accent-color: var(--color-primary); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card .thumb { height: 160px; background: linear-gradient(135deg, var(--color-primary-light), #cddcf9); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--color-primary); }
.blog-card .content { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card .cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-primary); margin-bottom: 8px; }
.blog-card h3 { margin-bottom: 10px; font-size: 1.08rem; }
.blog-card p { font-size: 0.88rem; flex: 1; }
.blog-card .meta { font-size: 0.76rem; color: var(--color-gray); margin-top: 14px; border-top: 1px solid var(--color-border); padding-top: 12px; }

.article-body { max-width: 760px; margin: 0 auto; }
.article-body .calc-wrap { margin: 20px 0 28px; }
.article-body .calc-grid { grid-template-columns: 1fr; }
.article-body .calc-main { padding: 28px; }
.article-body .calc-side { padding: 28px; }
.article-body h2 { margin: 40px 0 16px; }
.article-body h3 { margin: 28px 0 12px; }
.article-body p { margin-bottom: 16px; color: var(--color-anthracite-2); }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; color: var(--color-anthracite-2); }
.article-body li { margin-bottom: 8px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 0.92rem; }
.article-body table th, .article-body table td { border: 1px solid var(--color-border); padding: 10px 14px; text-align: left; color: var(--color-anthracite-2); }
.article-body table th { background: var(--color-off-white); font-weight: 700; color: var(--color-anthracite); }
.article-hero { background: var(--color-anthracite); color: #fff; padding: 70px 0 50px; }
.article-hero .meta-row { display: flex; gap: 16px; font-size: 0.85rem; color: #9aa4b2; margin-bottom: 16px; flex-wrap: wrap; }
.article-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.article-callout { background: var(--color-primary-light); border-left: 4px solid var(--color-primary); padding: 20px 24px; border-radius: var(--radius-sm); margin: 26px 0; }
.article-callout strong { color: var(--color-primary); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.tag { background: var(--color-off-white); padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: var(--color-gray); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.82rem; color: var(--color-gray); padding: 18px 0; }
.breadcrumb a { color: var(--color-gray); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span.sep { margin: 0 6px; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { margin: 34px 0 12px; font-size: 1.3rem; }
.legal-content h3 { margin: 20px 0 10px; font-size: 1.05rem; }
.legal-content p, .legal-content li { color: var(--color-anthracite-2); margin-bottom: 12px; }
.legal-content ul { margin-left: 22px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9rem; }
.legal-content table td, .legal-content table th { border: 1px solid var(--color-border); padding: 10px 12px; text-align: left; }

/* ---------- FAQ-Akkordeon ---------- */
.faq-item { margin-bottom: 14px; transition: box-shadow 0.15s ease; }
.faq-item:last-child { margin-bottom: 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-weight: 700; user-select: none; }
.faq-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary); font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--color-primary); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.28s ease, opacity 0.2s ease, margin-top 0.28s ease; font-size: 0.92rem; color: var(--color-gray); margin-top: 0; }
.faq-answer p { color: var(--color-gray); margin: 0; }
.faq-item.open .faq-answer { max-height: 600px; opacity: 1; margin-top: 12px; }

/* ---------- Local / map section ---------- */
.map-embed-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 380px; background: var(--color-off-white); }
.map-consent-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; gap: 14px; background: linear-gradient(160deg, #eef2f7, #dde5ee); }
.map-consent-placeholder .icon-big { font-size: 2.4rem; }
.map-embed-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer: Regionen ---------- */
.footer-regions { border-top: 1px solid rgba(255,255,255,0.1); padding: 34px 0; }
.footer-regions h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }
.footer-regions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-regions-grid strong { display: block; color: #fff; font-size: 0.8rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-regions-grid ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footer-regions-grid li { font-size: 0.82rem; }
@media (max-width: 900px) { .footer-regions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-regions-grid { grid-template-columns: 1fr; } }

/* ---------- Regionsüberblick (Zahlen, Daten, Fakten) ---------- */
.region-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.region-stats .stat-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.region-stats .stat-card .stat-value { font-size: 1.7rem; font-weight: 800; color: var(--color-primary); display: block; }
.region-stats .stat-card .stat-label { font-size: 0.78rem; color: var(--color-gray); margin-top: 4px; }
@media (max-width: 900px) { .region-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .region-stats { grid-template-columns: 1fr; } }
.region-source { font-size: 0.76rem; color: var(--color-gray); margin-top: 8px; }
.region-source a { color: var(--color-gray); text-decoration: underline; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--color-anthracite); color: #ccd3da; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid ul li a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }
.footer-grid > div:first-child p { color: #dde3e8; }
.footer-grid > div:first-child p a { color: #dde3e8; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }
.footer-bottom ul { display: flex; gap: 18px; }

/* ---------- Cookie Consent Banner ---------- */
#consent-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 2000;
  max-width: 560px; margin: 0 auto;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--color-border);
  padding: 26px; display: none;
}
#consent-banner.show { display: block; animation: fadeIn 0.3s ease; }
#consent-banner h3 { margin-bottom: 10px; font-size: 1.05rem; }
#consent-banner p { font-size: 0.86rem; margin-bottom: 18px; }
#consent-banner .consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#consent-banner .consent-actions .btn { flex: 1; min-width: 140px; padding: 12px 14px; font-size: 0.86rem; }
#consent-banner .consent-links { margin-top: 12px; font-size: 0.78rem; }
#consent-banner .consent-links a { color: var(--color-primary); font-weight: 600; }

.consent-modal-overlay {
  position: fixed; inset: 0; background: rgba(15,20,27,0.55); z-index: 2100; display: none; align-items: center; justify-content: center; padding: 20px;
}
.consent-modal-overlay.show { display: flex; }
.consent-modal { background: #fff; border-radius: var(--radius-lg); max-width: 560px; width: 100%; max-height: 86vh; overflow-y: auto; padding: 30px; }
.consent-modal h3 { margin-bottom: 6px; }
.consent-modal > p { font-size: 0.88rem; margin-bottom: 20px; }
.consent-cat { border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; }
.consent-cat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.consent-cat-head strong { font-size: 0.95rem; }
.consent-cat p { font-size: 0.82rem; margin: 0; }

.toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider { position: absolute; cursor: pointer; inset: 0; background: var(--color-gray-light); border-radius: 999px; transition: 0.2s; }
.toggle .slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.2s; }
.toggle input:checked + .slider { background: var(--color-primary); }
.toggle input:checked + .slider::before { transform: translateX(20px); }
.toggle input:disabled + .slider { opacity: 0.6; cursor: not-allowed; }

.consent-modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.consent-modal-actions .btn { flex: 1; min-width: 140px; }

#consent-settings-link { cursor: pointer; }

/* ---------- Misc utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small { font-size: 0.85rem; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--color-off-white); font-size: 0.78rem; font-weight: 700; color: var(--color-anthracite);
}
.divider { height: 1px; background: var(--color-border); margin: 40px 0; }
.back-to-top {
  position: fixed; right: 24px; bottom: 90px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-anthracite); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 300; font-size: 1.1rem;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Promo-Bar ---------- */
.promo-bar { background: linear-gradient(90deg, var(--color-primary), #123f9e); color: #fff; font-size: 0.86rem; }
.promo-bar.hidden { display: none; }
.promo-bar-inner { display: flex; align-items: center; gap: 14px; padding: 10px 24px; flex-wrap: wrap; }
.promo-bar-icon { font-size: 1.1rem; }
.promo-bar-text { flex: 1; font-weight: 600; min-width: 220px; }
.promo-bar-cta { background: #fff; color: var(--color-primary); font-weight: 700; padding: 7px 16px; border-radius: 999px; font-size: 0.82rem; white-space: nowrap; }
.promo-bar-cta:hover { background: #eef2f7; }
.promo-bar-close { background: none; border: none; color: #fff; font-size: 1.3rem; line-height: 1; opacity: 0.8; padding: 0 4px; cursor: pointer; }
.promo-bar-close:hover { opacity: 1; }
@media (max-width: 700px) { .promo-bar-text { font-size: 0.78rem; } }

/* ---------- Chat-Widget ---------- */
#chat-launcher {
  position: fixed; right: 24px; bottom: 24px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--color-primary); color: #fff; border: none; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: var(--shadow-lg); cursor: pointer; z-index: 400; transition: transform 0.15s ease;
}
#chat-launcher:hover { transform: scale(1.06); background: var(--color-primary-dark); }
.chat-launcher-badge {
  position: absolute; top: -4px; right: -4px; background: var(--color-danger); color: #fff; font-size: 0.68rem; font-weight: 800;
  width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.chat-panel {
  position: fixed; right: 24px; bottom: 94px; width: 370px; max-width: calc(100vw - 32px); max-height: 72vh;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--color-border);
  display: none; flex-direction: column; overflow: hidden; z-index: 401;
}
.chat-panel.open { display: flex; animation: fadeIn 0.2s ease; }
.chat-panel-header { background: var(--color-anthracite); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: flex-start; flex-shrink: 0; }
.chat-status { font-size: 0.72rem; color: #86efac; margin-top: 2px; }
.chat-panel-header button#chat-close { background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.chat-panel-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.chat-msg { background: var(--color-off-white); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.85rem; margin-bottom: 12px; max-width: 92%; }
.chat-msg.bot { border-top-left-radius: 2px; }
.chat-msg.user { background: var(--color-primary-light); color: var(--color-anthracite); margin-left: auto; border-top-right-radius: 2px; }
.chat-faq-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.chat-chip { border: 1.5px solid var(--color-gray-light); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.15s ease; }
.chat-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.chat-followup-btn { display: inline-block; margin-bottom: 14px; }
.chat-price-preview { background: var(--color-primary-light); color: var(--color-primary-dark); font-weight: 700; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.85rem; margin: 14px 0; }
.chat-panel-footer { border-top: 1px solid var(--color-border); padding: 12px 18px; display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.chat-panel-footer a { color: var(--color-primary); }
.chat-choice-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 420px) {
  .chat-panel { right: 16px; left: 16px; width: auto; bottom: 90px; }
  #chat-launcher { right: 16px; bottom: 20px; }
  .back-to-top { right: 16px; bottom: 86px; }
}
