@font-face { font-family: "Work Sans"; font-weight: 100 900; font-display: swap; src: url(work-sans.woff2) format("woff2"); } /* Latin-Subset wie auf pb-bauelemente.de */

:root {
    --green: #007a00;
    --green-dark: #005c00;
    --tint: #eef7ee;
    --ink: #1a1f1a;
    --muted: #4f594f;
    --line: #dfe6df;
    --bg: #fff;
    --font: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 12px;
    --wrap: 1080px;
    --pad: 20px;
    --sec: 40px;
}
@media (min-width: 900px) { :root { --pad: 32px; --sec: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 9vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 4vw, 2rem); font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; margin-bottom: .1em; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }
.section { padding: var(--sec) 0; }
.section-tint { background: var(--tint); }
.center { text-align: center; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 40px; border-radius: 10px; font-weight: 600; font-size: 1.125rem;
    text-decoration: none; min-height: 56px; transition: background .2s, transform .1s;
    border: 0; cursor: pointer; font-family: inherit; /* .btn sitzt auch auf <button> – UA-Rahmen und -Schrift abraeumen */
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:active { transform: translateY(1px); }
@media (max-width: 599px) { .btn { width: 100%; } }

/* Topbar */
.topbar { padding: 10px 0; }
@media (min-width: 900px) { .topbar { padding: 24px 0; } }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-logo { height: 34px; width: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.25rem; }

/* Hero */
.hero { padding: 24px 0 var(--sec); }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.kicker { color: var(--muted); font-weight: 600; font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; }
.lead { font-size: 1.05rem; color: var(--muted); }
.hero-media { order: -1; } /* mobil: Bild vor dem Text */
.hero-media img { border-radius: var(--radius); aspect-ratio: 2 / 1; object-fit: cover; object-position: center 20%; }
@media (min-width: 900px) { .hero-media { order: 0; } .hero-media img { aspect-ratio: 3 / 2; } }
@media (min-width: 900px) {
    .hero { padding-top: 48px; }
    .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
}

/* Benefits */
.benefits { display: grid; margin-top: 16px; }
.benefits li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.benefits .ico { width: 1.5em; height: 1.5em; color: var(--green); }
.benefits p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (min-width: 640px) {
    .benefits { grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 24px; }
    .benefits li { flex-direction: column; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
}

/* Alltag / Anforderungen */
.two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checklist { display: grid; gap: 10px; margin: 16px 0 20px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .ico { color: var(--green); margin-top: 3px; }
.hero-list { font-size: 1.125rem; font-weight: 600; margin: 20px 0; }
.hero-note { margin: 10px 0 0; font-size: .875rem; color: var(--muted); text-align: center; }
@media (min-width: 600px) { .hero-note { text-align: left; } }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--tint); color: var(--green-dark); font-weight: 500; }
.callout .ico { margin-top: 3px; }

/* Über PB */
.about { display: grid; gap: 24px; align-items: center; }
.about-logo { width: 140px; }
.about p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .about { grid-template-columns: 240px 1fr; gap: 56px; } .about-logo { width: 240px; } }

/* FAQ – natives <details> */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 16px 0; font-weight: 600; font-size: 1rem; cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.6rem; font-weight: 300; line-height: 1; color: var(--green); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: var(--muted); padding-right: 32px; }

/* Bewerbung */
#bewerben { min-height: 100svh; display: flex; align-items: center; } /* füllt den Viewport nach dem CTA-Sprung, Footer bleibt unterhalb */
#bewerben .wrap { width: 100%; }
#bewerben iframe { margin-top: 24px; }

/* Sticky CTA */
.sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    transform: translateY(100%); transition: transform .25s ease;
}
.sticky.show { transform: none; }
.sticky .btn { width: 100%; max-width: 480px; margin: 0 auto; display: flex; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }

/* Danke-Seite */
.danke { min-height: 100svh; display: flex; align-items: center; text-align: center; } /* wie #bewerben: fuellt den Viewport, der Footer bleibt darunter */
.danke .wrap { width: 100%; }
.danke h1 { font-size: clamp(1.6rem, 6vw, 2.25rem); } /* kein Hero – die Bestaetigung muss nicht schreien */
.danke p { text-wrap: balance; } /* verteilt die Zeilen gleichmaessig, sonst steht "abgeschickt." allein */
.danke .confirm { margin: 0 0 6px; font-weight: 600; }
.danke .lead { margin: 0; font-size: .95rem; }
.ico.done { display: block; width: 3.5rem; height: 3.5rem; margin: 0 auto 24px; color: var(--green); }

/* Cookie-Consent */
.consent {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 101;
    padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0, 0, 0, .1);
}
.consent.hidden { display: none; }
.consent-inner { display: grid; gap: 16px; }
.consent p { margin: 4px 0 0; font-size: .875rem; color: var(--muted); }
.consent-actions { display: grid; gap: 8px; }
@media (max-width: 639px) { .consent-actions .btn-primary { order: -1; } } /* mobil Akzeptieren oben, wie auf pb-bauelemente.de – DOM-Reihenfolge bleibt Ablehnen zuerst (Tab-Reihenfolge) */
.consent .btn { width: 100%; padding: 12px 24px; min-height: 48px; font-size: 1rem; }
.btn-ghost { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--tint); }
.consent:not(.hidden) ~ .sticky { display: none; } /* Banner und Sticky-CTA nie gleichzeitig – DOM-Reihenfolge ist Vertrag */
@media (min-width: 640px) {
    .consent-inner { grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
    .consent-actions { grid-auto-flow: column; }
    .consent .btn { width: auto; }
}

/* Footer */
.footer { padding: 32px 0 96px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-logo { height: 28px; width: auto; margin-bottom: 10px; } /* etwas kleiner als in der Topbar (34px) */
.footer strong { color: var(--ink); }
.footer-links { display: flex; gap: 20px; }
.footer a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .sticky, summary::after, .btn { transition: none; }
}
