/* ==========================================================================
   Boateng & Schwendt Versicherungsmakler – Stylesheet
   ========================================================================== */

@font-face {
    font-family: "Helvetica Neue Cn";
    src: url("../fonts/HelveticaNeueLTPro-LtCn.ttf") format("truetype");
    font-weight: 300 400;
    font-display: swap;
}
@font-face {
    font-family: "Helvetica Neue Cn";
    src: url("../fonts/HelveticaNeueLTPro-BdCn.ttf") format("truetype");
    font-weight: 600 800;
    font-display: swap;
}

:root {
    --orange: #ef8000;
    --orange-dark: #c96b00;
    --orange-soft: #fff3e5;
    --grey: #575756;
    --grey-dark: #2f2f2e;
    --grey-light: #f5f5f4;
    --line: #e4e4e2;
    --text: #3a3a39;
    --white: #fff;

    --font: "Helvetica Neue Cn", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --radius: 6px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .15);
    --container: 1200px;
    --header-h: 96px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --hex: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.1875rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; color: var(--grey-dark); margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
mark { background: none; color: var(--orange); font-weight: 700; }
address { font-style: normal; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--orange); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

.eyebrow {
    display: inline-block;
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--orange);
    margin-bottom: .8rem;
}
.lead { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5; color: var(--grey); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.7rem;
    border: 2px solid transparent; border-radius: var(--radius);
    font: inherit; font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase;
    text-decoration: none; cursor: pointer;
    transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(239, 128, 0, .3); }
.btn--primary:hover { background: var(--orange-dark); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--grey-dark); }
.btn--outline { border-color: var(--orange); color: var(--orange); }
.btn--outline:hover { background: var(--orange); color: #fff; }
.btn--light { background: #fff; color: var(--grey-dark); }
.btn--light:hover { color: var(--orange); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.btn-row--center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .07); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .3s var(--ease); }
.is-scrolled .header-inner { height: 72px; }
.brand img { height: 64px; width: auto; transition: height .3s var(--ease); }
.is-scrolled .brand img { height: 48px; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav ul { display: flex; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
    position: relative; display: block; padding: .5rem .9rem;
    color: var(--grey); text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem;
}
.main-nav ul a::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .2rem; height: 2px;
    background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { color: var(--orange); }
.main-nav ul a:hover::after, .main-nav ul a[aria-current="page"]::after { transform: scaleX(1); }

.nav-phone {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--grey-dark); font-weight: 700; text-decoration: none; white-space: nowrap;
    padding: .55rem 1rem; border: 2px solid var(--line); border-radius: var(--radius);
    transition: border-color .25s, color .25s;
}
.nav-phone svg { width: 18px; height: 18px; fill: var(--orange); }
.nav-phone:hover { border-color: var(--orange); color: var(--orange); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative; display: flex; align-items: center;
    min-height: clamp(340px, 48vh, 520px);
    background-size: cover; background-position: center;
    color: #fff; isolation: isolate;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, rgba(30, 30, 29, .78) 0%, rgba(30, 30, 29, .45) 45%, rgba(30, 30, 29, .05) 75%);
}
.hero--large { min-height: clamp(480px, 78vh, 760px); }
.hero-inner { padding-block: 4rem; }
.hero-card { max-width: 640px; position: relative; padding-left: 1.6rem; border-left: 5px solid var(--orange); }
.hero h1 { color: #fff; margin-bottom: .3em; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero .eyebrow { color: #ffb870; }
.hero-lead { font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.4; margin: 0; }

/* Hexagon-Motiv aus dem Logo als Deko */
.hero::after {
    content: ""; position: absolute; right: 6%; bottom: -60px; width: 220px; aspect-ratio: 1 / .92;
    background: var(--orange); clip-path: var(--hex); opacity: .92;
}
.hero:not(.hero--large)::after { width: 150px; bottom: -45px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--tight { padding-block: 3rem 5rem; }
.section--muted { background: var(--grey-light); }
.section-title { position: relative; padding-bottom: .7em; }
.section-title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 64px; height: 4px; background: var(--orange); transform: translateX(-50%); }

.page-head { padding-block: clamp(3rem, 7vw, 5rem) 1rem; background: linear-gradient(180deg, var(--grey-light), #fff); }
.page-head h1 { margin: 0; }
.page-head--center { padding-block: clamp(5rem, 12vw, 9rem); }

/* ---------- Hexagon-Icons ---------- */
.hex-icon {
    display: inline-grid; place-items: center;
    width: 72px; aspect-ratio: 1 / .92; margin-bottom: 1.2rem;
    background: var(--orange); clip-path: var(--hex);
}
.hex-icon svg { width: 34px; height: 34px; fill: #fff; }
.hex-icon--sm { width: 48px; margin: 0; flex: none; }
.hex-icon--sm svg { width: 22px; height: 22px; }

/* ---------- Drei Säulen ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.pillar, .value {
    background: #fff; padding: 2.4rem 2rem; border-radius: var(--radius); box-shadow: var(--shadow);
    border-top: 4px solid var(--orange); transition: transform .35s var(--ease), box-shadow .35s;
}
.pillar:hover, .value:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar h3 { text-transform: uppercase; letter-spacing: .08em; font-size: 1.5rem; }
.pillar p { margin: 0; color: var(--grey); }

/* ---------- Split (Bild/Text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.split-media { background-size: cover; background-position: center; min-height: 320px; }
.split-content { padding: clamp(3rem, 6vw, 6rem); align-self: center; max-width: 680px; }
.split-content .btn { margin-top: .8rem; }
.split--reverse .split-media { order: 2; }
.split--reverse .split-content { justify-self: end; }

/* ---------- CTA ---------- */
.cta { position: relative; background-size: cover; background-position: center; color: #fff; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(47, 47, 46, .82); }
.cta-inner { padding-block: clamp(4rem, 9vw, 7rem); text-align: center; max-width: 800px; }
.cta h2 { color: #fff; text-transform: uppercase; }
.cta p { font-size: 1.35rem; }
.cta strong { color: #ffb870; }

/* ---------- Leistungen: Schritte ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.step {
    position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 3.6rem 2rem 2rem; margin-top: 2.5rem;
}
.step:not(:last-child)::after {
    content: ""; position: absolute; top: 50px; right: -1.6rem; width: 1.2rem; height: 1.2rem; z-index: 2;
    border-top: 3px solid var(--orange); border-right: 3px solid var(--orange); transform: rotate(45deg);
}
.step-no {
    position: absolute; top: -40px; left: 2rem;
    display: grid; place-items: center; width: 84px; aspect-ratio: 1 / .92;
    background: var(--orange); color: #fff; clip-path: var(--hex);
    font-size: 2.2rem; font-weight: 700;
}
.step h2 { font-size: 2rem; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); }
.step h3 { font-size: 1.15rem; margin: 1.4rem 0 .5rem; }
.step ul { margin: 0; padding: 0; list-style: none; }
.step li { position: relative; padding-left: 1.5rem; margin-bottom: .45rem; line-height: 1.45; color: var(--grey); }
.step li::before {
    content: ""; position: absolute; left: 0; top: .5em; width: .6rem; aspect-ratio: 1 / .92;
    background: var(--orange); clip-path: var(--hex);
}

/* ---------- Über uns ---------- */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.value h2 { font-size: 1.6rem; }
.value p { margin: 0; color: var(--grey); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; text-align: center; }
.fact { padding: 1.8rem 1rem; border: 2px solid var(--line); border-radius: var(--radius); }
.fact strong { display: block; font-size: 2.4rem; color: var(--orange); line-height: 1.1; }
.fact span { color: var(--grey); text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-info { position: sticky; top: calc(var(--header-h) + 2rem); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-list small { display: block; text-transform: uppercase; letter-spacing: .1em; color: var(--grey); font-size: .85rem; }
.contact-list a { color: var(--grey-dark); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--orange); }

.contact-form-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 4vw, 3rem); border-top: 5px solid var(--orange); }
.form-hint { color: var(--grey); font-size: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; margin-bottom: 1.8rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 1rem; color: var(--grey-dark); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 1.1rem; color: var(--text);
    padding: .75rem .9rem; background: var(--grey-light);
    border: 2px solid transparent; border-radius: var(--radius);
    transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.field [aria-invalid="true"] { border-color: #c62828; background: #fff6f6; }
.field-error { color: #c62828; font-size: .95rem; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: .8rem; }
.field--check input { width: 22px; height: 22px; flex: none; margin-top: .2rem; accent-color: var(--orange); padding: 0; }
.field--check label { flex: 1; font-weight: 400; }
.field--check .field-error { flex-basis: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.alert--error { background: #fdecea; color: #8e1c1c; border-left: 4px solid #c62828; }
.alert--success { background: var(--orange-soft); border-left: 4px solid var(--orange); padding: 2rem; margin: 0; }

/* ---------- Fließtext (Impressum, Datenschutz) ---------- */
.prose h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.prose p { color: var(--grey); }
.imprint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem; margin-bottom: 2rem; background: var(--grey-light); border-radius: var(--radius); }
.imprint-grid h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .3rem; color: var(--orange); }
.imprint-grid p { margin-bottom: 1.2rem; color: var(--text); }
.imprint-grid p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--grey-dark); color: #d6d6d4; font-size: 1.05rem; border-top: 6px solid var(--orange); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer strong { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1.3fr 1fr; gap: 2.5rem; padding-block: 3.5rem; align-items: start; }
.footer-brand img { width: 190px; height: auto; background: #fff; padding: 1rem 1.2rem; border-radius: var(--radius); }
.footer-nav { display: flex; flex-direction: column; gap: .2rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.2rem; font-size: .95rem; color: #a9a9a6; }
.footer-bottom a { color: #d6d6d4; }

.to-top {
    position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
    display: grid; place-items: center; width: 52px; aspect-ratio: 1 / .92;
    background: var(--orange); clip-path: var(--hex);
    opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.to-top svg { width: 26px; fill: #fff; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Animationen ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-phone { display: none; }
}

@media (max-width: 960px) {
    :root { --header-h: 76px; }
    .brand img { height: 50px; }

    .nav-toggle {
        display: grid; place-items: center; width: 48px; height: 48px;
        background: none; border: 0; cursor: pointer; padding: 0;
    }
    .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
        display: block; width: 28px; height: 3px; background: var(--grey-dark); border-radius: 2px; position: relative;
        transition: transform .3s var(--ease), background .3s;
    }
    .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bar::before { top: -9px; }
    .nav-toggle-bar::after { top: 9px; }
    .nav-open .nav-toggle-bar { background: transparent; }
    .nav-open .nav-toggle-bar::before { transform: translateY(9px) rotate(45deg); }
    .nav-open .nav-toggle-bar::after { transform: translateY(-9px) rotate(-45deg); }

    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
        flex-direction: column; align-items: stretch; gap: 1rem;
        padding: 1.5rem 1.25rem 2rem; background: #fff; box-shadow: 0 20px 30px rgba(0, 0, 0, .12);
        transform: translateY(-120%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
    }
    .is-scrolled .main-nav { top: 72px; }
    .nav-open .main-nav { transform: none; visibility: visible; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav ul a { padding: .9rem .2rem; border-bottom: 1px solid var(--line); font-size: 1.2rem; }
    .main-nav ul a::after { display: none; }
    .nav-phone { display: inline-flex; justify-content: center; }

    .pillars, .steps { grid-template-columns: 1fr; }
    .step { margin-top: 3rem; }
    .step:not(:last-child)::after { top: auto; bottom: -1.9rem; right: 50%; transform: translateX(50%) rotate(135deg); }
    .split, .split--reverse { grid-template-columns: 1fr; min-height: 0; }
    .split--reverse .split-media { order: 0; }
    .split-media { min-height: 300px; }
    .split-content { max-width: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { position: static; }
}

@media (max-width: 640px) {
    body { font-size: 1.1rem; }
    .values, .facts, .form-grid, .imprint-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero::after { width: 110px !important; bottom: -35px !important; right: 1.25rem; }
    .hero-card { padding-left: 1.1rem; }
    .btn-row .btn { width: 100%; }
}

@media print {
    .site-header, .site-footer, .to-top, .hero::after { display: none; }
    .hero { min-height: 0; color: var(--text); background: none !important; }
    .hero h1 { color: var(--text); }
}
