/* ==========================================================================
   Paul Walz GmbH – Stylesheet
   Farben, Schriften und Abstände zentral über CSS-Variablen steuerbar.
   ========================================================================== */

:root {
    --blau:        #1b4f8f;   /* Markenfarbe / Logo */
    --blau-dunkel: #133d70;
    --blau-tief:   #0e2a4d;
    --blau-hell:   #eaf1f9;
    --gold:        #b08d57;   /* feiner Akzent */
    --text:        #1d2733;
    --text-weich:  #4f5d6e;
    --grund:       #ffffff;
    --grund-alt:   #f5f7fa;
    --linie:       #dbe3ed;
    --gruen:       #2e7d4f;
    --rot:         #a63a3a;

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius: 6px;
    --schatten: 0 1px 2px rgba(14, 42, 77, .06), 0 8px 24px rgba(14, 42, 77, .07);
    --breite: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--grund);
}

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

a { color: var(--blau); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blau-dunkel); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(27, 79, 143, .35);
    outline-offset: 2px;
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--blau-tief);
    margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 20px; }

.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: 12px; top: -48px; z-index: 100;
    background: var(--blau); color: #fff; padding: 8px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Topbar ---------- */
.topbar { background: var(--blau-tief); color: #c9d6e8; font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__kontakt { display: flex; gap: 10px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa7b8; }
.status--offen::before { background: #5ecf8c; box-shadow: 0 0 0 3px rgba(94, 207, 140, .2); }

/* ---------- Kopfbereich & Navigation ---------- */
.kopf {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--linie);
    backdrop-filter: saturate(140%) blur(6px);
}
.kopf__inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.logo__zeichen { width: 68px; height: auto; }
.logo__claim {
    position: relative; padding-top: 10px;
    font-size: .68rem; line-height: 1.55; letter-spacing: .2em; text-transform: uppercase;
    color: #4d6079; font-weight: 500;
}
.logo__claim::before {   /* goldener Strich */
    content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 1.5px; background: var(--gold);
}
.logo--hell .logo__claim { color: #c9d6e8; }
.logo--hell .logo__claim::before { background: #d4b483; }

.hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.hauptnav a {
    display: block; padding: 8px 12px; border-radius: var(--radius);
    color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.hauptnav a:hover { background: var(--blau-hell); color: var(--blau-dunkel); }
.hauptnav a[aria-current="page"] { color: var(--blau); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

.nav-toggle {
    display: none; background: none; border: 1px solid var(--linie); border-radius: var(--radius);
    width: 46px; height: 42px; cursor: pointer; position: relative;
}
.nav-toggle__balken, .nav-toggle__balken::before, .nav-toggle__balken::after {
    position: absolute; left: 12px; width: 20px; height: 2px; background: var(--blau-tief); content: "";
    transition: transform .2s, opacity .2s;
}
.nav-toggle__balken { top: 20px; }
.nav-toggle__balken::before { left: 0; top: -6px; }
.nav-toggle__balken::after  { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__balken { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__balken::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__balken::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
    .nav-toggle { display: block; }
    .hauptnav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: #fff; border-bottom: 1px solid var(--linie); box-shadow: var(--schatten);
    }
    .hauptnav.offen { display: block; }
    .hauptnav ul { flex-direction: column; padding: 8px 20px 16px; }
    .hauptnav a { padding: 12px 8px; border-bottom: 1px solid var(--grund-alt); border-radius: 0; }
    .hauptnav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
    .logo__zeichen { width: 54px; }
    .logo { gap: 12px; }
    .kopf__inner { min-height: 70px; }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--blau-tief) 0%, var(--blau) 100%);
    color: #fff;
}
.hero__emblem {   /* Ringe (Brillenglas & Zifferblatt) mit Logo im Zentrum */
    position: absolute; right: -140px; top: 50%; width: 560px; height: 560px;
    transform: translateY(-50%); border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 0 0 60px rgba(255, 255, 255, .03), 0 0 0 61px rgba(255, 255, 255, .08),
                0 0 0 140px rgba(255, 255, 255, .02), 0 0 0 141px rgba(212, 180, 131, .18);
    display: grid; place-items: center; pointer-events: none;
}
.hero__emblem img {
    width: 160px; height: auto; opacity: .82;
    transform: translate(6px, 16px);   /* leicht nach rechts unten versetzt – ruhender Gegenpol zum Licht */
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .25));
}
.hero__licht { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero__emblem img { position: relative; }
.licht-funkeln { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
    .licht-puls { animation: licht-puls 7s ease-in-out infinite; }
    .licht-funkeln { animation: licht-funkeln 7s ease-in-out infinite; }
}
@keyframes licht-puls { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
@keyframes licht-funkeln { 0%, 100% { opacity: .35; } 50% { opacity: .55; } }
@media (max-width: 1020px) { .hero__emblem img, .hero__licht { display: none; } }
.hero__inner { position: relative; z-index: 1; padding: clamp(64px, 10vw, 120px) 20px; max-width: var(--breite); }
.hero__dachzeile {
    font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: #d4b483; margin-bottom: 18px;
    display: flex; align-items: center; gap: 12px;
}
.hero__dachzeile::before { content: ""; width: 32px; height: 1px; background: #d4b483; }
.hero h1 { color: #fff; max-width: 15em; }
.hero p { font-size: 1.15rem; max-width: 36em; color: #dbe6f3; }
.hero__aktionen { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.seitenkopf { background: var(--blau-hell); border-bottom: 1px solid var(--linie); }
.seitenkopf .container { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(32px, 5vw, 48px); }
.seitenkopf h1 { margin-bottom: .3em; }
.seitenkopf p { color: var(--text-weich); max-width: 42em; margin: 0; font-size: 1.1rem; }
.brotkrumen { font-size: .85rem; color: var(--text-weich); margin-bottom: 10px; }
.brotkrumen a { color: var(--text-weich); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--radius); font-weight: 600; font-size: 1rem;
    text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
    transition: background .15s, color .15s, border-color .15s;
}
.btn--primaer { background: var(--blau); color: #fff; }
.btn--primaer:hover { background: var(--blau-dunkel); color: #fff; }
.btn--hell { background: #fff; color: var(--blau-tief); }
.btn--hell:hover { background: var(--blau-hell); color: var(--blau-tief); }
.btn--rahmen { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--rahmen:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(56px, 8vw, 96px) 0; }
.abschnitt--alt { background: var(--grund-alt); }
.abschnitt__kopf { max-width: 44em; margin-bottom: 40px; }
.abschnitt__kopf p { color: var(--text-weich); font-size: 1.1rem; }
.dachzeile {
    display: block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--gold); font-weight: 600; margin-bottom: 10px;
}
.text-schmal { max-width: 46em; }

/* Vertrauensleiste */
.vertrauen { border-bottom: 1px solid var(--linie); background: #fff; }
.vertrauen ul {
    list-style: none; margin: 0; padding: 28px 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.vertrauen li { display: flex; flex-direction: column; }
.vertrauen strong { font-family: var(--serif); font-size: 1.6rem; color: var(--blau); font-weight: 600; line-height: 1.2; }
.vertrauen span { color: var(--text-weich); font-size: .92rem; }
@media (max-width: 760px) { .vertrauen ul { grid-template-columns: repeat(2, 1fr); } .vertrauen strong { font-size: 1.15rem; hyphens: manual; } }

/* Karten */
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.karte {
    background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
    padding: 32px 28px; box-shadow: var(--schatten); display: flex; flex-direction: column;
}
.karte__icon {
    width: 52px; height: 52px; border-radius: 50%; background: var(--blau-hell); color: var(--blau);
    display: grid; place-items: center; margin-bottom: 18px;
}
.karte__icon svg { width: 26px; height: 26px; }
.karte p { color: var(--text-weich); }
.karte ul { padding-left: 1.1em; color: var(--text-weich); margin: 0 0 1em; }
.karte .mehr { margin-top: auto; font-weight: 600; text-decoration: none; }
.karte .mehr::after { content: " →"; }
@media (max-width: 900px) { .karten { grid-template-columns: 1fr; } }

/* Zwei Spalten Text/Bild */
.zweispaltig { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.zweispaltig--umgekehrt > :first-child { order: 2; }
@media (max-width: 860px) {
    .zweispaltig { grid-template-columns: 1fr; }
    .zweispaltig--umgekehrt > :first-child { order: 0; }
}

/* Zitat */
.zitat {
    border-left: 3px solid var(--gold); padding: 4px 0 4px 24px; margin: 28px 0;
    font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--blau-tief);
}

/* Bilder & Platzhalter */
.bild { margin: 0; }
.bild img { border-radius: var(--radius); box-shadow: var(--schatten); width: 100%; }
.bild figcaption { font-size: .88rem; color: var(--text-weich); margin-top: 10px; }
.platzhalter {
    aspect-ratio: 4 / 3; border-radius: var(--radius);
    background:
        repeating-linear-gradient(135deg, transparent 0 14px, rgba(27, 79, 143, .04) 14px 15px),
        var(--blau-hell);
    border: 1px dashed #b7c7dc; color: var(--blau-dunkel);
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding: 20px; gap: 4px;
}
.platzhalter span { font-family: var(--serif); font-size: 1.05rem; }
.platzhalter small { font-size: .78rem; color: var(--text-weich); font-family: ui-monospace, Menlo, Consolas, monospace; }
.bild--portrait .platzhalter { aspect-ratio: 4 / 5; }
.bild--breit .platzhalter { aspect-ratio: 16 / 9; }

.bildgruppe { display: grid; gap: 24px; }

/* Zeitstrahl */
.zeitstrahl { list-style: none; margin: 0; padding: 0; position: relative; }
.zeitstrahl::before { content: ""; position: absolute; left: 88px; top: 8px; bottom: 8px; width: 1px; background: var(--linie); }
.zeitstrahl li { display: grid; grid-template-columns: 88px 1fr; gap: 36px; padding: 0 0 36px; position: relative; }
.zeitstrahl li::after {
    content: ""; position: absolute; left: 82px; top: 10px; width: 13px; height: 13px; border-radius: 50%;
    background: #fff; border: 2px solid var(--blau);
}
.zeitstrahl li:last-child::after { background: var(--gold); border-color: var(--gold); }
.zeitstrahl__jahr { font-family: var(--serif); font-size: 1.5rem; color: var(--blau); font-weight: 600; text-align: right; padding-right: 8px; line-height: 1.4; }
.zeitstrahl h3 { margin-bottom: .3em; }
.zeitstrahl p { color: var(--text-weich); margin: 0; }
@media (max-width: 560px) {
    .zeitstrahl::before { left: 6px; }
    .zeitstrahl li { grid-template-columns: 1fr; gap: 4px; padding-left: 32px; }
    .zeitstrahl li::after { left: 0; top: 8px; }
    .zeitstrahl__jahr { text-align: left; padding: 0; }
}

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person h3 { margin: 18px 0 2px; }
.person__rolle { color: var(--gold); font-weight: 600; font-size: .95rem; margin: 0 0 8px; }
.person p { color: var(--text-weich); }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; max-width: 420px; } }

/* Info-Kästen / Leistungslisten */
.infokasten {
    background: #fff; border: 1px solid var(--linie); border-left: 3px solid var(--blau);
    border-radius: var(--radius); padding: 24px 28px; margin: 0 0 20px;
}
.infokasten h3 { margin-bottom: .4em; }
.infokasten p:last-child { margin-bottom: 0; }

.leistung { padding: 48px 0; border-top: 1px solid var(--linie); }
.leistung:first-of-type { border-top: 0; padding-top: 0; }
.haken { list-style: none; padding: 0; margin: 0 0 1em; columns: 2; column-gap: 32px; }
.haken li { padding-left: 26px; position: relative; margin-bottom: 8px; break-inside: avoid; }
.haken li::before {
    content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px;
    border-left: 2px solid var(--blau); border-bottom: 2px solid var(--blau); transform: rotate(-45deg);
}
@media (max-width: 600px) { .haken { columns: 1; } }

/* Öffnungszeiten */
.zeiten { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.zeiten th, .zeiten td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.zeiten th { font-weight: 600; width: 40%; }
.zeiten tr.heute { background: var(--blau-hell); }
.zeiten tr.heute th::after { content: "heute"; margin-left: 8px; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blau); font-weight: 700; }

.raster-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .raster-2 { grid-template-columns: 1fr; } }

.entfernungen { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.entfernungen li { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px; text-align: center; }
.entfernungen strong { display: block; font-family: var(--serif); font-size: 1.4rem; color: var(--blau); }
.entfernungen span { font-size: .9rem; color: var(--text-weich); }

/* Kontaktformular */
.formular { display: grid; gap: 18px; }
.formular .zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .formular .zeile { grid-template-columns: 1fr; } }
.formular label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.formular input[type="text"], .formular input[type="email"], .formular input[type="tel"], .formular textarea {
    width: 100%; padding: 12px 14px; font: inherit; color: var(--text);
    border: 1px solid #c3cfdd; border-radius: var(--radius); background: #fff;
}
.formular textarea { min-height: 160px; resize: vertical; }
.formular input:focus, .formular textarea:focus { border-color: var(--blau); }
.formular .einwilligung { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--text-weich); }
.formular .einwilligung input { margin-top: 5px; }
.formular .pflicht { color: var(--rot); }
.hp-feld { position: absolute !important; left: -9999px !important; }

.meldung { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.meldung--ok { background: #e8f5ee; border: 1px solid #b9dfc8; color: #1f5a38; }
.meldung--fehler { background: #fbecec; border: 1px solid #ecc2c2; color: #7d2525; }
.meldung ul { margin: 6px 0 0; padding-left: 1.2em; }

.kontaktkarte { background: var(--blau-tief); color: #dbe6f3; border-radius: var(--radius); padding: 32px; }
.kontaktkarte h2, .kontaktkarte h3 { color: #fff; }
.kontaktkarte a { color: #fff; }
.kontaktkarte address { font-style: normal; margin-bottom: 1em; }
.kontaktkarte .zeiten th, .kontaktkarte .zeiten td { border-color: rgba(255, 255, 255, .12); padding: 8px 0; }
.kontaktkarte .zeiten tr.heute { background: rgba(255, 255, 255, .06); }
.kontaktkarte .zeiten tr.heute th::after { color: #d4b483; }

/* Rechtstexte */
.rechtstext h2 { font-size: 1.4rem; margin-top: 1.8em; }
.rechtstext h3 { font-size: 1.1rem; margin-top: 1.4em; font-family: var(--sans); font-weight: 700; color: var(--text); }
.rechtstext address { font-style: normal; margin-bottom: 1em; }

/* Handlungsaufforderung */
.cta { background: var(--blau); color: #fff; }
.cta .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 48px; }
.cta h2 { color: #fff; margin: 0 0 .2em; }
.cta p { color: #dbe6f3; margin: 0; }

/* ---------- Fußbereich ---------- */
.fuss { background: var(--blau-tief); color: #b9c8dc; font-size: .95rem; }
.fuss__raster { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.fuss h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: #d4b483; margin-bottom: 14px; }
.fuss a { color: #fff; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss address { font-style: normal; margin-bottom: 1em; }
.fuss__logo { margin-bottom: 18px; }
.fuss__hinweis { color: #d4b483; }
.fuss__unten { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; }
.fuss__unten-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.fuss__unten nav { display: flex; gap: 20px; }
@media (max-width: 860px) { .fuss__raster { grid-template-columns: 1fr; gap: 28px; } }

@media print {
    .topbar, .kopf, .fuss, .nav-toggle, .cta { display: none; }
    body { font-size: 11pt; }
}
