:root {
  --bg: #f4f5f7; /* Seitenhintergrund */
  --surface: #ffffff; /* Cards / Form / Boxen */
  --surface-2: #f8f9fa;
  --text: #222425;
  --muted: #5c6164;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);

  /* Logo-Farben */
  --accent: white;
  --accent-2: #2f2f2f; /* Anthrazit */
  --accent-soft: rgba(203, 184, 154, 0.25);

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --container: 1120px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--text);
  background: white,
    radial-gradient(
      900px 600px at 85% 15%,
      rgba(0, 0, 0, 0.05),
      transparent 55%
    ),
    var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.skip-link:focus {
  left: 12px;
  z-index: 9999;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: white;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}
.nav-link {
  display: inline-block;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: var(--text);
}
.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.nav-note {
  display: inline-block;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-note--draft {
  color: #b42318;
}

.header-cta {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}
.nav-toggle__lines {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent-2);
  position: relative;
}
.nav-toggle__lines::before,
.nav-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--accent-2);
}
.nav-toggle__lines::before {
  top: -6px;
}
.nav-toggle__lines::after {
  top: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  background: var(--accent-2);
  color: #fff;
  background-color: #2f2f2f;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn--ghost {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: none;
  background-color: #d1c3ab;
}
.btn--wide {
  width: 100%;
  background-color: darkgreen;
}

/* HERO – polish */
.hero {
  padding: 3.2rem 0 2.2rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 2rem;
  align-items: start;
}

/* Linke Spalte */
.hero-copy h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.1rem, 3.2vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.trust-row {
  margin: 1.05rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.9rem 1.1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.trust-icon {
  width: 20px;
  height: 20px;
  color: #0a7b3a;
  flex: 0 0 auto;
}

/* Rechte Card */
.hero-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

/* Mobile – perfekte Reihenfolge + bessere Proportionen */
@media (max-width: 640px) {
  .hero {
    padding: 2.1rem 0 1.4rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .hero-copy h1 {
    font-size: 2.05rem;
    line-height: 1.07;
    margin: 0 0 0.7rem;
  }

  .hero-actions {
    gap: 0.6rem;
    margin-top: 0;
    margin-bottom: 0.85rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    background-color: darkgreen;
  }

  .trust-row {
    font-size: 0.9rem;
    gap: 0.55rem 0.9rem;
    margin-top: 0.85rem;
  }

  .hero-card {
    padding: 1.05rem;
  }
}

/* Sections */
.section {
  padding: 2.6rem 0;
}

/* WICHTIG: Trennlinien zwischen Sektionen entfernt (Design bleibt, nur ohne Divider) */
.section--alt {
  background: white;
  border-top: none;
  border-bottom: none;
}

.section-head {
  margin-bottom: 1.25rem;
}
.section-head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  letter-spacing: -0.01em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
/* Zweite Reihe (nur 2 Karten) zentriert, gleiche Breite wie oben */
.cards-row-2 {
  grid-column: 1 / -1; /* wrapper über volle Breite des 3er-Grids */
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Kartenbreite unten exakt wie 1 Spalte oben:
   3 Spalten => 2 Gaps à 1rem => (100% - 2rem) / 3 */
.cards-row-2 > .card {
  flex: 0 1 calc((100% - 2rem) / 3);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.05rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
}
.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}
.card-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.card-list li::marker {
  color: #cbb89a;
  font-weight: 700;
}
.card-list li {
  margin: 0.2rem 0;
}

/* =========================
   Leistungen: Flip Cards
   Standard: Bild + Titel
   Klick: Drehung -> Text
   ========================= */
.card--flip {
  padding: 0; /* Inhalt wird in den Faces gepaddet */
  overflow: hidden;
  cursor: pointer;
  perspective: 1000px;
}

.card--flip:focus-within {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.card-flip {
  position: relative;
  width: 100%;
  min-height: 260px; /* sorgt für „voll“, ohne zu klein zu werden */
  transform-style: preserve-3d;
  transition: transform 520ms ease;
}

.card--flip.is-flipped .card-flip {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-face--front {
  background: var(--surface);
}

.card-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card-img-title {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.card-face--back {
  transform: rotateY(180deg);
  background: var(--surface);
  padding: 1.1rem 1.05rem; /* entspricht deiner normalen Card-Padding */
  overflow: auto;
}

/* Rückseiten-Text wie vorher */
.card-face--back p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.card-face--back h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .card-flip {
    min-height: 240px;
  }
}

/* Features */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.05rem;
}
.feature h3 {
  margin: 0 0 0.35rem;
}
.feature p {
  margin: 0;
  color: var(--muted);
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.85rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #cbb89a;
  color: var(--accent-2);
  font-weight: 800;
}
.step-body h3 {
  margin: 0 0 0.2rem;
}
.step-body p {
  margin: 0;
  color: var(--muted);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
  align-items: start;
}
.contact-card,
.form {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
}
.muted {
  color: var(--muted);
  margin-top: 0.25rem;
}
.contact-lines {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.65rem;
}
.line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(0, 0, 0, 0.16);
  background: white;
}
.line-k {
  font-weight: 700;
  color: var(--accent-2);
}
.line-v {
  color: var(--muted);
  font-weight: 600;
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}
input,
select,
textarea {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.16);
  font: inherit;
  background: white;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--accent-soft);
  border-color: rgba(0, 0, 0, 0.22);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.form-status {
  margin-top: 0.75rem;
  font-weight: 700;
}
.form-status.ok {
  color: #0a7b3a;
}
.form-status.err {
  color: #b42318;
}

.micro {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Footer */
.footer {
  padding: 1.5rem 0 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-weight: 600;

  /* WICHTIG: Linie über Footer bleibt */
  border-top: 1px solid var(--border);

  padding-top: 1.25rem;
}
.footer-links {
  display: flex;
  gap: 1rem;
}
.footer a {
  color: var(--muted);
}
.footer a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-menu {
    position: absolute;
    right: 1rem;
    top: 70px;
    flex-direction: column;
    gap: 0.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.35rem;
    width: min(260px, calc(100vw - 2rem));
    box-shadow: var(--shadow);
    transform-origin: top right;
    transform: scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: 0.16s ease;
  }
  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }
  .nav-link {
    width: 100%;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Legal */
.legal .legal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
}
.legal h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.02rem;
}
.legal p {
  margin: 0 0 0.65rem;
  color: var(--muted);
}
.legal p strong {
  color: var(--text);
}

/* About (Über uns) – clean alignment */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 1.25rem;
  align-items: start;
}

/* Linke Textspalte */
.about-text {
  margin: 0;
  padding: 0;
}
.about-text h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  letter-spacing: -0.01em;
}

.about-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 60ch;
}

.about-text p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Facts-Grid */
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;

  margin-top: 0;
  padding-top: 0.2rem;
}

/* Fact Card */
.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 0.9rem;
  text-align: center;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);

  min-height: 84px;
  display: grid;
  place-items: center;
  gap: 0.15rem;

  transition: transform 160ms ease, box-shadow 160ms ease,
    border-color 160ms ease;
}

.fact-value {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent-2);
  letter-spacing: -0.01em;
}

.fact-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

.fact:hover,
.fact:focus-within {
  border-color: var(--accent);
}

/* Responsive Facts */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding-top: 0;
  }

  .fact {
    min-height: 78px;
  }
}

@media (max-width: 640px) {
  .about-facts {
    grid-template-columns: 1fr;
  }
}

/* Interactive hover/focus feedback */
.card,
.feature,
.fact,
.step,
.contact-card,
.form,
.legal .legal-box {
  transition: transform 160ms ease, box-shadow 160ms ease,
    border-color 160ms ease;
}

.card:hover,
.card:focus-within,
.feature:hover,
.feature:focus-within,
.fact:hover,
.fact:focus-within,
.step:hover,
.step:focus-within,
.contact-card:hover,
.contact-card:focus-within,
.form:hover,
.form:focus-within,
.legal .legal-box:hover,
.legal .legal-box:focus-within {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

/* Tap feedback (mobile) */
.is-tapped {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

/* Contact – stacked layout */
.contact--stacked {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

/* Call to action (phone) */
.call-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-lg);
  background: #cbb89a;
  color: black;
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.call-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  text-decoration: none;
}

.call-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.call-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.call-number {
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0.95;
}

/* Contact divider (Linie zwischen Formular und Anruf-Button bleibt) */
.contact-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0.6rem 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-divider::before,
.contact-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Datenschutz-Einwilligung */
.consent {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.6rem 0 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.consent input[type="checkbox"] {
  width: auto;
  height: auto;
  margin: 0.2rem 0 0;
  padding: 0;
  border-radius: 4px;
  flex: 0 0 auto;
}

.consent span {
  display: inline-block;
  line-height: 1.35;
  max-width: 70ch;
}

.consent a {
  color: var(--accent-2);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-actions .btn {
    width: 100%;
  }
}

textarea {
  resize: none;
  overflow: hidden;
}

/* === HERO SPACING OVERRIDE (put at VERY end) === */
.hero-copy h1 {
  margin-bottom: 1.6rem !important;
}

.hero-actions {
  margin-top: 0 !important;
  margin-bottom: 1.3rem !important;
}

.trust-row {
  margin-top: 0 !important;
}

/* HERO – Logo replacement */
.hero-logo {
  margin-top: 1.6rem;
  max-width: 420px;
}

.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.95;
}

.hero-actions .btn {
  background: #2f2f2f;
  color: #fff;
  border: none;
}
.hero-actions .btn:hover {
  background: #1f1f1f;
}
.hero-actions .btn--ghost {
  background: transparent;
  color: #2f2f2f;
  border: 1.5px solid rgba(47, 47, 47, 0.35);
}
.hero-actions .btn--ghost:hover {
  background: rgba(47, 47, 47, 0.05);
}
/* Contact: zwei CTA-Buttons nebeneinander */
.contact-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

/* WhatsApp Button optisch passend, ohne knallig zu wirken */
.call-cta--wa {
  background: #cbb89a; /* du kannst auch var verwenden, falls vorhanden */
}

/* Auf Mobile untereinander (falls es zu eng wird) */
@media (max-width: 640px) {
  .contact-ctas {
    grid-template-columns: 1fr;
  }
}
/* ================================
   FULL RESPONSIVE PATCH
   - Desktop bis 500% Zoom
   - Tablet Portrait/Landscape
   - Handy Portrait/Landscape
   ================================ */

/* 1) Basis gegen Overflow bei Zoom + langen Texten */
html {
  -webkit-text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
}
* {
  min-width: 0;
}
img,
svg {
  max-width: 100%;
  height: auto;
}

/* 2) Container bei sehr kleinen Viewports (500% Zoom) */
@media (max-width: 420px) {
  .container {
    width: calc(100% - 1rem);
  }
}

/* 3) Header/Nav: Dropdown-Position nicht hart (70px) sondern relativ zum Header
      -> wichtig für 200–500% Zoom (Headerhöhe ändert sich) */
.nav {
  position: relative;
}

@media (max-width: 640px) {
  .nav-menu {
    right: 0;
    top: calc(100% + 0.5rem); /* statt top: 70px; */
    max-height: min(70vh, 420px);
    overflow: auto;
  }
}

/* 4) Hero: Grid auf 1 Spalte früher + saubere Typo bei Zoom */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-logo {
    max-width: 360px;
    margin-top: 1rem;
  }
}

/* 500% Zoom / sehr schmale Breite: Buttons & Trust-Row sauber stapeln */
@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
    line-height: 1.08;
  }

  .hero-actions {
    gap: 0.5rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .trust-row {
    gap: 0.45rem 0.8rem;
    font-size: 0.9rem;
  }

  /* Trust items dürfen umbrechen, sonst Overflow */
  .trust-row li {
    white-space: normal;
  }
}

/* 5) Leistungen-Karten: 3 -> 2 -> 1 (dein Desktop bleibt 3) */
@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Flip-Card Höhen: bei Zoom/Landscape nicht "zu hoch" und nicht abgeschnitten */
.card-flip {
  min-height: clamp(220px, 38vw, 280px);
}

/* Rückseite: bei kleinen Höhen immer scrollbar (sonst wirkt "kaputt") */
.card-face--back {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* 6) Vorteile/Grid-2: 2 -> 1 (hast du schon, wir stabilisieren nur) */
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* 7) Ablauf: Steps immer lesbar */
@media (max-width: 640px) {
  .step {
    grid-template-columns: 40px 1fr;
  }
}

/* 8) Kontakt: Form-Row & Buttons stabil für Zoom */
@media (max-width: 800px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* CTA Buttons: auf normalen Phones 2-spaltig ok, auf sehr schmal 1-spaltig */
@media (max-width: 420px) {
  .contact-ctas {
    grid-template-columns: 1fr;
  }
}

/* 9) Footer: auf schmalen Screens umbrechen */
@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* ================================
   ORIENTATION FIXES
   ================================ */

/* 10) Handy LANDSCAPE (kleine Höhe): weniger Padding, Menü scrollt, Hero kompakter */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    padding: 1.6rem 0 1.1rem;
  }

  .section {
    padding: 2rem 0;
  }

  /* Dropdown-Menü: niemals aus dem Screen laufen */
  .nav-menu {
    max-height: 65vh;
    overflow: auto;
  }

  /* Hero-Logo kompakter */
  .hero-logo {
    max-width: 300px;
    margin-top: 0.75rem;
  }
}

/* 11) Tablet LANDSCAPE: etwas mehr Luft, aber kein Überschneiden */
@media (min-width: 768px) and (max-width: 1180px) and (orientation: landscape) {
  .container {
    width: min(var(--container), calc(100% - 2.25rem));
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
/* =========================================
   Force Mobile Nav on small-height landscape
   (handy quer: dropdown statt full navbar)
   ========================================= */
@media (max-height: 520px) and (orientation: landscape) {
  /* Burger sichtbar */
  .nav-toggle {
    display: inline-flex !important;
  }

  /* Desktop-Menü im Header ausblenden */
  .nav-menu {
    display: none !important;
  }

  /* Dropdown-Menü, wenn open */
  .nav-menu.open {
    display: grid !important;
    gap: 0.35rem;

    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);

    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);

    max-height: 70vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }

  /* Header-CTA optional ausblenden, falls es eng wird */
  .header-cta {
    display: none;
  }
}
/* Fix: Dropdown soll in Handy-Landscape volle Headerbreite haben */
@media (max-height: 520px) and (orientation: landscape) {
  /* wichtig: Positionierungs-Kontext ist der Header-Container */
  .header-inner {
    position: relative;
  }

  /* Dropdown NICHT am Button "kleben" lassen */
  .nav {
    position: static;
  }

  /* Breite erzwingen: volle Headerbreite */
  .nav-menu.open {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;

    /* falls irgendwo max-width gesetzt wurde */
    max-width: none !important;
  }
}
/* Vorteile: Intro-Text soll auf Desktop volle Breite nutzen */
@media (min-width: 900px) {
  #vorteile .section-head {
    max-width: none;
    width: 100%;
  }

  #vorteile .section-head p {
    max-width: none;
  }
}
/* =========================
   HERO HEADLINE – FINAL CLEAN
   ========================= */

.hero-copy h1 {
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  font-weight: 500; /* Regional = ruhig */
}

/* Kernbotschaft */
.hero-copy h1 .accent {
  font-weight: 800; /* Zuverlässig = stark */
  letter-spacing: -0.03em;
  display: inline-block;
}

/* Abschluss */
.hero-copy h1 .subaccent {
  font-weight: 400; /* professionell = leicht */
  opacity: 0.9;
}

/* Buttons sauber abgesetzt */
.hero-actions {
  margin-top: 0.4rem;
  gap: 0.9rem;
}
@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-row-2 {
    display: contents;
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
.imprint-note {
  color: var(--muted);
  margin-top: 0.5rem;
}

.imprint-note a {
  color: inherit;
  text-decoration: underline;
}

.imprint-note a:hover {
  text-decoration: none;
}
.call-icon img {
  width: 1.25em;
  height: 1.25em;
  display: block;
}
.call-icon svg {
  width: 1.25em;
  height: 1.25em;
  display: block;
  color: white;
}
/* =========================
   MOBILE HERO CENTERING
   ========================= */
@media (max-width: 640px) {
  /* Slogan / Headline zentrieren */
  .hero-copy {
    text-align: center;
  }

  .hero-copy h1 {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .trust-row {
    justify-content: center;
    text-align: center;
  }

  .trust-row li {
    justify-content: center;
    text-align: center;
  }
}
/* =========================================
   HERO: Logo neben Slogan
   - iPad (Tablet)
   - Handy Landscape
   ========================================= */

@media (min-width: 768px) and (max-width: 1180px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-logo {
    margin-top: 0;
    max-width: 360px;
    justify-self: end;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;

    align-items: start;
    gap: 1.25rem;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-logo {
    margin-top: 0;
    max-width: 300px;
    justify-self: end;
    align-self: start;
    transform: translateY(-14px);
  }

  .trust-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.45rem 0.75rem;
    font-size: 0.82rem;
    overflow: hidden;
  }

  .trust-row li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
  }

  .trust-icon {
    width: 18px;
    height: 18px;
  }
}

/* =========================
   MOBILE: Trust Points in 1 Reihe
   ========================= */
@media (max-width: 640px) {
  .trust-row {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }

  .trust-row li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
  }

  .trust-icon {
    width: 18px;
    height: 18px;
  }
}
/* =========================================
   FINAL OVERRIDES: Trust row clean + iPad hero columns
   (put at absolute END of file)
   ========================================= */

@media (max-height: 520px) and (orientation: landscape) {
  .trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, max-content));
    column-gap: 0.75rem;
    row-gap: 0;
    align-items: center;

    white-space: nowrap;
    margin-top: 0.75rem !important;
  }

  .trust-row li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    min-width: 0;
  }

  .trust-row {
    font-size: 0.78rem;
  }

  .trust-icon {
    width: 16px;
    height: 16px;
  }
}

/* ---------- 2) iPad / Tablet: Hero wieder 2-spaltig (überschreibt dein späteres max-width:980 1fr) ---------- */
@media (min-width: 768px) and (max-width: 1180px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
    align-items: start;
  }

  .hero-logo {
    margin-top: 0 !important;
    justify-self: end;
    align-self: start;
    transform: translateY(-10px);
    max-width: 360px;
  }
}

/* Trust points / About facts */
.about-facts-section {
  padding: 28px 0;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-inline: clamp(12px, 3vw, 28px);
  text-align: center;
}

.fact {
  padding: 14px 12px;
  border-radius: 14px;
}

.fact-number {
  display: block;
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
}

.fact-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.85;
}

/* Mobile: untereinander */
@media (max-width: 720px) {
  .about-facts {
    grid-template-columns: 1fr;
  }
}
/* HERO Intro: volle Breite nutzen */
.hero-intro p {
  max-width: none;
  width: 100%;
}
/* Desktop: Logo auf Höhe des Slogans */
@media (min-width: 981px) {
  .hero-inner {
    align-items: start;
  }

  .hero-logo {
    margin-top: 0 !important;
    align-self: start;
    justify-self: end;
  }
}
