/* ---------- Schriften (lokal, ohne Google-Server) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
    --accent: #C2410C;          /* wird in header.php aus config.php überschrieben */
    --accent-text: #9A3412;     /* Akzent für kleine Schrift auf hellem Grund */
    --ground: #F4F1EA;
    --paper: #FFFFFF;
    --ink: #16181D;
    --ink-soft: #3A3D45;
    --line: #D9D3C7;
    --line-strong: #B8B1A3;
    --on-dark: #F4F1EA;
    --on-dark-soft: #D6D3CC;
    --on-dark-accent: #F4A77E;

    --font-display: "Bricolage Grotesque", Georgia, serif;
    --font-body: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

    --pad-x: clamp(20px, 5.5vw, 80px);
    --section-y: clamp(64px, 8vw, 110px);
    --max: 1440px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); }
a:hover { color: var(--accent-text); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }

main > section, .site-header, .site-footer, .legal { max-width: var(--max); margin-inline: auto; }
main > .band-white, main > .band-dark { max-width: none; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; color: var(--on-dark); }

.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border-radius: 999px; font: 600 17px/1 var(--font-body); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: #FFFFFF; border: none; }
.btn-primary:hover { color: #FFFFFF; filter: brightness(0.92); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--on-dark); }

/* ---------- Kopf ---------- */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 24px var(--pad-x); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 48px; width: auto; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.main-nav { display: flex; gap: clamp(16px, 2.5vw, 36px); align-items: center; flex-wrap: wrap; font-weight: 500; font-size: 16px; }
.main-nav a { text-decoration: none; }
.main-nav .nav-cta { padding: 12px 22px; border-radius: 999px; background: var(--ink); color: var(--on-dark); }
.main-nav .nav-cta:hover { color: var(--on-dark); background: #2B2E36; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: clamp(64px, 9vw, 120px) var(--pad-x) clamp(56px, 7vw, 100px); }
.hero-text { grid-column: span 8; display: flex; flex-direction: column; gap: 32px; }
.hero h1 { font-weight: 800; font-size: clamp(48px, 7vw, 96px); line-height: 0.95; letter-spacing: -0.035em; }
.lead { max-width: 640px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-soft); }
.button-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-logo { grid-column: span 4; display: flex; align-items: center; justify-content: flex-end; }
.hero-logo img { width: 100%; max-width: 340px; }

/* ---------- Leistungen ---------- */
.band-white { background: var(--paper); border-block: 1px solid var(--line); padding: clamp(64px, 7vw, 100px) var(--pad-x); }
.band-white > * { max-width: calc(var(--max) - 2 * 80px); margin-inline: auto; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.section-head h2, .section-title { font-weight: 700; font-size: clamp(38px, 4.2vw, 56px); line-height: 1; }
.section-head p { max-width: 460px; font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.service-card { display: flex; flex-direction: column; gap: 16px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--ground); }
.service-card svg { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3, .reason-card h3, .audience-grid h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.service-card p { font-size: 16px; color: var(--ink-soft); }

/* ---------- Für Sender ---------- */
.section { padding: var(--section-y) var(--pad-x); }
.section-no-bottom { padding-bottom: 0; }
.section-title { margin-bottom: 56px; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.split-head { grid-column: span 4; display: flex; flex-direction: column; gap: 20px; }
.split-head h2 { font-weight: 700; font-size: clamp(38px, 3.9vw, 52px); line-height: 1.02; }
.audience-grid { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.audience-grid article { display: flex; flex-direction: column; gap: 12px; padding: 28px 0; border-top: 1px solid var(--line-strong); }
.audience-grid p { color: var(--ink-soft); }

/* ---------- Dunkles Band ---------- */
.band-dark { background: var(--ink); color: var(--on-dark); padding: clamp(72px, 9vw, 120px) var(--pad-x); }
.dark-inner { max-width: calc(var(--max) - 2 * 80px); margin-inline: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.dark-head { grid-column: span 7; display: flex; flex-direction: column; gap: 28px; }
.dark-head .kicker { color: var(--on-dark-accent); }
.dark-head h2 { font-weight: 700; font-size: clamp(38px, 4.4vw, 60px); line-height: 1.02; }
.dark-text { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 20px; font-size: 18px; color: var(--on-dark-soft); }

/* ---------- Warum wir ---------- */
.reason-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.reason-card { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.reason-card p { color: var(--ink-soft); }

/* ---------- Ablauf ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 3px solid var(--ink); }
.step-no { font-family: var(--font-display); font-size: 44px; font-weight: 800; color: var(--accent); line-height: 1; }
.steps h3 { font-family: var(--font-body); font-size: 22px; font-weight: 600; letter-spacing: 0; }
.steps p { color: var(--ink-soft); }

/* ---------- Kontakt ---------- */
.contact { margin: 0 var(--pad-x) clamp(64px, 7vw, 100px); padding: clamp(32px, 5vw, 72px); border-radius: 24px; background: var(--paper); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
@media (min-width: 1600px) { .contact { margin-inline: auto; max-width: calc(var(--max) - 2 * 80px); } }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info h2 { font-weight: 700; font-size: clamp(36px, 3.9vw, 52px); line-height: 1.02; }
.contact-info > p { font-size: 18px; color: var(--ink-soft); }
.contact-info address { font-style: normal; display: flex; flex-direction: column; gap: 8px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line-strong); border-radius: 10px; font: 400 16px/1.5 var(--font-body); color: var(--ink); background: var(--paper); }
.field input { min-height: 50px; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #B91C1C; }
.field-error { font-size: 15px; color: #B91C1C; }
.form-alert { padding: 14px 16px; border-radius: 10px; background: #FEF2F2; color: #991B1B; font-weight: 500; }
.form-note { font-size: 15px; color: var(--ink-soft); }
.contact-form .btn { align-self: flex-start; }
.form-success { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; align-self: center; }
.form-success h3 { font-size: 32px; font-weight: 700; }
.form-success p { color: var(--ink-soft); font-size: 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Fuß ---------- */
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 32px var(--pad-x); border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.site-footer nav { display: flex; gap: 28px; }

/* ---------- Impressum & Datenschutz ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(32px, 6vw, 96px); padding: clamp(56px, 7vw, 96px) var(--pad-x); }
.legal-toc { position: sticky; top: 32px; align-self: start; display: flex; flex-direction: column; gap: 10px; }
.legal-toc-title { font-weight: 600; font-size: 15px; color: var(--ink-soft); margin-bottom: 4px; }
.legal-toc a { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-decoration: none; }
.legal-body section + section { margin-top: 96px; padding-top: 64px; border-top: 3px solid var(--ink); }
.legal-body h1 { font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1; margin-bottom: 40px; }
.legal-body h2 { font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal-body p + p, .legal-body ul + p, .legal-body p + ul { margin-top: 14px; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body ul { margin: 0; padding-left: 22px; }
.legal-body li + li { margin-top: 4px; }
.legal-meta { margin-top: -24px; margin-bottom: 8px; font-size: 15px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split-head, .audience-grid { grid-column: 1 / -1; }
    .split-head { margin-bottom: 32px; }
    .dark-head, .dark-text { grid-column: 1 / -1; }
    .dark-text { margin-top: 32px; }
}

@media (max-width: 860px) {
    .hero-text { grid-column: 1 / -1; }
    .hero-logo { display: none; } /* Logo steht auf kleinen Bildschirmen bereits im Kopf */
    .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
    .reason-grid, .steps { grid-template-columns: 1fr; }
    .contact { grid-template-columns: 1fr; gap: 40px; }
    .legal { grid-template-columns: 1fr; }
    .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 20px; }
    .legal-toc-title { width: 100%; margin: 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .site-header { flex-direction: column; align-items: flex-start; }
    .service-grid, .audience-grid { grid-template-columns: 1fr; }
    .service-card { padding: 24px; }
    .btn { width: 100%; }
}
