/* Grundgestaltung, mobil zuerst. Farben und Schrift kommen aus theme.css. Keine Frameworks, keine Fremdserver. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--c-text); background: #fff; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--c-primary); text-underline-offset: 0.15em; }
a:hover { color: var(--c-secondary-dark); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { color: var(--c-primary); line-height: 1.25; margin: 0 0 0.6em; font-weight: 500; }
h1 { font-size: clamp(1.9rem, 4.5vw + 0.5rem, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.5vw + 0.8rem, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.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; }
.skip-link { position: absolute; left: 0.5rem; top: -4rem; background: var(--c-primary); color: #fff; padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 8px 8px; }
.skip-link:focus { top: 0; }
.icon { width: 1.15em; height: 1.15em; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Kopfbereich */
.topbar { background: var(--c-primary); color: #fff; font-size: 0.9rem; }
.topbar a { color: #fff; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; justify-content: space-between; padding-block: 0.5rem; }
.topbar p { margin: 0; }
.topbar__sep { display: inline-block; width: 1.25rem; }
.topbar__social a { margin-left: 1rem; }
.site-header { background: #fff; border-bottom: 1px solid var(--c-border); position: relative; z-index: 20; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; position: relative; }
.brand { display: block; max-width: 230px; text-decoration: none; }
.brand img { display: block; width: 100%; height: auto; }
.brand__text { font-weight: 700; font-size: 1.3rem; color: var(--c-primary); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.nav a { display: block; padding: 0.55rem 0.9rem; border-radius: 999px; text-decoration: none; color: var(--c-primary); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--c-accent-soft); color: var(--c-primary-dark); }
.nav-toggle { display: none; background: var(--c-primary); border: 0; border-radius: 10px; width: 3rem; height: 3rem; cursor: pointer; padding: 0; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0.8rem; right: 0.8rem; height: 3px; background: #fff; border-radius: 2px; }
.nav-toggle__bars { top: 50%; margin-top: -1.5px; }
.nav-toggle__bars::before { left: 0; right: 0; top: -8px; }
.nav-toggle__bars::after { left: 0; right: 0; top: 8px; }
@media (max-width: 52em) {
  .js .nav-toggle { display: block; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--c-border); border-radius: 0 0 14px 14px; box-shadow: 0 12px 24px rgb(0 0 0 / 0.12); padding: 0.5rem; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { border-radius: 10px; padding: 0.85rem 1rem; }
  .topbar__social { display: none; }
}

/* Inhalt */
main { display: block; }
main:focus { outline: none; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--soft { background: var(--c-accent-soft); }
.section--narrow .container { width: min(820px, 100% - 2.5rem); }
.eyebrow { color: var(--c-secondary-dark); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 0.5rem; }
.lead { font-size: 1.2rem; color: var(--c-muted); }
.hero { background: linear-gradient(135deg, var(--c-accent-soft), #fff 70%); padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero .container > * { max-width: 54rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.4rem; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid var(--c-primary); color: var(--c-primary); background: #fff; cursor: pointer; min-height: 3rem; }
.btn:hover { background: var(--c-accent-soft); color: var(--c-primary-dark); }
.btn--primary { background: var(--c-secondary); border-color: var(--c-secondary); color: #fff; }
.btn--primary:hover { background: var(--c-secondary-dark); border-color: var(--c-secondary-dark); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card { background: #fff; border: 1px solid var(--c-border); border-radius: 16px; padding: 1.5rem; box-shadow: 0 2px 10px rgb(50 85 120 / 0.06); }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon { display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-primary); margin-bottom: 0.9rem; font-size: 1.5rem; }
.card--person { text-align: center; }
.card--person img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; display: block; background: var(--c-accent-soft); }
.card--person h3 { margin-bottom: 0.2rem; }
.card--person p { color: var(--c-muted); font-size: 0.95rem; }

.checklist { list-style: none; padding: 0; display: grid; gap: 0.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.checklist li { padding-left: 1.7rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.9rem; height: 0.5rem; border-left: 3px solid var(--c-secondary); border-bottom: 3px solid var(--c-secondary); transform: rotate(-45deg) translateY(-30%); }
.two-col { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }

details { border: 1px solid var(--c-border); border-radius: 12px; background: #fff; margin-bottom: 0.75rem; }
summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; color: var(--c-primary); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--c-secondary-dark); }
details[open] summary::after { content: "–"; }
details > :not(summary) { padding-inline: 1.25rem; }
details > :last-child { padding-bottom: 1rem; }

/* Formulare */
.form__grid { display: grid; gap: 1rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 500; color: var(--c-primary); }
.req { color: var(--c-secondary-dark); }
.field input, .field select, .field textarea { font: inherit; padding: 0.75rem 0.9rem; border: 2px solid var(--c-border); border-radius: 10px; background: #fff; color: var(--c-text); width: 100%; min-height: 3rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-primary); outline: 3px solid var(--c-accent); outline-offset: 0; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--c-secondary); }
.field--consent { margin-block: 1.25rem; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 400 !important; color: var(--c-text) !important; font-size: 0.95rem; }
.check input { width: 1.4rem; min-height: 1.4rem; height: 1.4rem; margin-top: 0.2rem; flex: none; accent-color: var(--c-primary); }
.hint { color: var(--c-muted); font-size: 0.9rem; margin: 0; }
.error { color: var(--c-secondary-dark); font-weight: 500; margin: 0; font-size: 0.95rem; }
.notice { padding: 1rem 1.25rem; border-radius: 12px; margin-bottom: 1.25rem; border: 2px solid; }
.notice--ok { background: #eaf7ee; border-color: #2e7d4a; color: #1d5232; }
.notice--error { background: #fdeeee; border-color: var(--c-secondary); color: #7d1a1a; }
.spam-status { color: var(--c-muted); font-size: 0.88rem; margin: 0 0 1rem; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-box { background: #fff; border: 1px solid var(--c-border); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 2px 14px rgb(50 85 120 / 0.08); }

.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { display: flex; gap: 0.75rem; margin-bottom: 0.9rem; }
.contact-list .icon { flex: none; margin-top: 0.3rem; color: var(--c-secondary-dark); }
.cta-band { background: var(--c-primary); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn { border-color: #fff; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal { overflow-wrap: anywhere; }

/* Fußbereich */
.site-footer { background: var(--c-primary-dark); color: #e8eef4; margin-top: 0; }
.site-footer a { color: #fff; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); padding-block: 3rem 2rem; }
.footer__title { font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.footer__links { list-style: none; padding: 0; margin: 0 0 1rem; }
.footer__social a { margin-right: 1rem; }
.footer__bottom { border-top: 1px solid rgb(255 255 255 / 0.15); padding-block: 1rem; font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
@media print { .topbar, .nav, .nav-toggle, .site-footer, .form-box { display: none; } body { font-size: 12pt; } }
.btn-row--center { justify-content: center; }
.cta-band .btn:not(.btn--primary) { background: transparent; color: #fff; }
.cta-band .btn:not(.btn--primary):hover { background: rgb(255 255 255 / 0.15); color: #fff; }
.cta-band p { max-width: 42rem; margin-inline: auto; }
.two-col--top { align-items: start; }
.person-grid { margin-block: 2rem; }
.job h3 { margin-top: 1.5rem; }
.kv { margin: 0; }
.kv dt { font-weight: 700; color: var(--c-primary); margin-top: 0.9rem; }
.kv dd { margin: 0; }
.h3 { font-size: 1.25rem; }
.container.section--narrow { width: min(820px, 100% - 2.5rem); }
.map { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--c-border); }
.job ul { margin-bottom: 1.25rem; }
