/* ======================================================================
   Anlagenausweis – Shop & Kopfzeile
   Gestaltungsidee: Das Produkt ist ein Typenschild. Schilder mit Schrauben,
   Signalgelb (RAL 1003) als einzige Akzentfarbe, Graphit, Zinkgrau.
   ====================================================================== */
:root {
    --gelb: #F2B705;
    --gelb-hell: #FCF0C7;
    --blau: #1D5C8C;
    --graphit: #2B3036;
    --zink: #E3E6E8;
    --max: 72rem;
}

body.shop, body:not(.admin):not(.druck) { background: var(--papier); }

/* ---------- Kopfzeile ---------- */
.kopf {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
    background: rgba(255,255,255,.94); backdrop-filter: saturate(1.2) blur(6px);
    border-bottom: 1px solid var(--linie);
}
.kopf-innen {
    max-width: max(var(--max), 84rem); margin: 0 auto; padding: .55rem 1.25rem;
    display: flex; align-items: center; gap: .5rem 1.5rem; flex-wrap: nowrap;   /* Kopfzeile immer einzeilig */
}
.marke { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--graphit); flex: none; }
.marke span { font: 700 1.45rem/1 var(--schrift-schmal); letter-spacing: .01em; }
.logo { display: block; color: var(--graphit); flex: none; }
.haupt { display: flex; gap: 1.4rem; margin-right: auto; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.haupt::-webkit-scrollbar { display: none; }
.haupt a { flex: none; }
.haupt a, .kopf-rechts a { text-decoration: none; color: var(--graphit); font-weight: 500; }
.haupt a:hover, .haupt a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--gelb); }
.kopf-rechts { display: flex; align-items: center; gap: 1rem; flex: none; margin-left: auto; }
.konto-link span { white-space: nowrap; }
.symbol-link, .konto-link { position: relative; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem; border-radius: 6px; }
.symbol-link:hover, .konto-link:hover { background: var(--papier); }
.badge {
    position: absolute; top: -.2rem; right: -.35rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem;
    border-radius: 999px; background: var(--gelb); color: var(--gelb-tinte);
    font: 700 .75rem/1.15rem var(--schrift); text-align: center;
}
/* Wenig Platz: Admin/Anmelden nur als Symbol (Text bleibt für Screenreader), Abstände enger */
@media (max-width: 80rem) {
    .kopf-innen { gap: .5rem 1.1rem; }
    .kopf-rechts { gap: .6rem; }
    .kopf .konto-link { padding: .38rem .5rem; }
    .konto-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Noch enger: Schriftzug neben dem Logo weglassen, Navigation etwas kleiner */
@media (max-width: 64rem) {
    .marke span { display: none; }
    .haupt { gap: 1rem; font-size: .95rem; }
}
/* Handy: nur das Logo-Bild, Navigation in derselben Zeile seitlich wischbar */
@media (max-width: 46rem) {
    .kopf-innen { gap: .5rem .8rem; padding: .5rem .75rem; }
    .marke span { display: none; }
    .haupt { gap: 1rem; font-size: .95rem; padding: .2rem 0;
             -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
}

/* ---------- Grundgerüst ---------- */
.seite { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.abschnitt { padding: 4.5rem 0; }
.band { background: #fff; border-block: 1px solid var(--linie); }
.abschnitt h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: .8rem; }
.einleitung { max-width: 40rem; font-size: 1.15rem; color: var(--grau); margin: 0 0 2.2rem; }
.btn-gross { font-size: 1.1rem; padding: .8rem 1.4rem; border-radius: 8px; }
.btn.gelb, button.gelb { background: var(--gelb); border-color: var(--gelb); color: var(--gelb-tinte); }
.btn.gelb:hover, button.gelb:hover { background: var(--gelb-hover); border-color: var(--gelb-hover); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding: 4rem 0 4.5rem; }
.hero h1 {
    font-size: clamp(2.8rem, 6.4vw, 4.9rem); line-height: .98; font-weight: 700; letter-spacing: -.005em;
    margin: 0 0 1.2rem; max-width: 13ch;
}
.hero .lead { font-size: 1.2rem; max-width: 34rem; margin: 0 0 1.8rem; }
.hero-aktionen { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-hinweis { margin-top: 1.4rem; color: var(--grau); font-size: .95rem; }
@media (max-width: 56rem) { .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2.5rem; } }

/* Das Demo-Schild */
.demo-schild {
    position: relative; background: #fff; border-radius: 16px; padding: 1.1rem 1.4rem 0;
    box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(43,48,54,.08), 0 30px 60px -30px rgba(43,48,54,.45);
    transform: rotate(-1.5deg); max-width: 30rem; justify-self: center; width: 100%;
}
.demo-schild::before, .demo-schild::after, .demo-schrauben::before, .demo-schrauben::after {
    content: ""; position: absolute; width: .9rem; height: .9rem; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff, #C9CED2 60%, #A9AFB4);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.demo-schild::before { top: .7rem; left: .7rem; } .demo-schild::after { top: .7rem; right: .7rem; }
.demo-schrauben::before { bottom: .7rem; left: .7rem; } .demo-schrauben::after { bottom: .7rem; right: .7rem; }
.demo-kopf { display: flex; align-items: center; gap: .8rem; background: var(--gelb); color: var(--gelb-tinte); margin: .9rem -.2rem 1.1rem; padding: .7rem 1rem; }
.demo-kopf svg { flex: none; }
.demo-kopf p { margin: 0; font-weight: 600; font-size: .9rem; }
.demo-kopf strong { display: block; font: 700 1.7rem/1.05 var(--schrift-schmal); }
.demo-inhalt { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: start; }
.demo-werte { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; margin: 0; }
.demo-werte dt { font-size: .8rem; color: var(--grau); }
.demo-werte dd { font: 700 1.55rem/1.1 var(--schrift-schmal); }
.demo-werte .breit { grid-column: 1 / -1; }
.demo-werte .breit dd { font-size: 1.15rem; }
.demo-qr { position: relative; width: 8.2rem; padding: .4rem; border: 2px solid var(--graphit); border-radius: 8px; overflow: hidden; }
.demo-qr svg { display: block; width: 100%; height: auto; }
.demo-qr::after {                                   /* einmaliger Scan beim Laden */
    content: ""; position: absolute; left: 0; right: 0; height: 3px; top: 0;
    background: var(--gelb); box-shadow: 0 0 12px 3px color-mix(in srgb, var(--gelb) 70%, transparent);
    animation: scan 1.6s ease-in-out .6s 2 alternate both;
}
@keyframes scan { from { top: 0; opacity: 1; } to { top: calc(100% - 3px); opacity: 1; } }
.demo-qr-text { margin: .4rem 0 0; font-size: .75rem; text-align: center; font-weight: 600; }
.demo-band { margin: 1.1rem -1.4rem 0; padding: .6rem 1.4rem 1.6rem; background: var(--graphit); color: #fff; font-weight: 600; font-size: .95rem; border-radius: 0 0 16px 16px; }
@media (prefers-reduced-motion: reduce) { .demo-qr::after { animation: none; opacity: 0; } }
@media (max-width: 30rem) { .demo-inhalt { grid-template-columns: 1fr; } .demo-qr { width: 7rem; } }

/* ---------- Wofür ---------- */
.nutzen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; list-style: none; margin: 0; padding: 0; }
.nutzen li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0 1rem; padding-top: 1.1rem; border-top: 2px solid var(--graphit); }
.nutzen .icon { color: var(--graphit); grid-row: span 2; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--gelb-hell); border-radius: 8px; }
.nutzen h3 { margin: 0 0 .25rem; font-size: 1.35rem; }
.nutzen p { margin: 0; color: var(--grau); }
@media (max-width: 44rem) { .nutzen { grid-template-columns: 1fr; } }

/* ---------- So funktioniert's (echte Reihenfolge -> nummeriert) ---------- */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: schritt; }
.schritte li { counter-increment: schritt; }
.schritte img { width: 100%; height: auto; display: block; margin-bottom: 1rem; }
.schritte h3 { display: flex; align-items: baseline; gap: .6rem; font-size: 1.45rem; margin-bottom: .3rem; }
.schritte h3::before {
    content: counter(schritt); font: 700 1.1rem/1 var(--schrift-schmal);
    display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%;
    background: var(--graphit); color: #fff; flex: none; transform: translateY(-.15rem);
}
.schritte p { margin: 0; color: var(--grau); }
@media (max-width: 52rem) { .schritte { grid-template-columns: 1fr; max-width: 28rem; } }

/* ---------- Pläne ---------- */
.laufzeit-wahl { display: inline-flex; padding: .25rem; background: #fff; border: 1px solid var(--linie); border-radius: 10px; margin-bottom: 2rem; }
.laufzeit-wahl label { margin: 0; }
.laufzeit-wahl input { position: absolute; opacity: 0; pointer-events: none; }
.laufzeit-wahl span { display: block; padding: .5rem 1.1rem; border-radius: 7px; font-weight: 600; cursor: pointer; }
.laufzeit-wahl input:checked + span { background: var(--graphit); color: #fff; }
.laufzeit-wahl input:focus-visible + span { outline: 3px solid var(--fokus); outline-offset: 2px; }
.plan-schild {
    --band: var(--gelb); --band-text: var(--gelb-tinte);
    position: relative; background: #fff; border-radius: 14px; padding: .8rem 1.3rem 1.4rem;
    box-shadow: 0 0 0 1px rgba(43,48,54,.1), 0 16px 30px -24px rgba(43,48,54,.5);
    display: flex; flex-direction: column;
}
.plan-schild.hervor { box-shadow: 0 0 0 3px var(--graphit), 0 22px 40px -26px rgba(43,48,54,.6); }
.plan-schild::before, .plan-schild::after {
    content: ""; position: absolute; top: .55rem; width: .6rem; height: .6rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #BFC5CA;
}
.plan-schild::before { left: .55rem; } .plan-schild::after { right: .55rem; }
.plan-band { background: var(--band); color: var(--band-text); margin: .7rem -.4rem 1rem; padding: .6rem .9rem; }
.plan-band h3 { margin: 0; font-size: 1.9rem; line-height: 1; }
.plan-band p { margin: .15rem 0 0; font-weight: 500; opacity: .9; }
.plan-preis { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4rem; margin: 0 0 .1rem; }
.plan-preis strong { white-space: nowrap; }
.plan-preis strong { font: 700 2.8rem/1 var(--schrift-schmal); }
.plan-preis span { color: var(--grau); }
.plan-zusatz { margin: 0 0 1rem; color: var(--grau); font-size: .9rem; min-height: 1.4em; }
.plan-vorteile { list-style: none; margin: 0 0 1.4rem; padding: 1rem 0 0; border-top: 1px solid var(--linie); flex: 1; }
.plan-vorteile li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; }
.plan-vorteile li::before {
    content: ""; position: absolute; left: .1rem; top: .45rem; width: .8rem; height: .45rem;
    border-left: 2.5px solid var(--graphit); border-bottom: 2.5px solid var(--graphit); transform: rotate(-45deg);
}
.plan-schild form button { width: 100%; box-sizing: border-box; }
.preis-hinweis { margin-top: 1.5rem; color: var(--grau); font-size: .9rem; }

/* ---------- Kostenlose Testwoche ---------- */
.hero-sicher { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 1.1rem 0 0; padding: 0; font-weight: 600; }
.hero-sicher li { position: relative; padding-left: 1.4rem; }
.hero-sicher li::before, .test-band-punkte li::before {
    content: ""; position: absolute; left: .1rem; top: .42rem; width: .75rem; height: .4rem;
    border-left: 2.5px solid var(--graphit); border-bottom: 2.5px solid var(--graphit); transform: rotate(-45deg);
}
.test-band {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 1.2rem 2rem; align-items: center;
    background: #fff; border-radius: 14px; padding: 1.4rem 1.6rem; margin: 0 0 2.2rem;
    border-left: 10px solid var(--gelb); box-shadow: 0 0 0 1px rgba(43,48,54,.1), 0 16px 30px -24px rgba(43,48,54,.5);
}
.test-band-marke { display: inline-block; background: var(--gelb-hell); color: #7A5A00; font-weight: 700; font-size: .8rem; letter-spacing: .04em;
    text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; }
.test-band h3 { margin: .45rem 0 .3rem; font-size: 1.7rem; line-height: 1.1; }
.test-band-kopf p { margin: 0; color: var(--grau); }
.test-band-punkte { list-style: none; margin: 0; padding: 0; }
.test-band-punkte li { position: relative; padding-left: 1.5rem; margin-bottom: .45rem; }
.test-band-punkte li:last-child { margin-bottom: 0; }
.test-band .btn { white-space: nowrap; }
@media (max-width: 900px) {
    .test-band { grid-template-columns: 1fr; padding: 1.2rem; }
    .test-band .btn { justify-self: start; white-space: normal; }
}

/* ---------- Installateure, FAQ ---------- */
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.zweispaltig img { width: 100%; height: auto; }
@media (max-width: 52rem) { .zweispaltig { grid-template-columns: 1fr; } }
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { padding: 1rem 0; font-weight: 600; font-size: 1.1rem; }
.faq details p { margin: 0 0 1.1rem 1.35rem; color: var(--grau); max-width: 40rem; }

/* ---------- Konto, Warenkorb, Kasse ---------- */
.seite-inhalt { max-width: var(--max); margin: 0 auto; padding: 2.2rem 1rem 4rem; width: 100%; min-width: 0; overflow-wrap: anywhere; }   /* Flex-Kind: nie breiter als der Bildschirm */
.seite-inhalt table { overflow-wrap: break-word; }
.seite-inhalt img, .seite-inhalt figure { max-width: 100%; height: auto; }
.seite-inhalt.schmal { max-width: 32rem; }
.seite-inhalt.mittel { max-width: 50rem; }
.seite-inhalt > h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 1.2rem; }
.karte { background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 1.2rem; margin-bottom: 1.2rem; }
.karte h2 { font-size: 1.45rem; }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--linie); margin-bottom: 1.2rem; }
.tabs a { padding: .55rem .9rem; text-decoration: none; font-weight: 600; color: var(--grau); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--graphit); border-bottom-color: var(--gelb); }
.code-eingabe { font: 600 1.8rem/1 ui-monospace, Menlo, monospace !important; letter-spacing: .35em; text-align: center; }
.formular-fuss { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: .5rem; }
.klein-link { font-size: .95rem; color: var(--grau); }
.pflicht::after { content: " *"; color: var(--gefahr); }
.check-lang { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check-lang input { margin-top: .3rem; }

.posten { width: 100%; border-collapse: collapse; }
.posten th, .posten td { text-align: left; padding: .75rem .4rem; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.posten th { font-size: .85rem; color: var(--grau); font-weight: 600; }
.posten .betrag { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.posten tfoot td { border-bottom: 0; }
.posten .gesamt td { font: 700 1.35rem var(--schrift-schmal); border-top: 2px solid var(--graphit); }
.posten select { width: auto; margin: 0; padding: .35rem .5rem; }
.leer-zustand { text-align: center; padding: 2.5rem 1rem; }
.leer-zustand p { color: var(--grau); }

.ausweis-liste { list-style: none; margin: 0; padding: 0; }
.ausweis-liste > li { display: grid; grid-template-columns: auto 1fr auto; gap: .3rem 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--linie); }
.ausweis-liste > li:last-child { border-bottom: 0; }
.mini-schild { width: 3.2rem; height: 2.3rem; border-radius: 5px; border: 2px solid var(--graphit); position: relative; overflow: hidden; background: #fff; }
.mini-schild::before { content: ""; position: absolute; inset: 0 0 auto; height: .6rem; background: var(--band, var(--gelb)); }
.ausweis-titel { font-weight: 600; font-size: 1.1rem; }
.ausweis-meta { color: var(--grau); font-size: .92rem; }
.status-marke { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: rgba(30,123,69,.12); color: var(--ok); }
.status-marke.warn { background: rgba(180,35,24,.1); color: var(--gefahr); }
.status-marke.offen { background: var(--gelb-hell); color: #7A5A00; }
@media (max-width: 40rem) {
    .ausweis-liste > li { grid-template-columns: auto 1fr; }
}
.teilen-raster { display: grid; grid-template-columns: 9rem 1fr; gap: 1.2rem; align-items: start; }
.teilen-raster .qr-box { border: 2px solid var(--graphit); border-radius: 8px; padding: .4rem; background: #fff; }
.teilen-raster .qr-box svg { display: block; width: 100%; height: auto; }
@media (max-width: 34rem) { .teilen-raster { grid-template-columns: 1fr; } .teilen-raster .qr-box { width: 9rem; } }
.linkfeld { display: flex; gap: .5rem; }
.linkfeld input { margin: 0; font: .9rem ui-monospace, Menlo, monospace; }
.bank dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; }
.bank dt { color: var(--grau); } .bank dd { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Scanner ---------- */
.scanner { position: relative; background: var(--graphit); border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; max-width: 26rem; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .rahmen { position: absolute; inset: 18%; border: 3px solid var(--gelb); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.scanner-status { margin: .8rem 0; color: var(--grau); }

/* ---------- Rechtliches ---------- */
.rechtstext { max-width: 46rem; }
.rechtstext h2 { font-size: 1.4rem; margin-top: 1.8rem; }
.vorlage-hinweis { border-left: 4px solid var(--gelb); background: var(--gelb-hell); padding: .8rem 1rem; border-radius: 6px; margin-bottom: 1.5rem; }

/* ---------- Fuß ---------- */
/* Sticky-Footer: auf kurzen Seiten (Login, Ausweis scannen) die Fußzeile an den unteren Rand drücken.
   Nur für die Shop-Seiten; App-Rahmen (.app-an) und Admin haben ein eigenes Layout. */
body.shop:not(.app-an) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.shop:not(.app-an) > main { flex: 1 0 auto; }
body.shop:not(.app-an) > .fusszeile { flex-shrink: 0; }

.fusszeile { border-top: 1px solid var(--linie); background: #fff; margin-top: 2rem; }
.fuss-innen { max-width: var(--max); margin: 0 auto; padding: 1.6rem 1rem 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.fuss-marke { display: flex; gap: .5rem; align-items: center; font: 700 1.15rem var(--schrift-schmal); }
.fusszeile nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.fusszeile nav a { color: var(--grau); text-decoration: none; }
.fusszeile nav a:hover { color: var(--graphit); text-decoration: underline; }

/* Meldungen im Shop */
.meldung.hinweis { border-left: 4px solid var(--gelb); }
.zahlart { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem; border: 1px solid var(--linie); border-radius: 8px; margin-bottom: .6rem; font-weight: 400; cursor: pointer; }
.zahlart:has(input:checked) { border-color: var(--graphit); box-shadow: inset 0 0 0 1px var(--graphit); }
.zahlart input { margin-top: .3rem; }
.schild-vorschau { overflow-x: auto; padding: 1rem; background: var(--papier); border-radius: 8px; }

/* ---------- Anleitung ---------- */
.anleitung { max-width: 56rem; }
.anleitung .inhalt { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0 0 2rem; padding: .8rem 1rem; background: #fff; border: 1px solid var(--linie); border-radius: 10px; }
.anleitung .inhalt a { font-weight: 600; }
.schritt-liste { list-style: none; margin: 0 0 2rem; padding: 0; counter-reset: s; }
.schritt-liste > li { counter-increment: s; position: relative; padding: 0 0 2.4rem 3.4rem; border-left: 2px solid var(--linie); margin-left: 1.1rem; }
.schritt-liste > li:last-child { border-left-color: transparent; }
.schritt-liste > li::before {
    content: counter(s); position: absolute; left: -1.15rem; top: -.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
    background: var(--gelb); color: var(--gelb-tinte); font: 700 1.2rem/2.2rem var(--schrift-schmal); text-align: center;
}
.schritt-liste h2 { font-size: 1.7rem; margin-bottom: .5rem; scroll-margin-top: 5rem; }
.schritt-liste ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.bild { margin: 1rem 0 1.2rem; }
.bild img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--linie); box-shadow: 0 12px 28px -22px rgba(43,48,54,.55); background: #fff; }
@media (max-width: 40rem) { .schritt-liste > li { padding-left: 2rem; margin-left: .9rem; } }
@media (max-width: 60rem) { .haupt { gap: 1rem; } }
.haupt a { white-space: nowrap; }

.daten-knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.daten-knoepfe form { margin: 0; }
.laufzeit-wahl { flex-wrap: wrap; max-width: 100%; }

.fussnote { font-size: .8rem; color: var(--grau); margin: 1rem 0 .4rem; max-width: 60rem; }

/* Link-Feld mit Kopieren-Knopf */
.linkfeld { display: flex; gap: .5rem; }
.linkfeld input { flex: 1 1 auto; min-width: 0; }
.uebergabe-inhalt { padding: 0 .8rem .7rem; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext li { margin-bottom: .4rem; }
.rechtstext .formular-muster { padding: 1rem 1.2rem; border: 1px dashed var(--linie); border-radius: 8px; background: var(--flaeche, #fff); }

/* ---------- Funktionen als kleine Typenschilder ---------- */
/* Bereiche: links Überschrift, rechts die Schilder zweispaltig */
.funktions-gruppe { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); gap: 1.4rem 2rem;
    margin-top: 1.8rem; padding: 1.6rem; background: var(--papier); border: 1px solid var(--linie); border-radius: 16px; }
.funktions-gruppe:first-of-type { margin-top: 2.4rem; }
.gruppe-kopf { padding-top: .2rem; border-top: 3px solid var(--gelb); }
.gruppe-kopf h3 { margin: .7rem 0 .4rem; font-size: 1.6rem; }
.gruppe-kopf p { margin: 0; color: var(--grau); }
.funktionen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; align-items: stretch; }
.funktion { position: relative; background: #fff; border: 2px solid var(--graphit); border-radius: 12px; padding: 0 1.3rem 1.2rem; }
/* vier Schrauben wie am echten Schild */
.funktion::before, .funktion::after { content: ""; position: absolute; width: .42rem; height: .42rem; border-radius: 50%;
    border: 1.5px solid #9AA1A8; background: radial-gradient(circle, #fff 30%, #D9DDE1 31%); bottom: .55rem; }
.funktion::before { left: .55rem; } .funktion::after { right: .55rem; }
.funktion header { display: flex; align-items: center; gap: .65rem; margin: 0 -1.3rem 1rem; padding: .75rem 1.3rem .7rem;
    background: var(--graphit); border-radius: 9px 9px 0 0; }
.funktion header .icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 6px; background: var(--gelb); color: var(--gelb-tinte); flex: none; }
.funktion header .icon svg { width: 1.3rem; height: 1.3rem; }
.funktion h3 { margin: 0; color: var(--akzent-dunkel); font: 600 1.35rem/1.1 var(--schrift-schmal); }
.funktion > p { margin: 0 0 .8rem; color: var(--graphit); }
.funktion ul { list-style: none; margin: 0; padding: .7rem 0 0; border-top: 1px dashed #C9CED3; }
.funktion li { position: relative; padding: .22rem 0 .22rem 1.15rem; color: #4A5159; font-size: .95rem; line-height: 1.4; }
.funktion li::before { content: ""; position: absolute; left: .1rem; top: .72rem; width: .45rem; height: .45rem; background: var(--gelb); border: 1.5px solid var(--graphit); border-radius: 1px; }
/* Notfall: Warnstreifen statt glatter Kopfzeile */
.funktion.warn header { background: repeating-linear-gradient(-45deg, var(--graphit) 0 10px, color-mix(in srgb, var(--graphit), #fff 12%) 10px 20px); box-shadow: inset 0 -4px 0 var(--gelb); }
@media (max-width: 64rem) { .funktions-gruppe { grid-template-columns: 1fr; } .gruppe-kopf { max-width: 36rem; } }
@media (max-width: 40rem) { .funktionen { grid-template-columns: 1fr; gap: 1.2rem; } .funktions-gruppe { padding: 1.1rem; } }
.avv-kasten { margin-top: .8rem; padding: 1rem 1.1rem; border: 1px solid var(--linie); border-left: 4px solid var(--gelb); border-radius: 10px; background: var(--papier); }
.avv-kasten p { margin-top: 0; }
/* Anleitung: Hinweise je Abschnitt */
.tipps { margin: .4rem 0 0; padding: .9rem 1.1rem; background: var(--papier); border: 1px solid var(--linie); border-left: 4px solid var(--gelb); border-radius: 10px; }
.tipps strong { display: block; font-family: var(--schrift-schmal); font-size: 1.15rem; margin-bottom: .3rem; }
.tipps ul { margin: 0; padding-left: 1.15rem; }
.tipps li { margin: .25rem 0; }
/* Umrandete Optionsgruppe (z. B. Übergabe-E-Mail) */
.tz-umfang { margin: .4rem 0 1rem; padding: .9rem 1rem; border: 1px solid var(--linie); border-radius: 10px; }
.tz-umfang legend { padding: 0 .4rem; font-weight: 600; }
.tz-umfang > .check { display: flex; gap: .5rem; align-items: baseline; margin: .35rem 0; }

/* =====================================================================
   B2B: Fachbetriebe (Startseite, Tarife, Konto-Übersicht, Firmendaten)
   ===================================================================== */
.demo-schild.partner .demo-kopf { background: #fff; color: var(--graphit); border-bottom: 4px solid var(--graphit); margin-top: .5rem; padding: .6rem .2rem .8rem; }
.demo-logo { flex: none; display: grid; place-items: center; width: 5.2rem; height: 3rem; border: 2px dashed #A9B0B6; border-radius: 6px;
    color: var(--grau); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.demo-schild.partner .demo-kopf p { color: var(--grau); }
.demo-schild.partner .demo-band { text-align: center; font-size: .9rem; letter-spacing: .02em; }
.funktionen.nutzen { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

.tarif-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.2rem; align-items: stretch; margin-bottom: 1.5rem; }
.tarif-liste .plan-band h3 { font-size: 1.6rem; }
.tarif-liste .plan-preis strong { font-size: 2.3rem; }
.tarif-liste .plan-preis span { font-size: .85rem; }
.tarif-liste .plan-schild .btn, .tarif-liste .plan-schild form { margin-top: auto; }
.tarif-liste .plan-schild .btn { text-align: center; }
.plan-vorteile.breit { columns: 2 18rem; column-gap: 2rem; border-top: 0; padding-top: 0; }
.plan-vorteile.breit li { break-inside: avoid; }

.konto-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.2rem; }
.konto-kopf h1 { margin: 0; }
.konto-kopf p { margin: .2rem 0 0; }
.konto-kopf .daten-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.tarif-karte { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; border-left: 5px solid var(--ok); }
.tarif-karte > div { flex: 1 1 22rem; }
.tarif-karte h2 { margin: 0 0 .3rem; }
.tarif-karte p { margin: 0 0 .5rem; }
.tarif-karte.abgelaufen { border-left-color: var(--gefahr); }
.anlagen-filter { display: grid; grid-template-columns: 2fr 1.3fr 1.3fr auto; gap: .5rem 1rem; align-items: end; margin-bottom: 1rem; }
.anlagen-filter label { margin: 0; }
.anlagen-filter .knopf-zelle { padding-bottom: .1rem; white-space: nowrap; }
@media (max-width: 50rem) { .anlagen-filter { grid-template-columns: 1fr 1fr; } .anlagen-filter label:first-child { grid-column: 1 / -1; } }
.anlagen-liste .ausweis-meta .status-marke { margin: .25rem .25rem 0 0; }

.kontotyp-wahl { border: 0; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.kontotyp-wahl legend { font-weight: 600; margin-bottom: .4rem; }
@media (max-width: 36rem) { .kontotyp-wahl { grid-template-columns: 1fr; } }
.logo-vorschau { max-height: 4rem; max-width: 14rem; background: repeating-conic-gradient(#EEF0F2 0 25%, #fff 0 50%) 0 0 / 12px 12px; padding: .3rem; border-radius: 6px; }
.zwei-spalten-formular { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.zwei-spalten-formular h3 { margin-top: 0; }
@media (max-width: 44rem) { .zwei-spalten-formular { grid-template-columns: 1fr; } }
#neu > .aufklapp { border-top: 0; margin: 0; padding-top: 0; }
#neu > .aufklapp > summary { font-size: 1.15rem; }
.status-marke.neutral { background: #EEF0F2; color: #2B3036; }
.abrechnung-wahl { border: 0; padding: 0; margin: 1rem 0; }
.abrechnung-wahl legend { font-weight: 600; margin-bottom: .4rem; }
.rechnung-felder { margin-top: .6rem; padding: .8rem; border: 1px solid var(--linie); border-radius: 8px; background: #FAFAFB; }
.ausweis-titel a { color: inherit; text-decoration: none; } .ausweis-titel a:hover { text-decoration: underline; }
.zeilen-aktionen form { margin: 0; }
@media (max-width: 40rem) { .ausweis-liste .zeilen-aktionen { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; } }   /* sonst brechen die Knopftexte mitten im Wort um */
.nowrap { white-space: nowrap; }
.mandat-text { font-size: .85rem; line-height: 1.5; background: #FAFAFB; border: 1px solid var(--linie); border-radius: 8px; padding: .8rem 1rem; margin: .8rem 0; color: #3A4148; }

/* ---------- Startseite: Privatkunden ---------- */
.privat-nutzen { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.privat-nutzen > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: .2rem .8rem; align-items: start; background: #fff;
    border: 1px solid var(--linie); border-radius: 12px; padding: 1rem 1.1rem; }
.privat-nutzen .icon { color: var(--graphit); grid-row: span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--gelb-hell, #FCF0C7); }
.privat-nutzen .icon svg { width: 1.4rem; height: 1.4rem; }
.privat-nutzen strong { font-size: 1.02rem; }
.privat-nutzen span:not(.icon) { color: var(--grau); font-size: .92rem; line-height: 1.45; }
.privat-liste { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); max-width: 62rem; }
.privat-liste .plan-band { background: var(--gelb, #F2B705); }
.plan-punkte { list-style: none; margin: .4rem 0 1rem; padding: 0; font-size: .92rem; }
.plan-punkte li { padding: .3rem 0 .3rem 1.5rem; position: relative; border-top: 1px dashed var(--linie); }
.plan-punkte li::before { content: ""; position: absolute; left: .2rem; top: .7rem; width: .55rem; height: .3rem; border-left: 2px solid var(--ok, #1E7B45); border-bottom: 2px solid var(--ok, #1E7B45); transform: rotate(-45deg); }
.privat-liste .plan-schild .btn { margin-top: auto; text-align: center; }

/* ---------- Anleitung: Wegweiser und Gruppen ---------- */
.hilfe-wege { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.hilfe-wege .karte { display: flex; flex-direction: column; gap: .3rem; margin: 0; text-decoration: none; color: inherit; border-top: 4px solid var(--gelb, #F2B705); transition: transform .15s; }
.hilfe-wege .karte:hover { transform: translateY(-2px); }
.hilfe-wege strong { font-family: var(--schrift-schmal); font-size: 1.3rem; }
.hilfe-wege span { color: var(--grau); font-size: .92rem; }
.hilfe-gruppe { font-size: 2rem; margin: 2.5rem 0 1rem; padding-top: .6rem; border-top: 3px solid var(--graphit, #2B3036); scroll-margin-top: 5rem; }
.tarif-karte .daten-knoepfe { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.tarif-karte h2 .klein { font-family: var(--schrift); font-weight: 500; }
.werte-liste { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 0 0 1rem; }
.werte-liste > div { display: contents; }
.werte-liste dt { color: var(--grau); }
.werte-liste dd { margin: 0; }
@media (max-width: 36rem) { .werte-liste { grid-template-columns: 1fr; } .werte-liste dd { margin-bottom: .4rem; } }
.zahlarten { border: 0; padding: 0; margin: 1rem 0; } .zahlarten legend { font-weight: 600; margin-bottom: .4rem; }
.gefahr-btn { background: var(--gefahr, #B42318); color: #fff; border-color: var(--gefahr, #B42318); }
.werte-liste dt, .werte-liste dd { font-family: var(--schrift, inherit); font-size: 1rem; font-weight: 400; text-transform: none; letter-spacing: 0; }
.werte-liste dd strong { font-weight: 700; }

/* Firmenkonto: Reiter, Übersicht, Störungen, Kunden, Monteure */
.konto-tabs { flex-wrap: wrap; }
.konto-tabs .status-marke { margin-left: .2rem; }
.kachel-link { display: block; padding: .8rem 1rem; border: 1px solid var(--linie); border-radius: 8px; text-decoration: none; color: var(--grau); background: #fff; }
.kachel-link:hover { border-color: var(--graphit); }
.kachel-link strong { display: block; font: 700 1.6rem var(--schrift-schmal); color: var(--tinte); }
.kachel-link.warn strong { color: var(--gefahr); }
.uebersicht-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 0 1.2rem; }
.kurz-liste { list-style: none; margin: 0 0 .6rem; padding: 0; }
.kurz-liste li { padding: .5rem 0; border-bottom: 1px solid var(--linie); line-height: 1.4; }
.kurz-liste li:last-child { border-bottom: 0; }
.kurz-liste .status-marke { margin-right: .35rem; }
.kurz-liste .klein { display: block; color: var(--grau); }
.stoer-text { max-width: 32rem; }
.stoer-zeile.erledigt td { color: var(--grau); }
/* Handy: Tabellenzeilen als Blöcke untereinander (statt waagrecht wischen); td[data-l] bekommt eine Beschriftung */
@media (max-width: 640px) {
    .karten-mobil thead { display: none; }
    .karten-mobil, .karten-mobil tbody, .karten-mobil tr, .karten-mobil td { display: block; width: auto; }
    .karten-mobil tr { padding: 10px 0; border-bottom: 1px solid #DDE3E7; }
    .karten-mobil td { padding: 2px 0; border: 0; }
    .karten-mobil td[data-l]::before { content: attr(data-l) ": "; color: #5C6A74; font-size: .9em; }
}
/* Handy: jede Meldung als Block untereinander – Status und „Erledigt“ ohne waagrechtes Wischen erreichbar */
@media (max-width: 640px) {
    .stoer-tabelle thead { display: none; }
    .stoer-tabelle, .stoer-tabelle tbody, .stoer-tabelle tr, .stoer-tabelle td { display: block; width: auto; }
    .stoer-tabelle tr { padding: 10px 0; border-bottom: 1px solid #DDE3E7; }
    .stoer-tabelle td { padding: 2px 0; border: 0; }
    .stoer-tabelle .stoer-text { max-width: none; }
    .stoer-tabelle td:last-child form { margin-top: 6px; }
}
.posten td .klein { display: block; color: var(--grau); }
.kunden-anlagen { margin: .2rem 0 0; padding-left: 1.1rem; }
.kunden-anlagen li { margin: .15rem 0; }
.protokoll-liste td { font-size: .92rem; }
.passwort-anzeige { font: 700 1.25rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; background: var(--gelb-hell); padding: .4rem .7rem; border-radius: 6px; display: inline-block; user-select: all; }
.monteur-zeile { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: start; }
@media (max-width: 40rem) { .monteur-zeile { grid-template-columns: 1fr; } }

/* Admin-Bereich mit der normalen Kopfzeile */
body.admin .kopf-innen { max-width: 82rem; }
.admin-link[aria-current] span { text-decoration: underline; text-decoration-color: var(--gelb); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.admin .wrap.narrow { max-width: 30rem; }

/* ---------- Startseite: Installationsdiagramm und Zählerschrank ---------- */
.highlight { background: var(--graphit); color: #fff; }
.highlight-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.dachzeile { margin: 0 0 .6rem; font: 600 .95rem var(--schrift); letter-spacing: .06em; text-transform: uppercase; color: var(--akzent-dunkel); }
.highlight h2 { color: #fff; }
.highlight .einleitung { color: rgba(255, 255, 255, .78); margin-bottom: 1.8rem; }
.highlight-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.highlight-liste li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start; }
.highlight-liste .icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 8px; background: var(--gelb); color: var(--gelb-tinte); }
.highlight-liste h3 { margin: .1rem 0 .2rem; font-size: 1.3rem; color: #fff; }
.highlight-liste p { margin: 0; color: rgba(255, 255, 255, .74); font-size: .98rem; }
.highlight-fuss { margin: 1.8rem 0 0; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .85); }
.highlight-fuss a { color: var(--akzent-dunkel); font-weight: 600; white-space: nowrap; }
.highlight-bild { margin: 0; }
.highlight-bild img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.highlight-bild figcaption { margin-top: .7rem; font-size: .88rem; color: rgba(255, 255, 255, .6); }
@media (max-width: 60rem) { .highlight-raster { grid-template-columns: 1fr; } .highlight-bild { max-width: 36rem; } }

/* ---------- Notizen je Anlage (Fachbetrieb, Monteure) ---------- */
.notiz-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.notiz { padding: .8rem 1rem; border: 1px solid var(--linie); border-left: 4px solid var(--gelb); border-radius: 10px; background: var(--flaeche); }
.notiz.erledigt { border-left-color: var(--ok); opacity: .8; }
.notiz.erledigt .notiz-text { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .35); }
.notiz-text { margin: 0 0 .35rem; white-space: normal; }
.notiz-meta { margin: 0 0 .5rem; font-size: .85rem; color: var(--grau); }
.notiz-aktionen { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.notiz-aktionen .btn, .notiz-aktionen button:not(.link-btn) { padding: .35rem .9rem; font-size: .92rem; }


/* ---------- Anlagen-Optionen: Reiter und Historie (konto/ausweis.php) ---------- */
.ausweis-tabs { margin-top: .4rem; }
.aktivitaet-filter { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 1rem; }
.aktivitaet-filter button { font: inherit; font-size: .85rem; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--tinte); cursor: pointer; min-height: 0; box-shadow: none; }
.aktivitaet-filter button.aktiv { background: var(--graphit); border-color: var(--graphit); color: #fff; }
.aktivitaeten { list-style: none; margin: 0; padding: 0; }
.aktivitaet-tag { font: 600 .8rem/1 var(--schrift); text-transform: uppercase; letter-spacing: .06em; color: var(--grau); padding: 1rem 0 .45rem; border-bottom: 1px solid var(--linie); margin-bottom: .3rem; }
.aktivitaet-tag:first-child { padding-top: .2rem; }
.aktivitaet { display: grid; grid-template-columns: 3rem 1rem 1fr; gap: .2rem .5rem; align-items: start; padding: .45rem 0; position: relative; }
.aktivitaet-zeit { font-size: .85rem; color: var(--grau); padding-top: .1rem; font-variant-numeric: tabular-nums; }
.aktivitaet-punkt { width: .65rem; height: .65rem; border-radius: 50%; margin-top: .35rem; background: var(--grau); box-shadow: 0 0 0 3px var(--flaeche); position: relative; z-index: 1; }
.aktivitaet::before { content: ''; position: absolute; left: calc(3rem + .5rem + .3rem); top: 0; bottom: 0; width: 2px; background: var(--linie); }
.aktivitaet strong { font-weight: 600; }
.aktivitaet-art { font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--grau); background: var(--papier); border-radius: 999px; padding: .05rem .5rem; margin-left: .2rem; white-space: nowrap; }
.aktivitaet-wer { color: var(--grau); }
.art-bearbeitung .aktivitaet-punkt { background: #2F6DB5; }
.art-wartung .aktivitaet-punkt { background: var(--ok, #1E7B45); }
.art-meldung .aktivitaet-punkt { background: var(--gefahr, #B42318); }
.art-notiz .aktivitaet-punkt { background: var(--gelb); }
.art-monteur .aktivitaet-punkt { background: #6C5BB5; }
.art-uebergabe .aktivitaet-punkt { background: #0E7C86; }
.art-rechnung .aktivitaet-punkt { background: #B0702A; }
.art-anlage .aktivitaet-punkt { background: var(--graphit); }
@media (max-width: 40rem) { .aktivitaet { grid-template-columns: 2.6rem .9rem 1fr; } .aktivitaet::before { left: calc(2.6rem + .5rem + .25rem); } }

/* Anleitung: Kapitel klappbar, Suche; Inhaltsleiste wandert oben mit, als einklappbare Kachel (spart Platz) */
.anleitung .inhalt-klappe { position: sticky; top: calc(var(--kopf-h, 3.6rem) + .5rem); z-index: 15; margin: 0 0 1.6rem; background: #fff; border: 1px solid var(--linie); border-radius: 10px; box-shadow: 0 8px 18px -14px rgba(31,35,40,.5); }
.anleitung .schritt-liste > li, .anleitung .hilfe-gruppe { scroll-margin-top: calc(var(--kopf-h, 3.6rem) + var(--inhalt-h, 0px) + 1rem); }
.anleitung .inhalt-klappe > summary { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .75rem 1rem; font-weight: 600; cursor: pointer; list-style: none; text-align: left; }
.anleitung .inhalt-klappe > summary::-webkit-details-marker { display: none; }
.anleitung .inhalt-klappe > summary::before { content: none; display: none; }
.anleitung .inhalt-klappe > summary::after { content: ""; flex: none; width: .55rem; height: .55rem; border-right: 2.5px solid var(--grau); border-bottom: 2.5px solid var(--grau); transform: rotate(45deg); transition: transform .15s; margin-right: .2rem; }
.anleitung .inhalt-klappe[open] > summary::after { transform: rotate(-135deg); }
.anleitung .inhalt-klappe .inhalt { margin: 0; border: 0; border-top: 1px solid var(--linie); border-radius: 0 0 10px 10px; box-shadow: none; }
.anleitung .inhalt-klappe[open] .inhalt { max-height: 55vh; overflow-y: auto; }
.anleitung .inhalt-klappe .inhalt { display: block; }
.anleitung .inhalt-gruppe { display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding: .35rem 0; }
.anleitung .inhalt-gruppe + .inhalt-gruppe { border-top: 1px solid var(--linie); }
.anleitung .inhalt-titel { flex-basis: 100%; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--grau); }
.anleitung .inhalt a.aktiv { color: var(--text, #1D2025); text-decoration-thickness: 2px; }
/* Desktop: Inhalt als Seitenmenü links, wandert mit und ist immer offen */
@media (min-width: 64rem) {
    .seite-inhalt.anleitung { max-width: 76rem; display: grid; grid-template-columns: 15rem minmax(0, 1fr); column-gap: 2.6rem; align-items: start; }
    .anleitung > * { grid-column: 2; }
    .anleitung > .inhalt-klappe { grid-column: 1; grid-row: 1 / span 60; align-self: start; margin: 0; box-shadow: none; background: transparent; border: 0; border-radius: 0;
        max-height: calc(100vh - var(--kopf-h, 3.6rem) - 1.5rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
    .anleitung > .inhalt-klappe > summary { display: none; }
    .anleitung .inhalt-klappe .inhalt, .anleitung .inhalt-klappe[open] .inhalt { max-height: none; overflow: visible; padding: 0 .4rem 1rem 0; border: 0; background: transparent; }
    .anleitung .inhalt-gruppe { display: block; padding: .5rem 0 .6rem; }
    .anleitung .inhalt-gruppe + .inhalt-gruppe { border-top: 1px solid var(--linie); }
    .anleitung .inhalt-titel { display: block; margin-bottom: .25rem; }
    .anleitung .inhalt-gruppe a { display: block; padding: .22rem .6rem; margin-left: -.6rem; border-radius: 6px; font-weight: 500; text-decoration: none; line-height: 1.3; }
    .anleitung .inhalt-gruppe a:hover { background: rgba(31,35,40,.06); }
    .anleitung .inhalt-gruppe a.aktiv { background: var(--gelb, #F2B705); color: #1D2025; font-weight: 700; }
}
.hilfe-werkzeug { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: 0 0 .8rem; }
.hilfe-suche { flex: 1 1 18rem; margin: 0; }
.hilfe-suche input { width: 100%; }
.hilfe-treffer { margin: -.3rem 0 .8rem; }
details.hilfe-kapitel > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; }
details.hilfe-kapitel > summary::-webkit-details-marker { display: none; }
details.hilfe-kapitel > summary::before { content: none; }
details.hilfe-kapitel > summary h2 { margin: 0; flex: 1; }
details.hilfe-kapitel > summary::after { content: ""; flex: none; width: .6rem; height: .6rem; border-right: 2.5px solid var(--grau); border-bottom: 2.5px solid var(--grau); transform: rotate(45deg); transition: transform .15s; margin: 0 .3rem; }
details.hilfe-kapitel[open] > summary::after { transform: rotate(-135deg); }
details.hilfe-kapitel[open] > summary { margin-bottom: .8rem; }
details.hilfe-kapitel > summary:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { details.hilfe-kapitel > summary::after { transition: none; } }
.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; }
.schritt-liste > li:has(> details.hilfe-kapitel:not([open])) { padding-bottom: 1.1rem; }
.schritt-liste > li:has(> details.hilfe-kapitel) h2 { font-size: 1.45rem; }
.verwaltung-fuer { margin: 0 0 1rem; padding: .7rem 1rem; border-left: 4px solid var(--signal, #F2B705); background: var(--flaeche, #fff); border-radius: 6px; }
.verwaltung-fuer strong { font-size: 1.25rem; overflow-wrap: anywhere; }
/* Rechnungsliste im Kundenkonto (rechnungen_liste): Tabelle am Rechner, Karten auf dem Handy */
.rechnungsliste { display: grid; gap: 0; }
.rechnungsliste .rl-kopf, .rechnungsliste .rl-zeile { display: grid; grid-template-columns: minmax(0, 2.2fr) 6.5rem 6.5rem minmax(0, 1.8fr) 6rem; gap: .25rem .75rem; align-items: start; }
.rechnungsliste .rl-kopf { font-size: .85rem; color: var(--grau); font-weight: 600; padding: .4rem 0; border-bottom: 1px solid var(--linie); }
.rechnungsliste .rl-zeile { padding: .7rem 0; border-bottom: 1px solid var(--linie); }
.rechnungsliste .rl-nr .klein { display: block; overflow-wrap: anywhere; }
.rechnungsliste .betrag { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rechnungsliste .rl-belege, .rechnungsliste .rl-ueberweisen { grid-column: 1 / -1; }
.rechnungsliste .rl-ueberweisen { padding: .6rem .8rem; border-left: 4px solid var(--signal, #F2B705); background: var(--gelb-hell, #FFF6D6); border-radius: 6px; font-size: .9rem; overflow-wrap: anywhere; }
.rechnungsliste .rl-label { display: none; }
.rechnungsliste .leise { opacity: .7; }
@media (max-width: 700px) {
  .rechnungsliste .rl-kopf { display: none; }
  .rechnungsliste .rl-zeile { grid-template-columns: 1fr auto; padding: .8rem; margin-bottom: .6rem; border: 1px solid var(--linie); border-radius: 10px; }
  .rechnungsliste .rl-nr { grid-column: 1; }
  .rechnungsliste .rl-betrag { grid-column: 2; grid-row: 1; font-weight: 700; }
  .rechnungsliste .rl-datum, .rechnungsliste .rl-faellig { font-size: .9rem; }
  .rechnungsliste .rl-status { grid-column: 1 / -1; }
  .rechnungsliste .rl-label { display: inline; color: var(--grau); }
}

.fusszeile nav a.fuss-knopf { color: var(--graphit); font-weight: 700; border: 1.5px solid currentColor; border-radius: 999px; padding: .2rem .75rem; }

/* Hinweis gesetzliche Gewährleistung (Schild an Verbraucher) */

/* Datenfreigabe: Dateiliste zum Herunterladen */
.freigabe-liste { list-style: none; padding: 0; margin: .6rem 0; display: grid; gap: .5rem; }
.freigabe-liste li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem .9rem; border: 1px solid var(--linie); border-radius: 8px; }
@media (max-width: 560px) { .freigabe-liste li { flex-direction: column; align-items: flex-start; } }
.freigabe-liste .btn { flex: none; white-space: nowrap; }

/* „Verträge hier kündigen“: Art untereinander, Grund/Datum nur bei passender Auswahl (ohne :has bleibt alles sichtbar) */
.kuendigung-form .hinweis-text { display: block; font-weight: 400; margin-top: -.3rem; margin-bottom: .8rem; color: var(--grau, #667); font-size: .85rem; }
.kuendigung-form .kuendigung-art { grid-template-columns: 1fr; gap: .6rem; }
.kuendigung-form .kuendigung-art .zahlart { margin-bottom: 0; }
.kuendigung-form .kuendigung-zeit .zahlart { margin-bottom: 0; align-items: center; }
.kuendigung-form .kuendigung-zeit .zahlart input { margin-top: 0; }
.kuendigung-form .kuendigung-datum { grid-column: 1 / -1; max-width: 20rem; }
.kuendigung-form .kuendigung-datum label { margin-bottom: .3rem; }
.kuendigung-form .kuendigung-datum .hinweis-text { margin-top: 0; }
@supports selector(:has(*)) {
    .kuendigung-form .nur-ausser, .kuendigung-form .kuendigung-datum { display: none; }
    .kuendigung-form:has(input[name="art"][value="ausserordentlich"]:checked) .nur-ausser { display: block; }
    .kuendigung-form:has(input[name="zeitpunkt"][value="datum"]:checked) .kuendigung-datum { display: block; }
    .kuendigung-form:has(input[name="art"][value="wechsel"]:checked) .kuendigung-zeit { display: none; }   /* Ende ergibt sich aus § 9a */
}

/* ---------- Wartungen: Liste und Monatskalender (konto/wartungen.php) ---------- */
.wk-filter { margin-bottom: .6rem; }
.wk-ansicht { margin: 0; }
.wk-ansicht .wk-csv { margin-left: auto; font-size: .9rem; }
.wk-tabelle td .klein { display: block; }
.wk-tabelle td:first-child { white-space: nowrap; }
.wk-monat-kopf { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.wk-monat-kopf h2 { margin: 0; flex: 0 1 auto; }
.wk-kalender { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wk-wt { font-size: .8rem; font-weight: 600; color: #6E767E; padding: 0 .3rem .2rem; }
.wk-tag { min-height: 6.2rem; background: var(--feld, #F6F7F8); border: 1px solid var(--linie, #DFE3E7); border-radius: 8px; padding: .3rem; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wk-tag.leer { background: transparent; border-color: transparent; }
.wk-tag.heute { border-color: #F2B705; box-shadow: inset 0 0 0 1px #F2B705; }
.wk-tag.belegt { background: #FFFFFF; }
.wk-zahl { font-size: .8rem; color: #6E767E; }
.wk-tag.heute .wk-zahl { font-weight: 700; color: #1C2025; }
.wk-eintrag { display: block; font-size: .78rem; line-height: 1.25; padding: .2rem .35rem; border-radius: 5px; background: #EEF3F8; border-left: 3px solid #5B7A99; color: #1C2025;
              text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-eintrag span { display: block; color: #6E767E; overflow: hidden; text-overflow: ellipsis; }
.wk-eintrag:hover { background: #E2EBF3; }
.wk-tag.vorbei .wk-eintrag { background: #FDEEEC; border-left-color: #C8432E; }
.wk-eintrag.termin { border-left-color: #F2B705; }
.wk-mehr { font-size: .75rem; color: #6E767E; padding-left: .35rem; }
@media (max-width: 720px) {
    .wk-kalender { grid-template-columns: 1fr; }
    .wk-wt, .wk-tag.leer, .wk-tag:not(.belegt) { display: none; }
    .wk-tag { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; }
    .wk-zahl { min-width: 2rem; font-weight: 700; }
    .wk-eintrag { white-space: normal; flex: 1 1 12rem; }
}
.wk-tabelle { table-layout: fixed; width: 100%; }
.wk-tabelle th:nth-child(1) { width: 17%; } .wk-tabelle th:nth-child(2) { width: 33%; } .wk-tabelle th:nth-child(3) { width: 32%; } .wk-tabelle th:nth-child(4) { width: 18%; }
@media (max-width: 720px) { .wk-tabelle { table-layout: auto; } }
