/* Vermessungsbüro Stier – Stylesheet
   Keine externen Schriften (Datenschutz): System-Schriften des Geräts. */

:root {
    --rot: #a80000;
    --rot-dunkel: #7d0000;
    --schwarz: #1a1a1a;
    --text: #2b2b2b;
    --grau-text: #5c5c5c;
    --grau-hell: #f4f3f1;
    --linie: #dedbd6;
    --weiss: #fff;
    --breite: 1100px;
    --abstand: clamp(1rem, 4vw, 2rem);
    --radius: 4px;
    --kopf-hoehe: 100px;
    --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--schrift);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--weiss);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); text-underline-offset: .2em; }
a:hover { color: var(--rot-dunkel); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }

h1, h2, h3, h4 { color: var(--schwarz); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); margin-top: 2.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--schwarz); color: var(--weiss); padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; color: var(--weiss); }

.offen { background: #fff3c4; color: #6b5200; padding: 0 .3em; border-radius: var(--radius); font-style: italic; }

/* ---------- Kopf ---------- */
.kopf {
    position: sticky; top: 0; z-index: 50;
    background: var(--weiss);
    border-bottom: 3px solid var(--rot);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .12);
}
.kopf__innen {
    max-width: var(--breite); margin: 0 auto; padding: .6rem var(--abstand);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.kopf__logo img { width: 240px; height: auto; }

.navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem 1.6rem; flex-wrap: wrap; }
.navigation a { color: var(--schwarz); text-decoration: none; font-weight: 600; padding: .4rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.navigation a:hover { color: var(--rot); border-bottom-color: var(--rot); }

.menue-knopf { display: none; }

@media (max-width: 820px) {
    :root { --kopf-hoehe: 76px; }
    .kopf__logo img { width: 160px; }
    .js .menue-knopf {
        display: inline-flex; align-items: center; gap: .5rem;
        background: none; border: 1px solid var(--linie); border-radius: var(--radius);
        padding: .5rem .8rem; font: inherit; font-weight: 600; color: var(--schwarz); cursor: pointer;
    }
    .menue-knopf__linie, .menue-knopf__linie::before, .menue-knopf__linie::after {
        display: block; width: 18px; height: 2px; background: var(--schwarz); position: relative;
    }
    .menue-knopf__linie::before, .menue-knopf__linie::after { content: ""; position: absolute; left: 0; }
    .menue-knopf__linie::before { top: -6px; }
    .menue-knopf__linie::after { top: 6px; }

    .kopf__innen { flex-wrap: wrap; }
    .navigation { width: 100%; }
    .navigation ul { flex-direction: column; gap: 0; padding-bottom: .5rem; }
    .navigation li + li { border-top: 1px solid var(--linie); }
    .navigation a { display: block; padding: .75rem 0; border-bottom: 0; }
    .js .navigation { display: none; }
    .js .navigation.ist-offen { display: block; }
}

/* ---------- Knöpfe ---------- */
.knopf {
    display: inline-block; background: var(--rot); color: var(--weiss);
    padding: .75rem 1.4rem; border-radius: var(--radius); font-weight: 700; text-decoration: none;
    border: 2px solid var(--rot);
}
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: var(--weiss); }
.knopf--hell { background: transparent; color: var(--rot); }
.knopf--hell:hover { background: var(--rot); color: var(--weiss); }
.knopf--rahmen { background: transparent; color: var(--weiss); border-color: var(--weiss); }
.knopf--rahmen:hover { background: var(--weiss); border-color: var(--weiss); color: var(--rot); }

/* ---------- Held (oberer Bereich): Bild über die ganze Breite ---------- */
.held {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: calc(100vh - var(--kopf-hoehe));
    min-height: calc(100svh - var(--kopf-hoehe));
    display: flex; align-items: center;
    background: var(--schwarz); color: var(--weiss);
}
.held__hintergrund, .held__hintergrund img {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
}
.held__hintergrund { z-index: -2; }
.held__hintergrund img { object-fit: cover; object-position: 60% 40%; }
.held::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(10, 10, 10, .82) 0%, rgba(10, 10, 10, .55) 50%, rgba(10, 10, 10, .15) 100%),
        linear-gradient(0deg, rgba(10, 10, 10, .45) 0%, rgba(10, 10, 10, 0) 35%);
}
.held__innen { width: 100%; max-width: var(--breite); margin: 0 auto; padding: clamp(3rem, 10vh, 6rem) var(--abstand) clamp(4.5rem, 12vh, 7rem); }
.held__text { max-width: 40rem; border-left: 4px solid var(--rot); padding-left: clamp(1rem, 3vw, 2rem); }
.held h1 { color: var(--weiss); font-size: clamp(2.2rem, 6vw, 4rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.held__vorzeile { color: var(--weiss); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; margin-bottom: .6rem; opacity: .9; }
.held__einleitung { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: rgba(255, 255, 255, .92); max-width: 34em; }
.held__aktionen { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.held__weiter {
    position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
    width: 2.8rem; height: 2.8rem; border: 2px solid rgba(255, 255, 255, .7); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.held__weiter span {
    width: .7rem; height: .7rem; margin-top: -.3rem;
    border: solid var(--weiss); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.held__weiter:hover { background: var(--rot); border-color: var(--rot); }
.held__weiter:focus-visible { outline-color: var(--weiss); }

@media (max-width: 700px) {
    .held__hintergrund img { object-position: 65% 50%; }
    .held::before { background: linear-gradient(0deg, rgba(10, 10, 10, .85) 0%, rgba(10, 10, 10, .55) 55%, rgba(10, 10, 10, .35) 100%); }
    .held { align-items: flex-end; }
}

/* ---------- Bildflächen: große Bilder als Hintergrund von Abschnitten ---------- */
.bildflaeche {
    position: relative; isolation: isolate; color: var(--weiss);
    background-color: var(--schwarz); background-size: cover; background-position: center;
}
.bildflaeche::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 10, 10, .6); }
.bildflaeche__innen { max-width: var(--breite); margin: 0 auto; padding: clamp(5rem, 16vw, 11rem) var(--abstand) clamp(3rem, 8vw, 5rem); }
.bildflaeche__innen > p { max-width: 44em; font-size: 1.12rem; color: rgba(255, 255, 255, .92); }
.bildflaeche h2 { color: var(--weiss); max-width: 22em; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.bildflaeche__notiz { font-size: .85rem; opacity: .75; margin-top: 2rem; }

.bildflaeche--schlossberg { background-image: url("../img/stiftskirche-3d-800.jpg"); }
.bildflaeche--schlossberg::before { background: linear-gradient(0deg, rgba(10, 10, 10, .85) 0%, rgba(10, 10, 10, .45) 70%, rgba(10, 10, 10, .3) 100%); }

/* Kontakt: Foto unter rotem Schleier (Handy: Laserscanner, sonst Brocken – oben läuft jeweils das andere Bild) */
.abschnitt.bildflaeche--brocken {
    position: relative; isolation: isolate;
    background-image: url("../img/laserscanner-800.jpg"); background-size: cover; background-position: center;
    padding: clamp(4rem, 12vw, 8rem) 0;
}
.bildflaeche--brocken::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, rgba(125, 0, 0, .95) 0%, rgba(168, 0, 0, .85) 45%, rgba(60, 0, 0, .6) 100%);
}

@media (min-width: 701px) {
    .abschnitt.bildflaeche--brocken { background-image: url("../img/brocken-gnss-1600.jpg"); background-position: center 45%; }
}
@media (min-width: 801px) {
    .bildflaeche--schlossberg { background-image: url("../img/stiftskirche-3d-1600.jpg"); }
}
/* Ruhiger Bildlauf (Parallax) nur auf großen Bildschirmen mit Maus und ohne Wunsch nach weniger Bewegung */
@media (min-width: 1024px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
    .bildflaeche, .abschnitt.bildflaeche--brocken { background-attachment: fixed; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.abschnitt__innen { max-width: var(--breite); margin: 0 auto; padding: 0 var(--abstand); }
.abschnitt__innen--schmal { max-width: 760px; }
.abschnitt--grau { background: var(--grau-hell); }
.abschnitt--mit-bildkopf { padding-top: 0; }
.abschnitt--mit-bildkopf > .abschnitt__innen { padding-top: clamp(2rem, 5vw, 3.5rem); }
.abschnitt--rot { background: var(--rot); color: var(--weiss); }
.abschnitt--rot h2, .abschnitt--rot a { color: var(--weiss); }
.abschnitt--rot .offen { color: #6b5200; }

.abschnitt h2::after {
    content: ""; display: block; width: 56px; height: 4px; background: var(--rot); margin-top: .5rem;
}
.abschnitt--rot h2::after, .bildflaeche h2::after { background: var(--weiss); }

.leistungsgruppe > p { color: var(--grau-text); max-width: 46em; }

.karten { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.karten--drei { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-top: 4px solid var(--rot); border-radius: var(--radius); padding: 1.2rem 1.2rem .4rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); transition: box-shadow .2s, transform .2s; }
.karte:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .1); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .karte, .karte:hover { transition: none; transform: none; } }
.karte p { color: var(--grau-text); font-size: .98rem; }

.zielgruppen { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.zielgruppen li { padding-left: 1.4rem; position: relative; }
.zielgruppen li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; background: var(--rot); }
.zielgruppen strong { display: block; color: var(--schwarz); }

.zweispaltig { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) {
    .zweispaltig { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
    .zweispaltig--bild-links { grid-template-columns: 320px 1fr; }
}

.haken { list-style: none; padding: 0; margin: 0; }
.haken--spalten { display: grid; gap: .4rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.haken li { position: relative; padding-left: 1.8rem; margin-bottom: .8rem; }
.haken li::before {
    content: ""; position: absolute; left: .15rem; top: .35em; width: .45rem; height: .85rem;
    border: solid var(--rot); border-width: 0 3px 3px 0; transform: rotate(45deg);
}


.ablauf { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: none; }
.ablauf__schritt { background: var(--weiss); border-radius: var(--radius); padding: 1.2rem; border: 1px solid var(--linie); }
.ablauf__nr {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.2rem; height: 2.2rem; background: var(--rot); color: var(--weiss); font-weight: 700; margin-bottom: .6rem;
}
.ablauf__technik { font-weight: 600; color: var(--schwarz); font-size: .95rem; }

.portrait { margin: 0; }
.portrait img { border-radius: var(--radius); width: 100%; max-width: 320px; box-shadow: -10px 10px 0 var(--rot); }
@media (max-width: 899px) { .portrait img { max-width: 260px; } }
.unterzeile { font-size: 1.2rem; font-weight: 600; color: var(--rot); }
.unterschrift { margin-top: 1.5rem; }

.kontakt { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.5rem 0 0; }
.kontakt dt { font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; opacity: .85; }
.kontakt dd { margin: .3rem 0 0; font-size: 1.15rem; }

.rechtliches h2 { font-size: 1.25rem; margin-top: 2rem; }
.rechtliches h2::after { display: none; }

/* ---------- Fuß ---------- */
.fuss { background: var(--schwarz); color: #d6d6d6; font-size: .95rem; }
.fuss__innen {
    max-width: var(--breite); margin: 0 auto; padding: 2rem var(--abstand);
    display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; align-items: center;
}
.fuss strong { color: var(--weiss); }
.fuss__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.fuss a { color: var(--weiss); }
.fuss a[aria-current="page"] { text-decoration-thickness: 2px; }
.fuss__copy { color: #9a9a9a; }
