/* ============================================================
   maler-doerfler.at – Stylesheet
   Farben aus dem Logo: Navy-Blau #1e2b5c (Band) als Grundfarbe,
   der Regenbogen-Bogen als Akzent (Linien, Buttons, Hover).
   ============================================================ */

:root {
  --navy: #1e2b5c;
  --navy-dunkel: #131c40;
  --navy-hell: #2c3d7d;
  --akzent: #d92e4e;            /* Rot aus dem Regenbogen als Aktionsfarbe */
  --akzent-dunkel: #b32340;
  --gold: #f0a500;
  --gruen: #3f9d4e;
  --blau: #2f7fc1;
  --regenbogen: linear-gradient(90deg, #d92e4e 0%, #f07818 20%, #f0c400 40%, #3f9d4e 60%, #2f7fc1 80%, #7d4fa8 100%);
  --grau-bg: #f6f6f8;
  --grau-linie: #e2e3e9;
  --text: #2b2f3a;
  --text-hell: #63687a;
  --weiss: #ffffff;
  --radius: 12px;
  --schatten: 0 8px 30px rgba(30, 43, 92, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--weiss);
  line-height: 1.65;
  font-size: 1.02rem;
}

img { max-width: 100%; height: auto; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { line-height: 1.22; color: var(--navy); font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

a { color: var(--akzent-dunkel); text-decoration: none; }
a:hover { text-decoration: underline; }

p + p { margin-top: 14px; }

/* Der schmale Regenbogen-Streifen ganz oben – Markenzeichen der Creativmalerei */
.regenbogen-linie { height: 5px; background: var(--regenbogen); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--akzent);
  color: #fff;
  font-weight: 700;
  padding: 14px 30px;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}
.btn:hover { background: var(--akzent-dunkel); text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(217, 46, 78, 0.35); }
.btn-outline { background: transparent; border: 2px solid rgba(255, 255, 255, 0.65); color: #fff; padding: 12px 28px; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; box-shadow: none; }
.btn-outline-dunkel { background: transparent; border: 2px solid var(--navy); color: var(--navy); padding: 12px 28px; }
.btn-outline-dunkel:hover { background: var(--navy); color: #fff; box-shadow: none; }
.btn-klein { padding: 9px 22px; font-size: 0.92rem; }
.btn-fehler { background: #a04545; }
.btn-fehler:hover { background: #8a3a3a; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--grau-linie);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.logo { display: flex; align-items: center; }
.logo img { display: block; width: auto; height: 64px; }

.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.main-nav a:not(.btn) {
  display: block;
  padding: 10px 14px;
  color: var(--navy);
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:not(.btn):hover { background: var(--grau-bg); text-decoration: none; }
.main-nav a.active { color: var(--akzent); }
.nav-cta { margin-left: 10px; }

/* Untermenü „Leistungen" */
.hat-untermenue { position: relative; }
.hat-untermenue > a svg { width: 16px; height: 16px; fill: currentColor; vertical-align: -3px; margin-left: 2px; }
.untermenue {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--grau-linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  list-style: none;
  padding: 8px;
  z-index: 60;
}
.hat-untermenue:hover .untermenue,
.hat-untermenue:focus-within .untermenue { display: block; }
.untermenue a { padding: 10px 14px; font-size: 0.96rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 88% 8%, rgba(125, 79, 168, 0.35), transparent 45%),
    radial-gradient(ellipse at 5% 95%, rgba(217, 46, 78, 0.28), transparent 45%),
    linear-gradient(135deg, var(--navy-dunkel) 0%, var(--navy) 55%, var(--navy-hell) 100%);
  color: #fff;
  padding: 100px 0 90px;
  overflow: hidden;
}
.hero::after {
  /* feine Pinselstrich-Schraffur */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 strong { background: var(--regenbogen); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.9fr; gap: 60px; align-items: center; }
.hero-foto { position: relative; }
.hero-foto img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.hero-foto::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -9px;
  height: 6px;
  border-radius: 4px;
  background: var(--regenbogen);
}
.hero-ueberzeile {
  display: inline-block;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #e8ecf8;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #ccd3e8; max-width: 640px; }
.hero-aktionen { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-unterseite { padding: 64px 0 56px; }
.hero-unterseite .container { max-width: 900px; }

/* ---------- Zahlen-Band ---------- */
.stats { background: var(--navy-dunkel); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 30px; padding-bottom: 30px; }
.stat { text-align: center; }
.stat-zahl { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1.1;
             background: var(--regenbogen); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-text { color: #aab3cd; font-size: 0.95rem; }

/* ---------- Sektionen ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--grau-bg); }
.section-title { text-align: center; margin-bottom: 16px; }
.section-title strong { color: var(--akzent); }
.section-title::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  border-radius: 3px;
  background: var(--regenbogen);
  margin: 14px auto 0;
}
.section-intro { text-align: center; max-width: 720px; margin: 0 auto 44px; color: var(--text-hell); }
.content-narrow { max-width: 800px; }
.content-narrow h2 { margin-top: 44px; }
.content-narrow h2:first-child { margin-top: 0; }
.content-narrow h3 { margin-top: 26px; }
.absatz-gross { font-size: 1.15rem; }
.content-narrow ul { padding-left: 22px; margin-top: 10px; }

/* ---------- Leistungs-Karten (Startseite) ---------- */
.leistungen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.leistung-karte {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--weiss);
  border: 1px solid var(--grau-linie);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten);
  transition: transform 0.2s, box-shadow 0.2s;
  color: var(--text);
}
.leistung-karte:hover { transform: translateY(-5px); box-shadow: 0 16px 44px rgba(30, 43, 92, 0.18); text-decoration: none; }
.leistung-karte img { width: 100%; height: 200px; object-fit: cover; }
.leistung-karte .lk-text { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.leistung-karte h3 { font-size: 1.25rem; }
.leistung-karte p { color: var(--text-hell); font-size: 0.97rem; flex: 1; }
.lk-mehr { margin-top: 14px; font-weight: 700; color: var(--akzent); }
.leistung-karte:hover .lk-mehr { text-decoration: underline; }
.leistung-karte::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--regenbogen);
  z-index: 1;
}

/* ---------- Checkliste ---------- */
.checklist { list-style: none; margin: 18px 0 26px; }
.checklist li { padding: 7px 0 7px 34px; position: relative; font-weight: 600; color: var(--navy); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--akzent) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center/12px no-repeat;
}
.checklist li:nth-child(6n+2)::before { background-color: var(--gold); }
.checklist li:nth-child(6n+3)::before { background-color: var(--gruen); }
.checklist li:nth-child(6n+4)::before { background-color: var(--blau); }
.checklist li:nth-child(6n+5)::before { background-color: #7d4fa8; }
.checklist li:nth-child(6n)::before   { background-color: #f07818; }

/* ---------- Standort-Fotos (Startseite, Über uns) ---------- */
.standort-fotos { display: grid; gap: 18px; align-content: center; }
.standort-fotos figure { margin: 0; }
.standort-fotos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}
.standort-fotos figcaption {
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-hell);
  text-align: center;
}

/* ---------- Split (Text + Bild) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.split + .split { margin-top: 80px; }
.split.reverse .split-media { order: 2; }
img.split-media {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}

/* ---------- Galerie mit Lightbox ---------- */
.galerie { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.galerie a { display: block; border-radius: 10px; overflow: hidden; position: relative; }
.galerie img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s;
}
.galerie a:hover img { transform: scale(1.05); }
.galerie-3 { grid-template-columns: repeat(3, 1fr); }
.galerie-mehr { text-align: center; margin-top: 30px; }

#lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 40, 0.93);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lb-overlay img {
  max-width: min(94vw, 1400px);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}
.lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.25); }
.lb-schliessen { top: 20px; right: 20px; }
.lb-zurueck { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-weiter { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-zaehler { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #c9d0e4; font-size: 0.9rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 40px; }
.team-mitglied {
  background: var(--weiss);
  border: 1px solid var(--grau-linie);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--schatten);
}
.team-mitglied img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.team-mitglied figcaption { padding: 14px 10px 16px; }
.team-name { display: block; font-weight: 700; color: var(--navy); font-size: 0.98rem; }
.team-rolle { display: block; color: var(--text-hell); font-size: 0.86rem; margin-top: 2px; }

/* ---------- Partner-Logos ---------- */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 36px;
}
.partner-grid img {
  height: 52px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.2s, opacity 0.2s;
}
.partner-grid img:hover { filter: none; opacity: 1; }

/* ---------- Standort-Karten (Kontakt) ---------- */
.standorte-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 40px; }
.standort-karte {
  background: var(--weiss);
  border: 1px solid var(--grau-linie);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--schatten);
  position: relative;
  overflow: hidden;
}
.standort-karte::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--regenbogen);
}
.standort-karte h3 { font-size: 1.35rem; margin-bottom: 4px; }
.standort-firma { color: var(--text-hell); font-size: 0.94rem; margin-bottom: 16px; }
.standort-karte .kontakt-liste { margin-top: 0; }
.standort-karte .kontakt-liste svg { fill: var(--akzent); }
.standort-karte .kontakt-liste a { color: var(--navy); font-weight: 600; }

/* ---------- Kontakt-CTA ---------- */
.contact-cta {
  background:
    radial-gradient(ellipse at 12% 100%, rgba(125, 79, 168, 0.30), transparent 50%),
    radial-gradient(ellipse at 90% 0%, rgba(217, 46, 78, 0.22), transparent 45%),
    linear-gradient(135deg, var(--navy-dunkel) 0%, var(--navy) 60%, var(--navy-hell) 100%);
  color: #ccd3e8;
  padding: 80px 0;
  position: relative;
}
.contact-cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--regenbogen);
}
.contact-cta h2 { color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.cta-standort { margin-top: 24px; }
.cta-standort h3 { color: #fff; font-size: 1.06rem; text-transform: uppercase; letter-spacing: 0.06em; }
.kontakt-liste { list-style: none; margin-top: 8px; }
.kontakt-liste li { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; }
.kontakt-liste svg { width: 21px; height: 21px; fill: #f0a500; flex-shrink: 0; margin-top: 3px; }
.kontakt-liste a { color: #fff; font-weight: 600; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9aa5c4; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); background: rgba(255, 255, 255, 0.12); }
.contact-form textarea, .contact-form .cf-voll, .contact-form button { grid-column: 1 / -1; }
.contact-form textarea { resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .btn { justify-self: start; }

/* Standort-Auswahl im Formular */
.cf-standortwahl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}
.cf-standort-label { font-weight: 700; color: #fff; }
.cf-standortwahl label { display: flex; align-items: center; gap: 7px; cursor: pointer; color: #e8ecf8; }
.cf-standortwahl input { accent-color: var(--gold); width: 17px; height: 17px; }

/* Formular-Box auf hellem Grund (Kontakt-Seite) */
.formular-box {
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 40px 36px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.formular-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--regenbogen);
}
.formular-box h2 { color: #fff; }
.formular-box p { color: #ccd3e8; margin-bottom: 20px; }

/* ---------- Formular-Overlay ---------- */
#cf-modal {
  position: fixed;
  inset: 0;
  background: rgba(19, 28, 64, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.cf-box {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 42px 38px;
  max-width: 460px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.cf-box h3 { color: var(--navy); font-size: 1.3rem; margin: 16px 0 10px; }
.cf-box .btn { margin-top: 20px; }
.cf-check { width: 64px; height: 64px; }
.cf-check-kreis { stroke: #4c9a63; stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; animation: cf-zeichnen 0.7s ease forwards; }
.cf-check-haken { stroke: #4c9a63; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: cf-zeichnen 0.5s 0.5s ease forwards; }
.cf-x-kreis { stroke: #a04545; stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; animation: cf-zeichnen 0.7s ease forwards; }
.cf-x-linien { stroke: #a04545; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 55; stroke-dashoffset: 55; animation: cf-zeichnen 0.5s 0.5s ease forwards; }
@keyframes cf-zeichnen { to { stroke-dashoffset: 0; } }

/* ---------- Cookie-Banner ---------- */
#cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: flex;
  justify-content: center;
}
.cc-inner {
  background: #fff;
  border: 1px solid var(--grau-linie);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
  padding: 22px 26px;
  max-width: 620px;
  font-size: 0.94rem;
}
.cc-actions { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.cc-btn {
  background: var(--akzent);
  color: #fff;
  border: 0;
  border-radius: 100px;
  padding: 10px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cc-btn:hover { background: var(--akzent-dunkel); }
.cc-btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--grau-linie); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dunkel); color: #aab3cd; padding: 60px 0 30px; font-size: 0.95rem; }
.footer-logo { display: inline-block; background: #fff; border-radius: 8px; padding: 8px 12px; }
.footer-logo img { display: block; width: 120px; height: auto; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.9fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.site-footer a { color: #ccd3e8; }
.site-footer a:hover { color: var(--gold); }
.site-footer nav a { display: block; padding: 3px 0; }
.footer-text { margin-top: 16px; }
.footer-unten {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 44px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #7d87a6;
}

/* ---------- Responsiv ---------- */
@media (max-width: 980px) {
  .leistungen-grid, .stats-grid { grid-template-columns: 1fr 1fr; }
  .galerie { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-grid, .split, .hero-grid, .standorte-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-media { order: 0; }
  .split + .split { margin-top: 60px; }
  img.split-media { max-height: 320px; }
  .hero-foto img { max-height: 340px; }
}

@media (max-width: 700px) {
  .section { padding: 56px 0; }
  .hero { padding: 70px 0 62px; }
  .leistungen-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 26px; }
  .galerie { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-unten { flex-direction: column; align-items: flex-start; }
  .formular-box { padding: 28px 20px; }

  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--grau-linie);
    box-shadow: 0 14px 30px rgba(30, 43, 92, 0.12);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px; }
  .main-nav a:not(.btn) { padding: 13px 10px; }
  .untermenue { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 18px; min-width: 0; }
  .hat-untermenue > a svg { display: none; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { display: block; text-align: center; }
}
