@font-face { font-family: "Archivo"; src: url("archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* Layout: technischer Schaltplan – Blaupausen-Raster, links Text, rechts ein Status-Panel als "Hero". */
:root {
  --paper: #f3f5f8;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --muted: #55627a;
  --line: #d5dce6;
  --accent: #e8590c;        /* Signal-Orange: LED / Sonne */
  --accent-ink: #ffffff;
  --panel: #0f1b2d;
  --panel-ink: #d9e2ef;
  --ok: #2f9e44;
  --grid: rgba(15, 27, 45, .05);
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1320; --surface: #121c2c; --ink: #e6ecf4; --muted: #95a3b8;
    --line: #233149; --accent: #ff7a2e; --accent-ink: #12090a; --panel: #060c16;
    --panel-ink: #d9e2ef; --ok: #51cf66; --grid: rgba(230, 236, 244, .04);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1320; --surface: #121c2c; --ink: #e6ecf4; --muted: #95a3b8;
  --line: #233149; --accent: #ff7a2e; --accent-ink: #12090a; --panel: #060c16;
  --panel-ink: #d9e2ef; --ok: #51cf66; --grid: rgba(230, 236, 244, .04);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.05; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; }
.label { font-family: var(--f-mono); font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }

/* Kopf */
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 20px; letter-spacing: -.01em; }
.logo-mark { width: 30px; height: 30px; border-radius: 6px; background: var(--panel); display: grid; place-items: center; }
.logo-mark i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav ul a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--f-body); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
@media (max-width: 760px) { .nav ul { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-block: 72px 64px; }
.hero h1 { font-size: clamp(44px, 7vw, 86px); font-weight: 800; font-stretch: 118%; letter-spacing: -.025em; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 19px; color: var(--muted); max-width: 52ch; margin: 22px 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; color: var(--muted); }

.panel { background: var(--panel); color: var(--panel-ink); border-radius: 14px; padding: 22px; box-shadow: 0 30px 60px -30px rgba(15, 27, 45, .55); font-family: var(--f-mono); font-size: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid rgba(217, 226, 239, .12); color: #8797ae; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.dots { display: flex; gap: 6px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a3a55; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px dashed rgba(217, 226, 239, .1); }
.rows li:last-child { border-bottom: 0; }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink 3.2s infinite; }
.rows li:nth-child(2) .led { animation-delay: .8s; } .rows li:nth-child(3) .led { animation-delay: 1.6s; } .rows li:nth-child(4) .led { animation-delay: 2.4s; }
.led.pv { background: #ffa94d; box-shadow: 0 0 8px #ffa94d; }
@keyframes blink { 0%, 90%, 100% { opacity: 1; } 95% { opacity: .35; } }
.rows small { display: block; color: #8797ae; font-size: 12px; }
.val { color: #fff; text-align: right; }
.bar { height: 4px; background: #1e2c44; border-radius: 2px; margin-top: 16px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 87%; background: linear-gradient(90deg, #ffa94d, var(--accent)); }
.panel-foot { display: flex; justify-content: space-between; margin-top: 10px; color: #8797ae; font-size: 12px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; } }

/* Abschnitte */
section { padding-block: 72px; }
.sec-head { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: end; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; margin-top: 10px; }
.sec-head p { color: var(--muted); margin: 0; max-width: 60ch; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.svc { background: var(--surface); padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 12px; }
.svc .num { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.svc h3 { font-size: 23px; font-weight: 700; font-stretch: 105%; }
.svc p { margin: 0; color: var(--muted); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tags span { font-family: var(--f-mono); font-size: 12px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.solar { margin-top: 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--panel); color: var(--panel-ink); border-radius: 14px; padding: 28px 32px; }
.solar h3 { font-size: 26px; font-stretch: 110%; color: #fff; }
.solar p { margin: 6px 0 0; color: #a9b6c8; max-width: 62ch; }
.sun { width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle, #ffd8a8 0 30%, #ffa94d 31% 52%, transparent 53%), conic-gradient(from 0deg, #ffa94d 0 4%, transparent 4% 12.5%, #ffa94d 12.5% 16.5%, transparent 16.5% 25%, #ffa94d 25% 29%, transparent 29% 37.5%, #ffa94d 37.5% 41.5%, transparent 41.5% 50%, #ffa94d 50% 54%, transparent 54% 62.5%, #ffa94d 62.5% 66.5%, transparent 66.5% 75%, #ffa94d 75% 79%, transparent 79% 87.5%, #ffa94d 87.5% 91.5%, transparent 91.5%); }
@media (max-width: 760px) { .solar { grid-template-columns: 1fr; } }

/* Über uns */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about-text p { max-width: 60ch; }
.about-text p:first-of-type { font-size: 20px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fact { background: var(--surface); padding: 26px 24px; }
.fact b { display: block; font-family: var(--f-display); font-size: 46px; font-weight: 800; font-stretch: 115%; line-height: 1; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: 15px; }
.fact.wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.cert { width: 48px; height: 48px; flex: none; border: 2px solid var(--accent); border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--accent); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 32px; } }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.info { display: flex; flex-direction: column; gap: 22px; }
.info dl { margin: 0; display: grid; gap: 18px; }
.info dt { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.info dd { margin: 2px 0 0; font-size: 18px; font-weight: 500; }
.info dd a { text-decoration-color: var(--line); text-underline-offset: 4px; }
.info dd a:hover { text-decoration-color: var(--accent); }
form { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.consent label { font-weight: 400; margin: 0; }
.status { font-size: 15px; margin: 0; min-height: 1.4em; }
.status.ok { color: var(--ok); } .status.err { color: var(--accent); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }

/* Rechtstexte */
.legal { padding-block: 56px 80px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; margin: 10px 0 32px; }
.legal h2 { font-size: 24px; font-weight: 700; font-stretch: 105%; margin: 40px 0 12px; }
.legal h3 { font-size: 18px; font-weight: 600; font-family: var(--f-body); margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink); max-width: 68ch; }
.legal ul { padding-left: 1.2em; }
.legal address { font-style: normal; }
.legal .stand { color: var(--muted); font-size: 14px; margin-top: 48px; }
.todo { background: color-mix(in srgb, var(--accent) 15%, transparent); border: 1px dashed var(--accent); border-radius: 4px; padding: 0 6px; }
.notice { padding: 16px 20px; border-radius: 10px; margin-bottom: 8px; }
.notice.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.notice.err { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Erweiterung: verlinkte Leistungskarten, Unterseiten */
.services.four { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .services.four { grid-template-columns: 1fr; } }
a.svc { text-decoration: none; color: inherit; transition: background .15s; }
a.svc:hover { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
a.svc .more { font-weight: 600; font-size: 15px; color: var(--accent); }
.sub-hero { padding-block: 56px 24px; }
.sub-hero h1 { max-width: 16ch; }
.sub-hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; font-stretch: 116%; letter-spacing: -.025em; margin-top: 14px; }
.sub-hero p { font-size: 19px; color: var(--muted); max-width: 60ch; margin: 20px 0 0; }
.crumb { font-family: var(--f-mono); font-size: 13px; color: var(--muted); text-decoration: none; }
.crumb:hover { color: var(--ink); }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.item { background: var(--surface); padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.item h3 { font-size: 20px; font-weight: 700; font-stretch: 105%; }
.item p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .items { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: "0" counter(s); font-family: var(--f-mono); font-size: 13px; color: var(--accent); display: block; margin-bottom: 8px; }
.steps h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.note { border-left: 3px solid var(--accent); background: var(--surface); padding: 20px 24px; border-radius: 0 10px 10px 0; max-width: 820px; }
.note p { margin: 0; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--panel); color: var(--panel-ink); border-radius: 14px; padding: 32px; }
.cta h2 { font-size: 28px; font-stretch: 110%; color: #fff; }
.cta p { margin: 6px 0 0; color: #a9b6c8; }
section.tight { padding-block: 40px; }
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.links a { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.links a:hover { border-color: var(--accent); }
.links strong { font-family: var(--f-display); font-size: 20px; font-stretch: 105%; }
.links span { color: var(--muted); font-size: 15px; }
.links em { font-style: normal; font-family: var(--f-mono); font-size: 13px; color: var(--accent); margin-top: auto; padding-top: 6px; }
@media (max-width: 760px) { .links { grid-template-columns: 1fr; } }
.contact.single { grid-template-columns: 1fr; }
.contact.single .info dl { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.about-side { display: grid; gap: 20px; }
.portrait { margin: 0; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 6%; }
.portrait figcaption { font-family: var(--f-mono); font-size: 13px; color: var(--muted); padding: 10px 14px; }
