/* fischer professional consulting – CI-Handbuch v1.1 (Logo 2019) */
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url(../fonts/open-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url(../fonts/open-sans-latin-600-normal.woff2) format("woff2"); }

:root {
  --green-dark: #76923C;   /* Primär – Vertrauen */
  --green: #88B14B;        /* Primär – Aktion / CTA */
  --green-light: #9EC161;  /* Akzent */
  --ink: #2C3E50;          /* Anthracite */
  --slate: #F8F9FA;        /* Clean Slate */
  --white: #fff;
  --muted: #5d6b79;
  --line: #dfe5ea;
  --yellow: #E0A800;
  --red: #C0392B;
  --radius: 8px;
  --font-head: Montserrat, Inter, Arial, sans-serif;
  --font-body: "Open Sans", Inter, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.65 var(--font-body); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--green-dark); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin-top: 1.6em; }
h3 { font-size: 1.1rem; font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--ink); }
.muted { color: var(--muted); }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Header / Footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .6rem; }
.brand img { height: 46px; width: auto; display: block; }
.site-header nav { display: flex; align-items: center; gap: 1.2rem; }
.site-header nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer { background: var(--ink); color: #dfe6ec; padding: 2rem 0; margin-top: 3rem; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Buttons – CTA Mittelgrün mit weißer Schrift, nie Rot */
.btn { display: inline-block; background: var(--green); color: #fff; font: 700 1rem var(--font-head); padding: .85rem 1.6rem; border: 2px solid var(--green); border-radius: var(--radius); text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-small { padding: .5rem 1rem; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--slate); color: var(--ink); border-color: var(--ink); }
.btn[hidden] { display: none; }

/* Sections */
.section { padding: 2.5rem 0; }
.section.alt { background: var(--slate); }
.hero { background: linear-gradient(180deg, var(--slate), #fff); padding: 3.5rem 0 2.5rem; }
.eyebrow { color: var(--green-dark); font: 600 .85rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .5rem; }
.trust { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--muted); }
.trust li::before { content: "✓"; color: var(--green-dark); font-weight: 700; margin-right: .4rem; }
.answer { font-size: 1.1rem; max-width: 70ch; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.card h3 { margin-bottom: .3em; }
.card p { margin: 0; color: var(--muted); }
.steps { padding-left: 1.2rem; max-width: 70ch; }
.steps li { margin-bottom: .6rem; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; padding: .2rem 1rem; }
.faq summary { cursor: pointer; font-weight: 600; padding: .7rem 0; }
.cta-band { background: var(--ink); color: #fff; text-align: center; padding: 3rem 0; }
.cta-band h2 { color: #fff; margin-top: 0; }

/* Check / Formular */
.check fieldset { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
.check legend { font: 700 1.35rem var(--font-head); padding: 0; margin-bottom: .3rem; }
.step-no { display: block; font: 600 .8rem var(--font-head); color: var(--green-dark); text-transform: uppercase; letter-spacing: .08em; }
.question { background: var(--slate); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: .9rem; }
.question.invalid { border-color: var(--red); }
.q-text { font-weight: 600; margin: 0 0 .2rem; }
.q-help { margin: 0 0 .7rem; font-size: .9rem; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice span { display: block; padding: .55rem 1.1rem; border: 2px solid var(--line); background: #fff; border-radius: 999px; font-weight: 600; }
.choice input:checked + span { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .25rem; }
.field input { width: 100%; font: inherit; padding: .7rem .8rem; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
.field input:focus { border-color: var(--green-dark); outline: none; }
.field input[aria-invalid="true"], .field input.invalid { border-color: var(--red); }
.grid2 { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.check-row { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.check-row input { margin-top: .3rem; width: 1.2rem; height: 1.2rem; flex: none; accent-color: var(--green-dark); }
.consent { background: var(--slate); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert, .form-error { border: 2px solid var(--red); background: #fdf0ee; border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; }
.alert ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.nav-row { display: flex; gap: .8rem; justify-content: space-between; }

/* Fortschritt */
.progress { margin: 1.2rem 0 1.5rem; position: sticky; top: 64px; background: #fff; padding: .5rem 0; z-index: 5; }
.progress-label { display: flex; justify-content: space-between; font: 600 .85rem var(--font-head); color: var(--muted); margin-bottom: .35rem; }
.progress-track { background: var(--line); border-radius: 999px; height: 10px; overflow: hidden; }
.progress-fill { background: var(--green); height: 100%; width: 0; transition: width .3s; }
.js .step[hidden] { display: none; }

/* Ergebnis */
.result-hero { display: flex; gap: 1.5rem; align-items: center; background: var(--slate); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.score-circle { flex: none; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font: 700 1.9rem var(--font-head); color: #fff; }
[data-traffic="green"].score-circle, .bar-fill[data-traffic="green"], .dot[data-traffic="green"] { background: var(--green-dark); }
[data-traffic="yellow"].score-circle, .bar-fill[data-traffic="yellow"], .dot[data-traffic="yellow"] { background: var(--yellow); }
[data-traffic="red"].score-circle, .bar-fill[data-traffic="red"], .dot[data-traffic="red"] { background: var(--red); }
.result-label { font: 700 1.3rem var(--font-head); margin: 0 0 .3rem; }
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li { margin-bottom: 1rem; }
.cat-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; flex-wrap: wrap; }
.cat-pct { margin-left: auto; color: var(--muted); font-size: .9rem; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.bar { background: var(--line); height: 10px; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.top-actions li { margin-bottom: .6rem; }
.mailnote { background: #f1f6e8; border-left: 5px solid var(--green-dark); padding: .8rem 1rem; margin: 1.5rem 0; border-radius: 4px; }
.cta-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.cta-box h2 { color: #fff; margin-top: 0; }
@media (max-width: 520px) { .result-hero { flex-direction: column; text-align: center; } .nav-row .btn { flex: 1; } }

/* Balkenbreiten in 5-%-Schritten (CSP: keine Inline-Styles) */
.w-0{width:2%}.w-5{width:5%}.w-10{width:10%}.w-15{width:15%}.w-20{width:20%}.w-25{width:25%}.w-30{width:30%}.w-35{width:35%}.w-40{width:40%}.w-45{width:45%}.w-50{width:50%}.w-55{width:55%}.w-60{width:60%}.w-65{width:65%}.w-70{width:70%}.w-75{width:75%}.w-80{width:80%}.w-85{width:85%}.w-90{width:90%}.w-95{width:95%}.w-100{width:100%}

.legal h2 { font-size: 1.2rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Einwilligungsbanner */
.consent-banner { position: fixed; inset: auto 0 0 0; z-index: 50; background: #fff; border-top: 3px solid var(--green); box-shadow: 0 -4px 20px rgba(44,62,80,.15); padding: 1rem 0; }
.consent-banner[hidden] { display: none; }
.consent-inner { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.consent-inner p { margin: .25rem 0 0; font-size: .92rem; max-width: 75ch; }
.consent-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.consent-actions .btn { min-width: 140px; }
