/* TERPIO — Startseite
   Farbklima und Dokument-Motive uebernommen aus design-referenz/abschlussbericht.html:
   2px-Anthrazit-Oberlinie als Abschnittsmarke, Mono-Ziffern, ruhige Hairlines. */

:root {
  --ink: #18231d;          /* Ueberschriften, Regellinien */
  --body: #3f4b45;         /* Fliesstext (9,1:1 auf Weiss) */
  --muted: #5a675f;        /* Sekundaertext, Labels (6,3:1 auf Weiss) */
  --hair: #98a29c;         /* NUR dekorativ — nie fuer Text */
  --line: #e7ebe8;
  --bg: #f7f8f7;
  --card: #ffffff;
  --green: #1e7a45;        /* der eine Akzent (5,4:1 auf Weiss) */
  --green-dark: #175f36;
  --green-soft: #eef6f1;
  --green-line: #cfe4d7;
  --mono: SFMono-Regular, ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --pad: 24px;
}

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body, h1, h2, h3, p, figure, ul, li, dl, dt, dd { margin: 0; padding: 0 }
ul { list-style: none }
img { display: block; max-width: 100%; height: auto }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none }
a:hover { text-decoration: underline }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 3px }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 10;
}
.skip:focus { left: 0 }

/* ---------- gemeinsame Bausteine ---------- */

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.rule-top { border-top: 2px solid var(--ink); padding-top: 14px }

h1, h2, h3 { color: var(--ink); letter-spacing: -.01em; font-weight: 700; overflow-wrap: break-word }
h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.14 }
h2 { font-size: clamp(23px, 2.8vw, 30px); line-height: 1.22 }
h3 { font-size: 16px; line-height: 1.35; letter-spacing: 0 }

.lead { font-size: clamp(17px, 1.7vw, 19px); line-height: 1.55; color: var(--body) }

.btn {
  display: inline-block;
  background: var(--green); color: #fff;
  font-size: 15px; font-weight: 600;
  padding: 13px 24px; border-radius: 8px;
  border: 1px solid var(--green);
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none }

/* Screenshot-Rahmen: dezente Hairline + weicher Schatten */
.shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(24, 35, 29, .05), 0 12px 28px -12px rgba(24, 35, 29, .16);
}
.shot img { width: 100% }
.shot figcaption {
  font-size: 12px; color: var(--muted);
  padding: 10px 14px; border-top: 1px solid var(--line); background: var(--bg);
}

/* ---------- Kopfzeile ---------- */

.site-head { border-bottom: 1px solid var(--line); background: var(--card) }
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand {
  font-size: 17px; font-weight: 700; letter-spacing: .14em;
  color: var(--ink); text-transform: uppercase;
}
.brand:hover { text-decoration: none }
.head-cta { font-size: 14px; font-weight: 600 }

/* ---------- 1. Hero ---------- */

.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(44px, 6vw, 76px) }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero h1 { margin-top: 12px }
.hero .lead { margin-top: 18px; max-width: 34em }
.cta-row { margin-top: 28px }
.cta-note { margin-top: 12px; font-size: 13px; color: var(--muted) }

/* ---------- 2. Problemsatz ---------- */
/* Weisser Block mit derselben 2px-Anthrazit-Oberlinie wie die uebrigen
   Abschnitte (statt eines eigenen grauen Vollflaechen-Bands) — eine
   einheitliche Abschnittssprache ueber die ganze Seite. */

.problem { border-bottom: 1px solid var(--line) }
.problem .wrap { padding-top: clamp(44px, 5.5vw, 64px); padding-bottom: clamp(44px, 5.5vw, 64px) }

.problem-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--card);
}
.problem-col { padding: 18px 20px; border-right: 1px solid var(--line); overflow-wrap: break-word }
.problem-col:last-child { border-right: none }
.problem-col strong { display: block; font-size: 16px; font-weight: 700; color: var(--ink) }
.problem-col span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted) }

.problem-claim {
  margin: 28px auto 0; max-width: 32ch; text-align: center;
  font-size: clamp(20px, 2.6vw, 26px); line-height: 1.4;
  color: var(--ink); font-weight: 400; letter-spacing: -.01em;
}

/* ---------- 3. Produktbloecke ---------- */

.feature { padding: clamp(48px, 6.5vw, 84px) 0; border-bottom: 1px solid var(--line) }
.feature-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 60px); align-items: center;
}
.feature--reverse .feature-grid > .feature-copy { order: 2 }
.feature--reverse .feature-grid > .shot { order: 1 }
.feature h2 { margin-top: 12px }
.feature-copy .lead { margin-top: 14px; max-width: 34em }

/* Merkmalsliste im Dokument-Duktus: Hairline je Zeile */
.marks { margin-top: 24px; border-top: 1px solid var(--line) }
.marks li {
  padding: 11px 0 11px 20px; border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--body); position: relative;
}
.marks li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}
.marks strong { color: var(--ink); font-weight: 600 }

/* Kompakte Dreier-Zeile im Anbau-Block — gleiche Hairline-Aesthetik wie
   .problem-cols / .kpi-row. */
.mini-cols { margin-top: 28px }
.mini-cols-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  margin-top: 12px; background: var(--card);
}
.mini-cols-grid > div {
  padding: 13px 15px; border-right: 1px solid var(--line);
  font-size: 13px; color: var(--body); overflow-wrap: break-word;
}
.mini-cols-grid > div:last-child { border-right: none }
.mini-cols-grid strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 3px }
.mini-cols-grid span { display: block }

/* Block c) — groesster Block, zwei Bilder */
.feature--lead { border-bottom: none }
.feature--lead .feature-head { max-width: 800px }
.feature--lead h2 { margin-top: 12px }
.feature--lead .lead { margin-top: 16px; max-width: 38em }
.shots-duo {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 32px); align-items: start;
  margin-top: clamp(32px, 4vw, 44px);
}
.kpi-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  margin-top: 28px; background: var(--card);
}
.kpi { padding: 14px 16px; border-right: 1px solid var(--line) }
.kpi:last-child { border-right: none }
.kpi .v { font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--ink) }
.kpi .l { font-size: 11.5px; color: var(--muted); margin-top: 3px }
.claim {
  margin-top: 28px; padding: 18px 22px;
  background: var(--green-soft); border: 1px solid var(--green-line); border-radius: 10px;
  font-size: 16px; line-height: 1.5; color: var(--ink); max-width: 60em;
}
.claim strong { color: var(--green); font-weight: 600 }

/* ---------- 4. Vertrauen ---------- */

.trust { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.trust .wrap { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px) }
.trust h2 { margin-top: 12px; font-size: clamp(21px, 2.4vw, 26px) }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink); margin-top: 26px;
}
.trust-grid > div { padding: 16px 20px 18px 0; border-bottom: 1px solid var(--line) }
.trust-grid dt {
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.trust-grid dd { font-size: 15px; color: var(--ink); margin-top: 5px; font-weight: 600 }
.trust-grid .sub { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 3px }

/* ---------- 5. Ueber ---------- */

.about .wrap { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px) }
.about-inner { max-width: 760px }
.about h2 { margin-top: 12px }
.about-inner .lead { margin-top: 16px; max-width: 60ch }

/* ---------- 6. Fuss ---------- */

.site-foot { border-top: 1px solid var(--line); background: var(--card) }
.site-foot .wrap { padding-top: 34px; padding-bottom: 40px }
.foot-inner {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  justify-content: space-between; align-items: baseline;
}
.foot-brand { font-size: 13px; color: var(--muted) }
.foot-brand .n { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink) }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px }
.foot-nav a { color: var(--body) }
.foot-nav a:hover { color: var(--green) }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */

.page { padding: clamp(44px, 6vw, 72px) 0 clamp(48px, 6vw, 80px) }
.page-inner { max-width: 720px }
.page h1 { font-size: clamp(26px, 3.4vw, 34px) }
.page h2 {
  font-size: 15px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; margin: 34px 0 0;
}
.page h2 + p, .page h2 + address { margin-top: 10px }
.page p, .page address { font-size: 15px; line-height: 1.6; font-style: normal }
.page p + p { margin-top: 12px }
.page .back { display: inline-block; margin-bottom: 20px; font-size: 14px; font-weight: 600 }
.page .updated {
  margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .feature-grid, .shots-duo { grid-template-columns: minmax(0, 1fr) }
  .feature--reverse .feature-grid > .feature-copy,
  .feature--reverse .feature-grid > .shot { order: initial }
  .trust-grid { grid-template-columns: repeat(2, 1fr) }
  .kpi-row { grid-template-columns: repeat(2, 1fr) }
  .kpi:nth-child(2n) { border-right: none }
  .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line) }
  .problem-cols, .mini-cols-grid { grid-template-columns: minmax(0, 1fr) }
  .problem-col, .mini-cols-grid > div { border-right: none; border-bottom: 1px solid var(--line) }
  .problem-col:last-child, .mini-cols-grid > div:last-child { border-bottom: none }
}

@media (max-width: 560px) {
  :root { --pad: 18px }
  /* Lange deutsche Komposita auf sehr schmalen Geraeten trennen. */
  h1, h2, h3 { hyphens: auto }
  .trust-grid { grid-template-columns: minmax(0, 1fr) }
  .trust-grid > div { padding-right: 0 }
  .kpi-row { grid-template-columns: minmax(0, 1fr) }
  .kpi { border-right: none; border-bottom: 1px solid var(--line) }
  .kpi:last-child { border-bottom: none }
  .head-cta { display: none }
  .btn { display: block; text-align: center }
  .foot-inner { flex-direction: column; gap: 14px }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important }
}
