/* =========================================================================
   Elektro Raumer — Stylesheet
   Mobile-first · DSGVO-freundlich (lokale Schriften, keine externen CDNs)
   ========================================================================= */

/* ---------- Lokale Schriften (self-hosted, kein Google Fonts CDN) -------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/space-grotesk-700.woff2") format("woff2");
}

/* ---------------------------- Design Tokens ----------------------------- */
:root {
  /* Farbwelt: tiefes Navy (Vertrauen) + elektrisches Blau + Solar-Amber */
  --ink: #0d2540;
  --navy-900: #0d2540;
  --navy-800: #10395f;
  --navy-700: #16456f;

  --body: #44515f;
  --muted: #6b7785;

  --bg: #ffffff;
  --surface: #f4f8fb;
  --surface-2: #e9f1f8;
  --border: #e3eaf1;

  --primary: #1577c0;
  --primary-dark: #0f5e9c;
  --cyan: #22b8e0;          /* wowobot-Akzent */
  --accent: #f5a524;        /* CTA / Energie */
  --accent-dark: #e0900c;

  --white: #ffffff;
  --success: #16895a;
  --danger: #d4351c;

  /* Typografie */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Abstände (8px-Raster) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;

  /* Radien & Schatten */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(13, 37, 64, 0.06), 0 2px 6px rgba(13, 37, 64, 0.05);
  --shadow-md: 0 10px 30px rgba(13, 37, 64, 0.08), 0 4px 10px rgba(13, 37, 64, 0.05);
  --shadow-lg: 0 24px 60px rgba(13, 37, 64, 0.14), 0 8px 20px rgba(13, 37, 64, 0.08);

  --maxw: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------- Reset ---------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;     /* 17px */
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;       /* keine horizontalen Scrollbalken */
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
p { margin: 0 0 1em; }

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------ Layout ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: var(--sp-6); }
.section--tight { padding-block: var(--sp-5); }
.section--surface { background: var(--surface); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #dbe7f2;
}
.section--navy h2,
.section--navy h3 { color: #fff; }

.section-head {
  max-width: 720px;
  margin: 0 auto var(--sp-5);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.section--navy .eyebrow { color: var(--cyan); }
.lead { font-size: 1.12rem; color: var(--muted); }
.section--navy .lead { color: #aec6dc; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: var(--navy-900);
  box-shadow: 0 8px 20px rgba(245, 165, 36, 0.32);
}
.btn--primary:hover { background: var(--accent-dark); box-shadow: 0 12px 26px rgba(245, 165, 36, 0.4); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-dark); }

.btn--light {
  background: #fff;
  color: var(--navy-900);
}
.btn--light:hover { background: #eef5fb; }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn svg { width: 20px; height: 20px; }

/* ------------------------------ Header ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, 0.96); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand img { height: 46px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.12rem; }
.brand__sub { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav a {
  color: var(--ink);
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.98rem;
}
.nav a:hover { color: var(--primary-dark); background: var(--surface-2); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--ink);
}
.header-phone:hover { color: var(--primary-dark); text-decoration: none; }
.header-phone svg { width: 18px; height: 18px; color: var(--primary); }

/* Burger */
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bars { position: relative; width: 22px; height: 2px; background: var(--ink); transition: background 0.2s; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 37, 64, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
  z-index: 90;
}
.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

/* ------------------------------- Hero ----------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(165deg, #0d2540 0%, #123353 55%, #0f2d4c 100%);
  color: #e7f0f8;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(34, 184, 224, 0.28), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
  padding-block: var(--sp-6) var(--sp-6);
  z-index: 1;
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--accent); }
.hero__sub { font-size: 1.18rem; color: #b9d0e4; max-width: 38ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: var(--sp-3); }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.8rem;
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero__badge { display: flex; align-items: center; gap: 0.55rem; font-size: 0.95rem; color: #cfe0ef; }
.hero__badge svg { width: 22px; height: 22px; color: var(--cyan); flex: none; }
.hero__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__floating {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  padding: 0.7rem 1rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  max-width: calc(100% - 32px);
}
.hero__floating svg { width: 26px; height: 26px; color: var(--accent); flex: none; }

/* --------------------------- Trust / Stats ------------------------------ */
.trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.trust__item { background: #fff; padding: 1.4rem 1.2rem; text-align: center; }
.trust__num { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--primary-dark); }
.trust__label { font-size: 0.9rem; color: var(--muted); }

/* ----------------------------- Services --------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0ef; }
.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: linear-gradient(140deg, var(--surface-2), #fff);
  color: var(--primary-dark);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--body); font-size: 0.99rem; }

.feature-list { list-style: none; margin-top: 0.6rem; }
.feature-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.45rem;
  font-size: 0.97rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 12px; height: 8px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* Accordion-Verhalten der Service-Karten (mobil = zusammengeklappt) */
.card__details > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
  margin-top: 0.4rem;
  user-select: none;
}
.card__details > summary::-webkit-details-marker { display: none; }
.card__details > summary .chev {
  width: 16px; height: 16px;
  transition: transform 0.25s var(--ease);
}
.card__details[open] > summary .chev { transform: rotate(180deg); }
.card__details[open] > summary .label-open { display: none; }
.card__details:not([open]) > summary .label-closed { display: none; }

/* ----------------------------- Über uns --------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: center;
}
.about__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about__text p { color: var(--body); }
.signature { font-family: var(--font-head); font-weight: 700; color: var(--ink); margin-top: 1rem; }

/* ----------------------------- Vorteile --------------------------------- */
.benefits { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.benefit {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  padding: 1.3rem;
}
.benefit__icon {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: rgba(34, 184, 224, 0.16);
  color: var(--cyan);
}
.benefit__icon svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 1.12rem; margin-bottom: 0.25rem; }
.benefit p { color: #aec6dc; margin: 0; font-size: 0.96rem; }

/* ------------------------------ Ablauf ---------------------------------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 1.1rem; counter-reset: step; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.step__num {
  counter-increment: step;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--navy-900);
  color: #fff;
  margin-bottom: 0.8rem;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.step p { margin: 0; font-size: 0.96rem; }

/* ----------------------------- Standort --------------------------------- */
.standort {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  align-items: stretch;
}
.standort__map { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.standort__map img { width: 100%; height: 100%; object-fit: cover; }
.standort__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.info-row { display: flex; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.info-row:last-of-type { border-bottom: 0; }
.info-row svg { width: 20px; height: 20px; color: var(--primary); flex: none; margin-top: 3px; }
.info-row strong { display: block; color: var(--ink); font-weight: 600; }
.info-row span, .info-row a { color: var(--body); }
.badge-note {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-sm);
}

/* ------------------------------ Kontakt --------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
.contact__aside h3 { color: #fff; }
.contact__aside .info-row { border-color: rgba(255, 255, 255, 0.14); }
.contact__aside .info-row strong { color: #fff; }
.contact__aside .info-row span,
.contact__aside .info-row a { color: #c4d6e7; }
.contact__aside .info-row svg { color: var(--cyan); }

.form-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
  color: var(--body);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; font-size: 0.95rem; }
.field .req { color: var(--danger); }
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.8rem 0.9rem;
  min-height: 48px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(21, 119, 192, 0.12);
}
.field-grid { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
.field .error-msg { color: var(--danger); font-size: 0.85rem; margin-top: 0.3rem; display: none; }
.field.has-error input,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error .error-msg { display: block; }

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.9rem;
  margin-bottom: 1.1rem;
}
.consent input[type="checkbox"] {
  width: 22px; height: 22px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--primary);
  cursor: pointer;
}
.consent label { font-size: 0.9rem; color: var(--body); line-height: 1.5; }
.consent.has-error { border-color: var(--danger); background: #fdf1ef; }

.form-feedback {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r-sm);
  margin-top: 1rem;
  font-weight: 500;
}
.form-feedback.is-success { display: flex; background: #e8f6ef; color: var(--success); border: 1px solid #bfe6d3; }
.form-feedback svg { width: 22px; height: 22px; flex: none; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.8rem; }

/* ------------------------------- Footer --------------------------------- */
.site-footer {
  background: #081a2e;
  color: #9fb6cc;
  padding-top: var(--sp-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
}
.footer-brand img { height: 44px; margin-bottom: 0.8rem; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p { font-size: 0.95rem; max-width: 32ch; }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: 1rem; margin: 0 0 0.9rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: #9fb6cc; font-size: 0.96rem; }
.footer-links a:hover { color: #fff; }

.social { display: flex; gap: 0.6rem; margin-top: 0.4rem; }
.social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.07);
  color: #cdddeb;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.social a:hover { background: var(--primary); color: #fff; }
.social svg { width: 20px; height: 20px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
  font-size: 0.88rem;
}
.powered { display: inline-flex; align-items: center; gap: 0.35rem; }
.powered a { color: var(--cyan); font-weight: 600; }
.powered a:hover { color: var(--cyan); text-decoration: underline; }

/* --------------------------- Scroll-Reveal ------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================ Breakpoints =============================== */

/* ≥ 560px – kleine Tablets / große Phones */
@media (min-width: 560px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ≥ 768px – Tablet */
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .standort { grid-template-columns: 1.3fr 1fr; }
  /* Accordion-Inhalte ab Tablet immer offen zeigen */
  .card__details > summary { display: none; }
  .card__details > .feature-list { display: block !important; }
}

/* ≥ 992px – Desktop */
@media (min-width: 992px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding-block: var(--sp-7); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards .card--wide { grid-column: span 1; }
  .about { grid-template-columns: 0.95fr 1.05fr; }
  .about--reverse .about__media { order: 2; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .contact { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
}

/* Mobile-Navigation: bis 880px Burger einblenden */
@media (max-width: 879px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: #fff;
    padding: calc(var(--header-h) + 1rem) 1.25rem 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    z-index: 95;
    overflow-y: auto;
  }
  .nav-open .nav { transform: translateX(0); }
  .nav a { padding: 0.85rem 1rem; font-size: 1.05rem; border-bottom: 1px solid var(--surface-2); }
  .nav .btn { margin-top: 1rem; }
  .header-phone span { display: none; }   /* nur Icon auf kleinen Screens */
  /* Text-CTA im Header ausblenden – steckt im Menü (nav-cta-mobile) */
  .header-actions > .btn--primary { display: none; }
}

@media (min-width: 880px) {
  .nav-cta-mobile { display: none; }
  .nav-backdrop { display: none; }
}

/* Sehr kleine Screens */
@media (max-width: 380px) {
  .brand__sub { display: none; }
  .hero__floating { font-size: 0.85rem; }
}

/* --------------------- Reduzierte Bewegung beachten --------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
