:root {
    --petrol: #1f5a66;
    --petrol-dunkel: #174650;
    --nebel: #e8f1f2;
    --text: #1b2a2f;
    --weiss: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--weiss);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
}

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

a { color: var(--petrol); }
a:hover { color: var(--petrol-dunkel); }
a:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; }

.skip {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--weiss);
    padding: .5rem 1rem;
    z-index: 10;
}
.skip:focus { left: 0; }

header, main, footer {
    max-width: 60rem;
    margin: 0 auto;
}

.banner { width: 100%; }

nav { background: var(--petrol); }
nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
    margin: 0;
    padding: .25rem 1rem;
    list-style: none;
}
nav a {
    display: block;
    padding: .65rem 0;
    color: var(--weiss);
    font-weight: 600;
    text-decoration: none;
}
nav a:hover { text-decoration: underline; color: var(--weiss); }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
nav a:focus-visible { outline-color: var(--weiss); }

main { padding: 1.5rem 1rem 2rem; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 1rem; color: var(--petrol-dunkel); }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 .5rem; color: var(--petrol-dunkel); }

.lead { font-size: 1.15rem; max-width: 42rem; }

.kontakt {
    margin: 2rem 0;
    padding: 1rem 1.25rem;
    background: var(--nebel);
    border-left: 4px solid var(--petrol);
}
.kontakt p { margin: .5rem 0; }
.kontakt .daten { font-size: 1.15rem; }
.kontakt .notfall { font-size: .95rem; }

.team { margin-top: 2rem; }

.fotos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    align-items: start;
}
.fotos figure { margin: 0; }
.fotos figure:first-child { grid-column: 1 / -1; }
.fotos figure:not(:first-child) img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

.raeume {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem .75rem;
    margin-top: 1.5rem;
    align-items: start;
}
.raeume figure { margin: 0; }
.raeume img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}
.raeume figcaption { margin-top: .4rem; font-weight: 600; }

/* Variante: Fotos in einer Reihe, seitlich wischen (Klasse "wischen" zusätzlich setzen) */
.raeume.wischen {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .75rem;
}
.raeume.wischen figure {
    flex: 0 0 85%;
    scroll-snap-align: start;
}
.raeume.wischen:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; }

@media (min-width: 48rem) {
    .raeume.wischen figure { flex-basis: 55%; }
}

.person {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 2rem;
}
.person .foto {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}
/* Pro Foto einstellbar: --zoom (1 = Original, 1.3 = näher ran) und --pos (Bildmitte des Ausschnitts) */
.person .foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--pos, 50% 20%);
    transform: scale(var(--zoom, 1));
    transform-origin: var(--origin, var(--pos, 50% 20%));
}
.person h2 { margin: 0; }
.person .rolle { margin: 0 0 .6rem; color: var(--petrol); font-weight: 600; }
.person p { margin-top: 0; }

.text h1, .text h2, .text p { max-width: 46rem; }
.text h2 { margin-top: 2.25rem; }
.text address { margin: .5rem 0 1rem; font-style: normal; }
.text h3 {
    max-width: 46rem;
    margin: 1.5rem 0 .4rem;
    font-size: 1.1rem;
    line-height: 1.35;
    color: var(--petrol-dunkel);
}
.text a { overflow-wrap: anywhere; }
.text ul { max-width: 46rem; margin: .5rem 0 1rem; padding-left: 1.25rem; }
.text li { margin-bottom: .4rem; }
.versal { font-size: .95rem; }

.zeiten {
    width: 100%;
    max-width: 34rem;
    margin: .5rem 0 1.25rem;
    border-collapse: collapse;
}
.zeiten th, .zeiten td {
    padding: .6rem .75rem .6rem 0;
    border-bottom: 1px solid #c9dadd;
    text-align: left;
    vertical-align: top;
}
.zeiten th { width: 8rem; font-weight: 600; }

.leistung h1, .leistung h2, .leistung h3, .leistung p, .leistung ul { max-width: 46rem; }
.leistung h2 { margin-top: 2.25rem; }
.leistung h3 { font-size: 1.1rem; line-height: 1.35; margin: 1.5rem 0 .4rem; color: var(--petrol-dunkel); }
.leistung ul { margin: .5rem 0 1rem; padding-left: 1.25rem; }
.leistung li { margin-bottom: .35rem; }
.hinweis {
    padding: .75rem 1rem;
    background: var(--nebel);
    border-left: 4px solid var(--petrol);
}

footer {
    padding: 1rem;
    border-top: 1px solid var(--nebel);
    font-size: .95rem;
}

@media (max-width: 34rem) {
    h1 { font-size: 1.5rem; }
    nav ul { gap: 0 1.1rem; }
    .fotos, .raeume { grid-template-columns: 1fr; }
    .person { grid-template-columns: 6.5rem 1fr; gap: .9rem; }
}
