/* =====================================================================
   Energieberatung Daniel Manderbach – Stylesheet
   Design-Basis: Konzept 3 „Klar“ (Cleantech-Look, Grüntöne, Bento-Grid)
   ===================================================================== */

/* Schriften liegen auf dem eigenen Server: keine Verbindung zu Google (DSGVO) */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-700-latin.woff2") format("woff2");
}

:root {
  /* Farbwelt (aus dem Konzept) */
  --mint: #dcfce7;
  --mint-50: #f0fdf4;
  --mint-100: #e6fbee;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --emerald: #059669;
  --emerald-700: #047857;
  --deep: #06301f;

  /* Semantische Tokens */
  --bg: var(--mint-50);
  --surface: #ffffff;
  --border: #d1fae5;
  --border-strong: #a7f3d0;
  --text: #0f2a1e;
  --text-muted: #4b5f55;
  --text-soft: #6b7f75;
  --accent: var(--emerald-700);
  --accent-hover: #065f46;
  --on-accent: #ffffff;

  /* Form */
  --r-xl: 32px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --pill: 999px;
  --shadow-soft: 0 12px 32px -14px rgba(5, 150, 105, 0.22);
  --shadow-card: 0 1px 2px rgba(6, 48, 31, 0.04), 0 10px 30px -18px rgba(5, 150, 105, 0.25);
  --shadow-nav: 0 8px 24px -12px rgba(6, 48, 31, 0.18);

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

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --section-y: clamp(72px, 9vw, 120px);

  /* Navigation: gleiche Schriftgroesse wie im Logo */
  --nav-text: 1.05rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-base: 240ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 12px;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
  body { padding: 24px; }
}

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

a { color: inherit; text-decoration: none; }

button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--deep);
  margin: 0;
  text-wrap: balance;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: anywhere;
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--emerald-700);
  outline-offset: 3px;
  border-radius: 6px;
}
.site-footer :focus-visible { outline-color: var(--green-400); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  background: var(--deep);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--pill);
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Shell (mintfarbene Bühne im weißen Rahmen) ---------- */
.shell {
  background: var(--bg);
  border-radius: var(--r-xl);
  overflow: clip;
  position: relative;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 1024px) {
  .container { padding-inline: 40px; }
}

/* ---------- Bausteine ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--pill);
  background: var(--mint);
  color: var(--emerald-700);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
}
.badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-base), transform var(--t-fast);
  touch-action: manipulation;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 24px -12px rgba(4, 120, 87, 0.55);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 14px 28px -12px rgba(4, 120, 87, 0.6); }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  background: var(--surface);
  color: var(--deep);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--border-strong); background: #fbfffc; }
.btn-secondary:active { transform: translateY(1px); }

.btn-sm { min-height: 44px; padding: 11px 22px; font-size: var(--nav-text); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--pill);
  background: var(--mint-100);
  border: 1px solid var(--border);
  color: var(--emerald-700);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--mint);
  color: var(--emerald);
  flex: none;
}
.icon-box svg { width: 28px; height: 28px; }
/* Setzt sich gegen Textregeln wie `.contact-line span` durch */
.contact-line .icon-box { display: grid; color: var(--emerald); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--deep);
}
.check-list .check {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--emerald);
  flex: none;
}
.check-list .check svg { width: 18px; height: 18px; }

.section { padding-block: var(--section-y); }

/* Anker landen nicht unter der Sticky-Navigation */
[id] { scroll-margin-top: 110px; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.section-head p { color: var(--text-muted); font-size: 1.125rem; max-width: 60ch; }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  padding-top: 16px;
}
@media (min-width: 768px) {
  .site-header { top: 24px; padding-top: 24px; }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  padding: 10px 10px 10px 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  box-shadow: var(--shadow-nav);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--deep);
}
.brand-logo { height: 58px; width: auto; flex: none; }

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: var(--nav-text);
  border-radius: var(--pill);
  color: var(--text-muted);
  font-weight: 600;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-links a:hover { color: var(--deep); background: var(--mint-50); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta { display: none; }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--deep);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  margin-top: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-nav);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 600;
  color: var(--deep);
}
.mobile-menu a:not(.btn):hover { background: var(--mint-50); }
.mobile-menu .btn { width: 100%; margin-top: 8px; }

@media (min-width: 768px) {
  .nav-cta { display: inline-flex; }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-toggle, .mobile-menu { display: none !important; }
  .brand-logo { height: 64px; }
  /* Logo wird groesser dargestellt, Navigationsschrift zieht mit */
  .nav { --nav-text: 1.16rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-bottom: 32px;
}

/* Bühne mit Titelbild. Schmale Bildschirme: Text oben, Bild darunter über die volle Breite. */
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
}
.hero-stage > .container {
  position: relative;
  z-index: 1;
  padding-top: clamp(48px, 9vw, 80px);
}
.hero-inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero h1 .accent { color: var(--emerald); }
/* Die Ortszeile gehört zur Hauptüberschrift (wichtig für Google), sieht aber aus wie ein Badge */
.hero h1 .badge {
  display: flex;
  width: fit-content;
  margin: 0 auto 22px;
  font-family: var(--font-body);
  letter-spacing: normal;
}
.hero-lead {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}

.hero-media {
  position: relative;
  margin-top: 40px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mint);
}
.hero-media picture,
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
}
/* Das Haus steht im Bild rechts: beim Beschneiden bleibt die rechte Seite erhalten */
.hero-media img {
  object-fit: cover;
  object-position: 100% 62%;
}
@media (min-width: 600px) {
  .hero-media { aspect-ratio: 16 / 9; }
}
/* Tablet quer: flacheres Format, weniger leerer Himmel über dem Haus */
@media (min-width: 900px) {
  .hero-media { aspect-ratio: 2 / 1; }
  .hero-media img { object-position: 100% 70%; }
}

/* Breite Bildschirme: Bild füllt die ganze Breite hinter Navigation und Text, Text steht links */
@media (min-width: 1280px) {
  .hero-stage {
    /* Höhe der Kopfzeile: 24px Abstand oben + 10px + 64px Logo + 10px + 2px Rahmen.
       Ändert sich die Logohöhe, muss dieser Wert mit. */
    --header-h: 110px;
    justify-content: center;
    min-height: clamp(600px, 52vw, 860px);
    margin-top: calc(-1 * var(--header-h));
    padding: calc(var(--header-h) + 40px) 0 72px;
  }
  .hero-stage > .container { padding-top: 0; }
  .hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    aspect-ratio: auto;
  }
  .hero-media img { object-position: 100% 62%; }
  /* Heller Schleier hinter der Textspalte. Er endet knapp hinter dem Text, egal wie breit
     der Bildschirm ist, und läuft nach unten aus, damit die Bildunterkante klar bleibt. */
  .hero-media::after {
    /* rechte Kante der Textspalte: Innenabstand des Containers + 512px Textbreite */
    --text-ende: max(552px, calc(50% - 48px));
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg,
      rgba(240, 253, 244, 0.9) 0%,
      rgba(240, 253, 244, 0.82) calc(var(--text-ende) - 200px),
      rgba(240, 253, 244, 0.62) var(--text-ende),
      rgba(240, 253, 244, 0) calc(var(--text-ende) + 90px));
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 88%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 88%);
  }
  .hero-inner {
    justify-items: start;
    text-align: left;
    max-width: 512px;
    margin: 0;
  }
  /* höchstens 60px: so passt „Förderung nutzen.“ in die 512px breite Textspalte */
  .hero h1 { font-size: clamp(2.8rem, 4.2vw, 3.75rem); }
  .hero h1 .accent { color: var(--emerald-700); }
  .hero h1 .badge { margin-inline: 0; }
  .hero-lead { max-width: 32rem; color: var(--text); }
  .hero-actions { justify-content: flex-start; }
}

.trust-row {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--mint);
  color: var(--emerald-700);
  font-weight: 600;
  font-size: 0.95rem;
}
.trust-pill svg { width: 16px; height: 16px; flex: none; }

/* ---------- Leistungen (Bento) ---------- */
.bento {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
}
.service {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.service:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(5, 150, 105, 0.35); }
.service h3 { font-size: 1.5rem; }
.service p { color: var(--text-muted); font-size: 1.05rem; }
.service .tags { margin-top: auto; }

.service-featured { flex-direction: row; align-items: flex-start; gap: 24px; }
.service-featured .service-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.service-featured h3 { font-size: 1.75rem; }

.service-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(170deg, #eafdf1 0%, #b9f0cc 60%, #86efac 100%);
  min-height: 360px;
  border: 0;
  box-shadow: var(--shadow-soft);
}
.service-visual svg.isfp-art { width: 100%; flex: 1 1 auto; min-height: 0; }
.service-visual .caption {
  margin: 0 20px 20px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  box-shadow: 0 10px 30px -14px rgba(6, 48, 31, 0.3);
}
.service-visual .caption h3 { font-size: 1.35rem; margin-bottom: 6px; }
.service-visual .caption p { font-size: 0.98rem; }

@media (max-width: 640px) {
  .service-visual { min-height: 480px; }
  .service { padding: 24px; }
  .service-featured { flex-direction: column; }
  .service-featured h3 { font-size: 1.5rem; }
}

@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-featured { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
  .service-featured { grid-column: 1 / 3; grid-row: 1; }
  .service-visual { grid-column: 3; grid-row: 1 / 3; min-height: 0; }
  .service-2 { grid-column: 1; grid-row: 2; }
  .service-3 { grid-column: 2; grid-row: 2; }
}

/* ---------- Faktenband ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 0;
  padding: 44px 24px;
  border-radius: var(--r-xl);
  background: linear-gradient(95deg, var(--emerald-700) 0%, #065f46 100%);
  color: #fff;
  box-shadow: 0 24px 50px -30px rgba(5, 150, 105, 0.6);
}
.fact {
  text-align: center;
  padding-inline: 12px;
}
.fact strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.fact span { color: #ffffff; opacity: 0.92; font-size: 0.98rem; }
@media (max-width: 767px) {
  .facts { padding: 36px 16px; gap: 24px 8px; }
  .fact { padding-inline: 4px; }
  .fact strong { font-size: clamp(1.35rem, 6vw, 1.75rem); }
  .fact span { font-size: 0.9rem; }
}

@media (min-width: 1024px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 56px 32px; }
  .fact + .fact { border-left: 1px solid rgba(255, 255, 255, 0.22); }
}

/* ---------- Über mich ---------- */
.about {
  display: grid;
  gap: 40px;
  align-items: center;
}
.about-text { display: grid; gap: 22px; justify-items: start; }
.about-text h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.about-text p { color: var(--text-muted); font-size: 1.125rem; max-width: 56ch; }

.profile-card {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-radius: var(--r-lg);
  border: 6px solid #fff;
  background: linear-gradient(160deg, #eafdf1 0%, #c9f6da 60%, #a7f3d0 100%);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
  min-height: 440px;
}
.profile-card .profile-mark { width: auto; height: 92px; align-self: flex-start; }
.profile-card .profile-name {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--deep);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.profile-card .profile-title { color: #065f46; font-weight: 600; margin-top: 6px; }
.profile-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0; padding: 0;
}
@media (min-width: 560px) {
  .profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.profile-facts li {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  -webkit-hyphens: auto;
  hyphens: auto;
}
.profile-facts strong { display: block; color: var(--deep); font-family: var(--font-head); font-size: 1rem; margin-bottom: 2px; }
.profile-deco {
  position: absolute;
  right: -40px; top: -40px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.55), rgba(253, 224, 71, 0) 70%);
  pointer-events: none;
}

@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
}

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  padding: 32px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.step-num {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--mint);
  color: var(--emerald-700);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}
.step h3 { font-size: 1.4rem; }
.step p { color: var(--text-muted); font-size: 1.05rem; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
.contact-info {
  padding: clamp(32px, 5vw, 60px);
  background: linear-gradient(160deg, #e6fbee 0%, #d1fae5 100%);
  display: grid;
  gap: 22px;
  align-content: start;
  justify-items: start;
}
.contact-info h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact-info > p { color: var(--text-muted); font-size: 1.1rem; max-width: 46ch; }
.contact-lines { display: grid; gap: 14px; margin-top: 10px; width: 100%; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  padding: 4px;
  margin: -4px;
  transition: background-color var(--t-fast);
}
a.contact-line:hover { background: rgba(255, 255, 255, 0.55); }
.contact-line .icon-box { width: 56px; height: 56px; border-radius: 16px; background: #fff; }
.contact-line .icon-box svg { width: 24px; height: 24px; }
.contact-line strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--deep); line-height: 1.2; }
@media (max-width: 480px) {
  .contact-line { gap: 12px; }
  .contact-line .icon-box { width: 44px; height: 44px; border-radius: 12px; }
  .contact-line .icon-box svg { width: 20px; height: 20px; }
  .contact-line strong { font-size: 1rem; }
}
.contact-line span { display: block; color: var(--text-muted); font-size: 0.95rem; }

.contact-form {
  padding: clamp(32px, 5vw, 60px);
  background: var(--surface);
  display: grid;
  gap: 18px;
  align-content: start;
}
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; color: var(--deep); font-size: 0.95rem; }
.field label .req { color: var(--emerald-700); }
.field label .opt { font-weight: 500; color: var(--text-soft); }
.field label.consent { font-weight: 500; color: var(--text-muted); font-size: 0.92rem; }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--green-600);
  background: var(--mint-50);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5f736a; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--emerald);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #dc2626; }
.field-error { color: #b91c1c; font-size: 0.9rem; display: none; }
.field-error.show { display: block; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.consent input {
  width: 22px; height: 22px;
  margin: 2px 0 0;
  accent-color: var(--emerald);
  flex: none;
  cursor: pointer;
}
.consent a { color: var(--emerald-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.form-status:empty { display: none; }
.form-note {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: var(--mint);
  color: var(--emerald-700);
  font-weight: 500;
}
.form-note.error { background: #fee2e2; color: #991b1b; }

.contact-form .btn { width: 100%; margin-top: 4px; }

@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--section-y);
  background: var(--deep);
  color: #fff;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: clamp(48px, 6vw, 72px) 0 32px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
.footer-brand { display: grid; gap: 18px; justify-items: start; align-content: start; max-width: 40ch; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: rgba(255, 255, 255, 0.72); line-height: 1.65; }
.footer-col .footer-title { color: #fff; font-size: 1.1rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; color: rgba(255, 255, 255, 0.72); line-height: 1.7; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.page-hero {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: 8px;
  display: grid;
  gap: 18px;
  justify-items: start;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 60ch; }

.prose {
  max-width: 760px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 8px;
}
.prose h2 { font-size: 1.5rem; margin-top: 28px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 18px; }
.prose p, .prose li { color: var(--text-muted); line-height: 1.7; }
.prose ul { padding-left: 20px; margin: 4px 0; }
.prose a { color: var(--emerald-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose address { font-style: normal; color: var(--text); line-height: 1.7; }
.prose .todo {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--pill);
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
  font-size: 0.9em;
}

/* ---------- Reveal-Animation ---------- */
.js .reveal:not(.in) { opacity: 0; transform: translateY(18px); }
.js .reveal { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .service.reveal {
  transition: opacity 600ms var(--ease-out), transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal:not(.in) { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Druck / PDF-Export ---------- */
@media print {
  html, body {
    background: #ffffff;
    padding: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .shell { border-radius: 0; }
  .site-header { position: relative; padding-top: 24px; }
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: #ffffff; }
  .skip-link, .nav-toggle, .mobile-menu { display: none !important; }
  .js .reveal, .js .reveal:not(.in) { opacity: 1 !important; transform: none !important; }
  .card, .service, .facts, .contact, .profile-card, .hero-stage { break-inside: avoid; }
  a { text-decoration: none; }

  /* Weiche Schatten werden von PDF-Betrachtern (u. a. macOS Vorschau) als harte
     halbtransparente Kaesten dargestellt. Im Druck daher abschalten. */
  *, *::before, *::after { box-shadow: none !important; }
  .facts { box-shadow: none !important; }
  .service-visual { border: 1px solid var(--border-strong) !important; }
  .hero-media::after { -webkit-mask-image: none; mask-image: none; }
  .facts, .site-footer { border: 0 !important; }
}
