/* EnAplan GmbH – Stylesheet
   Dunkle, ruhige Grundfläche. Rot aus dem Logo für Marke und Aktionen.
   Layerfarben (Rot, Cyan, Gelb) nur dort, wo Technik sichtbar wird. */

/* ---------- Schriften (lokal, Open Font License) ---------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bg: #1E252B;
  --bg-alt: #232B32;
  --bg-deep: #172027;
  --rule: #36424C;
  --line: #D9DEE2;
  --text-2: #B7C0C7;
  --muted: #8E9AA4;
  --red: #E2231A;
  --red-strong: #C81D15;
  --cyan: #5FB7C9;
  --yellow: #E3C04F;
  --paper: #ECEEEF;
  --ink: #1E252B;
  --ink-2: #4A5660;

  --font: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: 16px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--line); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg);
  font-family: var(--font); font-size: 1.125rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--red-strong); color: #fff; }

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

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 20;
  background: var(--line); color: var(--bg); padding: 8px 14px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Kopfzeile ---------- */
.site-header { border-bottom: 1px solid var(--rule); position: relative; z-index: 5; background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
/* Schriftzug: Arial, nur „E“ und „A“ kursiv (Vorgabe EnAplan) */
.brand {
  font-family: Arial, Helvetica, "Liberation Sans", sans-serif; font-weight: 700; font-size: 1.75rem; line-height: 1;
  text-decoration: none; letter-spacing: 0; white-space: nowrap;
}
.brand .r { color: var(--red); font-style: italic; }
.brand small { font-family: var(--font); font-weight: 500; font-size: 0.875rem; color: var(--muted); margin-left: 0.4em; letter-spacing: 0; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: 1rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
/* Call to Action oben rechts: führt auf die Kontaktseite */
.nav a.nav-cta {
  background: var(--red-strong); color: #fff; font-weight: 600;
  padding: 8px 14px; border: 0; border-radius: 2px; white-space: nowrap;
}
.nav a.nav-cta:hover { background: var(--red); border: 0; }
.nav a.nav-cta[aria-current="page"] { background: var(--red); box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.55); }
.nav-tel { display: none; }
.nav-tel a { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 720px) { .nav-tel { display: block; } }
@media (max-width: 479px) {
  .nav ul { gap: 14px; }
  .site-header .brand small { display: none; }
  /* Platz für "Projekt anfragen": "Projekte" (2. Punkt, auf allen Seiten gleich) fällt am Handy weg,
     die Projekte liegen auf der Startseite direkt unter dem Hero */
  .nav li:nth-child(2) { display: none; }
  .nav a.nav-cta { padding: 8px 11px; font-size: 0.9375rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  background: var(--red-strong); color: #fff; border: 0; border-radius: 2px;
  padding: 15px 24px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--red); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.textlink { font-weight: 500; text-decoration: underline; padding-block: 15px; }

/* ---------- Typografie ---------- */
h2 {
  font-family: var(--font-cond); font-weight: 600;
  /* Zeilenabstand so, dass Unterlängen (g, p) die Umlautpunkte der Folgezeile nicht berühren */
  font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1.18;
  margin: 0 0 20px; text-wrap: balance;
}
h3 { font-size: 1.3125rem; line-height: 1.3; font-weight: 600; margin: 0; }
.section-head { max-width: 44em; }
.section-head p { margin: 0; color: var(--text-2); max-width: 40em; }

/* ---------- Hero: Kabelflug aus dem 3D-Modell ---------- */
.hero { position: relative; overflow: hidden; background: #151C22; }
.hero-media { position: absolute; inset: 0; }
.hero-poster, .hero-poster img, .hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 50%;
}
.hero-video { opacity: 0; transition: opacity 0.8s ease; }
.hero-video.is-playing { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(30, 37, 43, 0) 22%),
    linear-gradient(180deg, rgba(21, 28, 34, 0.78) 0%, rgba(21, 28, 34, 0.62) 55%, rgba(21, 28, 34, 0.75) 100%);
}
@media (min-width: 900px) {
  .hero-shade {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(30, 37, 43, 0) 20%),
      linear-gradient(90deg, rgba(21, 28, 34, 0.94) 0%, rgba(21, 28, 34, 0.82) 36%, rgba(21, 28, 34, 0.25) 68%, rgba(21, 28, 34, 0.08) 100%);
  }
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; align-content: center;
  min-height: min(860px, calc(100svh - 64px));
  padding-block: 72px 180px;   /* Platz für Energieweg und Fußzeile */
}
.hero-text { max-width: 660px; }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  padding-bottom: 20px; font-size: 0.875rem; color: var(--muted);
}
.hero-foot p { margin: 0; }
.hero-foot .video-toggle { margin-left: auto; }

/* Handy: Die Hochformat-Version ist schon passend geschnitten (Ausschnitt folgt den Stationen), daher mittig. */
@media (max-width: 699px) {
  .hero-poster, .hero-poster img, .hero-video { object-position: 50% 50%; }
}

/* Energieweg unter dem Hero-Video: läuft mit dem Video mit (main.js setzt --weg und .erreicht) */
.energieweg { position: relative; flex: 1 0 100%; --weg: 1; }
.energieweg ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
}
.energieweg li {
  position: relative; padding-top: 20px; text-align: center;
  font-size: 0.75rem; line-height: 1.25; color: var(--muted);
  transition: color 0.4s ease;
}
.energieweg li::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; box-sizing: border-box;
  background: var(--bg-deep); border: 2px solid var(--rule);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
.energieweg li.erreicht { color: var(--line); }
.energieweg li.erreicht::before { background: var(--cyan); border-color: var(--cyan); }
.weg-spannung { display: block; font-weight: 600; }
.weg-name { display: none; }
.weg-linie {
  position: absolute; top: 5px; height: 2px;
  left: calc(100% / 14); right: calc(100% / 14);
  background: var(--rule);
}
.weg-linie::after {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: calc(var(--weg) * 100%);
  background: var(--cyan); box-shadow: 0 0 8px rgba(95, 183, 201, 0.7);
}
.weg-impuls {
  position: absolute; top: 50%; left: calc(var(--weg) * 100%);
  width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: #DFF6FB; box-shadow: 0 0 10px 3px rgba(95, 183, 201, 0.9);
  opacity: 0; transition: opacity 0.3s ease; z-index: 1;
}
.energieweg.laeuft .weg-impuls { opacity: 1; }
@media (min-width: 700px) {
  .energieweg li { font-size: 0.8125rem; }
  .weg-name { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .energieweg li, .energieweg li::before, .weg-impuls { transition: none; }
}
.video-toggle {
  font: inherit; font-size: 0.875rem; color: var(--line); cursor: pointer;
  background: rgba(21, 28, 34, 0.6); border: 1px solid var(--rule); border-radius: 2px; padding: 6px 12px;
}
.video-toggle:hover { border-color: var(--line); }
.hero h1 {
  font-family: var(--font-cond); font-weight: 600;
  font-size: clamp(3rem, 1.4rem + 5.4vw, 5.75rem);
  line-height: 0.98; letter-spacing: -0.01em;
  margin: 0 0 28px; text-wrap: balance;
}
.hero h1 span { display: block; }
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--text-2); max-width: 36ch; margin: 0 0 36px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }

.section--deep { --section-bg: #151C22; }
.xray-box { position: relative; max-width: 1080px; margin: 40px auto 0; }
.xray { width: 100%; height: auto; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.xray text { font-family: var(--font); font-weight: 500; font-size: 13px; fill: #B5C6D2; }
.xray .halo { opacity: 0.22; stroke-width: 8; }
.xray .core { stroke-width: 2; }
.xray .c-e { color: var(--red); }
.xray .c-k { color: var(--cyan); }
.xray .c-s { color: var(--yellow); }
.xray .c-l { color: #FFE2A0; }
.lens-ring circle, .lens-ring path { fill: none; stroke: var(--line); }
.lens-ring .r1 { stroke-width: 1.5; opacity: 0.85; }
.lens-ring .r2 { stroke-width: 1; opacity: 0.35; stroke-dasharray: 2 7; }
.lens-ring path { stroke-width: 1.5; opacity: 0.85; }
.hero-hint { margin: 12px 0 0; text-align: center; font-size: 0.875rem; color: var(--muted); }

/* Hervorgehobenes Projekt: Umspannwerk */
.feature { display: grid; gap: 28px 48px; margin-top: 48px; padding-bottom: 72px; border-bottom: 1px solid var(--rule); }
@media (min-width: 960px) { .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }
.feature-media { position: relative; }
.feature-media video, .feature-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; background: #151C22; display: block; }
.feature-text h3 { font-family: var(--font-cond); font-weight: 600; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); line-height: 1.18; }
.feature-text > p:not(.project-sub):not(.project-fact) { color: var(--text-2); margin: 0 0 16px; }
.feature-text .tags { margin-bottom: 8px; }
.feature-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 960px) { .feature-strip { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature-strip li { position: relative; }
.feature-strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; display: block; }
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-mouse { display: none; } .hint-touch { display: inline; } }

/* ---------- Abschnitte ---------- */
.section { padding-block: 72px; background: var(--section-bg); --section-bg: var(--bg); }
@media (min-width: 768px) { .section { padding-block: 112px; } }
.section--alt { --section-bg: var(--bg-alt); }
.section--paper { --section-bg: var(--paper); color: var(--ink); }
.section--paper .section-head p, .section--paper p { color: var(--ink-2); }
.section--paper a:hover { color: var(--red-strong); }

/* Statement */
.statement {
  font-family: var(--font-cond); font-weight: 500;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.2;
  margin: 0; max-width: 30ch; color: var(--line); text-wrap: pretty;
}
.statement-foot { display: grid; gap: 24px 48px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .statement-foot { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.statement-foot h3 { font-size: 1.125rem; margin-bottom: 6px; }
.statement-foot p { margin: 0; font-size: 1rem; color: var(--text-2); }

/* Leistungsbereiche: Bild und Text im Wechsel */
.services { display: grid; gap: 72px; margin-top: 64px; }
@media (min-width: 768px) { .services { gap: 112px; } }
.service-row { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .service-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
  .service-row:nth-child(even) .service-media { order: 2; }
  .service-row:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.service-media { position: relative; margin: 0; }
.service-media img { width: 100%; border-radius: 2px; }
.service-text h3 {
  font-family: var(--font-cond); font-weight: 600; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
  line-height: 1.18; margin-bottom: 16px;
}
.service-text h3::before {
  content: ""; display: block; width: 48px; height: 3px; margin-bottom: 18px;
  background: var(--layer, var(--red));
}
.service-text p { margin: 0 0 20px; color: var(--text-2); }
.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; font-size: 1rem; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px;
  border: 1.5px solid var(--layer, var(--line));
}
.service-text a { font-weight: 500; font-size: 1rem; }

.service-media img { aspect-ratio: 4 / 3; object-fit: cover; }
.projects { margin-top: 56px; }
.xray .c-g { color: #45C07F; }
.xray .lps { stroke: #8FA3B2; stroke-width: 1.2; stroke-dasharray: 5 3; }

/* Außerdem */
.extras { margin-top: 96px; padding-top: 32px; border-top: 1px solid var(--rule); display: grid; gap: 20px 48px; }
@media (min-width: 900px) { .extras { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } }
.extras h3 { font-family: var(--font-cond); font-weight: 600; font-size: 1.75rem; }
.extras ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px 40px; }
@media (min-width: 640px) { .extras ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.extras li { font-size: 1rem; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }

/* Berechnungen */
.calc { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .calc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.calc > div > p { color: var(--text-2); margin: 0; max-width: 44ch; }
.calc-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.calc-list li { padding-left: 18px; border-left: 2px solid var(--red); }
.calc-list strong { display: block; font-weight: 600; margin-bottom: 2px; }
.calc-list span { color: var(--text-2); font-size: 1rem; }
.chart-panel { margin: 0; background: var(--bg-deep); border: 1px solid var(--rule); border-radius: 2px; padding: 20px 20px 16px; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart-grid path { stroke: #26323C; stroke-width: 1; fill: none; }
.chart-axis { stroke: var(--muted); stroke-width: 1.2; fill: none; }
.chart-label text { font-family: var(--font); font-size: 13px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart-area { fill: var(--red); fill-opacity: 0.14; stroke: none; }
.chart-curve { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linejoin: round; }
.chart-peak path { stroke: var(--line); stroke-width: 1; opacity: 0.5; fill: none; }
.chart-peak circle { fill: var(--bg-deep); stroke: var(--line); stroke-width: 2; }
.chart-peak text { font-family: var(--font-cond); font-weight: 600; font-size: 22px; fill: var(--line); }
.chart-panel figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.js .chart .chart-curve { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .chart .chart-area, .js .chart .chart-peak { opacity: 0; }
.js .chart.is-visible .chart-curve { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(0.5, 0, 0.3, 1); }
.js .chart.is-visible .chart-area { opacity: 1; transition: opacity 0.6s ease 1.2s; }
.js .chart.is-visible .chart-peak { opacity: 1; transition: opacity 0.4s ease 0.7s; }
@media (prefers-reduced-motion: reduce) {
  .js .chart .chart-curve { stroke-dashoffset: 0; transition: none !important; }
  .js .chart .chart-area, .js .chart .chart-peak { opacity: 1; transition: none !important; }
}

/* Projekte mit Fotos */
.projects { display: grid; gap: 40px 24px; margin-top: 48px; }
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .projects { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.project { margin: 0; display: flex; flex-direction: column; }
.project img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.project-body { padding-top: 18px; }
.project h3 { font-size: 1.25rem; margin-bottom: 2px; }
.project-sub { margin: 0 0 12px; font-size: 0.9375rem; color: var(--muted); }
.project-fact { margin: 0 0 12px; font-family: var(--font-cond); font-weight: 600; font-size: 1.375rem; line-height: 1.15; color: var(--line); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.8125rem; color: var(--text-2); border: 1px solid var(--rule); border-radius: 2px; padding: 3px 8px; }

/* Weitere Projekte */
.more-title { font-family: var(--font-cond); font-weight: 600; font-size: 1.75rem; margin: 80px 0 0; }
.more-projects { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px 28px; }
@media (min-width: 640px) { .more-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.more-projects > li { padding: 0 0 26px; }
.more-fig { margin-bottom: 16px; position: relative; }
.more-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; display: block; }
.tag-symbol {
  position: absolute; left: 8px; bottom: 8px;
  font-size: 0.75rem; line-height: 1; color: var(--line);
  background: rgba(21, 28, 34, 0.78); padding: 5px 8px; border-radius: 2px;
}

/* Technische Illustrationen */
.ill { width: 100%; height: auto; display: block; border-radius: 2px; }
.ill text { font-family: var(--font); font-size: 11px; font-weight: 500; fill: #B5C6D2; }
.ill text.small { font-size: 9px; fill: var(--cyan); }
.ill text.t-s { fill: var(--yellow); }
.ill text.big { font-family: var(--font-cond); font-weight: 600; font-size: 22px; fill: var(--line); }
.ill .i-e { fill: none; stroke: var(--red); stroke-width: 1.6; }
.ill .i-k { fill: #0E1820; stroke: var(--cyan); stroke-width: 1.4; }
.ill .i-data { fill: none; stroke: var(--cyan); stroke-width: 1.2; stroke-dasharray: 4 3; }
.ill .i-s { fill: #0E1820; stroke: var(--yellow); stroke-width: 1.6; }
.ill .i-line { fill: #0E1820; stroke: #8FA3B2; stroke-width: 1.4; }
.ill .i-struct { fill: none; stroke: #405869; stroke-width: 1.2; }
.ill .thin { stroke-width: 1; }
.ill .i-bg { fill: #0E1820; stroke: #34495A; stroke-width: 1.4; }
.more-projects strong { display: block; font-size: 1.1875rem; font-weight: 600; margin-bottom: 6px; }
.more-projects p { margin: 0 0 12px; font-size: 1rem; color: var(--text-2); max-width: 52ch; }

/* VEFK */
.vefk { display: grid; gap: 24px 64px; align-items: start; }
@media (min-width: 900px) { .vefk { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.vefk h2 { margin: 0; }
.vefk p { margin: 0 0 8px; font-size: 1.25rem; color: var(--text-2); max-width: 40ch; }

/* Team */
.team { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 32px 32px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.team li { border-top: 2px solid var(--line); padding-top: 20px; display: grid; gap: 4px; align-content: start; }
.avatar {
  width: 76px; height: 76px; border-radius: 50%; margin-bottom: 12px;
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-cond); font-weight: 600; font-size: 1.75rem; letter-spacing: 0.02em; color: var(--line);
  background:
    linear-gradient(var(--bg-deep), var(--bg-deep)) padding-box,
    conic-gradient(from 210deg, var(--rule), #4A5A66, var(--rule)) border-box;
  border: 2px solid transparent;
}
.avatar--gf { background: linear-gradient(var(--bg-deep), var(--bg-deep)) padding-box, conic-gradient(from 210deg, var(--red-strong), var(--red), var(--red-strong)) border-box; }
/* Porträts einheitlich in Schwarz-Weiß; beim Darüberfahren (Desktop) in Farbe */
.avatar img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.95);
  transition: filter 0.45s ease;
}
@media (hover: hover) {
  .team li:hover .avatar img { filter: none; }
}
@media (prefers-reduced-motion: reduce) { .avatar img { transition: none; } }
.team strong { font-family: var(--font-cond); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.team .role { font-size: 0.9375rem; font-weight: 500; color: var(--line); }
.team span:last-child { font-size: 0.9375rem; color: var(--muted); }

/* 3D-Planung */
.bim { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .bim { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.bim-media { position: relative; margin: 0; }
.bim-media img { width: 100%; border-radius: 2px; }
.bim-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.bim-points li { padding-left: 18px; border-left: 2px solid var(--rule); }
.bim-points strong { display: block; font-weight: 600; }
.bim-points span { color: var(--text-2); font-size: 1rem; }

/* Gebäudearten */
.types {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; border-top: 1px solid var(--rule);
}
@media (min-width: 760px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.types li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
}
.types strong {
  font-family: var(--font-cond); font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1;
}
.types span { font-size: 0.9375rem; color: var(--muted); text-align: right; }

/* Ablauf */
.steps {
  list-style: none; margin: 56px 0 0; padding: 0 0 0 32px;
  display: grid; gap: 36px; position: relative;
  --progress: 0;
}
.steps::before, .steps::after {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--rule);
}
.steps::after { background: var(--red); transform-origin: top; transform: scaleY(var(--progress)); width: 2px; left: 4.5px; }
.steps li { position: relative; }
.steps li::before {
  content: ""; position: absolute; left: -32px; top: 5px; z-index: 1;
  width: 11px; height: 11px; background: var(--section-bg); border: 1.5px solid var(--line);
}
.step-lph { display: block; font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.steps h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 1rem; color: var(--text-2); max-width: 34ch; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; padding: 36px 0 0; }
  .steps::before, .steps::after { left: 0; right: 0; top: 5px; bottom: auto; width: auto; height: 1px; }
  .steps::after { height: 2px; top: 4.5px; transform-origin: left; transform: scaleX(var(--progress)); }
  .steps li::before { left: 0; top: -36px; }
}
@media (prefers-reduced-motion: reduce) { .steps { --progress: 1 !important; } }

/* Platzhalter-Markierung (vor Go-live entfernen) */
.ph {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-size: 0.75rem; font-weight: 600; line-height: 1;
  background: var(--yellow); color: var(--ink); padding: 6px 8px; border-radius: 2px;
}

/* Warum EnAplan (helle Fläche) */
.reasons { display: grid; gap: 40px 64px; margin-top: 56px; }
@media (min-width: 800px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.reasons div { border-top: 2px solid var(--ink); padding-top: 20px; }
.reasons h3 { font-family: var(--font-cond); font-weight: 600; font-size: 1.75rem; line-height: 1.1; margin-bottom: 10px; }
.reasons p { margin: 0; max-width: 42ch; }

/* Kontakt-Abschluss */
.cta { display: grid; gap: 40px; align-items: end; }
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.cta h2 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem); margin-bottom: 20px; }
.cta p { margin: 0; color: var(--text-2); max-width: 40ch; }
.bigtel {
  display: inline-block; font-family: var(--font-cond); font-weight: 600;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); line-height: 1.05;
  text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
/* Handynummer nur als Bild, bewusst ohne Anruf-Link (Schutz vor Adresssammlern).
   Höhe folgt der Schriftgröße, Ziffern sitzen auf der Grundlinie */
.tel-img { display: inline-block; height: 0.79em; width: auto; vertical-align: -0.04em; }
.tel-img--gross { height: 0.75em; }
.contact-lines { margin: 12px 0 28px !important; font-size: 1rem; line-height: 1.8; }
.contact-lines a { color: var(--line); }

/* ---------- Unterseiten ---------- */
.page-head { padding-block: 56px 40px; }
@media (min-width: 768px) { .page-head { padding-block: 80px 56px; } }
.page-head h1 {
  font-family: var(--font-cond); font-weight: 600;
  font-size: clamp(2.5rem, 1.7rem + 3vw, 3.75rem); line-height: 1.04; margin: 0 0 16px;
}
.page-head p { margin: 0; max-width: 46ch; font-size: 1.25rem; color: var(--text-2); }
.page-head p + p { margin-top: 12px; }
/* Sprungleiste zu den Abschnitten der Leistungsseite */
.jump { margin-top: 32px; }
.jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a {
  display: block; padding: 7px 12px; font-size: 0.9375rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; color: var(--line); border: 1px solid var(--rule); border-radius: 2px;
}
.jump a:hover { border-color: var(--line); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 40px; }
@media (min-width: 640px) { .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checklist li { position: relative; padding-left: 22px; font-size: 1rem; line-height: 1.45; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px;
  border: 1.5px solid var(--layer, var(--line));
}

/* Leistungsseite */
.svc { padding-block: 56px; }
@media (min-width: 768px) { .svc { padding-block: 80px; } }
.svc-grid { display: grid; gap: 24px 64px; }
@media (min-width: 900px) { .svc-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.svc-head h2 { margin-bottom: 10px; }
.svc-head h2::before { content: ""; display: block; width: 48px; height: 3px; background: var(--red); margin-bottom: 18px; }
.svc-head p { margin: 0; color: var(--text-2); max-width: 36ch; }
.svc .checklist { align-content: start; padding-top: 6px; }
.svc .checklist li::before { border-color: var(--red); }
.tools { margin: 0; display: grid; gap: 0 40px; }
@media (min-width: 640px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tools div { border-bottom: 1px solid var(--rule); padding: 12px 0; }
.tools dt { font-weight: 600; }
.tools dd { margin: 2px 0 0; font-size: 0.9375rem; color: var(--muted); }

/* Fließtext (Impressum, Datenschutz) */
.prose { max-width: 68ch; padding-bottom: 96px; }
.prose h2 { font-family: var(--font); font-size: 1.5rem; font-weight: 600; line-height: 1.3; margin: 2.4em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; margin: 1.8em 0 0.4em; }
.prose p, .prose ul, .prose address { margin: 0 0 1em; }
.prose address { font-style: normal; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose .meta { color: var(--muted); font-size: 1rem; }
.prose h4 { font-size: 1rem; font-weight: 600; margin: 1.4em 0 0.3em; }
.prose a { overflow-wrap: anywhere; }
.prose .versal { font-size: 0.9375rem; letter-spacing: 0.01em; }
.prose .toc { list-style: none; padding: 20px 24px; margin: 0 0 2.4em; border: 1px solid var(--rule); }
.prose .toc li { margin-bottom: 0.25em; }

/* Kontakt */
.contact-grid { display: grid; gap: 56px; padding-bottom: 96px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 80px; } }
.form-row { display: grid; gap: 0 24px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 22px; }
.field label { font-weight: 500; font-size: 1rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--line);
  background: var(--bg-deep); border: 1px solid var(--rule); border-radius: 2px; padding: 12px 14px;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field--rechen input { max-width: 120px; }
.field-hint { margin: 0; font-size: 0.875rem; color: var(--muted); }
/* Einwilligung zur Datenverarbeitung (Pflicht-Checkbox vor dem Absenden) */
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 24px; max-width: 62ch; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red-strong); cursor: pointer; }
.consent input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.consent label { font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.consent a { color: var(--line); }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.form-privacy { margin: 0; font-size: 0.9375rem; color: var(--muted); max-width: 44ch; }
.form-privacy a { color: var(--line); }
.form-status { margin: 0 0 24px; padding: 14px 18px; border-left: 3px solid var(--cyan); background: var(--bg-deep); font-size: 1rem; }
.form-status.is-error { border-left-color: var(--red); }
.form-status[hidden] { display: none; }
.contact-aside h2 { font-family: var(--font); font-size: 1.3125rem; font-weight: 600; margin: 0 0 10px; }
.contact-aside section + section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.contact-aside p, .contact-aside address { margin: 0; font-style: normal; font-size: 1rem; line-height: 1.75; color: var(--text-2); }
.contact-aside a { color: var(--line); }

/* ---------- Fußzeile: Schriftfeld ---------- */
.site-footer { padding-block: 48px; border-top: 1px solid var(--rule); }
.titleblock { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--rule); border: 1px solid var(--rule); }
.tb-cell { background: var(--bg); padding: 12px 16px 14px; min-width: 0; }
.tb-brand { grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.tb-brand .brand { font-size: 2.25rem; }
.tb-brand p { margin: 0; font-size: 0.9375rem; color: var(--muted); max-width: 34ch; line-height: 1.45; }
.tb-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }
.tb-value { font-size: 0.9375rem; line-height: 1.6; overflow-wrap: anywhere; }
.tb-value a { text-decoration: none; }
.tb-value a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .titleblock { grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, 0.9fr); }
  .tb-brand { grid-column: 1; grid-row: 1 / span 2; }
}
