:root {
  --bg: #faf8f4;
  --bg-alt: #f1ede5;
  --ink: #1d2a2a;
  --muted: #5c6766;
  --accent: #1f4d46;
  --accent-dark: #173a35;
  --accent-ink: #ffffff;
  --line: #ddd6c8;
  --hero-bg: #cfcfce;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--accent); font-weight: 600; margin-bottom: .8em; }
.muted { color: var(--muted); }
.narrow { max-width: 620px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 580px; }

/* Navigation */
.nav { position: sticky; top: 0; background: rgba(250,248,244,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); z-index: 10; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.brand { font-family: var(--sans); color: var(--ink); text-decoration: none; display: inline-grid; line-height: 1; }
.brand-name { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.7rem; }
.brand-name i { font-style: normal; }
.brand-sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 400; }
.nav nav { display: flex; gap: 26px; align-items: center; }
.nav nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav-inner { gap: 28px; }
.nav nav { margin-left: auto; }
.nav nav a:hover { color: var(--accent); }
.nav nav a.btn { color: var(--accent-ink); }

/* Kontaktleiste über der Navigation, blendet beim Scrollen aus */
.topbar { background: var(--accent); color: #cfe0dc; font-size: .78rem; max-height: 40px; overflow: hidden; transition: max-height .3s ease, opacity .3s ease; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-contact { display: flex; gap: 22px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar svg { width: 12px; height: 12px; fill: #a9c9c1; }
.nav.scrolled .topbar { max-height: 0; opacity: 0; }
.nav.scrolled { box-shadow: 0 4px 18px rgba(29,42,42,.06); }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 13px 24px; border-radius: 3px; text-decoration: none; font-weight: 500; border: 0; font: inherit; cursor: pointer; }
.btn:hover { opacity: .9; }
.btn-small { padding: 8px 18px; font-size: .9rem; }

/* Haupt-Button im Einstieg: sanfter Puls und Pfeil */
.btn-cta { position: relative; display: inline-flex; align-items: center; gap: 12px; transition: transform .2s ease, box-shadow .2s ease; }
.btn-cta .arrow { display: inline-block; transition: transform .25s ease; }
.btn-cta:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,77,70,.28); }
.btn-cta:hover .arrow { transform: translateX(5px); }
.btn-cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(31,77,70,.45); animation: cta-pulse 3.2s ease-out 1.5s infinite; pointer-events: none; }
@keyframes cta-pulse { 0% { box-shadow: 0 0 0 0 rgba(31,77,70,.45); } 45%, 100% { box-shadow: 0 0 0 14px rgba(31,77,70,0); } }
@media (prefers-reduced-motion: reduce) { .btn-cta::after { animation: none; } }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Einstieg */
.hero { position: relative; overflow: hidden; min-height: min(86vh, 760px); display: flex; align-items: center; padding: 80px 0; background: var(--hero-bg); }
.hero::after {
  content: ""; position: absolute; top: -45px; right: 0; bottom: 0; width: 52%;
  background: url("portrait.jpg") 70% 0 / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero-text { max-width: 540px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.hero .lead { color: #333c3b; }

/* Allgemeine Abschnitte */
.section { padding: 90px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-alt); }
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.prose p { color: var(--ink); }

/* Grundsätze */
.principles { background: var(--accent); border-top: none; color: #dfe9e6; }
.principles h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.principles .eyebrow { color: #a9c9c1; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 6px; padding: 34px 28px; transition: background .2s, transform .2s; }
.card:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.card h3 { color: #fff; }
.card p { color: #c9d8d4; margin: 0; font-size: .97rem; }
.num { font-family: var(--serif); color: #a9c9c1; font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 22px; }

/* Abgrenzung */
.difference { padding: 110px 0; }
.big { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .4em; }
.intro { font-size: 1.2rem; color: var(--muted); }
.compare { overflow-x: auto; margin-top: 48px; padding: 30px 0 6px; }
.compare table { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; font-size: .98rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 50px rgba(29,42,42,.07); }
.compare th, .compare td { text-align: left; vertical-align: middle; padding: 22px 18px; border-bottom: 1px solid #ece7dd; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare thead th { font-weight: 600; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; background: #faf8f4; padding-top: 18px; padding-bottom: 18px; }
.compare thead th:first-child { border-top-left-radius: 10px; }
.compare tbody tr:nth-child(even) td:not(.me), .compare tbody tr:nth-child(even) th { background: #fcfbf8; }
.compare tbody th { font-family: var(--serif); font-weight: normal; font-size: 1.05rem; color: var(--ink); width: 15%; }
.compare td { color: var(--muted); }
.compare .me { position: relative; background: var(--accent); color: #fff; font-weight: 500; width: 22%; border-bottom-color: rgba(255,255,255,.14); }
.compare thead .me { color: #fff; font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 1.3rem; font-weight: normal; background: var(--accent-dark); border-radius: 10px 10px 0 0; padding-top: 30px; }
.compare tbody tr:last-child .me { border-radius: 0 0 10px 0; }
.badge { position: absolute; top: -13px; left: 18px; background: #c8a96a; color: #1d2a2a; font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.chip svg { width: 16px; height: 16px; }
.chip-x { background: #f6e9e4; color: #9a4a35; }
.chip-x svg { fill: #9a4a35; }
.chip-n { background: #efece6; color: var(--muted); padding-left: 12px; }
.chip-ok { background: #fff; color: var(--accent); }
.chip-ok svg { fill: var(--accent); }


/* Ablauf als Zeitstrahl */
.steps { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.steps li { position: relative; display: flex; flex-direction: column; min-width: 0; --d: 0s; }
.step-card h3, .step-card p { overflow-wrap: break-word; hyphens: auto; }
.steps li:nth-child(2) { --d: .3s; } .steps li:nth-child(3) { --d: .6s; } .steps li:nth-child(4) { --d: .9s; } .steps li:nth-child(5) { --d: 1.2s; }
.dot { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; margin-bottom: 22px; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px rgba(31,77,70,.25); transition: transform .55s cubic-bezier(.2,.9,.3,1.3) var(--d), opacity .4s ease var(--d); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: 66px; right: -20px; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(31,77,70,.35)); transform-origin: left; transition: transform .6s ease calc(var(--d) + .25s); }
.steps li:not(:last-child)::before { content: ""; position: absolute; top: 20px; right: -22px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid var(--accent); opacity: .7; transition: opacity .3s ease calc(var(--d) + .8s); }
.step-card { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px 20px; box-shadow: 0 8px 24px rgba(29,42,42,.05); transition: opacity .6s ease calc(var(--d) + .15s), transform .6s ease calc(var(--d) + .15s), border-color .2s, box-shadow .2s; }
.step-card:hover { border-color: var(--accent); box-shadow: 0 14px 34px rgba(29,42,42,.1); }
.steps h3 { margin-bottom: .45em; font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }
html.js .steps:not(.in-view) .dot { transform: scale(.3); opacity: 0; }
html.js .steps:not(.in-view) .step-card { opacity: 0; transform: translateY(18px); }
html.js .steps:not(.in-view) li::after { transform: scaleX(0); }
html.js .steps:not(.in-view) li::before { opacity: 0; }

/* Person unter „Über mich“ */
.person { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.person strong { display: block; font-family: var(--serif); font-weight: normal; font-size: 1.25rem; }
.person span { color: var(--muted); font-size: .92rem; }
.social { display: flex; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; transition: border-color .2s, background .2s; }
.social a:hover { border-color: var(--accent); background: #fff; }
.social svg { width: 18px; height: 18px; fill: var(--accent); }

/* Leitgedanke (Abschluss) */
.statement { padding: 120px 0 110px; background: #fff; }
.statement-inner { max-width: 900px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.quote-mark { font-family: var(--serif); font-size: 4.5rem; line-height: .6; color: var(--ink); margin-bottom: 26px; font-weight: bold; }
.reveal { font-family: var(--serif); font-size: clamp(1.4rem, 2.8vw, 2.15rem); line-height: 1.55; color: var(--ink); margin: 0 0 56px; }
.reveal.is-js span { color: #c4c9c7; transition: color .35s ease; }
.reveal.is-js span.on { color: var(--ink); }
.sign-img { height: 110px; width: auto; margin: -10px 0 30px; }
.prose strong { font-weight: 600; color: var(--ink); }
.avatar { width: 128px; height: 128px; border-radius: 50%; margin-bottom: 16px; background: url("portrait.jpg") 52.5% 9% / 360% auto no-repeat, #d6d6d5; }
.person-name { margin: 0; font-weight: 600; }
.person-role { margin: 0; color: var(--muted); font-size: .9rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.6rem; color: var(--accent); font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; padding-right: 40px; }

/* Kontakt */
.contact { background: var(--accent); color: #dfe9e6; border-top: none; }
.contact h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.contact .eyebrow { color: #a9c9c1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.16); }
.contact-list li > svg { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: rgba(255,255,255,.1); fill: #fff; }
.contact-list li > div { display: flex; flex-direction: column; color: #fff; }
.contact-list span { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: #a9c9c1; }
.contact-list a { color: #fff; text-decoration: none; }
.contact-form { background: var(--bg); color: var(--ink); padding: 36px; border-radius: 6px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; }
.contact-form em { font-weight: 400; color: var(--muted); font-style: normal; }
.contact-form input, .contact-form textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: 11px 12px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.contact-form .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .85rem; color: var(--muted); }
.contact-form .consent input { margin-top: 4px; }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; }

/* Fußzeile */
.footer { padding: 28px 0; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer p { margin: 0; }

/* Rechtstexte */
.legal { padding: 70px 0; max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }


@media (max-width: 1040px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .hero-text { max-width: 48%; }
  .hero::after { width: 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
  .steps { grid-template-columns: 1fr 1fr 1fr; row-gap: 40px; }
  .steps li:nth-child(3n)::after, .steps li:nth-child(3n)::before { display: none; }
}
@media (max-width: 860px) {
  .hero { min-height: 0; padding: 380px 0 40px; }
  .hero::after { width: 100%; top: 24px; bottom: auto; height: 380px; background-position: 62% 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 75%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 75%, transparent 100%);
  }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .statement { padding: 70px 0; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 22px 72px; }
  .dot { position: absolute; left: 0; top: 0; }
  .steps li:not(:last-child)::after { top: 58px; bottom: 8px; left: 25px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), rgba(31,77,70,.35)); transform-origin: top; }
  .steps li:not(:last-child)::before { top: auto; bottom: 2px; right: auto; left: 20px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--accent); border-bottom: 0; }
  html.js .steps:not(.in-view) li::after { transform: scaleY(0); }
  .section, .difference { padding: 60px 0; }
  .nav nav a:not(.btn):not(.back) { display: none; }
  .wrap { padding: 0 16px; }
  .legal { padding: 40px 16px 60px; }
  .contact-form { padding: 24px; }
}
@media (max-width: 640px) {
  .topbar-inner > span { display: none; }
  .topbar-contact { width: 100%; justify-content: space-between; gap: 12px; }
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.3rem; gap: .3em; }
}
