/* Version 3: eigenständiges Stylesheet. CI: Tannengrün, Anthrazit, Nachtschwarz, Systemschrift.
   Regeln aus der Session 24.11.2026 (ein Ziel, ein Button, Hero in einem Satz) und aus Impeccable
   (keine Eyebrows, keine Kennzahlen-Kacheln, keine gleichen Karten, eine Bewegung je Abschnitt). */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --text: #1a1f26;
  --text-muted: #5b6472;
  --accent: #1f7a5c;
  --accent-dark: #145c44;
  --accent-light: #3fb58a;
  --dark: #10131a;
  --dark-line: #2a323d;
  --dark-muted: #a3acb8;
  --border: #e3e6ea;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  accent-color: var(--accent);
  caret-color: var(--accent);
  scrollbar-color: #8a94a3 var(--dark);
}
::selection { background: var(--accent); color: #fff; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 1rem; text-wrap: balance; hyphens: manual; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
p, li, summary, blockquote { text-wrap: pretty; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
a { color: var(--accent-dark); }
.nw { white-space: nowrap; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }

/* ===== Fortschritt und Kopf ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2.5px;
  background: var(--accent-light);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  z-index: 200; pointer-events: none;
}
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}
.site-header.is-scrolled { background: rgba(16, 19, 26, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 0.55rem 1.5rem; transition: padding 0.3s ease;
}
@media (min-width: 900px) { .header-inner { padding: 0.55rem clamp(2rem, 5vw, 4.5rem); } }
.site-header.is-scrolled .header-inner { padding-top: 0.4rem; padding-bottom: 0.4rem; }
.logo { --logo-h: 40px; display: flex; flex-direction: column; color: #fff; text-decoration: none; line-height: 1.3; }
.logo-svg { display: block; height: var(--logo-h); width: auto; }
.logo-sub { font-size: 0.82rem; line-height: 1.2; letter-spacing: 0.04em; color: var(--dark-muted); margin-top: 0.1rem; padding-left: calc(var(--logo-h) * 130 / 140); }
@media (max-width: 479px) { .logo { --logo-h: 28px; } }
.main-nav { display: none; gap: 1.5rem; }
.main-nav a { color: var(--dark-muted); text-decoration: none; font-size: 0.95rem; transition: color 0.2s ease; }
.main-nav a:hover, .main-nav a.is-active { color: #fff; }
@media (min-width: 900px) { .main-nav { display: flex; } }
.btn-long { display: none; }
@media (min-width: 480px) { .btn-long { display: inline; } }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 0.75rem 1.5rem; border-radius: 6px;
  text-decoration: none; font-weight: 600; border: 0; font-family: inherit; font-size: 1rem; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(31, 122, 92, 0.3); }
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-link {
  color: #cfd4dc; text-decoration: none; padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.btn-link:hover { color: #fff; border-color: var(--accent-light); }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; border-radius: 3px; }

/* ===== Hero ===== */
.hero { background: var(--dark); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; }
.hero-text { padding: 3.5rem 1.5rem 3rem; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero-accent { color: var(--accent-light); }
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #cfd4dc; max-width: 34rem; margin: 0.5rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.trust {
  list-style: none; margin: 3rem 0 0; padding: 1.5rem 0 0;
  border-top: 1px solid var(--dark-line);
  display: grid; grid-template-columns: 1fr; gap: 1rem 2rem;
  font-size: 0.92rem; color: var(--dark-muted);
}
.trust li { margin: 0; text-wrap: balance; }
.trust span { display: block; text-wrap: balance; }
.trust strong { display: block; color: #fff; font-weight: 600; font-size: 1rem; }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) and (max-width: 1279px) { .trust { grid-template-columns: 1fr; } }
.hero-photo { position: relative; min-height: 320px; background: var(--dark); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; display: block; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 40%); min-height: min(86vh, 760px); }
  .hero-text { padding: 4rem clamp(2rem, 5vw, 4.5rem); }
}
@media (max-width: 479px) {
  .btn-large { width: 100%; text-align: center; padding: 0.9rem 1rem; font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Hero: ein gestaffelter Auftritt beim Laden, danach Ruhe */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.07); opacity: 0.4; } to { transform: none; opacity: 1; } }
.hero h1, .hero-sub, .hero-actions, .trust { animation: rise 0.9s var(--ease) backwards; }
.hero-sub { animation-delay: 0.12s; }
.hero-actions { animation-delay: 0.24s; }
.trust { animation-delay: 0.4s; }
.hero-photo img { animation: settle 1.4s var(--ease) backwards; }

/* ===== Szene: Tools werden zum System ===== */
.scene { background: var(--dark); color: #fff; border-top: 1px solid var(--dark-line); padding: 5rem 0; }
.js .scene { height: 320vh; padding: 0; position: relative; }
.scene-stage {
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 0 1.5rem;
}
.js .scene-stage { position: sticky; top: 0; height: 100vh; padding-top: 4.5rem; padding-bottom: 1.5rem; align-content: center; }
@media (min-width: 900px) { .scene-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; } }
.scene-caption { position: relative; height: 1.6em; margin: 0 0 1.25rem; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; color: var(--dark-muted); }
.scene-caption span { position: absolute; left: 0; top: 0; transition: opacity 0.5s ease, transform 0.5s var(--ease); }
.cap-after { color: var(--accent-light); opacity: 0; transform: translateY(8px); }
.scene.is-ordered .cap-before { opacity: 0; transform: translateY(-8px); }
.scene.is-ordered .cap-after { opacity: 1; transform: none; }
.statement-text { margin: 0; font-size: clamp(1.45rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; color: #fff; hyphens: manual; text-wrap: balance; }
.statement-text .w { opacity: 0.18; transition: opacity 0.35s ease, color 0.35s ease; }
.statement-text .w.on { opacity: 1; }
.statement-text .w.accent.on { color: var(--accent-light); }

.scene-svg { width: 100%; height: auto; max-height: 52vh; overflow: visible; display: block; }
.scene-svg .hub rect { fill: #162029; stroke: var(--accent-light); stroke-width: 1.75; }
.scene-svg .hub text { fill: #fff; font-size: 13px; font-weight: 600; }
.scene-svg .sat circle { fill: #64748b; transition: fill 0.5s ease; }
.scene-svg.ordered .sat circle { fill: var(--accent-light); }
.scene-svg .sat text { fill: #cfd4dc; font-size: 11.5px; }

/* ===== Problem ===== */
.problem h2, .angebot h2, .plan h2, .faq h2 { margin-bottom: 0; }
.problem-list { margin-top: 2.5rem; border-top: 1px solid var(--border); }
.problem-row {
  display: grid; grid-template-columns: 1fr; gap: 0.5rem 3rem;
  padding: 2rem 0; border-bottom: 1px solid var(--border);
}
.problem-row h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.problem-row p { margin: 0; color: var(--text-muted); max-width: 40rem; }
@media (min-width: 800px) { .problem-row { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.js .problem-row > * { opacity: 0.3; transition: opacity 0.6s ease; }
.js .problem-row.focus > * { opacity: 1; }

/* ===== Angebot ===== */
.angebot { background: var(--bg-alt); }
.angebot-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 900px) { .angebot-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 4rem; align-items: start; } .angebot-head { position: sticky; top: 6.5rem; } }
.angebot-note { text-wrap: balance; margin-top: 1.25rem; color: var(--text-muted); font-size: 0.95rem; max-width: 26rem; }
.usecase-list { list-style: none; margin: 0; padding: 0; }
.usecase { position: relative; padding: 1.6rem 0 1.6rem; margin: 0; }
.usecase::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #cfd4dc; transform-origin: 0 50%; }
.js .usecase::before { transform: scaleX(0); transition: transform 1.1s var(--ease); }
.js .usecase.in::before { transform: none; }
.usecase:last-child { border-bottom: 1px solid #cfd4dc; }
.usecase h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.usecase p { margin: 0; color: var(--text-muted); font-size: 0.97rem; max-width: 36rem; }
.usecase-value { display: block; margin-top: 0.6rem; font-size: 0.9rem; font-weight: 700; color: var(--accent-dark); }
.js .usecase > * { transition: opacity 0.7s ease 0.15s, transform 0.7s var(--ease) 0.15s; }
.js .usecase:not(.in) > * { opacity: 0; transform: translateY(10px); }

/* ===== Ablauf ===== */
.timeline { list-style: none; margin: 3.5rem 0 0; padding: 0; position: relative; display: grid; grid-template-columns: 1fr; gap: 2.25rem; --tl: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 1.2rem; top: 1.2rem; bottom: 1.2rem; width: 2px; }
.timeline::before { background: var(--border); }
.timeline::after { background: var(--accent); transform-origin: 50% 0; transform: scaleY(var(--tl)); }
.step { position: relative; padding-left: 4rem; margin: 0; }
.step-number {
  position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  background: #fff; color: var(--text-muted); border: 2px solid var(--border);
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease; z-index: 1;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--text-muted); max-width: 30rem; hyphens: manual; -webkit-hyphens: manual; }
.js .step { opacity: 0.4; transition: opacity 0.5s ease; }
.js .step.on { opacity: 1; }
.step.on .step-number { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (min-width: 1000px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .timeline::before, .timeline::after { left: 1.2rem; right: 1.2rem; top: 1.2rem; bottom: auto; width: auto; height: 2px; }
  .timeline::after { transform-origin: 0 50%; transform: scaleX(var(--tl)); }
  .step { padding-left: 0; padding-top: 4rem; }
}
.plan-cta { margin-top: 3.5rem; }

/* ===== Über mich ===== */
.guide { background: var(--bg-alt); }
.guide-inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .guide-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; } }
.guide-photo img { display: block; width: 100%; height: auto; border-radius: 8px; }
.js .wipe img { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease); }
.js .wipe.in img { clip-path: inset(0 0 0 0); }
.guide-text h2 { margin-bottom: 1.25rem; }
.guide-text p { color: var(--text-muted); max-width: 36rem; }
.guide-quote {
  margin: 2rem 0 0; font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.45; color: var(--text); max-width: 34rem; position: relative;
}
.guide-quote::before { content: "\201C"; display: block; font-size: 3.6rem; line-height: 0.6; color: var(--accent); font-style: normal; margin-bottom: 0.4rem; }
.guide-quote strong { font-weight: 700; }

/* ===== FAQ ===== */
.faq-inner { max-width: 820px; }
.faq h2 { margin-bottom: 2rem; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-of-type { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.3rem 3rem 1.3rem 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent-dark); transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 0; padding: 0 3rem 1.4rem 0; color: var(--text-muted); max-width: 40rem; }

/* ===== Abschluss mit Formular ===== */
.final-cta { background: var(--dark); color: #fff; }
.final-cta .container { max-width: 720px; }
.final-cta h2 { color: #fff; }
.final-text { color: #cfd4dc; margin: 1rem 0 0; max-width: 36rem; }
.contact-form { margin: 2.25rem 0 0; }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; font-weight: 600; color: #e3e6ea; }
.form-row .opt { font-weight: 400; color: var(--dark-muted); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; padding: 0.8rem 0.95rem; font: inherit; color: #fff;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 6px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.contact-form textarea { resize: vertical; min-height: 6.5rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-light); background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 3px rgba(63, 181, 138, 0.35); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-check { display: flex; gap: 0.7rem; align-items: flex-start; margin: 1.4rem 0 1.6rem; font-size: 0.92rem; color: #cfd4dc; }
.form-check input { margin-top: 0.25rem; width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.form-check a { color: #fff; }
.contact-form .btn { width: 100%; }
.contact-form .btn:disabled { opacity: 0.65; cursor: progress; transform: none; box-shadow: none; }
.form-status { margin: 1.1rem 0 0; text-align: center; min-height: 1.5em; color: #cfd4dc; }
.form-status.is-error { color: #ffb4a8; }
.form-status.is-error a { color: #fff; }
.contact-form.is-sent .form-row, .contact-form.is-sent .form-check, .contact-form.is-sent .btn { display: none; }
.contact-form.is-sent .form-status { color: #fff; font-size: 1.2rem; font-weight: 600; margin: 0; }

/* ===== Fuß ===== */
.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.9rem; color: var(--text-muted); }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--text-muted); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }
.footer-links { display: flex; gap: 1.25rem; }

/* ===== Bewegung reduzieren: alles sofort sichtbar, nichts bewegt sich ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .scene { height: auto; padding: 5rem 0; }
  .js .scene-stage { position: static; height: auto; padding-top: 0; padding-bottom: 0; }
  .statement-text .w, .js .problem-row > *, .js .step { opacity: 1; transition: none; }
  .js .usecase > *, .js .usecase:not(.in) > * { opacity: 1; transform: none; transition: none; }
  .js .usecase::before { transform: none; transition: none; }
  .js .wipe img { clip-path: none; transition: none; }
  .timeline { --tl: 1 !important; }
  .scroll-progress { display: none; }
}
