/* Layout: sticky Kopfzeile · Vollbild-Hero mit Foto und Leistungsleiste · Leistungen als Ablauf 01–04 mit Bild/Text im Wechsel
   · Technik-Band in Stahlblau · Projekt-Raster mit Großansicht · Profil · dunkles Kontakt-Band. Motiv: die roten Parallelogramme aus dem Logo. */

@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f3f5f6;
  --surface: #ffffff;
  --ink: #1b252c;
  --muted: #5a6871;
  --line: #d8dfe3;
  --steel: #7f939e;        /* Graublau aus dem Logo */
  --steel-soft: #e3e9ec;
  --steel-deep: #26343d;
  --night: #172128;
  --on-dark: #eef2f4;
  --on-dark-muted: #a8b6be;
  --red: #e8474b;          /* Rot aus dem Logo, etwas dunkler für lesbare Buttons */
  --red-hover: #cf3a3e;
  --logo-blue: #a2c6d6;    /* Hellblau aus dem Logo */
  --on-red: #ffffff;

  /* Rollen: welche Fläche welche Farben bekommt (die Farbschemata unten tauschen nur diese Werte) */
  --chrome: var(--night); --chrome-fg: var(--on-dark); --chrome-muted: var(--on-dark-muted);
  --hero-base: var(--night); --hero-tint: var(--steel-deep); --hero-fg: var(--on-dark); --hero-muted: var(--on-dark-muted);
  --band: var(--night); --band-fg: var(--on-dark); --band-muted: var(--on-dark-muted);
  --tech: var(--steel-deep); --tech-fg: var(--on-dark); --tech-muted: var(--on-dark-muted);
  --ok: #2c7a4f;
  --err: #c0322b;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --header-h: 72px;
  --r: 4px;
  --skew: -34deg;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11181d; --surface: #182229; --ink: #e5ebee; --muted: #9aaab3; --line: #2a3740;
    --steel: #8ea3ae; --steel-soft: #1e2b33; --steel-deep: #1a262e; --night: #0c1215;
    --red: #e23a43; --red-hover: #f0525a; --ok: #5cbf86; --err: #ec7a71;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #11181d; --surface: #182229; --ink: #e5ebee; --muted: #9aaab3; --line: #2a3740;
  --steel: #8ea3ae; --steel-soft: #1e2b33; --steel-deep: #1a262e; --night: #0c1215;
  --red: #e23a43; --red-hover: #f0525a; --ok: #5cbf86; --err: #ec7a71;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: 0.01em; }
h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Kennzeichnung wie im Schaltplan (=Anlage +Ort), dazu der Name des Abschnitts */
.label { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.label::before { content: ""; width: 22px; height: 12px; background: var(--red); transform: skewX(var(--skew)); flex: none; }
.label code { font-family: inherit; letter-spacing: 0.06em; color: var(--red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: var(--r); border: 2px solid transparent; font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.04em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-red { background: var(--red); color: var(--on-red); }
.btn-red:hover { background: var(--red-hover); }
.btn-line { border-color: color-mix(in srgb, currentColor 55%, transparent); color: inherit; background: transparent; }
.btn-line:hover { border-color: currentColor; background: color-mix(in srgb, currentColor 8%, transparent); }

/* Kopfzeile */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70; background: var(--chrome); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: color-mix(in srgb, var(--chrome) 94%, transparent); color: var(--chrome-fg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--chrome-fg); }
.brand-badge { height: 50px; width: auto; flex: none; border-radius: 2px; display: block; }
.brand-text span { line-height: 1.25; }
.brand-text { display: grid; line-height: 1; }
.brand-text b { font-family: var(--display); font-weight: 500; font-size: 1.9rem; letter-spacing: 0.04em; }
.brand-text span { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--chrome-muted); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { position: relative; padding: 10px 14px; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--chrome-fg); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .btn { margin-left: 12px; min-height: 44px; font-size: 1.1rem; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; color: var(--chrome-fg); cursor: pointer; align-items: center; justify-content: center; border-radius: var(--r); }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--chrome); padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); border-bottom: 3px solid var(--red); }
  .nav:not(.open) { display: none; }
  .nav a:not(.btn) { padding: 16px 0; font-size: 1.35rem; border-bottom: 1px solid color-mix(in srgb, var(--chrome-fg) 10%, transparent); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 18px 0 0; }
}

/* Hero */
.hero { position: relative; isolation: isolate; color: var(--hero-fg); background: var(--hero-base); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform: scale(1.04); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, color-mix(in srgb, var(--hero-base) 94%, transparent) 0%, color-mix(in srgb, var(--hero-base) 82%, transparent) 42%, color-mix(in srgb, var(--hero-tint) 30%, transparent) 100%); }
.hero-bars { position: absolute; right: -60px; top: 50%; translate: 0 -58%; z-index: -1; width: min(34vw, 420px); opacity: .9; pointer-events: none; }
.hero-inner { padding-block: clamp(80px, 13vw, 168px) clamp(56px, 8vw, 104px); display: grid; gap: 26px; max-width: 760px; margin-left: 0; }
.hero .label { color: var(--hero-muted); }
.hero h1 { font-weight: 600; font-size: clamp(3rem, 8.2vw, 6.2rem); letter-spacing: 0.005em; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--hero-muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-strip { border-top: 1px solid color-mix(in srgb, var(--hero-fg) 16%, transparent); background: color-mix(in srgb, var(--hero-base) 55%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-strip ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-strip a { display: flex; align-items: baseline; gap: 12px; padding: 22px 18px 22px 0; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1.2rem; letter-spacing: 0.03em; color: var(--hero-fg); transition: color .2s; }
.hero-strip li + li a { padding-left: 18px; border-left: 1px solid color-mix(in srgb, var(--hero-fg) 16%, transparent); }
.hero-strip a span { font-size: 0.95rem; color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-strip a:hover { color: var(--red); }
@media (max-width: 900px) { .hero-bars { display: none; } .hero-strip ol { grid-template-columns: 1fr 1fr; } .hero-strip li:nth-child(3) a { padding-left: 0; border-left: 0; } .hero-strip li:nth-child(n+3) a { border-top: 1px solid color-mix(in srgb, var(--hero-fg) 16%, transparent); } }
@media (max-width: 480px) { .hero-strip a { font-size: 1.05rem; } }

/* Abschnitte */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { color: var(--muted); font-size: 1.15rem; max-width: 60ch; }

/* Leistungen */
.services { display: grid; gap: clamp(64px, 9vw, 112px); }
.service { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.service:nth-child(even) { grid-template-columns: 6fr 5fr; }
.service:nth-child(even) .service-media { order: 2; }
.service-media { position: relative; min-width: 0; }
.service-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--steel-soft); }
.service-media.wide img { aspect-ratio: 16 / 10; object-position: left top; }
.service-media::after { content: ""; position: absolute; width: 72px; height: 36px; background: var(--red); transform: skewX(var(--skew)); left: -18px; bottom: 28px; }
.service:nth-child(even) .service-media::after { left: auto; right: -18px; }
.service-body { display: grid; gap: 18px; min-width: 0; max-width: 560px; }
.service-num { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 9vw, 6.5rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--steel); font-variant-numeric: tabular-nums; }
.service-body > p { color: var(--muted); }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; width: 12px; height: 8px; background: var(--red); transform: skewX(var(--skew)) translateY(-2px); }
@media (max-width: 820px) {
  .service, .service:nth-child(even) { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-media { order: 0; }
  .service-media img { aspect-ratio: 4 / 3; }
  .service-media::after { left: 16px !important; right: auto !important; bottom: -14px; width: 56px; height: 28px; }
}

/* Technik-Band */
.tech { background: var(--tech); color: var(--tech-fg); position: relative; overflow: hidden; }
.tech::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--tech-fg) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--tech-fg) 5%, transparent) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.tech .wrap { position: relative; }
.tech .label { color: var(--tech-muted); }
.tech .section-head p { color: var(--tech-muted); }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: color-mix(in srgb, var(--tech-fg) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tech-fg) 14%, transparent); }
.tech-col { background: var(--tech); padding: 28px 24px 30px; display: grid; align-content: start; gap: 16px; min-width: 0; }
.tech-col h3 { font-size: 1.45rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 0.95rem; padding: 4px 11px; border: 1px solid color-mix(in srgb, var(--tech-fg) 26%, transparent); border-radius: 2px; color: var(--tech-fg); }
@media (max-width: 980px) { .tech-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .tech-grid { grid-template-columns: 1fr; } }

/* Projekte */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { margin: 0; min-width: 0; }
.project button { all: unset; display: block; width: 100%; cursor: zoom-in; position: relative; overflow: hidden; border-radius: var(--r); background: var(--steel-soft); }
.project button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.project img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s ease; }
.project.wide { grid-column: span 2; }
.project.wide img { aspect-ratio: 2.05 / 1; object-position: center top; }
.project button:hover img { transform: scale(1.04); }
.project figcaption { padding: 14px 2px 0; display: grid; gap: 2px; }
.project figcaption b { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.15; }
.project figcaption span { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 900px) { .projects { grid-template-columns: 1fr 1fr; } .project.wide img { aspect-ratio: 16 / 9; } }
@media (max-width: 560px) { .projects { grid-template-columns: 1fr; } .project.wide { grid-column: auto; } .project img { aspect-ratio: 4 / 3; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgb(8 12 15 / 0.88); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--r); }
.lightbox p { color: #eef2f4; text-align: center; padding-top: 12px; font-family: var(--display); font-size: 1.3rem; }
.lightbox-close { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); width: 48px; height: 48px; border: 0; border-radius: 50%; background: #eef2f4; color: #172128; font-size: 1.6rem; cursor: pointer; }

/* Profil */
.profile { background: var(--surface); border-top: 1px solid var(--line); }
.profile-grid { display: grid; grid-template-columns: 380px 1fr; gap: clamp(36px, 7vw, 100px); align-items: center; }
.portrait { position: relative; max-width: 100%; }
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); filter: saturate(.9); }
.portrait::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--steel); border-radius: var(--r); z-index: 0; }
.portrait img { position: relative; z-index: 1; }
.profile-body { display: grid; gap: 20px; max-width: 620px; min-width: 0; }
.profile-name { display: grid; gap: 4px; }
.profile-name span { color: var(--muted); font-size: 1.1rem; }
.profile-body > p { color: var(--muted); }
.facts { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts b { font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.facts span { color: var(--muted); }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } .portrait { max-width: 300px; } .facts li { grid-template-columns: 1fr; gap: 2px; } }

/* Kontakt */
.contact { background: var(--band); color: var(--band-fg); position: relative; overflow: hidden; }
.contact .label { color: var(--band-muted); }
.contact .section-head p { color: var(--band-muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.direct { display: grid; gap: 28px; min-width: 0; }
.direct-phone { display: grid; gap: 6px; }
.direct-phone a { font-family: var(--display); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.05; text-decoration: none; color: var(--band-fg); font-variant-numeric: tabular-nums; transition: color .2s; }
.direct-phone a:hover { color: var(--red); }
.direct-phone small { font-family: var(--display); font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--band-muted); }
.direct dl { margin: 0; display: grid; gap: 18px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--band-fg) 14%, transparent); }
.direct dt { font-family: var(--display); font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--band-muted); }
.direct dd { margin: 2px 0 0; font-size: 1.1rem; }
.direct dd a { text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }

.form { background: var(--surface); color: var(--ink); border-radius: var(--r); padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; min-width: 0; border-top: 4px solid var(--red); }
.form h3 { font-size: 1.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-height: 50px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.form .btn { justify-self: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

/* Fußzeile */
.site-footer { background: var(--chrome); color: var(--chrome-muted); border-top: 1px solid color-mix(in srgb, var(--chrome-fg) 12%, transparent); font-size: 0.95rem; }
.footer-inner { padding-block: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner a { color: var(--chrome-fg); text-decoration: none; }
.footer-inner a:hover { color: var(--red); }

/* Anrufleiste auf dem Handy */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--chrome) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid color-mix(in srgb, var(--chrome-fg) 12%, transparent); }
  .callbar .btn { flex: 1; min-height: 48px; font-size: 1.1rem; }
  .callbar .btn-line { color: var(--chrome-fg); flex: 0 0 auto; }
  .site-footer { padding-bottom: 80px; }
}


/* Unterseiten */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal-inner { max-width: 70ch; display: grid; gap: 14px; }
.legal h1 { font-weight: 600; font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.7rem; margin-top: 20px; }
.legal address { font-style: normal; }
.placeholder { background: color-mix(in srgb, #f2c230 35%, transparent); padding: 0 4px; border-radius: 2px; }

/* Planzeichnung als Bild für Engineering */
.service:nth-child(even) .service-media.plan::after { right: auto; left: -18px; }
.plan-svg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: var(--r); border: 1px solid var(--line); }
.plan-svg .pl-paper { fill: var(--surface); }
.plan-svg .pl-grid { stroke: color-mix(in srgb, var(--logo-blue) 35%, transparent); stroke-width: 1; }
.plan-svg .pl-frame, .plan-svg .pl-title rect, .plan-svg .pl-title path { fill: none; stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 1.2; }
.plan-svg .pl-bus path { stroke: var(--ink); stroke-width: 2; fill: none; }
.plan-svg .pl-line path, .plan-svg .pl-line rect, .plan-svg .pl-line circle { stroke: var(--ink); stroke-width: 1.8; fill: none; }
.plan-svg .pl-accent path, .plan-svg .pl-accent rect { stroke: var(--red); stroke-width: 2.2; fill: none; }
.plan-svg .pl-txt text { fill: var(--muted); font-family: var(--display); font-size: 13px; letter-spacing: 0.04em; }
.plan-svg .pl-small text { font-size: 10.5px; }
.plan-svg .pl-txt .pl-sym { fill: var(--ink); font-size: 16px; }
.plan-svg .pl-txt .pl-bl { font-size: 11px; }

/* Kontakt-CTA */
.btn-arrow { transition: transform .2s; }
.btn-cta:hover .btn-arrow { transform: translateX(4px); }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; padding: 8px 10px; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1.15rem; letter-spacing: 0.03em; color: var(--chrome-fg); font-variant-numeric: tabular-nums; }
.nav-phone svg { width: 18px; height: 18px; color: var(--red); }
.nav-phone:hover span { text-decoration: underline; text-underline-offset: 4px; }
.nav .btn-cta { margin-left: 6px; }
@media (max-width: 1100px) and (min-width: 901px) { .nav-phone span { display: none; } }
@media (max-width: 900px) { .nav-phone { margin: 0; padding: 16px 0; font-size: 1.35rem; border-bottom: 1px solid color-mix(in srgb, var(--chrome-fg) 10%, transparent); } }
.hero-sub { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: 0.02em; color: var(--hero-muted); line-height: 1.2; }
.hero-sub::before { content: ""; display: inline-block; width: 36px; height: 3px; background: var(--red); vertical-align: middle; margin-right: 14px; transform: translateY(-3px); }
.callbar .btn-line { flex: 0 0 auto; }
.callbar .btn-red { flex: 1; }


/* Logo als Fahne an der Oberkante, ragt etwas über die Kopfzeile hinaus */
.header-inner { align-items: center; }
.brand { align-self: flex-start; position: relative; z-index: 2; display: block; line-height: 0; }
.brand-logo { height: calc(var(--header-h) + 26px); width: auto; display: block; border-radius: 0 0 6px 6px; box-shadow: 0 10px 24px -8px rgb(10 20 26 / .35); }
.site-header { overflow: visible; }
@media (max-width: 900px) { .brand-logo { height: calc(var(--header-h) + 14px); } }
@media (max-width: 440px) { .brand-logo { height: 76px; } .header-left { gap: 10px; } }
.header-left { align-self: flex-start; height: var(--header-h); align-items: center; }

/* ===== Überarbeitung: kompakter Hero, Leistungskarten, Kontakt-Drawer ===== */

/* Hero kompakter */
.hero-inner { padding-block: clamp(56px, 8vw, 112px) clamp(48px, 7vw, 96px); gap: 22px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
.hero-bars { width: min(28vw, 340px); translate: 0 -50%; }

/* Hervorgehobener Kontakt-Button: Pille mit Icon-Kreis und sanftem Puls */
.btn-cta { background: var(--red); color: var(--on-red); border-radius: 999px; padding: 0 22px 0 6px; gap: 12px; min-height: 52px; box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--red) 80%, transparent); }
.btn-cta:hover { background: var(--red-hover); transform: translateY(-1px); }
.cta-dot { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #ffffff; color: var(--red); flex: none; }
.cta-dot svg { width: 20px; height: 20px; }
.cta-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgb(255 255 255 / .7); animation: cta-pulse 2.6s ease-out infinite; }
@keyframes cta-pulse { 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / .65); } 70%, 100% { box-shadow: 0 0 0 12px rgb(255 255 255 / 0); } }
.nav .btn-cta { min-height: 48px; padding-right: 20px; }
.nav .btn-cta .cta-dot { width: 36px; height: 36px; }
.site-header .btn-cta { margin-left: 8px; }

/* Leistungen als 2×2-Karten */
.services.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.services.cards .service { display: flex; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; grid-template-columns: none; }
.services.cards .service:nth-child(even) .service-media { order: 0; }
.services.cards .service-media::after { display: none; }
.services.cards .service-media img, .services.cards .service-media .plan-svg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 35%; border-radius: 0; border: 0; }
.services.cards .service-media.plan { background: var(--surface); border-bottom: 1px solid var(--line); }
.services.cards .service-body { padding: 24px 26px 28px; gap: 12px; max-width: none; }
.services.cards .service-body h3 { display: flex; align-items: center; gap: 12px; font-size: 1.75rem; }
.services.cards .service-body h3::before { content: ""; width: 22px; height: 12px; background: var(--red); transform: skewX(var(--skew)); flex: none; }
.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 0.95rem; padding: 5px 12px; border-radius: 999px; background: var(--steel-soft); color: var(--ink); }
@media (max-width: 760px) { .services.cards { grid-template-columns: 1fr; gap: 20px; } .services.cards .service-body { padding: 20px 20px 24px; } }


/* Hero mit Person */
.hero-inner { max-width: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-copy { display: grid; gap: 22px; align-content: center; min-width: 0; }
.hero-person { position: relative; margin: 0; justify-self: end; width: min(100%, 360px); }
.hero-person { border-radius: 6px; overflow: hidden; box-shadow: 0 24px 50px -24px rgb(0 0 0 / .6); }
.hero-person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 22%; display: block; }
.hero-person figcaption { display: grid; gap: 2px; padding: 14px 18px; background: var(--surface); color: var(--ink); border-radius: 0 0 6px 6px; border-left: 4px solid var(--red); }
.hero-person figcaption b { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.1; }
.hero-person figcaption span { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-person { justify-self: start; width: 100%; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
  .hero-person img { aspect-ratio: 1; border-radius: 50%; box-shadow: none; border: 3px solid var(--surface); }
    .hero-person { overflow: visible; box-shadow: none; }
  .hero-person figcaption { padding: 10px 14px; border-radius: 4px; }
}

/* Über mich ohne Foto */
.profile-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
.profile-body { gap: 16px; }
.profile-body h2 { margin-bottom: 4px; }
.profile .facts { margin-top: 0; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } }

/* Logo-Balken links neben der Hauptüberschrift */
.hero-title-row { display: flex; align-items: stretch; gap: clamp(14px, 2vw, 24px); }
.hero-title-bars { flex: none; height: auto; width: clamp(44px, 6vw, 76px); align-self: center; aspect-ratio: 102 / 110; fill: var(--red); }
.hero-title-row h1 { min-width: 0; }
@media (max-width: 480px) { .hero-title-bars { width: 38px; } }

/* Formular kurz hervorheben, wenn man über einen Kontakt-Button kommt */
.form.flash { animation: form-flash 1.4s ease .45s; }
@keyframes form-flash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 30% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--red) 45%, transparent); } }
.hero .label::before { display: none; }

/* Foto vollständig zeigen, Namensschild bündig an der Unterkante mit leichtem Versatz */
.hero-person { width: min(100%, 330px); overflow: visible; box-shadow: none; border-radius: 0; }
.hero-person img { aspect-ratio: auto; height: auto; object-fit: fill; border-radius: 6px 6px 0 6px; box-shadow: 0 24px 50px -24px rgb(0 0 0 / .6); }
.hero-person figcaption { position: relative; margin: 0 24px 0 -24px; border-radius: 0 0 4px 4px; box-shadow: 0 16px 30px -18px rgb(0 0 0 / .6); }
@media (max-width: 860px) {
  .hero-person { width: 100%; grid-template-columns: 84px 1fr; align-items: end; gap: 0; }
  .hero-person img { width: 84px; border-radius: 4px 0 0 4px; box-shadow: none; border: 0; }
  .hero-person figcaption { margin: 0; border-radius: 0 4px 4px 0; box-shadow: none; align-self: end; }
}
/* Namensschild bündig unter dem Foto, ohne Versatz */
@media (min-width: 861px) {
  .hero-person { border-radius: 6px; overflow: hidden; box-shadow: 0 24px 50px -24px rgb(0 0 0 / .6); }
  .hero-person img { border-radius: 0; box-shadow: none; }
  .hero-person figcaption { margin: 0; border-radius: 0; box-shadow: none; }
}

/* Handy: rote Linie höher (niedrigere Kopfzeile), Buttons unter das Foto */
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .brand-logo { height: calc(var(--header-h) + 24px); }
}
@media (max-width: 440px) { .brand-logo { height: calc(var(--header-h) + 22px); } }
@media (max-width: 860px) {
  .hero-inner { gap: 22px; }
  .hero-copy { display: contents; }
  .hero-person { order: 1; }
  .hero-actions { order: 2; margin-top: 0; }
}
.services.cards .service-media.plan img { object-fit: cover; background: #fff; }
.legal h3 { font-size: 1.3rem; margin-top: 10px; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.legal p { overflow-wrap: anywhere; }

/* Zwei Bilder nebeneinander (Schaltschrankbau) */
.services.cards .service-media.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.services.cards .service-media.duo img { aspect-ratio: 8 / 9; }
/* Platzhalter für fehlende Fotos */
.img-placeholder { aspect-ratio: 16 / 9; width: 100%; display: grid; place-content: center; justify-items: center; gap: 4px; background: repeating-linear-gradient(-45deg, var(--steel-soft) 0 14px, color-mix(in srgb, var(--steel-soft) 70%, var(--line)) 14px 28px); color: var(--muted); }
.img-placeholder span { font-family: var(--display); font-weight: 700; font-size: 4rem; line-height: 1; }
.img-placeholder small { font-family: var(--display); letter-spacing: .14em; text-transform: uppercase; }
