/* ===============================================================
   IT-Kostenrechner – Rhein-Erft-IT GmbH
   Mobile-First · CD-Farben aus dem Logo · lokale Fonts
   =============================================================== */

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/montserrat-latin-var.woff2') format('woff2');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('/assets/fonts/raleway-latin-var.woff2') format('woff2');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy-950: #071726;
    --navy-900: #0b1f33;
    --navy-800: #12304d;
    --navy-700: #1b4268;
    --brand: #1e6fb8;
    --brand-dark: #175a96;
    --accent: #29abe2;
    --accent-soft: #e6f5fc;
    --teal: #2f8b80;
    --teal-soft: #e5f4f1;
    --ink: #0f1d2b;
    --text: #2c3e50;
    --muted: #556677;
    --line: #dbe3ec;
    --bg: #ffffff;
    --bg-soft: #f3f6f9;
    --warn: #8a5a00;
    --warn-bg: #fff6e0;
    --warn-line: #f1d48a;
    --danger: #b42318;
    --danger-bg: #fdecea;
    --success: #1f7a4d;
    --success-bg: #e7f5ed;

    --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-body: 'Raleway', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(11, 31, 51, .06), 0 1px 3px rgba(11, 31, 51, .08);
    --shadow: 0 4px 12px rgba(11, 31, 51, .06), 0 12px 32px rgba(11, 31, 51, .08);
    --focus: 0 0 0 3px #fff, 0 0 0 5px var(--brand);
    --gutter: 16px;
}

/* ---------------------------------------------------------------
   Basis
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

.nowrap { white-space: nowrap; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    font-variant-numeric: lining-nums;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 .6em;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 6.4vw, 3.4rem); font-weight: 750; letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 4.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 12px; top: -100px; z-index: 100;
    background: var(--navy-900); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 940px; }

.eyebrow {
    font-family: var(--font-head);
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: .9rem;
}
.eyebrow--dark { color: var(--brand); }

.section { padding: 4rem 0; }
.section--soft { background: var(--bg-soft); }
.section-head { margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 0; }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: .7rem 1.35rem;
    font-family: var(--font-head); font-weight: 650; font-size: 1rem; line-height: 1.25;
    border: 2px solid transparent; border-radius: 999px;
    text-decoration: none; text-align: center; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--lg { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.05rem; }

.btn--primary { background: var(--accent); color: var(--navy-950); box-shadow: 0 6px 18px rgba(41, 171, 226, .35); }
.btn--primary:hover { background: #4cbbea; color: var(--navy-950); }

.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: var(--navy-700); color: #fff; }

.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }

.btn--text { background: none; color: var(--ink); padding-left: .4rem; padding-right: .8rem; }
.btn--text:hover { color: var(--brand); }

.link-button {
    background: none; border: 0; padding: 0; font: inherit; color: var(--brand);
    text-decoration: underline; text-underline-offset: .18em; cursor: pointer;
}

/* ---------------------------------------------------------------
   Hinweise / Banner
   --------------------------------------------------------------- */
.env-banner { padding: .5rem var(--gutter); font-size: .875rem; text-align: center; line-height: 1.4; }
.env-banner--demo { background: #ffe8a3; color: #4d3500; }
.env-banner--dev { background: #e1e7ff; color: #1e2a6b; }

.notice {
    padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin: 1rem 0;
    border: 1px solid; font-size: .95rem;
}
.notice--info { background: var(--accent-soft); border-color: #b6e2f5; color: #0d3c58; }
.notice--warn { background: var(--warn-bg); border-color: var(--warn-line); color: #4d3500; }
.notice--error { background: var(--danger-bg); border-color: #f5b7b1; color: #7a1a12; }
.notice--success { background: var(--success-bg); border-color: #b7e0c8; color: #14512f; }
.notice > :last-child { margin-bottom: 0; }

.tag {
    display: inline-block; vertical-align: middle;
    padding: .15rem .55rem; border-radius: 999px;
    font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .03em;
    margin-left: .4rem;
}
.tag--demo { background: #ffe8a3; color: #4d3500; text-transform: uppercase; }
.tag--lg { font-size: .8rem; margin: .2rem 0 .4rem; }
.tag--promo { background: var(--teal-soft); color: #165c53; }

/* ---------------------------------------------------------------
   Header & Footer
   --------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(160%) blur(8px);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.site-header__logo img { height: 36px; width: auto; }
.site-header__phone {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--font-head); font-weight: 650; font-size: .95rem;
    color: var(--ink); text-decoration: none;
    padding: .5rem .8rem; border-radius: 999px; border: 1px solid var(--line);
}
.site-header__phone:hover { border-color: var(--brand); color: var(--brand); }
.site-header__phone svg { color: var(--brand); }
.site-header__phone-label, .site-header__phone-number { display: none; }

.site-footer { background: var(--navy-950); color: #b8c6d4; padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer a, .site-footer .link-button { color: #e3edf6; }
.site-footer a:hover, .site-footer .link-button:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 2rem; }
.site-footer__logo { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 1rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer address strong { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2.1; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; }
.site-footer__bottom p { margin: 0; }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    color: #d6e3ef;
    background:
        radial-gradient(1000px 500px at 85% -10%, rgba(41, 171, 226, .28), transparent 60%),
        radial-gradient(700px 420px at -10% 110%, rgba(47, 139, 128, .25), transparent 60%),
        linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
    padding: 3rem 0 3.5rem;
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { color: #fff; }
.hero__lead { font-size: 1.15rem; color: #c6d6e5; max-width: 36em; }
.hero__benefits { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.hero__benefits li { display: flex; gap: .7rem; align-items: flex-start; color: #fff; font-weight: 600; }
.hero__benefits svg { flex: none; color: var(--accent); margin-top: .1rem; }
.hero__actions { display: flex; flex-direction: column; gap: .8rem; }
.hero__trust { margin: 1.2rem 0 0; font-size: .95rem; color: #9fb4c8; }

.hero__card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(6px);
}
.hero__card-title { font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: 1rem; }
.hero__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.hero__steps li { display: flex; align-items: center; gap: .9rem; color: #e3edf6; }
.hero__steps span {
    flex: none; width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 50%; background: rgba(41, 171, 226, .18); color: var(--accent);
    font-family: var(--font-head); font-weight: 700; font-size: .9rem;
}
.hero__card-foot { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; color: #9fb4c8; }

@media (prefers-reduced-motion: no-preference) {
    .hero__content > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
    .hero__content > *:nth-child(2) { animation-delay: .05s; }
    .hero__content > *:nth-child(3) { animation-delay: .1s; }
    .hero__content > *:nth-child(4) { animation-delay: .15s; }
    .hero__content > *:nth-child(5) { animation-delay: .2s; }
    .hero__card { animation: rise .7s .25s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------
   Aktion
   --------------------------------------------------------------- */
.promo { background: var(--bg-soft); padding: 2rem 0 0; }
.promo__card {
    display: flex; gap: 1.1rem; align-items: flex-start;
    background: #fff; border-radius: var(--radius); padding: 1.4rem;
    border: 1px solid #bfe3dc; border-left: 5px solid var(--teal);
    box-shadow: var(--shadow-sm);
}
.promo__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.promo h2 { font-size: 1.2rem; margin-bottom: .4rem; }
.promo p { margin-bottom: .5rem; }
.promo__meta { font-size: .9rem; color: var(--muted); }
.promo__conditions summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .95rem; }
.promo__conditions ul { margin: .5rem 0 0; padding-left: 1.2rem; font-size: .92rem; }

/* ---------------------------------------------------------------
   Kalkulator / Wizard
   --------------------------------------------------------------- */
.calc { background: var(--bg-soft); padding: 3rem 0 4rem; }

.wizard {
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
    border: 1px solid var(--line);
    padding: 1.25rem 1.1rem 0;
}
.wizard.is-loading .pkg__amount,
.wizard.is-loading .result__price span,
.wizard.is-loading .wizard-nav__price strong { opacity: .45; transition: opacity .2s; }

.progress { margin-bottom: 1.5rem; }
.progress__label { font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .6rem; }
.progress__steps { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; }
.progress__steps li { display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .78rem; color: var(--muted); text-align: center; }
.progress__dot {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    border: 2px solid var(--line); background: #fff;
    font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--muted);
    transition: all .2s;
}
.progress__steps li.is-current { color: var(--ink); font-weight: 700; }
.progress__steps li.is-current .progress__dot { border-color: var(--brand); background: var(--brand); color: #fff; }
.progress__steps li.is-done .progress__dot { border-color: var(--teal); background: var(--teal); color: #fff; }
.progress__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .35s ease; }

.step__title { font-size: clamp(1.35rem, 3.6vw, 1.75rem); outline: none; }
.step__title:focus, .step__title:focus-visible { box-shadow: none; outline: none; }
.step__intro { color: var(--muted); margin-bottom: 1.5rem; }

@media (prefers-reduced-motion: no-preference) {
    .step:not([hidden]) { animation: fade .3s ease both; }
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Zähler */
.counter-grid { display: grid; gap: 1rem; }
.counter {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'label label' 'hint stepper';
    align-items: center; column-gap: 1rem; row-gap: .35rem;
    padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
}
.counter__label { grid-area: label; font-family: var(--font-head); font-weight: 650; color: var(--ink); }
.counter__hint { grid-area: hint; margin: 0; font-size: .85rem; color: var(--muted); }
.stepper { grid-area: stepper; display: flex; align-items: center; gap: .35rem; }
.stepper input {
    width: 3.6rem; height: 44px; text-align: center;
    font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
    -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__btn {
    width: 44px; height: 44px; flex: none;
    border-radius: 50%; border: 1px solid var(--line); background: var(--bg-soft);
    font-size: 1.4rem; line-height: 1; color: var(--ink); cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.stepper__btn:hover:not([disabled]) { background: var(--accent-soft); border-color: var(--accent); }
.stepper__btn[disabled] { opacity: .35; cursor: not-allowed; }

.workplace-sum {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    margin: 1.25rem 0 .5rem; padding: 1rem 1.1rem;
    background: var(--navy-900); color: #d6e3ef; border-radius: var(--radius);
}
.workplace-sum strong { font-family: var(--font-head); font-size: 1.6rem; color: #fff; }

.postcode-box { margin: 1.5rem 0 .5rem; }
.postcode-box label { display: block; font-family: var(--font-head); font-weight: 650; color: var(--ink); margin-bottom: .4rem; }
.postcode-box__row { display: flex; flex-wrap: wrap; gap: .6rem; }
.postcode-box input { flex: 1 1 140px; max-width: 220px; }

/* Leistungen */
.services { border: 0; margin: 0; padding: 0; display: grid; gap: .8rem; }
.svc {
    position: relative; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.svc:hover { border-color: #b5c4d3; }
.svc.is-selected { border-color: var(--brand); background: #f6fafe; box-shadow: 0 0 0 1px var(--brand); }
.svc--in-flat:not(.is-selected) { border-color: #9fd4ca; background: #f6fbfa; }
.svc--featured { border-width: 2px; border-color: var(--accent); background: linear-gradient(135deg, #f2fafe, #fff); }
.svc__main { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1rem .6rem; cursor: pointer; }
.svc__main input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.svc__check {
    flex: none; width: 24px; height: 24px; margin-top: .1rem;
    border: 2px solid #9aabbd; border-radius: 7px; background: #fff;
    display: grid; place-items: center; transition: all .15s;
}
.svc__main input:checked + .svc__check { background: var(--brand); border-color: var(--brand); }
.svc__main input:checked + .svc__check::after {
    content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px);
}
.svc__main input:focus-visible + .svc__check { box-shadow: var(--focus); }
.svc__text { flex: 1; display: grid; gap: .15rem; }
.svc__name { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.svc__short { font-size: .95rem; color: var(--muted); }
.svc__req { font-size: .8rem; color: var(--brand-dark); font-weight: 600; }
.svc__badge {
    position: absolute; top: -.7rem; right: .8rem;
    font-family: var(--font-head); font-size: .72rem; font-weight: 700;
    padding: .2rem .6rem; border-radius: 999px;
}
.svc__badge--included { background: var(--teal); color: #fff; }
.svc__badge--excluded { background: #eef1f4; color: var(--muted); border: 1px solid var(--line); }
.svc__details { padding: 0 1rem .8rem 3.05rem; font-size: .92rem; }
.svc__details summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .88rem; width: max-content; }
.svc__details p { margin: .4rem 0 0; color: var(--text); }

/* Pakete */
.packages { display: grid; gap: 1.1rem; }
.pkg {
    position: relative; display: flex; flex-direction: column;
    border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem;
    background: #fff; cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pkg:hover { border-color: #b5c4d3; }
.pkg.is-selected { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.pkg--recommended { border-color: var(--accent); }
.pkg__badge {
    align-self: flex-start; margin: -.2rem 0 .9rem;
    background: var(--navy-900); color: #fff; border-radius: 999px;
    padding: .3rem .8rem; font-family: var(--font-head); font-size: .75rem; font-weight: 700; line-height: 1.35;
}
.pkg__head { display: flex; gap: .8rem; align-items: center; cursor: pointer; }
.pkg__head input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pkg__radio { flex: none; width: 24px; height: 24px; border: 2px solid #9aabbd; border-radius: 50%; display: grid; place-items: center; }
.pkg__head input:checked + .pkg__radio { border-color: var(--brand); }
.pkg__head input:checked + .pkg__radio::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.pkg__head input:focus-visible + .pkg__radio { box-shadow: var(--focus); }
.pkg__label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pkg__name { display: block; font-family: var(--font-head); font-weight: 750; font-size: 1.2rem; color: var(--ink); }
.pkg__tagline { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }
.pkg__price { margin: 1rem 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; }
.pkg__amount { font-family: var(--font-head); font-size: 1.85rem; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.pkg__unit { font-size: .9rem; color: var(--muted); }
.pkg__features { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .45rem; font-size: .95rem; }
.pkg__features li { padding-left: 1.6rem; position: relative; }
.pkg__features li::before {
    content: ''; position: absolute; left: .2rem; top: .45rem; width: 6px; height: 11px;
    border: solid var(--teal); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.pkg__support { font-size: .92rem; background: var(--bg-soft); border-radius: var(--radius-sm); padding: .75rem .9rem; margin: 0 0 .8rem; }
.pkg__support p { margin: 0 0 .4rem; }
.pkg__small { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }
.pkg__small--warn { color: var(--warn); }
.pkg__more summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .9rem; }
.hours { display: flex; align-items: center; gap: .6rem; margin: .4rem 0; }
.hours__value { min-width: 7.5rem; text-align: center; }

.svc-status { list-style: none; margin: .6rem 0; padding: 0; font-size: .9rem; }
.svc-status li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.svc-status li span:last-child { text-align: right; color: var(--muted); }
.svc-status--ok span:last-child { color: var(--success) !important; font-weight: 600; }
.svc-status--no span:last-child { color: var(--danger) !important; }

/* Ergebnis */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; background: var(--bg-soft); padding: .35rem; border-radius: var(--radius); margin-bottom: 1.25rem; }
.seg__item { position: relative; display: grid; gap: .1rem; text-align: center; padding: .55rem .3rem; border-radius: 10px; cursor: pointer; font-size: .82rem; line-height: 1.25; }
.seg__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg__item span { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.seg__item small { color: var(--muted); font-variant-numeric: tabular-nums; }
.seg__item.is-selected { background: #fff; box-shadow: var(--shadow-sm); outline: 2px solid var(--brand); }
.seg__item:has(input:focus-visible) { box-shadow: var(--focus); }

.result__card {
    text-align: center; color: #d6e3ef; border-radius: var(--radius-lg);
    padding: 1.6rem 1.2rem;
    background: radial-gradient(600px 240px at 50% -20%, rgba(41, 171, 226, .35), transparent 70%), var(--navy-900);
}
.result__label { font-family: var(--font-head); font-weight: 600; margin-bottom: .2rem; color: #b9cde0; }
.result__price { margin: 0; color: #c6d6e5; }
.result__price span { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.3rem, 9vw, 3.2rem); color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.result__pkg { margin: .6rem 0 0; font-weight: 600; color: #fff; }
.result__onetime { margin: .8rem 0 0; font-size: .95rem; }
.result__onetime strong { color: #fff; }
.result__onetime s { color: #8fa6bc; margin-left: .3rem; }
.result__hint { margin: .9rem 0 0; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #8fa6bc; }
.result__cols { display: grid; gap: 1rem; margin-top: 1.25rem; }
.result__box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.result__box h4 { margin-bottom: .5rem; }

.breakdown { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: .8rem; }
.breakdown caption { text-align: left; font-family: var(--font-head); font-weight: 700; color: var(--ink); padding: .6rem 0 .2rem; }
.breakdown th { text-align: left; font-weight: 500; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.breakdown th small { display: block; color: var(--muted); font-size: .8rem; }
.breakdown td { text-align: right; white-space: nowrap; padding: .45rem 0 .45rem 1rem; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; vertical-align: top; }
.breakdown tfoot th, .breakdown tfoot td { font-weight: 700; color: var(--ink); border-bottom: 0; }
.breakdown .is-discount td, .breakdown .is-discount th { color: var(--success); }

.disclaimer { font-size: .88rem; color: var(--muted); margin: 1.2rem 0 0; padding: .9rem 1rem; background: var(--bg-soft); border-radius: var(--radius-sm); }

/* CTAs */
.cta-block { margin-top: 2rem; }
.cta-block__title { font-size: 1.2rem; }
.cta-grid { display: grid; gap: .8rem; }
.cta {
    display: block; text-decoration: none; padding: 1.1rem 1.2rem 1.1rem 1.2rem;
    border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text);
    transition: border-color .15s, box-shadow .15s, transform .15s;
    position: relative;
}
.cta::after { content: '→'; position: absolute; right: 1.1rem; top: 1.05rem; font-size: 1.2rem; color: var(--brand); }
.cta:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--text); }
.cta__title { display: block; font-family: var(--font-head); font-weight: 700; color: var(--ink); padding-right: 1.6rem; }
.cta__text { display: block; font-size: .9rem; color: var(--muted); margin-top: .2rem; }
.cta--primary { background: var(--accent); border-color: var(--accent); box-shadow: 0 8px 22px rgba(41, 171, 226, .3); }
.cta--primary .cta__title, .cta--primary::after { color: var(--navy-950); }
.cta--primary .cta__text { color: #0b2a40; }
.cta--primary:hover { background: #4cbbea; border-color: #4cbbea; }

/* Navigationsleiste – klebt am unteren Rand */
.wizard-nav {
    position: sticky; bottom: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    margin: 1.5rem -1.1rem 0; padding: .8rem 1.1rem calc(.8rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.wizard-nav #btn-next { margin-left: auto; }
.wizard-nav__price { display: grid; line-height: 1.2; font-size: .78rem; color: var(--muted); }
.wizard-nav__price strong { font-family: var(--font-head); font-size: 1.1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.wizard-nav__price span { font-weight: 600; }

/* ---------------------------------------------------------------
   Inhalte
   --------------------------------------------------------------- */
.feature-grid { display: grid; gap: 1.2rem; }
.feature { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature h3 { position: relative; padding-top: 1rem; }
.feature h3::before { content: ''; position: absolute; top: 0; left: 0; width: 36px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.feature p { margin: 0; }

.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.process li {
    counter-increment: step; position: relative; padding: 1.2rem 1.2rem 1.2rem 4.2rem;
    background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
    display: grid; gap: .2rem;
}
.process li::before {
    content: counter(step); position: absolute; left: 1.2rem; top: 1.15rem;
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: var(--navy-900); color: #fff; font-family: var(--font-head); font-weight: 700;
}
.process strong { font-family: var(--font-head); color: var(--ink); }
.process span { color: var(--muted); font-size: .95rem; }

.faq { display: grid; gap: .7rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq__item summary {
    list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.2rem; position: relative;
    font-family: var(--font-head); font-weight: 650; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 1.2rem; top: .8rem; font-size: 1.5rem; color: var(--brand); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 1.2rem 1.1rem; margin: 0; }

.final-cta { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #c6d6e5; padding: 3.5rem 0; text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta__actions { display: flex; flex-direction: column; gap: .8rem; align-items: center; margin-top: 1.5rem; }

/* ---------------------------------------------------------------
   Formulare & Unterseiten
   --------------------------------------------------------------- */
.page { padding: 2.5rem 0 4rem; background: var(--bg-soft); }
.page__head { margin-bottom: 1.5rem; }
.page__head p { color: var(--muted); max-width: 40em; }
.page__grid { display: grid; gap: 1.5rem; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.2rem; box-shadow: var(--shadow-sm); }
.card h2 { font-size: 1.25rem; }

.form-grid { display: grid; gap: 1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 650; font-size: .95rem; color: var(--ink); margin-bottom: .35rem; }
.field__optional { font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .85rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
    width: 100%; min-height: 48px; padding: .65rem .85rem;
    font: inherit; font-size: 1rem; color: var(--ink);
    background: #fff; border: 1.5px solid #c7d3df; border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30, 111, 184, .2); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--danger); }
.field__hint { font-size: .85rem; color: var(--muted); margin: .35rem 0 0; }
.field__error { font-size: .88rem; color: var(--danger); margin: .35rem 0 0; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 1.5rem; display: grid; gap: .8rem; }
.form-actions .btn { width: 100%; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.cf-turnstile { margin-top: 1rem; }

.slot { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 0; }
.slot legend { font-family: var(--font-head); font-weight: 700; color: var(--ink); padding: 0 .4rem; }
.slot__row { display: grid; gap: .8rem; }
.slots { display: grid; gap: 1rem; }

.summary dl { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; margin: 0 0 1rem; font-size: .93rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.summary__price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--ink); margin: .2rem 0 .1rem; }
.summary__sub { color: var(--muted); font-size: .9rem; }

.thanks { text-align: center; max-width: 640px; margin: 0 auto; }
.thanks__icon { width: 72px; height: 72px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--success-bg); color: var(--success); }
.thanks__code { display: inline-block; font-family: 'JetBrains Mono', Consolas, Monaco, 'Courier New', monospace; font-size: 1.6rem; font-weight: 700; letter-spacing: .2em; background: #fff; border: 2px dashed var(--brand); border-radius: var(--radius-sm); padding: .4rem 1rem; color: var(--ink); margin: .4rem 0 1rem; }
.next-steps { text-align: left; margin: 1.5rem 0; padding-left: 1.2rem; }
.next-steps li { margin-bottom: .5rem; }

.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4rem; }

/* ---------------------------------------------------------------
   Cookie-Banner (vanilla-cookieconsent) – CD-Anpassung
   --------------------------------------------------------------- */
#cc-main {
    --cc-font-family: var(--font-body);
    --cc-btn-primary-bg: #2da44e;
    --cc-btn-primary-border-color: #2da44e;
    --cc-btn-primary-hover-bg: #2c974b;
    --cc-btn-primary-hover-border-color: #2c974b;
    --cc-btn-primary-color: #fff;
    --cc-btn-primary-hover-color: #fff;
    --cc-link-color: var(--brand);
    --cc-modal-border-radius: var(--radius);
    --cc-btn-border-radius: 999px;
}

/* ---------------------------------------------------------------
   Breakpoints
   --------------------------------------------------------------- */
@media (min-width: 560px) {
    :root { --gutter: 24px; }
    .site-header__phone-number { display: inline; }
    .hero__actions { flex-direction: row; flex-wrap: wrap; }
    .counter-grid { grid-template-columns: 1fr 1fr; }
    .counter { grid-template-areas: 'label label' 'hint stepper'; row-gap: .4rem; }
    .wizard { padding: 2rem 2rem 0; }
    .wizard-nav { margin: 2rem -2rem 0; padding-left: 2rem; padding-right: 2rem; }
    .form-grid--2 { grid-template-columns: 1fr 1fr; }
    .form-grid--2 .field--full { grid-column: 1 / -1; }
    .slot__row { grid-template-columns: 1fr 1fr; }
    .final-cta__actions { flex-direction: row; justify-content: center; }
    .form-actions .btn { width: auto; justify-self: start; }
    .card { padding: 2rem; }
}

@media (min-width: 760px) {
    .services { grid-template-columns: 1fr 1fr; }
    .svc--featured { grid-column: 1 / -1; }
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .process { grid-template-columns: repeat(4, 1fr); }
    .process li { padding: 4rem 1.2rem 1.2rem; }
    .process li::before { top: 1.2rem; }
    .result__cols { grid-template-columns: 1fr 1fr; }
    .cta-grid { grid-template-columns: repeat(3, 1fr); }
    .cta-grid .cta { display: flex; flex-direction: column; }
    .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .site-header__phone-label { display: inline; color: var(--muted); font-weight: 500; }
}

@media (min-width: 960px) {
    .section { padding: 5.5rem 0; }
    .hero { padding: 5rem 0 5.5rem; }
    .hero__grid { grid-template-columns: 1.45fr 1fr; gap: 4rem; }
    .packages { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
    .pkg--recommended { transform: translateY(-6px); }
    .page__grid { grid-template-columns: 1.5fr 1fr; }
    .page__grid--single { grid-template-columns: 1fr; max-width: 760px; }
    .page__aside { position: sticky; top: 90px; }
}

@media print {
    .site-header, .wizard-nav, .cta-block, .site-footer, .env-banner--dev { display: none !important; }
    .wizard { box-shadow: none; border: 0; }
}
