/* =================================================================
   SHK Niedermeyer – Design-System "Die drei Elemente"
   Wasser (blau) · Wärme (rot) · Luft (gelb) · Erde (anthrazit)
   ================================================================= */

:root {
    /* Marke / Elemente */
    --anthrazit:   #2b333f;
    --anthrazit-d: #20262f;
    --stahl:       #3a4451;
    --wasser:      #1f5fc4;
    --wasser-d:    #18488f;
    --feuer:       #e2231a;
    --feuer-d:     #b51a13;
    --luft:        #f5b400;
    --luft-d:      #cc9600;
    --erde:        #5b6675;

    /* Text & Flächen */
    --tinte:       #1a2230;
    --grau:        #57616f;
    --grau-hell:   #8b95a3;
    --weiss:       #ffffff;
    --nebel:       #f4f7fb;
    --nebel-2:     #e9eff6;
    --linie:       #e1e8f0;

    /* System */
    --accent:      var(--wasser);   /* wird je Element überschrieben */
    --accent-text: var(--wasser-d); /* dunklere Variante für Text auf hellem Grund */
    --gold-text:   #8a6800;         /* lesbares Gold für Luft-Texte (AA) */
    --radius:      14px;
    --radius-sm:   9px;
    --radius-lg:   24px;
    --shadow-sm:   0 1px 2px rgba(20,30,45,.06), 0 2px 8px rgba(20,30,45,.05);
    --shadow:      0 8px 30px rgba(20,30,45,.10);
    --shadow-lg:   0 22px 60px rgba(20,30,45,.18);
    --ring:        0 0 0 3px rgba(31,95,196,.35);

    --container:   1180px;
    --gap:         clamp(1.4rem, 4vw, 2.6rem);

    --font-display: "Barlow Semi Condensed", "Inter", system-ui, -apple-system, sans-serif;
    --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --header-h: 72px;
}

/* Element-Farbcodierung */
.el-wasser { --accent: var(--wasser); --accent-d: var(--wasser-d); --accent-text: var(--wasser-d); }
.el-waerme { --accent: var(--feuer);  --accent-d: var(--feuer-d);  --accent-text: var(--feuer-d); }
.el-luft   { --accent: var(--luft);   --accent-d: var(--luft-d);   --accent-text: var(--gold-text); }
.el-erde   { --accent: var(--erde);   --accent-d: var(--anthrazit); --accent-text: var(--stahl); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--tinte);
    background: var(--weiss);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
/* Standardgröße für Inline-Icons; spezifische Regeln (.btn svg, .usp__ic svg …) überschreiben das. */
svg { width: 1.25em; height: 1.25em; flex: 0 0 auto; }
a { color: var(--wasser-d); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.06; font-weight: 700; letter-spacing: .005em; color: var(--tinte); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p  { color: var(--grau); }
strong { color: var(--tinte); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---------- Layout-Hilfen ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(3.2rem, 7vw, 6rem); }
.section--nebel { background: var(--nebel); }
.section--dark { background: var(--anthrazit); color: #dfe5ee; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #b4bdc9; }
.section--dark .eyebrow { color: var(--accent); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.ic-xl { width: 42px; height: 42px; }
/* Scroll-Reveal: rein additiv – ohne JS bleibt alles sichtbar */
.reveal-init { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.revealed { opacity: 1; transform: none; }

/* Signatur: 3-Segment-Elementleiste */
.tristripe { display: inline-flex; height: 6px; width: 64px; border-radius: 99px; overflow: hidden; }
.tristripe span { flex: 1; }
.tristripe span:nth-child(1) { background: var(--wasser); }
.tristripe span:nth-child(2) { background: var(--feuer); }
.tristripe span:nth-child(3) { background: var(--luft); }
.tristripe--center { margin-inline: auto; }
.tristripe--lg { width: 90px; height: 8px; }

/* Sektions-Kopf */
.sec-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head.text-center { margin-inline: auto; }
.eyebrow {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 600;
    font-size: .82rem;
    color: var(--accent-text);
    display: inline-flex; align-items: center; gap: .6rem;
    margin-bottom: .8rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--accent); border-radius: 2px; }
.sec-head.text-center .eyebrow { justify-content: center; }
.sec-head p { margin-top: .9rem; font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--wasser);
    --btn-fg: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    background: var(--btn-bg); color: var(--btn-fg);
    font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em;
    padding: .85rem 1.5rem; border: 2px solid transparent; border-radius: 99px;
    transition: transform .14s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: 0 6px 18px rgba(31,95,196,.28);
    text-decoration: none; cursor: pointer; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31,95,196,.34); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn--call { --btn-bg: var(--feuer); box-shadow: 0 6px 18px rgba(226,35,26,.32); }
.btn--call:hover { box-shadow: 0 12px 28px rgba(226,35,26,.4); background: var(--feuer-d); }
.btn--ghost {
    --btn-bg: transparent; --btn-fg: var(--tinte);
    border-color: var(--linie); box-shadow: none; background: #fff;
}
.btn--ghost:hover { border-color: var(--wasser); color: var(--wasser-d); box-shadow: var(--shadow-sm); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--anthrazit); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn--lg { font-size: 1.15rem; padding: 1.05rem 1.9rem; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Notdienst-Topbar ---------- */
.topbar {
    background: var(--anthrazit); color: #eaf0f8;
    font-size: .9rem;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; padding-block: .35rem; }
.topbar__left { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.topbar__pulse { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--feuer); box-shadow: 0 0 0 0 rgba(226,35,26,.6); animation: pulse 2s infinite; }
.topbar__notdienst { font-weight: 600; color: #fff; }
.topbar__notdienst .lbl { color: var(--luft); }
.topbar a { color: #fff; }
.topbar__phone { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.topbar__phone:hover { color: var(--luft); text-decoration: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226,35,26,.55); } 70% { box-shadow: 0 0 0 8px rgba(226,35,26,0); } 100% { box-shadow: 0 0 0 0 rgba(226,35,26,0); } }

/* ---------- Header / Navigation ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--linie);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 46px; width: auto; }
.brand__txt { font-family: var(--font-display); font-weight: 700; line-height: 1; color: var(--anthrazit); }
.brand__txt b { display: block; font-size: 1.25rem; letter-spacing: .02em; }
.brand__txt span { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--grau-hell); font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: .25rem; }
.nav__links a {
    font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
    color: var(--tinte); padding: .5rem .8rem; border-radius: 8px; transition: background .15s, color .15s;
}
.nav__links a:hover { background: var(--nebel); color: var(--wasser-d); text-decoration: none; }
.nav__links a.is-active { color: var(--wasser-d); }
.nav__login { display: inline-flex; align-items: center; gap: .35rem; color: var(--wasser-d) !important; }
.nav__login svg { width: 17px; height: 17px; }
.nav__cta { margin-left: .4rem; }
.nav__toggle { display: none; background: none; border: 0; padding: .4rem; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--anthrazit); border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .2s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.has-dropdown { position: relative; }
.dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
    background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: .6rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s;
    display: grid; gap: 2px;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 8px; font-size: .98rem; }
.dropdown a:hover { background: var(--nebel); }
.dropdown .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--anthrazit); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; opacity: .42; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--anthrazit) 28%, rgba(43,51,63,.72) 55%, rgba(43,51,63,.35) 100%); }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(3.4rem, 8vw, 6.5rem); max-width: 720px; }
.hero__eyebrow { color: var(--luft); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .16em; font-weight: 600; font-size: .9rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .7rem; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.3rem); }
.hero h1 .accent { color: var(--luft); }
.hero__sub { color: #d7deea; font-size: clamp(1.08rem, 2vw, 1.3rem); margin-top: 1.2rem; max-width: 620px; }
.hero .btn-row { margin-top: 2rem; }
.hero__trust { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; }
.hero__trust li { display: flex; align-items: center; gap: .5rem; color: #e6ebf3; font-size: .98rem; }
.hero__trust svg { width: 20px; height: 20px; color: var(--luft); flex: 0 0 auto; }
.hero__stripe { position: absolute; bottom: 0; left: 0; right: 0; height: 7px; display: flex; z-index: 3; }
.hero__stripe i { flex: 1; transform: scaleX(0); transform-origin: left; }
.hero__stripe i:nth-child(1) { background: var(--wasser); animation: wipe .5s .15s forwards; }
.hero__stripe i:nth-child(2) { background: var(--feuer);  animation: wipe .5s .3s forwards; }
.hero__stripe i:nth-child(3) { background: var(--luft);   animation: wipe .5s .45s forwards; }
@keyframes wipe { to { transform: scaleX(1); } }

/* ---------- Schnell-Kontakt-Leiste ---------- */
.quickbar { background: var(--wasser); color: #fff; }
.quickbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.quickbar p { color: #eaf1ff; margin: 0; }
.quickbar strong { color: #fff; }

/* ---------- Leistungs-Grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.svc-card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; text-decoration: none; }
.svc-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--nebel-2); }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.svc-card:hover .svc-card__media img { transform: scale(1.05); }
.svc-card__icon { aspect-ratio: 16/10; display: grid; place-items: center; background: var(--accent); position: relative; }
.svc-card__icon svg { width: 64px; height: 64px; color: rgba(255,255,255,.95); }
.svc-card__icon.el-luft svg { color: var(--anthrazit); }
.svc-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; border-top: 4px solid var(--accent); }
.svc-card__tag { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--accent-text); margin-bottom: .35rem; }
.svc-card h3 { font-size: 1.32rem; }
.svc-card p { font-size: .97rem; margin-top: .45rem; }
.svc-card__more { margin-top: auto; padding-top: .9rem; font-family: var(--font-display); font-weight: 600; color: var(--wasser-d); display: inline-flex; align-items: center; gap: .4rem; }
.svc-card:hover .svc-card__more { gap: .65rem; }

/* ---------- Feature/USP-Reihen ---------- */
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.usp {
    background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
    padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm);
}
.usp__ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--nebel); background: color-mix(in srgb, var(--accent) 16%, #fff); color: var(--accent-text); margin-bottom: 1rem; }
.usp__ic svg { width: 26px; height: 26px; }
.usp h3 { font-size: 1.22rem; }
.usp p { margin-top: .5rem; font-size: .98rem; }

/* ---------- Split (Text + Bild) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 5vw, 4rem); align-items: center; }
.split--flip .split__media { order: -1; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.split__media { position: relative; }
.split__badge {
    position: absolute; bottom: -18px; left: -18px; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: .9rem 1.2rem; display: flex; align-items: center; gap: .7rem;
}
.split__badge .num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--wasser); line-height: 1; }
.split__badge small { color: var(--grau); font-size: .82rem; }

/* ---------- Ablauf / Schritte ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 2.4rem 1.4rem 1.4rem; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 1rem; right: 1.2rem; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--nebel-2); }
.step__n { position: absolute; top: -16px; left: 1.4rem; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; box-shadow: var(--shadow-sm); }
.step.el-luft .step__n { color: var(--anthrazit); }
.step h3 { font-size: 1.18rem; }
.step p { margin-top: .45rem; font-size: .96rem; }

/* ---------- Vorteile-Liste ---------- */
.checklist { display: grid; gap: .75rem; }
.checklist li { display: flex; align-items: flex-start; gap: .7rem; color: var(--tinte); }
.checklist svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.checklist--2 { grid-template-columns: 1fr 1fr; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 840px; }
.faq details { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--accent); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.3rem 1.2rem; }
.faq p { font-size: 1rem; }

/* ---------- CTA-Band ---------- */
.cta-band { background: linear-gradient(120deg, var(--wasser-d), var(--wasser)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.4rem); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e3ecfb; margin-top: .6rem; max-width: 560px; }
.cta-band .btn-row { margin-top: 1.6rem; position: relative; z-index: 2; }

/* ---------- Detail-Seiten (Leistung) ---------- */
.page-hero { background: var(--anthrazit); color: #fff; position: relative; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, var(--anthrazit) 35%, rgba(43,51,63,.6)); }
.page-hero--plain { background: linear-gradient(120deg, var(--accent-d, var(--anthrazit)), var(--accent)); }
.page-hero__inner { position: relative; z-index: 2; padding-block: clamp(2.8rem, 6vw, 4.6rem); max-width: 760px; }
.page-hero h1 { color: #fff; }
.page-hero__sub { color: #dbe2ec; font-size: 1.18rem; margin-top: 1rem; max-width: 640px; }
.page-hero .breadcrumb { color: #aeb8c6; font-size: .9rem; margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: #dfe6ef; }
.page-hero__tag { display: inline-block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: .8rem; color: #fff; background: var(--accent); padding: .3rem .8rem; border-radius: 99px; margin-bottom: 1rem; }
.page-hero.el-luft .page-hero__tag { color: var(--anthrazit); }

.prose { max-width: 760px; }
.prose p { margin-bottom: 1.1rem; font-size: 1.06rem; }
.prose h2 { margin-top: 2.2rem; margin-bottom: 1rem; }
.prose h2 + p { margin-top: 0; }

.layout-2col { display: grid; grid-template-columns: 1fr 320px; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.sidecard { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; }
.sidecard__top { border-top: 4px solid var(--accent); border-radius: 4px; }
.sidecard h3 { font-size: 1.3rem; }
.sidecard .phone { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--wasser-d); display: block; margin: .3rem 0 1rem; }
.sidecard ul { margin: 1rem 0; display: grid; gap: .5rem; }
.sidecard li { display: flex; gap: .5rem; align-items: center; font-size: .95rem; color: var(--grau); }
.sidecard li svg { width: 18px; height: 18px; color: var(--accent); }

.leistung-liste { display: grid; gap: 1rem; }
.leistung-item { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm); }
.leistung-item__ic { width: 42px; height: 42px; border-radius: 10px; background: var(--nebel); background: color-mix(in srgb, var(--accent) 16%, #fff); color: var(--accent-text); display: grid; place-items: center; flex: 0 0 auto; }
.leistung-item__ic svg { width: 22px; height: 22px; }
.leistung-item h3 { font-size: 1.16rem; }
.leistung-item p { font-size: .97rem; margin-top: .3rem; }

/* Unterthemen (ergänzende Leistungen) – zweispaltige Liste mit Element-Punkt */
.subthemes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.8rem; margin-top: 1.3rem; }
.subthemes li { position: relative; padding-left: 1.5rem; }
.subthemes li::before { content: ""; position: absolute; left: 0; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.subthemes h3 { font-size: 1.06rem; margin-bottom: .15rem; }
.subthemes p { font-size: .95rem; }
@media (max-width: 700px) { .subthemes { grid-template-columns: 1fr; } }

/* ---------- Orte-Grid (Einsatzgebiet) ---------- */
.orte-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.ort { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-sm); border-left: 4px solid var(--wasser); }
.ort h3 { font-size: 1.18rem; display: flex; align-items: center; gap: .5rem; }
.ort h3 svg { width: 18px; height: 18px; color: var(--wasser); }
.ort p { font-size: .94rem; margin-top: .4rem; }

/* ---------- Kontakt / Formular ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2.2rem); }
.form-card__top { height: 6px; display: flex; border-radius: 99px; overflow: hidden; margin-bottom: 1.4rem; }
.form-card__top i { flex: 1; }
.form-card__top i:nth-child(1){background:var(--wasser)} .form-card__top i:nth-child(2){background:var(--feuer)} .form-card__top i:nth-child(3){background:var(--luft)}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: .4rem; color: var(--tinte); }
.field label .req { color: var(--feuer); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: var(--tinte);
    padding: .8rem 1rem; border: 1.5px solid var(--linie); border-radius: var(--radius-sm); background: var(--nebel);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--wasser); background: #fff; box-shadow: var(--ring); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field--hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--grau); }
.consent input { width: auto; margin-top: 4px; }
.form-hint { font-size: .85rem; color: var(--grau-hell); margin-top: .4rem; }
.errors { background: #fdecea; border: 1px solid #f5c6c2; color: #a01910; border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1.2rem; }
.errors ul { display: grid; gap: .3rem; }
.errors li { font-size: .94rem; }
.alert-ok { background: #e8f6ec; border: 1px solid #b6e2c3; color: #1c6b35; border-radius: var(--radius-sm); padding: 1rem 1.2rem; }

.contact-info { display: grid; gap: 1rem; }
.info-row { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.info-row__ic { width: 44px; height: 44px; border-radius: 11px; background: var(--nebel); background: color-mix(in srgb, var(--wasser) 13%, #fff); color: var(--wasser-d); display: grid; place-items: center; flex: 0 0 auto; }
.info-row__ic svg { width: 22px; height: 22px; }
.info-row b { display: block; font-family: var(--font-display); }
.info-row a { color: var(--tinte); }

/* ---------- Footer ---------- */
.site-footer { background: var(--anthrazit-d); color: #aeb8c6; padding-block: clamp(2.6rem, 5vw, 4rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-brand__logo { background: #fff; border-radius: 12px; padding: .5rem .7rem; display: inline-block; }
.footer-brand__logo img { height: 48px; }
.footer-brand p { margin-top: 1rem; font-size: .94rem; color: #97a2b1; max-width: 32ch; }
.site-footer h4 { color: #fff; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; margin-bottom: 1rem; }
.footer-links { display: grid; gap: .55rem; }
.footer-links a { color: #b8c2d0; font-size: .96rem; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: grid; gap: .7rem; font-size: .96rem; }
.footer-contact a { color: #cdd6e2; }
.footer-contact .big { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.4rem; padding-top: 1.3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .86rem; color: #8893a3; }
.footer-bottom a { color: #aeb8c6; }
.footer-stripe { height: 5px; display: flex; }
.footer-stripe i { flex: 1; } .footer-stripe i:nth-child(1){background:var(--wasser)} .footer-stripe i:nth-child(2){background:var(--feuer)} .footer-stripe i:nth-child(3){background:var(--luft)}

/* ---------- Schwebender Anruf-Button (mobil) ---------- */
.fab-call {
    position: fixed; right: 16px; bottom: 16px; z-index: 60; display: none;
    width: 60px; height: 60px; border-radius: 50%; background: var(--feuer); color: #fff;
    align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(226,35,26,.45);
    animation: pulse 2.4s infinite;
}
.fab-call svg { width: 28px; height: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .layout-2col { grid-template-columns: 1fr; }
    .sidecard { position: static; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; }
    .split--flip .split__media { order: 0; }
}
@media (max-width: 800px) {
    .nav__links {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--linie); padding: .8rem 1.1rem 1.4rem; gap: .2rem;
        box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .28s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    .nav__links.open { transform: translateY(0); }
    .nav__links a { padding: .8rem .6rem; font-size: 1.1rem; }
    .nav__cta { margin: .6rem 0 0; }
    .nav__toggle { display: block; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--linie); border-radius: 0; margin-left: .6rem; padding-left: .4rem; }
    .has-dropdown > a::after { content: " ▾"; color: var(--grau-hell); }
    .fab-call { display: flex; }
    .checklist--2 { grid-template-columns: 1fr; }
    .topbar__notdienst .hide-sm { display: none; }
}
@media (max-width: 520px) {
    body { font-size: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .field--row { grid-template-columns: 1fr; }
    .btn--block-sm { display: flex; width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .hero__stripe i { transform: scaleX(1); }
}

/* ---------- Datei-Upload im Kontaktformular ---------- */
.optional { font-weight: 400; color: var(--grau-hell); font-size: .85em; }
input[type="file"] {
    width: 100%; font: inherit; color: var(--grau); cursor: pointer;
    padding: .55rem .7rem; border: 1px dashed var(--linie); border-radius: var(--radius-sm);
    background: #fbfcfe;
}
input[type="file"]:hover { border-color: var(--wasser); }
input[type="file"]::file-selector-button {
    font: inherit; font-weight: 600; cursor: pointer; margin-right: .8rem;
    padding: .45rem .9rem; border: 0; border-radius: var(--radius-sm);
    background: var(--wasser); color: #fff;
}
input[type="file"]::file-selector-button:hover { background: var(--wasser-d); }
.foto-preview { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.foto-preview__item { width: 84px; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.foto-preview__item img {
    width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm);
    border: 1px solid var(--linie); background: #fff;
}
.foto-preview__file {
    width: 84px; height: 84px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); border: 1px solid var(--linie);
    background: #fff; color: var(--wasser-d); font-weight: 700; font-size: .9rem; letter-spacing: .03em;
}
.foto-preview__cap { font-size: .72rem; color: var(--grau-hell); text-align: center; }
.foto-preview__cap.is-toobig { color: #c0392b; font-weight: 600; }
.foto-preview__note { width: 100%; font-size: .82rem; color: #c0392b; }

/* ============================================================
   Kundenbereich (Portal) + gemeinsame Status-Badges
   ============================================================ */
.muted { color: var(--grau-hell); }
.btn--gruen { --btn-bg: #1c7a3e; --btn-fg: #fff; background: #1c7a3e; color: #fff; }
.btn--gruen:hover { background: #176331; }

/* Status-Badges (gleich wie im Admin) */
.badge-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; padding: .2rem .6rem; border-radius: 99px; letter-spacing: .02em; white-space: nowrap; }
.badge-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-green { background: #e8f6ec; color: #1c7a3e; }
.st-blue { background: #e7f0fd; color: #1c4fa0; }
.st-amber { background: #fff6e0; color: #9a6b00; }
.st-red { background: #fdecea; color: #c01d12; }
.st-grey { background: #eceff3; color: #6b7686; }
.st-violet { background: #efeafb; color: #6b3fb5; }

/* Layout */
.portal-body { background: #f4f7fb; min-height: 100vh; display: flex; flex-direction: column; }
.portal-top { background: var(--anthrazit); color: #fff; }
.portal-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.portal-brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; }
.portal-brand img { width: 40px; height: 40px; border-radius: 8px; background: #fff; object-fit: contain; }
.portal-brand span { display: flex; flex-direction: column; font-size: .78rem; line-height: 1.2; color: #aeb9c8; }
.portal-brand strong { font-family: var(--font-display); font-size: 1rem; color: #fff; letter-spacing: .01em; }
.portal-nav { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.portal-nav a { color: #dbe3ee; text-decoration: none; font-weight: 600; font-size: .92rem; padding: .45rem .75rem; border-radius: 8px; display: inline-flex; align-items: center; gap: .35rem; }
.portal-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.portal-nav__out { color: #f3b4ad !important; }
.portal-main { flex: 1; padding: 2rem 0 3rem; }
.portal-foot { background: #fff; border-top: 1px solid var(--linie); padding: 1.2rem 0; text-align: center; color: var(--grau); font-size: .9rem; }

/* Login */
.portal-auth { max-width: 440px; margin: 2.5rem auto; }

/* Kopf */
.portal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.portal-head h1 { font-size: 1.8rem; margin-bottom: .2rem; }

/* Karten */
.portal-card { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 1.3rem; overflow: hidden; }
.portal-card__head { padding: 1rem 1.3rem; border-bottom: 1px solid var(--linie); }
.portal-card__head h2 { font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; }
.portal-card__head svg { width: 20px; height: 20px; color: var(--wasser-d); }
.portal-card__body { padding: 1.1rem 1.3rem; }
.portal-card--accent { border: 2px solid var(--wasser); box-shadow: 0 8px 30px rgba(31,95,196,.12); }
.portal-card--accent .portal-card__head { background: #eef4fe; border-bottom-color: #d4e3fb; }

/* Tabellen */
.portal-table-wrap { overflow-x: auto; }
.portal-table { width: 100%; border-collapse: collapse; }
.portal-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--grau-hell); padding: .5rem .6rem; border-bottom: 1px solid var(--linie); font-weight: 700; }
.portal-table td { padding: .75rem .6rem; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.portal-table tr:last-child td { border-bottom: 0; }
.portal-table .num { text-align: right; white-space: nowrap; }
.portal-table th.num { text-align: right; }

/* Angebots-Box (Annahme) */
.angebot-box { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .9rem 0; border-bottom: 1px solid #eef2f7; }
.angebot-box:last-child { border-bottom: 0; }
.angebot-box__info { display: flex; flex-direction: column; gap: .15rem; }
.angebot-box__info strong { font-size: 1.05rem; }
.angebot-box__sum { font-size: 1.25rem; font-weight: 700; color: var(--anthrazit); }
.angebot-box__actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.angebot-box__actions form { margin: 0; }

/* Hinweise */
.portal-note { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-size: .95rem; }
.portal-note--ok { background: #e8f6ec; color: #176331; border: 1px solid #bce3c8; }
.portal-note--err { background: #fdecea; color: #b3271b; border: 1px solid #f3c7c1; }

/* Arbeitsschritte im Kundenbereich */
.schritt { border-top: 1px solid var(--linie); padding: .8rem 0; }
.schritt__fotos { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.schritt__fotos img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }

/* --- Cookie-Consent-Banner --- */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: #23272b; color: #fff; box-shadow: 0 -2px 14px rgba(0,0,0,.25); }
.consent-banner[hidden] { display: none; }
.consent-banner__inner { max-width: 1100px; margin: 0 auto; padding: 1rem 1.2rem; display: flex; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.consent-banner__text { margin: 0; font-size: .9rem; line-height: 1.45; flex: 1 1 340px; }
.consent-banner__text a { color: #fff; text-decoration: underline; }
.consent-banner__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
