/*
  (c) 2026 D-veloping Entwicklung GmbH, Basadingen. Alle Rechte vorbehalten.

  Gemeinsames Stylesheet der V1-Website: Landingpage, Projektcheck,
  Impressum und Datenschutz. Farben und Typografie folgen d-veloping.ch:
  Grund #030303, Flaechen #16171a, Akzent Magenta #c00073 (hell #e00086),
  Systemschrift, Radius 4 px, Eyebrows in Grossbuchstaben.
  Die Kabinendemo (kabine/) hat ihr eigenes, eingebettetes CSS.
*/

:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: #16171a;
  --panel-2: #1d1f24;
  --line: #26282d;
  --line-strong: #3a3d44;
  --text: #ffffff;
  --soft: rgba(255, 255, 255, 0.78);
  --muted: #9aa0a8;
  --quiet: #6b7078;
  --accent: #c00073;
  --accent-bright: #e00086;
  --accent-soft: rgba(224, 0, 134, 0.14);
  --paper: #ffffff;
  --paper-ink: #16171a;
  --paper-muted: #555960;
  --danger: #ff7a6b;
  --success: #3ddc97;
  --focus: rgba(224, 0, 134, 0.4);
  --radius: 4px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Layoutbreite */
.wrap {
  width: min(1120px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}

.wrap.narrow { width: min(820px, calc(100% - 2 * var(--gutter))); }

/* Kopfzeile */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(3, 3, 3, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.brand-symbol {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-left: 10px;
  border: 4px solid var(--accent);
}

.brand-symbol::before,
.brand-symbol::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: translateY(-50%);
}

.brand-symbol::before { left: -11px; border-right: 6px solid var(--accent); }
.brand-symbol::after { right: -11px; border-left: 6px solid var(--accent); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 18px;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  color: var(--soft);
  text-decoration: none;
  padding: 6px 0;
}

.site-nav a:hover { color: var(--text); }

.site-nav a.button { padding: 8px 14px; font-size: 14px; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 160ms, border-color 160ms, transform 160ms;
}

.button:hover { background: var(--accent-bright); border-color: var(--accent-bright); transform: translateY(-1px); }

.button.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.button.ghost:hover { background: var(--panel); border-color: var(--quiet); }

.button.small { min-height: 38px; padding: 6px 14px; font-size: 14px; }

.button:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Typografie-Bausteine */
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section { padding: 56px 0 8px; }

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.18;
  text-wrap: balance;
}

.section h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; line-height: 1.3; }

.section .lead,
.lead { margin: 0 0 18px; max-width: 64ch; color: var(--soft); font-size: 17px; }

.muted { color: var(--muted); }
.quiet { color: var(--quiet); }

p { margin: 0 0 14px; }

ul.clean { margin: 0; padding-left: 20px; }
ul.clean li { margin: 0 0 6px; color: var(--soft); }

/* Hero */
.hero { padding: 64px 0 40px; }

.hero h1 {
  margin: 0 0 16px;
  max-width: 20ch;
  /* 27 px Minimum, damit "Produktkonfiguratoren" auf 375 px nicht im Wort bricht */
  font-size: clamp(27px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.06;
  text-wrap: balance;
}

.hero .lead { max-width: 56ch; font-size: clamp(17px, 2vw, 20px); margin-bottom: 26px; }

.hero .actions { margin-bottom: 30px; }

/* Rotierende Nutzenzeilen: ohne JS stehen alle drei untereinander. */
.rotator {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 64ch;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.rotator li { margin: 0 0 8px; color: var(--soft); font-size: 16px; }

.rotator.is-js { position: relative; min-height: 3.2em; }
.rotator.is-js li {
  position: absolute;
  inset: 0 0 auto 0;
  margin: 0;
  opacity: 0;
  transition: opacity 500ms ease;
}
.rotator.is-js li.is-active { opacity: 1; }

/* Karten und Raster */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--soft); }

.card.question {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.card.question .mark {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-weight: 900;
}

.num {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-bright);
  font-weight: 900;
  font-size: 15px;
}

.callout {
  margin: 20px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--soft);
}

.callout strong { color: var(--text); }
.callout p:last-child { margin-bottom: 0; }

/* Hover-Liste: links drei Zeilen, rechts eine Box, die sich beim Ueberfahren
   fuellt. Auf Geraeten ohne Hover (Handy) klappt der Text per Tipp direkt
   unter der Zeile auf; ohne JavaScript stehen alle Texte sichtbar da. */
.reveal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: stretch;
}

.reveal-list { display: grid; align-content: start; gap: 8px; }

.reveal-row {
  display: grid;
  grid-template-columns: 34px 1fr 14px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms, background 150ms;
}

.reveal-row .num { margin: 0; }

.reveal-row .chevron {
  width: 9px;
  height: 9px;
  justify-self: end;
  border-right: 2px solid var(--quiet);
  border-bottom: 2px solid var(--quiet);
  transform: rotate(-45deg);
  transition: transform 150ms, border-color 150ms;
}

.reveal-row:hover,
.reveal-item.is-active .reveal-row {
  border-color: var(--line-strong);
  border-left-color: var(--accent-bright);
  background: var(--panel-2);
}

.reveal-item.is-active .reveal-row .chevron { border-color: var(--accent-bright); }

.reveal-detail { display: none; }

.reveal-box {
  min-height: 100%;
  padding: 24px 26px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--soft);
}

.reveal-box.is-filled { border-style: solid; border-color: var(--accent); }
.reveal-box h3 { margin: 0 0 12px; color: var(--text); font-size: 20px; font-weight: 800; line-height: 1.3; }
.reveal-box p { margin: 0 0 12px; }
.reveal-box ul { margin: 0; padding-left: 20px; }
.reveal-box li { margin: 0 0 8px; font-size: 16px; }
.reveal-box p:last-child, .reveal-box ul:last-child { margin-bottom: 0; }
.reveal-placeholder { margin: 0; color: var(--quiet); }

.reveal-box.is-filled > * { animation: reveal-fade 220ms ease both; }

@keyframes reveal-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-box.is-filled > * { animation: none; }
}

/* Ohne JavaScript: alle Texte sichtbar, keine Box */
html:not(.js) .reveal { grid-template-columns: 1fr; }
html:not(.js) .reveal-box { display: none; }
html:not(.js) .reveal-row { cursor: default; }
html:not(.js) .reveal-row .chevron { display: none; }
html:not(.js) .reveal-detail { display: block; padding: 4px 18px 14px 64px; color: var(--soft); }
html:not(.js) .reveal-detail ul { margin: 0; padding-left: 20px; }

/* Handy: Box weg, Text klappt unter der angetippten Zeile auf */
@media (max-width: 760px) {
  .reveal { grid-template-columns: 1fr; }
  .reveal-box { display: none; }
  .reveal-row { font-size: 16px; padding: 14px 16px; }
  .reveal-item.is-active .reveal-row { border-radius: var(--radius) var(--radius) 0 0; }
  .reveal-item.is-active .reveal-row .chevron { transform: rotate(45deg); }
  .reveal-item.is-active .reveal-detail {
    display: block;
    margin-top: -1px;
    padding: 12px 16px 16px;
    border: 1px solid var(--line-strong);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--panel);
    color: var(--soft);
  }
  .reveal-detail p { margin: 0 0 10px; }
  .reveal-detail ul { margin: 0; padding-left: 20px; }
  .reveal-detail li { margin: 0 0 6px; }
  .reveal-detail p:last-child, .reveal-detail ul:last-child { margin-bottom: 0; }
  html:not(.js) .reveal-detail { padding: 4px 16px 14px; }
}

/* Demo-Block: weisses Blatt als Vorschau, Text daneben */
.demo-block {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
}

.demo-block .shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
  border-right: 1px solid var(--line);
}

.demo-block .copy { padding: 26px 26px 26px 0; }

.demo-block .copy h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 10px; }

@media (max-width: 760px) {
  .demo-block { grid-template-columns: 1fr; }
  .demo-block .shot { border-right: 0; border-bottom: 1px solid var(--line); max-height: 240px; }
  .demo-block .copy { padding: 22px; }
}

/* Evidenzblock */
.evidence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 20px;
  align-items: start;
}

.evidence .figure {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: var(--radius);
  padding: 22px;
}

.evidence .figure .label { color: var(--accent); font-size: 12px; font-weight: 900; text-transform: uppercase; margin: 0 0 6px; }
.evidence .figure .value { font-size: clamp(28px, 4vw, 38px); font-weight: 900; line-height: 1.05; margin: 0 0 8px; }
.evidence .figure .small { color: var(--paper-muted); font-size: 14px; margin: 0; }

.evidence a { color: var(--text); text-underline-offset: 3px; }

@media (max-width: 760px) {
  .evidence { grid-template-columns: 1fr; }
}

/* CTA-Block */
.cta-block {
  margin-top: 56px;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cta-block h2 { margin: 0 0 10px; font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; line-height: 1.2; }
.cta-block p { max-width: 62ch; color: var(--soft); margin-bottom: 20px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
}

.faq details[open] { border-color: var(--line-strong); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent-bright);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq .answer { padding: 0 0 18px; color: var(--soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Ueber D-veloping */
.about {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.about img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.about p { color: var(--soft); }

.about .name { margin: 0 0 4px; font-size: 19px; font-weight: 800; color: var(--text); }
.about .role { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.about a { color: var(--text); text-underline-offset: 3px; }

@media (max-width: 600px) {
  .about { grid-template-columns: 1fr; }
  .about img { width: 140px; height: 140px; }
}

/* Fusszeile */
.site-footer {
  margin-top: 64px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Textseiten (Impressum, Datenschutz) */
.legal { padding: 48px 0 0; }
.legal h1 { margin: 0 0 22px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; scroll-margin-top: 80px; }
.legal h1.part { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.legal h2 { margin: 30px 0 8px; color: var(--accent-bright); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.legal p, .legal li { color: var(--soft); }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--accent-bright); }

/* Kleine Hilfen */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Sprungziele unter der klebenden Kopfzeile freihalten */
section[id], [id].section, .cta-block[id] { scroll-margin-top: 80px; }

@media (max-width: 600px) {
  .section { padding-top: 44px; }
  .hero { padding: 40px 0 28px; }
  .cta-block { padding: 24px 20px; margin-top: 44px; }
  .card { padding: 18px; }
  .button { width: 100%; }
  .site-nav a.button { width: auto; }
  /* Kopfzeile einzeilig: Marke, Kontakt, Projektcheck; Sprunglinks nur ab Tablet */
  .brand { font-size: 16px; gap: 10px; }
  .site-nav { gap: 6px 12px; font-size: 14px; }
  .site-nav a.hide-mobile { display: none; }
}
