/* GEMEINSAMES DESIGN: gilt für alle Seiten (Startseite, Leistungen, Kontakt, Karriere, Impressum) */

/* FARBEN: immer das dunkelblaue Design, unabhängig von der Geräteeinstellung
   ink = Text, bg = Hintergrund, alt = etwas hellere Flächen, accent = Blau für Links und Button */
:root{color-scheme:dark;--ink:#e9edf2;--muted:#a9b3c0;--bg:#12171d;--alt:#1a212a;--accent:#6fa8dc;--accent-dark:#8fbde8;--line:#2b3540}

/* GRUNDEINSTELLUNGEN: Schrift, Abstände, weiches Scrollen */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font:1.0625rem/1.65 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:var(--bg)}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent)}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.wrap{max-width:1360px;margin:0 auto;padding:0 clamp(1.25rem,4vw,3rem)}
.skip{position:absolute;left:-999px}
.skip:focus{left:1rem;top:1rem;background:var(--bg);padding:.5rem 1rem;z-index:10}

/* KOPFZEILE: bleibt beim Scrollen oben; die aktuelle Seite ist unterstrichen */
header{border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--bg);z-index:5}
header .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1.5rem;padding-top:.75rem;padding-bottom:.75rem}
.brand{display:block;line-height:0;text-decoration:none}
/* LOGO: weiße Fläche mit eckigen Ecken (das Logo ist dunkel) und Rahmen in der Farbe des V, etwas nach innen versetzt */
.logo{height:64px;width:auto;background:#fff;padding:.3rem .6rem;border-radius:0;outline:1px solid #222e48;outline-offset:-4px}
nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.25rem 1.25rem}
nav a{color:var(--ink);text-decoration:none;padding:.25rem 0}
nav a:hover,nav a[aria-current]{text-decoration:underline}

/* HERO: großer Einstieg mit Überschrift */
.hero{padding:5rem 0 4rem;background:var(--alt)}
.hero h1{font-size:clamp(2rem,6vw,3.25rem);line-height:1.15;margin:0 0 .5rem}
.hero p{font-size:1.2rem;color:var(--muted);margin:0}
.hero.small{padding:3.5rem 0 2.5rem}

/* BUTTON */
.btn{display:inline-block;background:var(--accent);color:#0b1015;text-decoration:none;padding:.8rem 1.6rem;border-radius:6px;font-weight:600}
.btn:hover{background:var(--accent-dark)}
.cta{margin-top:1.75rem}

/* ABSCHNITTE: abwechselnd weiß und grau, Textzeilen nicht zu lang */
section{padding:4rem 0}
section.alt{background:var(--alt)}
h2{font-size:1.75rem;line-height:1.25;margin:0 0 1rem}
h3{font-size:1.25rem;margin:0 0 .5rem}
p{margin:0 0 1rem;max-width:68ch}
ul.list{margin:0 0 1rem;padding-left:1.25rem;max-width:68ch}

/* ZWEISPALTIG: Text neben Bild; "rev" tauscht die Seiten */
.split{display:grid;gap:2.5rem;align-items:center}
@media (min-width:800px){.split{grid-template-columns:1fr 1fr}.split.rev .media{order:-1}}
.media img{border-radius:8px;width:100%;aspect-ratio:3/2;object-fit:cover}
/* .media.wide img{aspect-ratio:3/2} */
/* .media.foto img{aspect-ratio:3/2} */ /* Querformat-Foto ohne Zuschnitt, damit alle Personen zu sehen sind */

/* KARTEN: die vier Dienste auf der Leistungen-Seite */
.cards{display:grid;gap:1.5rem;grid-template-columns:repeat(2,1fr);max-width:960px;margin:2.5rem auto 0}
@media (max-width:640px){.cards{grid-template-columns:1fr}}
.card{border:1px solid var(--line);border-radius:8px;padding:1.5rem;background:var(--bg);text-align:center}
.card p{margin:0 auto}
.cards + .cta{max-width:none;text-align:center}

/* INHABER: rundes Porträt neben Text */
.owner img{width:180px;height:180px;object-fit:cover;border-radius:50%}
.owner{display:grid;gap:1.5rem;align-items:center}
@media (min-width:700px){.owner{grid-template-columns:180px 1fr}}

/* KENNZAHLEN */
.stats{display:grid;gap:1.5rem;grid-template-columns:repeat(3,1fr);text-align:center}
.stats strong{display:block;font-size:2.5rem;color:var(--accent);line-height:1}
.stats span{color:var(--muted)}

/* FUSSZEILE */
footer{border-top:1px solid var(--line);padding:2rem 0;color:var(--muted);font-size:.95rem}
footer ul{list-style:none;margin:0 0 1rem;padding:0;display:flex;flex-wrap:wrap;gap:.25rem 1.25rem}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* FORMULARE: Eingabefelder, Haken, Meldungen */
.form label{display:block;margin-bottom:1rem}
.form input[type=text],.form input[type=email],.form input[type=tel],.form input[type=number],.form input[type=datetime-local],.form input[type=password],.form select,.form textarea{display:block;width:100%;max-width:560px;margin-top:.3rem;padding:.7rem;border-radius:6px;border:1px solid var(--line);background:var(--alt);color:var(--ink);font:inherit}
.form textarea{min-height:9rem}
.form .check{display:flex;gap:.6rem;max-width:68ch}.form .check input{margin-top:.45rem}
.hp{position:absolute;left:-9999px}
button.btn{border:0;cursor:pointer;font:inherit;font-weight:600}
.err{color:#ff8a80}.ok{color:#8fd19e}

/* TABELLEN im Chef-Bereich */
.tabelle{overflow-x:auto}table.tab{width:100%;border-collapse:collapse}
.tab th,.tab td{border-bottom:1px solid var(--line);padding:.55rem .5rem;text-align:left;vertical-align:top}
.tab form{display:inline}button.klein{font:inherit;padding:.3rem .7rem;border-radius:6px;border:1px solid var(--line);background:var(--bg);color:var(--ink);cursor:pointer}

/* NACH OBEN: weißes Kästchen mit dunkelblauem Pfeil und Rahmen wie das Logo (Skript site.js) */
.hoch-zurueck{position:fixed;right:1rem;bottom:1rem;display:none;z-index:20}
.hoch-zurueck.sichtbar{display:block}
.hoch-zurueck button{width:3rem;height:3rem;padding:0;border:0;border-radius:0;background:#fff;cursor:pointer;outline:1px solid #222e48;outline-offset:-4px;box-shadow:0 4px 14px rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center}
.hoch-zurueck button:hover{background:#e9edf2}
