/* =========================================================
   Bauunternehmen Sperber, Redesign v4
   One cohesive system: full-bleed photography, a recurring
   dash eyebrow, two-weight headlines, dark/light rhythm
   resolving into a near-black footer. Brand blue throughout.
   ========================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
    font-family: 'Jakarta';
    src: url('../../fonts/jakarta/jakarta-variable.woff2') format('woff2-variations'),
         url('../../fonts/jakarta/jakarta-variable.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
    --ink: #10192b;
    --ink-soft: #5b6577;
    --ink-faint: #8991a2;
    --paper: #f5f7fa;
    --paper-raised: #ffffff;
    --line: #e4e8ef;

    --navy: #0c1c37;
    --navy-raised: #142c52;
    --navy-line: #24406d;
    --navy-text: #eef2f9;
    --navy-text-soft: #aab7cd;

    --footer-bg: #090e1a;
    --footer-line: #1c2436;

    --brand: #1a73c9;
    --brand-deep: #14588f;
    --brand-bright: #4fa2ea;
    --brand-tint: #e4f0fc;
    --on-brand: #ffffff;

    --radius-pill: 999px;
    --radius-lg: 28px;
    --radius: 18px;
    --radius-sm: 12px;

    --shadow-sm: 0 10px 24px -12px rgba(16, 25, 43, 0.28);
    --shadow-md: 0 32px 64px -28px rgba(16, 25, 43, 0.4);

    --font-display: 'Jakarta', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Jakarta', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

    --header-h: 84px;
    --container: 1240px;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

html { scrollbar-color: var(--ink-faint) var(--paper); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink-faint); border-radius: 8px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-soft); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0;
    color: inherit;
}

h1 { font-size: clamp(2.7rem, 5.6vw, 4.4rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; font-weight: 700; }

/* Second line of a two-weight headline, à la "Bold line / regular line" */
.lt { font-weight: 500; }

p { margin: 0; color: var(--ink-soft); }

.lede { font-size: 1.15rem; line-height: 1.6; color: var(--ink-soft); max-width: 44ch; }
.lede.on-dark { color: var(--navy-text-soft); }
p.on-dark { color: var(--navy-text-soft); }

/* Recurring signature: dash + label, used above every section heading */
.eyebrow-dash {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 18px;
}
.eyebrow-dash::before { content: ''; width: 30px; height: 2px; background: var(--brand); flex: none; }
.eyebrow-dash.on-dark { color: var(--brand-bright); }
.eyebrow-dash.on-dark::before { background: var(--brand-bright); }
.eyebrow-dash.small { font-size: 0.76rem; margin-bottom: 10px; }
.eyebrow-dash.small::before { width: 20px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 10vw, 128px); }
.dark-section { background: var(--navy); color: var(--navy-text); }

/* Full-bleed split: padded copy column + photo touching the viewport edge */
.split-bleed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}
.split-bleed-copy {
    display: flex;
    align-items: center;
    padding-block: 64px;
    padding-inline-start: max(24px, calc((100vw - var(--container)) / 2 + 24px));
    padding-inline-end: 56px;
}
.split-bleed-media { position: relative; min-height: 420px; }
.split-bleed-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 980px) {
    .split-bleed { grid-template-columns: 1fr; }
    .split-bleed-copy { padding-inline: 24px; padding-block: 48px 36px; }
    .split-bleed-media { aspect-ratio: 16 / 11; min-height: 0; order: -1; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    white-space: nowrap;
    padding: 17px 30px;
    border-radius: 4px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.98rem;
    border: 1.5px solid transparent;
    transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-deep); }

.btn-ghost-dark { background: transparent; color: var(--navy-text); border-color: var(--navy-line); }
.btn-ghost-dark:hover { border-color: var(--brand-bright); color: var(--brand-bright); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }

.btn-textlink {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.96rem;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1.5px;
    text-decoration-color: var(--brand);
    transition: opacity 160ms var(--ease-out);
}
.btn-textlink:hover { opacity: 0.65; }

.btn-icon { width: 16px; height: 16px; flex: none; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
#site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-line);
    transition: box-shadow 300ms var(--ease-out);
}
#site-header.is-scrolled { box-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.5); }

.header-inner {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { height: 32px; width: auto; display: block; }
#site-header .brand img { height: 44px; }
.footer-brand-logo img { height: 30px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    padding: 10px 16px;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--navy-text-soft);
    transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-cta .btn-primary { padding: 13px 24px; font-size: 0.9rem; }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1.5px solid var(--navy-line);
    background: transparent;
    align-items: center;
    justify-content: center;
    flex: none;
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars span {
    position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
    background: #fff;
    transition: transform 220ms var(--ease-in-out), opacity 160ms var(--ease-out), top 220ms var(--ease-in-out);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-open .nav-toggle-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

#mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 24px) 28px 40px;
    transform: translateX(100%);
    transition: transform 380ms var(--ease-in-out);
    visibility: hidden;
}
.nav-open #mobile-nav { transform: translateX(0); visibility: visible; }
#mobile-nav a {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--navy-text);
    padding-block: 14px;
    border-bottom: 1px solid var(--navy-line);
}
#mobile-nav .mobile-nav-cta { margin-top: 32px; }

@media (max-width: 900px) {
    .main-nav, .header-cta { display: none; }
    .nav-toggle { display: flex; }
}

/* ---------- Fixed phone rail (large desktop signature detail) ---------- */
.side-rail {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 44px;
    display: none;
    background: var(--navy);
    z-index: 90;
}
.side-rail-text {
    writing-mode: vertical-rl;
    color: var(--navy-text-soft);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    white-space: nowrap;
    transition: color 160ms var(--ease-out);
}
.side-rail-text:hover { color: #fff; }
.side-rail-text.small { font-size: 0.74rem; }
.side-rail-phone {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%) rotate(180deg);
}
.side-rail-scroll {
    position: absolute;
    left: 0; right: 0; bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.side-rail-scroll .side-rail-text { transform: rotate(180deg); }
.side-rail-line { width: 1px; height: 34px; background: var(--navy-line); }
@media (min-width: 1400px) { .side-rail { display: block; } }

/* ---------- Hero (single full-bleed photo, text on its built-in fade) ---------- */
#hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-block-start: var(--header-h);
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--paper); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero-content { position: relative; z-index: 1; width: 100%; padding-block: 56px; margin-top: -64px; }
#hero .hero-copy { max-width: 620px; }
#hero .hero-copy .eyebrow-dash { font-size: 0.95rem; margin-bottom: 22px; }
#hero .hero-copy h1 { font-size: clamp(2.9rem, 6.2vw, 4.9rem); margin-bottom: 26px; }
#hero .hero-copy .lede { font-size: 1.3rem; line-height: 1.65; max-width: 46ch; margin-bottom: 44px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

@media (max-width: 720px) {
    #hero { min-height: auto; display: block; }
    .hero-bg { position: relative; inset: auto; aspect-ratio: 4 / 3; }
    .hero-bg img { object-position: 68% center; }
    .hero-content { padding-block: 36px 48px; margin-top: 0; }
}

/* ---------- Trust strip ---------- */
#trust { background: var(--paper-raised); border-bottom: 1px solid var(--line); }
.trust-row { display: flex; flex-wrap: wrap; padding-block: 30px; }
.trust-item { flex: 1 1 220px; display: flex; align-items: center; gap: 14px; padding-inline: 22px; border-inline-start: 1px solid var(--line); }
.trust-item:first-child { border-inline-start: none; padding-inline-start: 0; }
.trust-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand-deep);
    display: grid; place-items: center;
    flex: none;
}
.trust-icon svg { width: 19px; height: 19px; }
.trust-item span { font-size: 0.95rem; font-weight: 600; color: var(--ink); }

@media (max-width: 720px) {
    .trust-item { flex: 1 1 100%; border-inline-start: none; border-top: 1px solid var(--line); padding-block: 16px; padding-inline: 0; }
    .trust-item:first-child { border-top: none; }
}

/* ---------- About ---------- */
.about-copy .lede { max-width: 46ch; margin-block: 18px 32px; }

.value-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); margin-bottom: 36px; }
.dark-section .value-row { border-top-color: var(--navy-line); }
.value-block p { font-size: 1rem; max-width: 26ch; }

@media (max-width: 560px) {
    .value-row { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Services (dark, icon grid) ---------- */
#services.dark-section { }
.services-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
    padding-block-end: 56px;
    border-bottom: 1px solid var(--navy-line);
    margin-bottom: 4px;
}
.services-split h2 { color: #fff; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.feature-cell {
    padding: 48px 32px;
    text-align: center;
    border-inline-start: 1px solid var(--navy-line);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.feature-cell:nth-child(3n+1) { border-inline-start: none; }
.feature-cell:nth-child(n+4) { border-top: 1px solid var(--navy-line); }

.feature-cell-icon {
    width: 84px; height: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--brand-bright);
    display: grid; place-items: center;
    margin-bottom: 26px;
}
.feature-cell-icon svg { width: 34px; height: 34px; }

.feature-cell h3 { margin-bottom: 12px; color: #fff; }
.feature-cell p { font-size: 0.96rem; max-width: 32ch; color: var(--navy-text-soft); }

.feature-cell-tag {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--navy-line);
    width: 100%;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy-text-soft);
}

@media (max-width: 900px) {
    .services-split { grid-template-columns: 1fr; gap: 20px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-cell:nth-child(3n+1) { border-inline-start: 1px solid var(--navy-line); }
    .feature-cell:nth-child(odd) { border-inline-start: none; }
    .feature-cell:nth-child(n+4) { border-top: none; }
    .feature-cell:nth-child(n+3) { border-top: 1px solid var(--navy-line); }
}
@media (max-width: 600px) {
    .feature-grid { grid-template-columns: 1fr; }
    .feature-cell { border-inline-start: none !important; border-top: 1px solid var(--navy-line); }
    .feature-cell:first-child { border-top: none; }
}

/* ---------- Process ---------- */
#process { position: relative; overflow: hidden; }
#process .container { position: relative; z-index: 1; }
.process-sketch {
    position: absolute;
    top: 24px;
    right: 0;
    width: 46vw;
    max-width: 640px;
    height: auto;
    pointer-events: none;
    z-index: 0;
}
#process .process-head { max-width: 56ch; margin-bottom: 56px; }
.process-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.process-step { padding: 8px; }

.process-track {
    position: absolute;
    top: 30px;
    left: 30px; right: 30px;
    height: 2px;
    background: var(--line);
    z-index: 0;
}
.process-track-beam {
    position: absolute;
    inset: 0;
    display: block;
    background: var(--brand);
    box-shadow: 0 0 14px 1px var(--brand-bright);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 1.4s var(--ease-in-out) 0.3s;
}
.process-track.is-visible .process-track-beam { transform: scaleX(1); }

.process-index {
    position: relative;
    z-index: 1;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand-deep);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.process-index::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid var(--brand);
    opacity: 0;
    animation: process-pulse 2.6s ease-out infinite;
}
.process-step:nth-child(3) .process-index::after { animation-delay: 0.55s; }
.process-step:nth-child(4) .process-index::after { animation-delay: 1.1s; }

@keyframes process-pulse {
    0% { transform: scale(0.85); opacity: 0.55; }
    70%, 100% { transform: scale(1.4); opacity: 0; }
}

.process-step h3 { margin-bottom: 10px; }
.process-step p { font-size: 0.98rem; }

@media (max-width: 860px) {
    .process-steps { grid-template-columns: 1fr; gap: 36px; }
    .process-track { display: none; }
    .process-sketch { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .process-track-beam { transition: none; transform: scaleX(1); }
    .process-index::after { animation: none; opacity: 0; }
}

/* ---------- Ausbildung / Careers (light, photo collage) ---------- */
#ausbildung { background: var(--paper-raised); }
.ausbildung-inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 64px;
}
.ausbildung-figure-wrap { justify-self: center; width: 100%; max-width: 460px; }
.ausbildung-figure-wrap img { width: 100%; height: auto; }

.ausbildung-copy .lede { margin-block: 18px 16px; }
.ausbildung-text { font-size: 1.02rem; max-width: 48ch; margin-bottom: 32px; }

.quick-help { display: inline-flex; align-items: center; gap: 14px; }
.quick-help-icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: grid; place-items: center;
    flex: none;
}
.quick-help-icon svg { width: 20px; height: 20px; }
.quick-help-label { display: block; font-size: 0.8rem; color: var(--ink-soft); }
.quick-help-value { display: block; font-weight: 700; color: var(--ink); font-size: 1.02rem; }

@media (max-width: 900px) {
    .ausbildung-inner { grid-template-columns: 1fr; gap: 56px; }
    .ausbildung-figure-wrap { max-width: 320px; }
}

/* ---------- Contact (minimal underline form) ---------- */
#contact { background: #f9fafb; }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 80px; align-items: start; }

.contact-intro .lede { margin-block: 18px 20px; max-width: 52ch; }
.contact-form-col { padding-block-start: 60px; }

@media (max-width: 900px) {
    .contact-form-col { padding-block-start: 0; }
}

.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;
}

.contact-form-line { display: block; }
.form-fields-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.field-line-wide { grid-column: 1 / -1; }
.field-line { position: relative; margin-bottom: 30px; }
.field-line label {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 12px;
    transition: color 160ms var(--ease-out);
}
.field-input { position: relative; }
.field-input input,
.field-input textarea {
    width: 100%;
    padding-block: 10px;
    padding-inline-end: 28px;
    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.02rem;
    transition: border-color 160ms var(--ease-out);
}
.field-input textarea { resize: vertical; min-height: 90px; }
.field-input input:focus,
.field-input textarea:focus {
    outline: none;
}
.field-line:focus-within label { color: var(--brand); }
.field-line:focus-within .field-input input,
.field-line:focus-within .field-input textarea { border-bottom-color: var(--brand); }
.field-icon {
    position: absolute;
    inset-inline-end: 0;
    inset-block-end: 10px;
    color: var(--ink-faint);
    pointer-events: none;
    display: grid;
    place-items: center;
    transition: color 160ms var(--ease-out);
}
.field-icon svg { width: 18px; height: 18px; display: block; }
.field-icon-top { inset-block-end: auto; inset-block-start: 4px; }
.field-line:focus-within .field-icon { color: var(--brand); }
.field-line .field-error { font-size: 0.82rem; color: #c0392b; display: none; margin-top: 8px; }
.field-line.has-error .field-input input,
.field-line.has-error .field-input textarea { border-bottom-color: #c0392b; }
.field-line.has-error .field-error { display: block; }

.form-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.form-privacy-note { font-size: 0.86rem; color: var(--ink-soft); margin: 0; max-width: 46ch; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

.form-status { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 600; display: none; }
.form-status.is-success { display: block; background: var(--brand-tint); color: var(--brand-deep); }
.form-status.is-error { display: block; background: #fbe4e1; color: #a93226; }

.contact-quick-list { margin-top: 44px; }
.contact-info-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.contact-info-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-info-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand-deep);
    display: grid;
    place-items: center;
    flex: none;
}
.contact-info-icon svg { width: 17px; height: 17px; }
.contact-info-label {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 4px;
}
.contact-info-block p, .contact-info-block a { font-size: 1.02rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.contact-info-block a:hover { color: var(--brand-deep); }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 560px) {
    .form-fields-grid { grid-template-columns: 1fr; }
    .form-footer-row { flex-direction: column; align-items: stretch; }
    .form-footer-row .btn { width: 100%; }
}

/* ---------- Footer ---------- */
footer { background: var(--footer-bg); color: var(--navy-text-soft); }

.footer-callout {
    padding-block: 72px;
    border-bottom: 1px solid var(--footer-line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.footer-callout h2 { color: #fff; max-width: 14ch; }

.footer-top { padding-block: 64px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--navy-text-soft); max-width: 34ch; font-size: 0.94rem; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--navy-raised);
    border: 1px solid var(--footer-line);
    display: grid; place-items: center;
    transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.footer-social a:hover { background: var(--brand); border-color: var(--brand); }
.footer-social svg { width: 17px; height: 17px; color: var(--navy-text); }

.footer-col h3 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.01em; color: #fff; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 16px; }
.footer-col a, .footer-col span { font-size: 0.94rem; color: var(--navy-text-soft); }
.footer-col a:hover { color: var(--brand-bright); }
.footer-link-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font: inherit;
    font-size: 0.94rem;
    color: var(--navy-text-soft);
    cursor: pointer;
    transition: color 160ms var(--ease-out);
}
.footer-link-btn:hover { color: var(--brand-bright); }
.footer-label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 3px; }

.footer-bottom { border-top: 1px solid var(--footer-line); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
.footer-bottom p { color: var(--navy-text-soft); }
.footer-bottom a:hover { color: var(--brand-bright); }

@media (max-width: 860px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-callout { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- Cookie consent ---------- */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: var(--navy);
    border-top: 1px solid var(--navy-line);
    box-shadow: 0 -20px 40px -16px rgba(0, 0, 0, 0.4);
    padding-block: 24px;
    transform: translateY(0);
    transition: transform 380ms var(--ease-in-out), opacity 380ms var(--ease-out);
}
.cookie-banner[hidden] { display: block; transform: translateY(110%); opacity: 0; pointer-events: none; }

.cookie-banner-inner {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.cookie-banner-text h3 { font-size: 1.1rem; margin-bottom: 6px; color: #fff; }
.cookie-banner-text p { font-size: 0.92rem; max-width: 62ch; color: var(--navy-text-soft); }
.cookie-banner-text a { text-decoration: underline; text-underline-offset: 3px; color: var(--brand-bright); }

.cookie-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; flex: none; }
.cookie-banner-actions .btn { padding: 13px 22px; font-size: 0.9rem; white-space: nowrap; }

@media (max-width: 860px) {
    .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 20px; }
    .cookie-banner-actions { justify-content: flex-start; }
    .cookie-banner-actions .btn { flex: 1 1 auto; }
}

/* Modal */
.cookie-modal { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 24px; }
.cookie-modal[hidden] { display: none; }
.cookie-modal-overlay { position: absolute; inset: 0; background: rgba(9, 14, 26, 0.55); }
.cookie-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    background: var(--paper-raised);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
}
.cookie-modal-panel h3 { font-size: 1.3rem; margin-bottom: 14px; }
.cookie-modal-intro { font-size: 0.94rem; margin-bottom: 28px; }
.cookie-modal-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
    display: grid;
    place-items: center;
    transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.cookie-modal-close:hover { border-color: var(--brand); color: var(--brand-deep); }
.cookie-modal-close svg { width: 16px; height: 16px; }

.cookie-category { padding-block: 20px; border-top: 1px solid var(--line); }
.cookie-category:first-of-type { border-top: none; }
.cookie-category-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.cookie-category-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.cookie-category p { font-size: 0.9rem; }

.cookie-toggle {
    position: relative;
    width: 46px; height: 26px;
    border-radius: var(--radius-pill);
    background: var(--line);
    border: none;
    padding: 0;
    flex: none;
    cursor: pointer;
    transition: background-color 200ms var(--ease-out);
}
.cookie-toggle-thumb {
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(16, 25, 43, 0.25);
    transition: transform 220ms var(--ease-in-out);
}
.cookie-toggle.is-on { background: var(--brand); }
.cookie-toggle.is-on .cookie-toggle-thumb { transform: translateX(20px); }
.cookie-toggle.is-disabled { background: var(--brand-tint); cursor: default; opacity: 0.85; }
.cookie-toggle.is-disabled .cookie-toggle-thumb { transform: translateX(20px); background: var(--brand-deep); }

.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cookie-modal-actions .btn { flex: 1 1 auto; }

body.cookie-modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .cookie-banner { transition: none; }
}

/* ---------- Apply modal (Jetzt bewerben) ---------- */
.apply-modal { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 24px; }
.apply-modal[hidden] { display: none; }
.apply-modal-overlay { position: absolute; inset: 0; background: rgba(9, 14, 26, 0.55); }
.apply-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    background: var(--paper-raised);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
}
.apply-modal-panel .eyebrow-dash { margin-bottom: 14px; }
.apply-modal-panel h3 { font-size: 1.5rem; margin-bottom: 10px; }
.apply-modal-intro { font-size: 0.96rem; color: var(--ink-soft); margin-bottom: 28px; }
.apply-modal-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
    display: grid;
    place-items: center;
    transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.apply-modal-close:hover { border-color: var(--brand); color: var(--brand-deep); }
.apply-modal-close svg { width: 16px; height: 16px; }

.apply-form-line .field-line:has(+ .form-footer-row) { margin-bottom: 0; }
.apply-form-line .form-footer-row { flex-direction: column; align-items: stretch; gap: 16px; }
.apply-form-line .form-footer-row .btn { width: 100%; }

body.apply-modal-open { overflow: hidden; }

@media (max-width: 560px) {
    .apply-modal-panel { padding: 28px 24px; }
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-hero {
    padding-block: calc(var(--header-h) + 56px) 56px;
}
.legal-back {
    display: flex;
    width: fit-content;
    margin-bottom: 24px;
    font-size: 0.92rem;
}
.legal-hero h1 { margin-top: 18px; }

.legal-content-section { background: var(--paper-raised); }
.legal-content { max-width: 720px; margin-inline: auto; }

.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 52px;
    margin-bottom: 16px;
    color: var(--ink);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
    font-size: 1.1rem;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--ink);
}
.legal-content p { margin-bottom: 16px; line-height: 1.75; color: var(--ink-soft); }
.legal-content ul { margin: 0 0 16px; padding-inline-start: 22px; color: var(--ink-soft); line-height: 1.75; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--brand-deep); }
.legal-content strong { color: var(--ink); font-weight: 700; }

.legal-content .index {
    list-style: none;
    padding: 0;
    margin: 0 0 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.legal-content .index li { margin: 0; }
.legal-content .index-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 4px;
    background: var(--brand-tint);
    color: var(--brand-deep);
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
}
.legal-content .index-link:hover { background: var(--brand); color: #fff; }

.legal-content .m-elements, .legal-content .glossary { padding-inline-start: 22px; }
.legal-content .m-elements li, .legal-content .glossary li { margin-bottom: 14px; }
.legal-content .seal { font-size: 0.82rem; color: var(--ink-soft); margin-top: 40px; }

@media (max-width: 640px) {
    .legal-hero { padding-block: calc(var(--header-h) + 40px) 40px; }
}
