:root {
  --color-accent: #d9552b;
  --color-accent-dark: #b8441f;
  --color-text: #1a1d21;
  --color-muted: #667085;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f5f2;
  --color-surface: #ffffff;
  --color-border: #ecebe8;
  --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(20,20,20,.04), 0 1px 1px rgba(20,20,20,.03);
  --shadow-md: 0 8px 24px rgba(20,20,20,.08);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --color-accent: #e2794f;
  --color-accent-dark: #d9552b;
  --color-text: #f0efec;
  --color-muted: #9aa1ae;
  --color-bg: #111318;
  --color-bg-alt: #1a1d23;
  --color-surface: #181b21;
  --color-border: #2c2f37;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 1px 1px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,.5);
  color-scheme: dark;
}

/* Im Dark Mode ist heller Text auf dem Akzent-Orange zu kontrastarm (WCAG AA) –
   dunkler Text auf den Akzent-Flächen sorgt für ausreichenden Kontrast. */
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .nav-cta,
:root[data-theme="dark"] .pricing-badge {
  color: var(--color-bg) !important;
}

* { box-sizing: border-box; }
.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; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-base); color: var(--color-text); line-height: 1.6; background: var(--color-bg); -webkit-font-smoothing: antialiased; transition: background-color .2s ease, color .2s ease; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin-top: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.6rem; }
.eyebrow { display: inline-block; color: var(--color-accent); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.6rem; }
.section-lead { color: var(--color-muted); max-width: 560px; margin: 0 0 2.5rem; font-size: 1.05rem; }
a { color: inherit; }

/* Header */
.site-header { position: sticky; top: 0; background: var(--color-surface); border-bottom: 1px solid transparent; z-index: 100; transition: box-shadow .2s, border-color .2s, background-color .2s; }
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.logo-icon { height: 36px; width: 36px; display: block; }
.main-nav { display: flex; align-items: center; }
.main-nav a { margin-left: 1.6rem; text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--color-muted); transition: color .15s; }
.main-nav a:hover { color: var(--color-text); }
.nav-cta { background: var(--color-accent); color: #fff !important; padding: 0.6rem 1.3rem; border-radius: 999px; font-weight: 600 !important; box-shadow: var(--shadow-sm); }
.nav-cta:hover { background: var(--color-accent-dark); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { content: ""; display: block; width: 22px; height: 2px; background: var(--color-text); position: relative; transition: .2s; }
.menu-toggle span::before { position: absolute; top: -7px; width: 22px; height: 2px; background: var(--color-text); }
.menu-toggle span::after { position: absolute; top: 7px; width: 22px; height: 2px; background: var(--color-text); }

/* Hero */
.hero { padding: 7rem 0 6rem; background:
    radial-gradient(60% 60% at 85% 15%, rgba(217,85,43,.10) 0%, rgba(217,85,43,0) 70%),
    linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 760px; margin: 0 auto 1.2rem; }
.hero-sub { color: var(--color-muted); max-width: 620px; margin: 0 auto 2.2rem; font-size: 1.15rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: 0.85rem 1.7rem; border-radius: 999px; text-decoration: none; font-weight: 600; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: 0 6px 16px rgba(217,85,43,.28); }
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.btn-ghost { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); }
.btn-ghost:hover { border-color: #d8d5d0; }

.section { padding: 5.5rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { text-align: center; margin: 0 auto 3rem; max-width: 620px; }
.section-header .section-lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.align-center { align-items: center; }

.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, background-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(217,85,43,.1); color: var(--color-accent); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); margin: 0; font-size: 0.96rem; }

.step-card { position: relative; }
.step-num { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--color-accent); opacity: .5; margin-bottom: 0.6rem; }

.image-placeholder { background: linear-gradient(155deg, rgba(217,85,43,.13), rgba(217,85,43,.03)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; min-height: 220px; color: var(--color-muted); font-size: 0.9rem; }
.image-placeholder svg { width: 104px; height: 104px; }
.image-placeholder.photo-pending { background: var(--color-bg-alt); border: 2px dashed var(--color-border); flex-direction: column; gap: 0.6rem; text-align: center; padding: 1.5rem; color: var(--color-muted); }
.image-placeholder.photo-pending svg { width: 44px; height: 44px; opacity: .5; }
.image-placeholder.mockup { min-height: 260px; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); padding: 1.5rem; transition: transform .18s, box-shadow .18s; }
.image-placeholder.mockup:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.image-placeholder.mockup svg { width: 100%; height: auto; max-width: 340px; }

.benefit-tag { display: inline-flex; align-items: flex-start; gap: 0.55rem; background: rgba(217,85,43,.08); border-left: 3px solid var(--color-accent); padding: 0.65rem 1rem; border-radius: 6px; font-size: 0.92rem; margin: 1rem 0 0; }
.benefit-tag strong { color: var(--color-text); }

.trust-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 0.6rem; }
.trust-badge { display: inline-flex; align-items: center; gap: 0.45rem; background: rgba(217,85,43,.1); color: var(--color-accent); border: 1px solid rgba(217,85,43,.25); padding: 0.45rem 0.95rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.trust-badge svg { width: 15px; height: 15px; flex-shrink: 0; }
.image-placeholder.photo-pending small { display: block; font-size: 0.78rem; margin-top: 0.15rem; }

.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 0.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; background: var(--color-surface); padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.contact-form label { display: flex; flex-direction: column; font-size: 0.9rem; font-weight: 500; gap: 0.4rem; }
.contact-form input, .contact-form textarea { padding: 0.7rem 0.8rem; border: 1px solid var(--color-border); border-radius: 8px; font: inherit; background: var(--color-bg); color: var(--color-text); transition: border-color .15s, box-shadow .15s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(217,85,43,.25); }

.site-footer { padding: 2.5rem 0; text-align: center; color: var(--color-muted); font-size: 0.9rem; border-top: 1px solid var(--color-border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { text-decoration: none; color: var(--color-muted); }
.footer-links a:hover { color: var(--color-text); text-decoration: underline; }

.page-hero { padding: 4.5rem 0 3.5rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

.link-card { text-decoration: none; }
.link-card .arrow { color: var(--color-accent); font-weight: 700; }

.legal .section { padding: 3rem 0 5rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.legal p, .legal li { color: var(--color-text); font-size: 0.98rem; }
.legal .placeholder { background: rgba(217,85,43,.1); color: var(--color-accent-dark); padding: 0.1rem 0.4rem; border-radius: 4px; font-weight: 600; }
.placeholder-note { background: rgba(217,85,43,.1); color: var(--color-accent-dark); padding: 0.1rem 0.45rem; border-radius: 4px; font-weight: 600; font-style: normal; white-space: normal; }

/* Referenzen-Seite */
.reference-card { padding: 2rem; }
.reference-card .reference-tag { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--color-accent); background: rgba(217,85,43,.1); padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 1rem; }
.reference-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.reference-card p { color: var(--color-muted); margin: 0 0 1.2rem; }
.reference-placeholder { border: 2px dashed var(--color-border); border-radius: var(--radius); min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; color: var(--color-muted); text-align: center; padding: 2rem; background: var(--color-bg-alt); }
.reference-placeholder svg { width: 40px; height: 40px; opacity: 0.5; }
.reference-placeholder strong { color: var(--color-text); font-size: 0.98rem; }
.reference-placeholder span { font-size: 0.85rem; }

/* Ratgeber-Seite */
.article-toc { list-style: none; padding: 0; margin: 0 auto 3rem; max-width: 620px; display: flex; flex-direction: column; gap: 0.6rem; }
.article-toc a { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0.9rem 1.2rem; font-weight: 600; font-size: 0.95rem; transition: border-color .15s, transform .15s; }
.article-toc a:hover { border-color: var(--color-accent); transform: translateX(3px); }
.article-toc .toc-num { color: var(--color-accent); font-weight: 800; font-family: var(--font-heading); }
.article-block { max-width: 720px; margin: 0 auto; scroll-margin-top: 90px; }
.article-block + .article-block { border-top: 1px solid var(--color-border); padding-top: 3rem; margin-top: 3rem; }
.article-block h2 { font-size: 1.5rem; }
.article-block p { margin-bottom: 1.1rem; }

/* Risikoumkehr / Vertrauens-Baustein */
.guarantee-box { display: flex; gap: 1.2rem; align-items: flex-start; background: rgba(217,85,43,.06); border: 1px solid rgba(217,85,43,.2); border-radius: var(--radius); padding: 1.6rem 1.8rem; max-width: 760px; margin: 2.5rem auto 0; }
.guarantee-box .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(217,85,43,.14); color: var(--color-accent); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.guarantee-box h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.guarantee-box p { margin: 0; color: var(--color-muted); font-size: 0.95rem; }
.legal .notice { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.2rem 1.4rem; font-size: 0.92rem; color: var(--color-muted); margin-bottom: 2rem; }

/* Pricing */
.pricing-grid { align-items: stretch; }
.pricing-card { display: flex; flex-direction: column; position: relative; padding: 2.2rem 1.9rem; }
.pricing-card.featured { border-color: var(--color-accent); box-shadow: 0 10px 28px rgba(217,85,43,.14); }
.pricing-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--color-accent); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.35rem 0.9rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.pricing-card h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.pricing-card .plan-desc { color: var(--color-muted); font-size: 0.92rem; margin: 0 0 1.3rem; min-height: 2.6em; }
.pricing-card .price-row { margin-bottom: 1.5rem; }
.pricing-card .price-prefix { color: var(--color-muted); font-size: 0.85rem; display: block; }
.pricing-card .price-value { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; }
.pricing-card .price-note { color: var(--color-muted); font-size: 0.85rem; display: block; margin-top: 0.2rem; }
.pricing-card .feature-list { list-style: none; padding: 0; margin: 0 0 1.8rem; flex-grow: 1; }
.pricing-card .feature-list li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.7rem; font-size: 0.94rem; }
.pricing-card .feature-list li::before { content: "✓"; color: var(--color-accent); font-weight: 700; flex-shrink: 0; }
.pricing-card .btn { text-align: center; }

.addon-card ul { list-style: none; padding: 0; margin: 0; }
.addon-card li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--color-border); font-size: 0.94rem; }
.addon-card li:last-child { border-bottom: none; }
.addon-card .addon-price { color: var(--color-accent); font-weight: 600; white-space: nowrap; }
.addon-card .addon-name { color: var(--color-text); }
.addon-card .addon-note { display: block; color: var(--color-muted); font-size: 0.82rem; font-weight: 400; }

/* Ablauf-Zeitstrahl (kompakte Randleiste) */
.ablauf-timeline { max-width: 700px; margin: 0 auto; position: relative; padding-left: 84px; }
.ablauf-timeline::before { content: ''; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 3px; background: var(--color-border); }
.at-item { position: relative; padding-bottom: 3.2rem; }
.at-item:last-child { padding-bottom: 0; }
.at-node { position: absolute; left: -84px; top: 0; width: 62px; height: 62px; border-radius: 50%; background: var(--color-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-heading); font-size: 1.25rem; box-shadow: 0 0 0 6px var(--color-bg), var(--shadow-sm); }
.at-time { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--color-accent); background: rgba(217,85,43,.1); padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.6rem; }
.at-item h2 { font-size: 1.3rem; margin: 0 0 0.5rem; }
.at-item p { margin: 0; color: var(--color-muted); font-size: 1rem; max-width: 520px; }

@media (max-width: 780px) {
  .ablauf-timeline { padding-left: 64px; }
  .ablauf-timeline::before { left: 23px; }
  .at-node { left: -64px; width: 48px; height: 48px; font-size: 1.05rem; }
}

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 930px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 72px 0 0 0; background: var(--color-surface); flex-direction: column; align-items: flex-start; padding: 2rem 1.5rem; gap: 0.5rem; transform: translateX(100%); transition: transform .25s ease; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { margin-left: 0; padding: 0.75rem 0; font-size: 1.05rem; width: 100%; }
  .nav-cta { margin-top: 0.5rem; text-align: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .theme-switch { margin-left: 0.6rem; }
}

/* Theme switch (Hell/Dunkel-Umschalter) */
.theme-switch { display: inline-flex; align-items: center; cursor: pointer; margin-left: 1rem; user-select: none; }
.theme-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.theme-switch-track { position: relative; width: 46px; height: 25px; background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 999px; transition: background-color .2s; flex-shrink: 0; }
.theme-switch-track .icon { position: absolute; top: 50%; transform: translateY(-50%); font-size: 11px; line-height: 1; }
.theme-switch-track .icon.sun { left: 5px; }
.theme-switch-track .icon.moon { right: 5px; }
.theme-switch-thumb { position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--color-surface); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s ease; }
.theme-switch input:checked ~ .theme-switch-track .theme-switch-thumb { transform: translateX(21px); }
.theme-switch input:checked ~ .theme-switch-track { background: var(--color-accent); border-color: var(--color-accent); }
.theme-switch input:focus-visible ~ .theme-switch-track { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.calc-switch-label input:focus-visible ~ .calc-switch { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.faq-question:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* WhatsApp floating button */
.whatsapp-fab { position: fixed; right: 1.3rem; bottom: 1.3rem; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 200; transition: transform .15s; }
.whatsapp-fab:hover { transform: scale(1.06); }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* FAQ accordion */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-question { width: 100%; text-align: left; background: none; border: 0; padding: 1.2rem 0.2rem; font: inherit; font-weight: 600; font-size: 1rem; color: var(--color-text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-question .faq-icon { flex-shrink: 0; color: var(--color-accent); font-size: 1.3rem; transition: transform .2s; }
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer p { color: var(--color-muted); margin: 0 0.2rem 1.2rem; font-size: 0.96rem; }

/* Price calculator */
.calc-box { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); max-width: 620px; margin: 0 auto; }
.calc-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--color-border); }
.calc-row:last-of-type { border-bottom: none; }
.calc-row label { font-size: 0.95rem; font-weight: 500; }
.calc-row .calc-note { display: block; color: var(--color-muted); font-size: 0.8rem; font-weight: 400; }
.calc-stepper { display: flex; align-items: center; gap: 0.7rem; }
.calc-stepper button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text); font-size: 1.1rem; cursor: pointer; line-height: 1; }
.calc-stepper button:hover { border-color: var(--color-accent); color: var(--color-accent); }
.calc-stepper span { min-width: 1.2rem; text-align: center; font-weight: 600; }
.calc-switch-label { display: inline-flex; align-items: center; cursor: pointer; }
.calc-switch-label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-switch { position: relative; width: 42px; height: 24px; background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 999px; flex-shrink: 0; transition: background-color .2s; }
.calc-switch-thumb { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--color-surface); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s; }
.calc-switch-label input:checked ~ .calc-switch .calc-switch-thumb { transform: translateX(18px); }
.calc-switch-label input:checked ~ .calc-switch { background: var(--color-accent); border-color: var(--color-accent); }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1.3rem; margin-top: 0.5rem; }
.calc-total .calc-total-label { font-weight: 600; }
.calc-total .calc-total-value { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 800; color: var(--color-accent); }
.calc-hint { color: var(--color-muted); font-size: 0.82rem; margin-top: 0.6rem; }
