/* datacenterpower.eu – Stylesheet
   Farben aus dem Logo abgeleitet. Schrift lokal gehostet (keine externen Server). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #28630a;        /* Logogrün */
  --forest-deep: #19410a;   /* dunkle Flächen: Kopf, Hero, Fuß */
  --forest-warm: #4c5f12;   /* warmer Grünton für das rechte Split-Panel (Betreiber) */
  --paper: #f4f7f1;         /* heller Grund, leicht grün */
  --paper-2: #e7eee1;
  --ink: #15210d;           /* Text */
  --muted: #4a5a41;         /* Nebentext */
  --rule: #c6d3bc;          /* Linien */
  --amber: #f2b600;         /* nur für "Strom fließt" und Hauptaktion */
  --white: #ffffff;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }

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

a { color: var(--forest); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--amber); color: var(--ink); padding: 8px 14px; font-weight: 600;
}
.skip:focus { left: 8px; }

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

h1, h2, h3 { margin: 0; font-stretch: 80%; font-weight: 700; line-height: 1.08; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.3rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); }
h3 { font-size: 1.3rem; font-stretch: 90%; font-weight: 650; line-height: 1.2; }
p { margin: 0 0 1em; }

/* ---------- Kopf ---------- */
.site-header { background: var(--forest-deep); color: var(--white); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 32px; flex-wrap: wrap; padding-block: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.brand span { font-size: 1.3rem; font-stretch: 84%; font-weight: 700; letter-spacing: 0.005em; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; }
.nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 1rem; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.nav .lang {
  border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px;
  padding: 2px 11px; font-size: .9rem; font-weight: 600;
}

/* ---------- Hero ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hero { background: var(--forest-deep); color: var(--white); }
.btn {
  display: inline-block; border-radius: 999px; padding: 13px 24px;
  font-weight: 650; font-size: 1rem; text-decoration: none; line-height: 1.2;
}
.btn-small { padding: 10px 20px; font-size: .92rem; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #ffc81f; }
.btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--white); }

/* Zweigeteilte Landing Page: Energieunternehmen links, Datacenterbetreiber rechts */
.hero-split { display: grid; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hero-split { grid-template-columns: 1fr auto 1fr; align-items: stretch; } }
.panel { padding-block: clamp(44px, 7vw, 76px); }
.panel-energy { background: var(--forest); }
.panel-operator { background: var(--forest-warm); }
.panel-inner { max-width: 30rem; }
@media (min-width: 860px) {
  .panel-energy .panel-inner { margin-left: auto; padding-right: clamp(24px, 4vw, 56px); padding-left: var(--pad); }
  .panel-operator .panel-inner { margin-right: auto; padding-left: clamp(24px, 4vw, 56px); padding-right: var(--pad); }
}
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 650; color: var(--amber); margin: 0 0 .8rem; }
.panel-title { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; font-stretch: 82%; line-height: 1.05; margin: 0 0 .9rem; }
.panel .lead { max-width: 30rem; font-size: 1.12rem; color: rgba(255,255,255,.88); margin: 0 0 1.8rem; }
.divider {
  display: none; position: relative; width: 1px; background: rgba(255,255,255,.22);
  justify-self: center;
}
@media (min-width: 860px) { .divider { display: block; } }
.divider-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--amber); color: var(--ink);
  display: grid; place-items: center; font-size: 1.15rem; box-shadow: 0 0 0 4px rgba(255,255,255,.92);
}

.hero-diagram { text-align: center; padding: clamp(36px, 6vw, 64px) var(--pad) clamp(48px, 7vw, 80px); background: var(--forest-deep); }
.diagram-caption { text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 650; color: rgba(255,255,255,.65); margin: 0 0 1.6rem; }
.hero-diagram .oneline { margin-inline: auto; }
.hero-diagram .btn { margin-top: 2rem; }

/* Einlinien-Schaltbild */
.oneline { width: 100%; max-width: 560px; }
.oneline .wire { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.oneline .bus { stroke-width: 7; }
.oneline .label { fill: rgba(255,255,255,.86); font-family: var(--font); font-size: 14px; font-weight: 500; text-anchor: middle; }
.oneline .flow {
  fill: none; stroke: var(--amber); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw .55s ease-out forwards;
}
.oneline .bus-flow { stroke-width: 3; }
.oneline .led { fill: transparent; animation: on .35s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes on { to { fill: var(--amber); } }
@media (prefers-reduced-motion: reduce) {
  .oneline .flow { animation: none; stroke-dashoffset: 0; }
  .oneline .led { animation: none; fill: var(--amber); }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head p { color: var(--muted); max-width: 34rem; margin-top: 1rem; }

/* Leistungen */
.services .wrap { display: grid; gap: 40px; }
@media (min-width: 920px) {
  .services .wrap { grid-template-columns: 4fr 8fr; gap: 64px; }
  .services .section-head { position: sticky; top: 28px; align-self: start; }
}
.service-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.service {
  display: grid; grid-template-columns: 56px 1fr; gap: 6px 22px;
  padding-block: 30px; border-top: 1px solid var(--rule);
}
.service .icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--forest);
  display: grid; place-items: center; grid-row: span 3;
}
.service .icon svg { width: 28px; height: 28px; fill: none; stroke: var(--white); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-top: 2px; }
.service p { margin: .35rem 0 0; color: var(--muted); max-width: 40rem; }
.service .result { color: var(--ink); }
.service .result strong { color: var(--forest); font-weight: 650; }

/* Vorgehen (echte Abfolge, daher nummeriert) */
.process { grid-column: 1 / -1; margin-top: clamp(24px, 4vw, 48px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--rule); }
.process h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-stretch: 80%; margin-bottom: 32px; }
.process-cols { display: grid; gap: clamp(40px, 6vw, 64px); }
.process-col + .process-col { padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--rule); }
.process-col .eyebrow-dark { margin-bottom: 22px; }
.eyebrow-dark { color: var(--forest); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; position: relative; counter-reset: step; }
.steps li { position: relative; padding-left: 64px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--forest); color: var(--forest);
  font-weight: 700; font-stretch: 80%; font-size: 1.15rem;
}
.steps::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 2px; background: var(--rule); }
.steps strong { display: block; font-size: 1.1rem; font-weight: 650; }
.steps span { color: var(--muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
  .steps li { padding-left: 0; padding-top: 64px; }
  .steps li::before { top: 0; }
  .steps::before { left: 22px; right: calc(25% - 49px); top: 21px; bottom: auto; width: auto; height: 2px; }
}

/* Über uns */
.about { background: var(--paper-2); }
.about .wrap { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .about .wrap { grid-template-columns: 4fr 8fr; gap: 64px; } }
.portrait {
  width: min(260px, 70vw); aspect-ratio: 1; border-radius: 50%;
  background: var(--forest); color: var(--white);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 0 0 10px var(--forest), inset 0 0 0 13px rgba(255,255,255,.9);
}
.portrait span { font-size: 4.2rem; font-weight: 700; font-stretch: 78%; letter-spacing: .02em; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { margin-bottom: .4rem; }
.about .role { color: var(--forest); font-weight: 600; margin-bottom: 1.4rem; }
.about .bio { max-width: 40rem; }
.facts { display: grid; gap: 18px 40px; margin: 2rem 0 0; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts dt { font-weight: 650; font-size: .95rem; color: var(--forest); }
.facts dd { margin: .2rem 0 0; color: var(--muted); }

/* Kontakt */
.contact { background: var(--forest); color: var(--white); }
.contact .wrap { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact .wrap { grid-template-columns: 6fr 6fr; gap: 64px; align-items: end; } }
.contact p { color: rgba(255,255,255,.9); max-width: 32rem; margin-top: 1rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding-block: 14px; border-top: 1px solid rgba(255,255,255,.28); display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; align-items: baseline; }
.contact-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.28); }
.contact-list .k { color: rgba(255,255,255,.75); font-size: .95rem; }
.contact-list a { color: var(--white); font-weight: 600; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.contact .btn-primary { margin-top: 1.6rem; }

/* Blog */
.posts { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; border-bottom: 1px solid var(--rule); }
.post { border-top: 1px solid var(--rule); padding-block: 32px; scroll-margin-top: 20px; }
.post time { display: block; color: var(--muted); font-size: .95rem; margin-bottom: .4rem; }
.post h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-stretch: 82%; max-width: 30em; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { text-decoration: underline; text-decoration-color: var(--forest); }
.post .teaser { color: var(--muted); max-width: 42rem; margin: .6rem 0 0; }
.post details { margin-top: 1rem; }
.post summary {
  cursor: pointer; display: inline-block; font-weight: 650; color: var(--forest);
  list-style: none; padding: 4px 0;
}
.post summary::-webkit-details-marker { display: none; }
.post summary::before { content: "+"; display: inline-block; width: 1.1em; font-weight: 700; }
.post details[open] summary::before { content: "\2013"; }
.post .when-open { display: none; }
.post details[open] .when-open { display: inline; }
.post details[open] .when-closed { display: none; }
.post .body { max-width: 42rem; margin-top: 1.2rem; }
.post .body h4 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; font-weight: 650; }
.post .body ul { padding-left: 1.2rem; margin: 0 0 1em; }
.post .body li { margin-bottom: .45em; }
.post .note { font-size: .95rem; color: var(--muted); border-left: 3px solid var(--rule); padding-left: 14px; }
.sources { font-size: .92rem; color: var(--muted); padding-left: 1.3rem; }
.sources li { margin-bottom: .35em; overflow-wrap: anywhere; }

/* Fuß */
.site-footer { background: var(--forest-deep); color: rgba(255,255,255,.82); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; padding-block: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--white); }

/* Rechtstexte */
.legal { padding-block: clamp(48px, 7vw, 88px); }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.45rem; margin: 2.2rem 0 .6rem; }
.legal .lang-block + .lang-block { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--rule); }
.legal dl { display: grid; grid-template-columns: minmax(9rem, 15rem) 1fr; gap: 10px 20px; }
.legal dt { font-weight: 650; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }

/* Platzhalter sichtbar markieren, bis sie ersetzt sind */
.ph { background: #fff1b8; color: #5a4300; padding: 0 .25em; border-radius: 3px; }
.contact .ph, .site-header .ph { color: #5a4300; }

/* Kleine Bildschirme */
@media (max-width: 600px) {
  .nav { gap: 6px 18px; }
  .nav a { font-size: .95rem; }
  .oneline .label { font-size: 19px; }
  .service { grid-template-columns: 44px 1fr; gap: 6px 16px; }
  .service .icon { width: 44px; height: 44px; }
  .service .icon svg { width: 24px; height: 24px; }
}

/* Porträt mit Fotonachweis */
.portrait-fig { margin: 0; }
.portrait-fig .portrait { box-shadow: none; border: 8px solid var(--forest); background: var(--white); }
.portrait-fig figcaption { margin-top: .7rem; font-size: .8rem; color: var(--muted); max-width: 260px; }


/* ---------- Pain-Zeile im Hero ---------- */
.pain-line {
  margin: 0 0 1.1rem; padding-left: 14px; border-left: 3px solid var(--amber);
  font-weight: 600; font-size: 1.15rem; line-height: 1.4; color: var(--white); max-width: 30rem;
}

/* ---------- Pain Points ---------- */
.pain { padding-block: clamp(56px, 8vw, 104px); }
.pain-head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.pain-head p { color: var(--muted); margin-top: 1rem; }
.pain-cols { display: grid; gap: 48px; }
@media (min-width: 860px) { .pain-cols { grid-template-columns: 1fr 1fr; gap: 64px; } }
.pain-col { border-top: 6px solid var(--forest); padding-top: 22px; }
.pain-col.op { border-top-color: var(--forest-warm); }
.pain-col .eyebrow-dark { margin: 0 0 .5rem; }
.pain-col.op .eyebrow-dark { color: var(--forest-warm); }
.pain-col h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.08; margin: 0 0 1rem; }
.pain-col > p { color: var(--muted); }
.stats { margin: 1.6rem 0 1.4rem; border-bottom: 1px solid var(--rule); }
.stat { display: grid; grid-template-columns: 1fr; gap: 4px; padding-block: 18px; border-top: 1px solid var(--rule); }
.stat-num { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; font-stretch: 78%; line-height: 1.05; color: var(--forest); }
.pain-col.op .stat-num { color: var(--forest-warm); }
.stat-cap { margin: 0; color: var(--muted); }
.pain-col .pain-close { color: var(--ink); font-weight: 600; margin: 0; }
.pain-bridge {
  text-align: center; margin: clamp(40px, 6vw, 72px) 0 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; font-stretch: 80%; color: var(--forest);
}
.src-details { margin-top: 36px; font-size: .92rem; color: var(--muted); }
.src-details summary { cursor: pointer; font-weight: 650; color: var(--forest); display: inline-block; padding: 4px 0; }
.src-details .sources { margin-top: 12px; }

/* ---------- Referenzen ---------- */
.refs-grid { display: grid; gap: 20px; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 860px) { .refs-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.ref { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--forest); border-radius: 10px; padding: 24px 26px; }
.ref h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.ref p { margin: 0; color: var(--muted); }
.refs-note { margin: 28px 0 0; max-width: 44rem; font-weight: 600; }

/* ---------- Kurzinterview ---------- */
.interview { background: var(--paper-2); }
.interview .wrap { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .interview .wrap { grid-template-columns: 4fr 8fr; gap: 64px; } }
.iv-head p { color: var(--muted); margin-top: 1rem; max-width: 24rem; }
.iv-fig { margin: 0 0 28px; }
.iv-portrait { display: block; width: min(380px, 100%); height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; border-bottom: 8px solid var(--forest); background: var(--white); }
.iv-fig figcaption { margin-top: .7rem; font-size: .8rem; color: var(--muted); max-width: 380px; }
.qa-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.qa-list > li { border-top: 1px solid var(--rule); }
.qa { padding-block: 18px; }
.qa summary { cursor: pointer; list-style: none; display: flex; gap: 12px; font-weight: 650; font-size: 1.1rem; line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "+"; flex: none; width: 1.1em; color: var(--forest); font-weight: 700; }
.qa[open] summary::before { content: "\2013"; }
.qa .answer { margin: .9rem 0 0 1.55rem; max-width: 40rem; }
.qa .who { font-weight: 650; color: var(--forest); }
