/* Miet-Cont-Website (templates/mietCont). Ohne Build-Schritt. */

/* Das hidden-Attribut muss immer gewinnen: Das Skript blendet damit Zeilen
   aus (z. B. den Angebotspreis im Kostenkasten). Eine Regel wie
   „.kosten dl > div { display: flex }“ überstimmte es sonst – die Zeile blieb
   nach dem Wechsel auf eine Größe ohne Aktion stehen. */
[hidden] { display: none !important; }

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('/assets/fonts/miet-cont/archivo-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('/assets/fonts/miet-cont/archivo-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Libre Franklin';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('/assets/fonts/miet-cont/libre-franklin-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Libre Franklin';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('/assets/fonts/miet-cont/libre-franklin-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --blau: #1f4e87;
    --blau-dunkel: #173c6a;
    --blau-blass: #e6eef9;
    --navy: #16233b;
    --navy-tief: #111a2c;
    --hintergrund: #f2f6fb;
    --flaeche: #e7edf7;
    --flaeche-hell: #edf2f9;
    --rand: #dfe6f1;
    --rand-feld: #d6dfec;
    --text: #16233b;
    --text-2: #323a47;
    --grau: #5b6472;
    --grau-hell: #858e9c;
    --grau-blass: #b0b8c4;
    --platzhalter: #98a1b0;
    --rot: #c0392b;
    --schrift: 'Libre Franklin', system-ui, sans-serif;
    --titel: 'Archivo', 'Libre Franklin', system-ui, sans-serif;
    --breite: 75rem;
    --seitenrand: 2.5rem;
    /* Kopfzeile beim Scrollen: 0 = ganz oben (Logo groß), 1 = ab 100 px
       gescrollt (Logo klein) – siehe „Kopfzeile schrumpft“ unten. */
    --kopf: 0;
}

/* Kopfzeile schrumpft: Die Scroll-Animation treibt --kopf von 0 auf 1,
   alle Größen der Kopfzeile rechnen damit (calc). Damit sich die Variable
   animieren lässt, ist sie als Zahl registriert. Browser ohne
   animation-timeline (derzeit Firefox) setzen --kopf per Skript
   (miet-cont-neu.js). */
@property --kopf {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}
@keyframes kopf-schrumpfen {
    from { --kopf: 0; }
    to { --kopf: 1; }
}
@supports (animation-timeline: scroll()) {
    :root {
        animation: kopf-schrumpfen linear both;
        animation-timeline: scroll(root block);
        animation-range: 0 6.25rem;
    }
}

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

html { scroll-padding-top: 5.625rem; }

/* Höhe der großen Kopfzeile (oben): Innenabstand 2 × 22 + Logo 46 +
   Kasten 2 × 12 + Linie 1. Am Handy: 2 × 22 + 30 + 2 × 9 + 1. */
:root { --kopf-hoehe: 7.1875rem; }
@media (max-width: 43.75em) { :root { --kopf-hoehe: 5.8125rem; } }

body {
    margin: 0;
    padding-top: var(--kopf-hoehe);
    font-family: var(--schrift);
    background: var(--hintergrund);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--blau); text-decoration: none; }
a:hover { color: var(--blau-dunkel); }

h1, h2, h3 { margin: 0; font-weight: inherit; font-size: inherit; }
p { margin: 0; }

.innen {
    max-width: var(--breite);
    margin: 0 auto;
    padding-left: var(--seitenrand);
    padding-right: var(--seitenrand);
}

.titel { font-family: var(--titel); font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Schaltflächen ---------- */

.knopf {
    display: inline-block;
    background: var(--blau);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 1.875rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: var(--schrift);
    text-align: center;
    white-space: nowrap;
}
.knopf:hover { background: var(--blau-dunkel); color: #fff; }
.knopf--klein { font-size: 0.9375rem; padding: 0.8125rem 1.5rem; }
.knopf--hell {
    background: rgba(255, 255, 255, .12);
    border: 1.5px solid rgba(255, 255, 255, .4);
}
.knopf--hell:hover { background: rgba(255, 255, 255, .22); }
.knopf--weiss {
    background: #fff;
    border: 1px solid #cbdaf0;
    color: var(--blau);
}
.knopf--weiss:hover { background: var(--blau-blass); color: var(--blau-dunkel); }
.knopf--breit { display: block; width: 100%; }
.knopf[disabled] { background: #eef1f5; color: var(--grau-hell); cursor: not-allowed; }

.textlink { font-weight: 700; font-size: 0.9375rem; }

/* ---------- Kopfzeile ---------- */

/* Fixiert statt mitlaufend: Die Kopfzeile schrumpft beim Scrollen. Läge sie
   im Seitenfluss, verschöbe das den Inhalt, und der Browser würde die
   Scrollposition nachziehen (Scroll-Verankerung) – das Schrumpfen ruckelt.
   Den Platz für die große Kopfzeile hält der body frei (--kopf-hoehe). */
.kopf {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: rgba(242, 246, 251, .92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rand);
}
.kopf .innen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-top: calc(1.375rem - 0.25rem * var(--kopf));
    padding-bottom: calc(1.375rem - 0.25rem * var(--kopf));
}
.logo {
    display: inline-flex;
    align-items: center;
    background: var(--navy);
    padding: calc(0.75rem - 0.1875rem * var(--kopf)) calc(1.25rem - 0.25rem * var(--kopf));
    border-radius: calc(12px - 2px * var(--kopf));
}
.logo img { height: calc(2.875rem - 1.25rem * var(--kopf)); width: auto; display: block; }
.navigation {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    font-weight: 600;
    font-size: 0.9375rem;
}
.navigation a { color: var(--text-2); }
.navigation a:hover,
.navigation a[aria-current="page"] { color: var(--blau); }
.navigation a.knopf { font-size: 0.9375rem; padding: 0.625rem 1.25rem; color: #fff; }
.navigation a.knopf:hover,
.navigation a.knopf[aria-current="page"] { background: var(--blau-dunkel); color: #fff; }

/* ---------- Seitenkopf (Unterseiten) ---------- */

.seitenkopf { padding-top: 3rem; padding-bottom: 1.25rem; }
.brotkrumen { font-size: 0.875rem; color: var(--grau-hell); margin-bottom: 0.625rem; }
.brotkrumen a { color: var(--grau-hell); }
.seitenkopf h1 {
    font-family: var(--titel);
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}
.seitenkopf .einleitung { font-size: 1.0625rem; color: var(--grau); max-width: 40rem; line-height: 1.55; }

/* ---------- Startseite: Titelbereich ---------- */

.hero { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.hero-bild {
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    background: #ccd5e3;
    height: 32.5rem;
}
.hero-bild > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bild::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(23, 38, 30, .85) 0%, rgba(23, 38, 30, .4) 55%, rgba(23, 38, 30, 0) 100%);
}
.hero-text {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.375rem;
    padding: 4rem;
    max-width: 42.5rem;
}
.pille {
    display: inline-flex;
    align-self: flex-start;
    background: rgba(255, 255, 255, .15);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #eaf3ff;
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.5rem 0.9375rem;
    border-radius: 999px;
}
.hero h1 {
    font-family: var(--titel);
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: #fff;
    text-wrap: balance;
}
.hero-einleitung { font-size: 1.1875rem; line-height: 1.55; color: #dae7f5; max-width: 28.75rem; }
.hero-knoepfe { display: flex; gap: 0.875rem; margin-top: 0.375rem; flex-wrap: wrap; }

.kennzahlen {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}
.kennzahl {
    background: #fff;
    border: 1px solid var(--rand);
    border-radius: 12px;
    padding: 1.25rem 1.375rem;
}
.kennzahl strong {
    display: block;
    font-family: var(--titel);
    font-weight: 800;
    font-size: 1.625rem;
    color: var(--blau);
    line-height: 1.25;
}
.kennzahl span { display: block; font-size: 0.875rem; color: var(--grau); margin-top: 0.125rem; }

/* ---------- Abschnitte ---------- */

.abschnitt { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.abschnitt-kopf {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.875rem;
    flex-wrap: wrap;
}
.abschnitt h2 {
    font-family: var(--titel);
    font-weight: 800;
    font-size: 1.875rem;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.abschnitt h2.gross { font-size: 2.125rem; }
.abschnitt .unterzeile { font-size: 1rem; color: var(--grau); margin-top: 0.375rem; max-width: 40rem; }
.abstand-oben { margin-top: 1.625rem; }
.abstand-oben-klein { margin-top: 0.875rem; }
.sr-only {
    position: absolute;
    width: 0.0625rem;
    height: 0.0625rem;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Container-Karten ---------- */

.container-raster {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.container-karte {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--rand);
    display: flex;
    flex-direction: column;
    position: relative;
}
.container-karte.ist-aktion::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2.5px solid var(--blau);
    border-radius: 16px;
    pointer-events: none;
    z-index: 4;
}
.container-bild { height: 11.875rem; position: relative; background: #ccd5e3; }
.container-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.marke {
    position: absolute;
    top: 0.75rem;
    z-index: 2;
    font-weight: 700;
    border-radius: 999px;
}
.marke--aktion {
    left: 0.75rem;
    background: var(--blau);
    color: #fff;
    font-family: var(--titel);
    font-weight: 800;
    font-size: 0.8125rem;
    padding: 0.5rem 0.9375rem;
    box-shadow: 0 6px 16px -4px rgba(31, 43, 36, .45);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.marke--strom {
    right: 0.75rem;
    background: rgba(255, 255, 255, .92);
    color: var(--navy);
    font-size: 0.75rem;
    padding: 0.3125rem 0.6875rem;
}
.ausgebucht-schleier {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(242, 246, 251, .55);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ausgebucht-schleier span {
    background: var(--navy);
    color: #fff;
    font-family: var(--titel);
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
}
.container-inhalt {
    padding: 1.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}
.container-name { display: flex; align-items: baseline; gap: 0.625rem; flex-wrap: wrap; }
.container-name h3 { font-family: var(--titel); font-weight: 700; font-size: 1.3125rem; color: var(--navy); }
.container-name span { font-size: 0.9375rem; font-weight: 700; color: var(--blau); }
.container-bauart { font-size: 0.8125rem; color: var(--grau-hell); font-weight: 600; }
.masse {
    display: inline-grid;
    grid-template-columns: repeat(6, auto);
    justify-content: start;
    align-items: center;
    column-gap: 0.5rem;
    row-gap: 0.0625rem;
}
.masse .k { font-size: 0.6562rem; color: var(--grau-hell); font-weight: 700; letter-spacing: 0.03em; }
.masse .w { font-size: 0.75rem; color: var(--navy); font-weight: 700; }
.masse .x { font-size: 0.6875rem; color: var(--grau-blass); }
.masse .e { font-size: 0.8125rem; color: var(--grau-hell); }
.masse-text { font-size: 0.75rem; color: var(--grau); white-space: pre-line; }
.strom-auswahl-titel { font-size: 0.75rem; color: var(--grau-hell); font-weight: 600; margin-bottom: 0.375rem; }
.umschalter {
    display: flex;
    gap: 0.25rem;
    background: var(--flaeche-hell);
    padding: 0.25rem;
    border-radius: 10px;
}
.umschalter button {
    flex: 1;
    text-align: center;
    cursor: pointer;
    border: none;
    padding: 0.5625rem 0.375rem;
    border-radius: 7px;
    font-size: 0.7812rem;
    font-weight: 700;
    font-family: inherit;
    background: transparent;
    color: var(--grau-hell);
    transition: background .15s, color .15s, box-shadow .15s;
}
.umschalter button[aria-pressed="true"] {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.nur-strom {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--flaeche-hell);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.7812rem;
    padding: 0.5625rem 0.875rem;
    border-radius: 8px;
}
.container-preis {
    margin-top: auto;
    padding-top: 0.625rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.container-preis s { color: var(--grau-blass); font-size: 0.9375rem; }
.container-preis strong { font-family: var(--titel); font-weight: 800; font-size: 1.75rem; color: var(--navy); }
.container-preis span { font-size: 0.8125rem; color: var(--grau-hell); }
.container-preis .auf-anfrage { font-family: var(--titel); font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.aktion-hinweis { font-size: 0.75rem; color: var(--blau); font-weight: 600; line-height: 1.4; }
.container-ausgebucht {
    text-align: center;
    background: #eef1f5;
    color: var(--grau-hell);
    font-weight: 700;
    padding: 0.8125rem;
    border-radius: 8px;
    font-size: 0.9375rem;
}
.container-karte .knopf { display: block; padding: 0.8125rem; font-size: 0.9375rem; }

/* Varianten einer Karte: per Umschalter wird eine sichtbar. */
.variante[hidden] { display: none !important; }

.beratung {
    margin-top: 1.25rem;
    background: var(--flaeche);
    border: 1.5px dashed #b4caea;
    border-radius: 16px;
    padding: 1.375rem 1.625rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.beratung h3 { font-family: var(--titel); font-weight: 800; font-size: 1.1875rem; color: var(--navy); }
.beratung p { font-size: 0.875rem; color: var(--grau); margin-top: 0.25rem; }

/* ---------- Vorteile ---------- */

.vorteile {
    background: var(--flaeche);
    border-radius: 22px;
    padding: 3.25rem;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: center;
}
.vorteile h2 { margin-bottom: 1.375rem; }
.vorteile-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.625rem;
}
.vorteile-liste li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.9375rem;
    color: var(--text-2);
    line-height: 1.45;
}
.haken {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--blau);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

/* ---------- Standort ---------- */

.standort-raster {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}
.karte-rahmen {
    border-radius: 16px;
    overflow: hidden;
    height: 21.25rem;
    border: 1px solid var(--rand);
    background: var(--flaeche);
}
.karte { width: 100%; height: 100%; }
.adresse-kasten {
    background: var(--flaeche);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.625rem;
}
.etikett {
    font-family: var(--titel);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--blau);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.adresse-kasten address { font-style: normal; font-size: 1.125rem; color: var(--navy); line-height: 1.5; font-weight: 600; }

.galerie {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 11.25rem;
    gap: 0.875rem;
}
.galerie a {
    border-radius: 14px;
    overflow: hidden;
    background: #ccd5e3;
    display: block;
}
/* Die ersten zwei Bilder: nebeneinander, doppelt so hoch. */
.galerie a:nth-child(-n+2) { grid-column: span 2; grid-row: span 2; }
.galerie img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.galerie a:hover img { transform: scale(1.03); }

.bild-dialog {
    border: none;
    padding: 0;
    background: transparent;
    max-width: min(75rem, 94vw);
    max-height: 92vh;
}
.bild-dialog::backdrop { background: rgba(17, 26, 44, .88); }
.bild-dialog img { display: block; max-width: 100%; max-height: 86vh; border-radius: 12px; margin: 0 auto; }
.bild-dialog form { text-align: right; margin-bottom: 0.5rem; }
.bild-dialog button {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: none;
    border-radius: 999px;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.375rem;
    cursor: pointer;
}

/* ---------- Nutzung ---------- */

.nutzung-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.nutzung-karte { border-radius: 16px; overflow: hidden; border: 1px solid var(--rand); background: #fff; }
.nutzung-bild { height: 18.75rem; position: relative; background: repeating-linear-gradient(45deg, #eef3f8, #eef3f8 0.875rem, #e6ecf3 0.875rem, #e6ecf3 1.75rem); }
.nutzung-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nutzung-bild .etikett {
    position: absolute;
    left: 1.125rem;
    bottom: 1rem;
    background: rgba(255, 255, 255, .94);
    padding: 0.4375rem 0.8125rem;
    border-radius: 999px;
    font-size: 0.8125rem;
}
.nutzung-bild--leer { display: flex; align-items: center; justify-content: center; }
.nutzung-bild--leer .etikett { position: static; font-size: 0.9375rem; background: transparent; }
.nutzung-text { padding: 1.25rem 1.375rem; }
.nutzung-text h3 { font-family: var(--titel); font-weight: 700; font-size: 1.1875rem; color: var(--navy); margin-bottom: 0.375rem; }
.nutzung-text p { font-size: 0.875rem; color: var(--grau); line-height: 1.55; white-space: pre-line; }

/* ---------- Abschlussband und Fußzeile ---------- */

.abschlussband { background: var(--navy); color: #fff; }
.abschlussband .innen {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.875rem;
    flex-wrap: wrap;
}
.abschlussband h2 { font-family: var(--titel); font-weight: 800; font-size: 1.875rem; margin-bottom: 0.5rem; }
.abschlussband p { font-size: 1.0625rem; color: #c0cbdb; max-width: 32.5rem; line-height: 1.5; }

.fuss { background: var(--navy-tief); color: #a6b1c4; font-size: 0.875rem; }
.fuss a { color: #a6b1c4; }
.fuss a:hover { color: #fff; }
.fuss-oben {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
    display: flex;
    justify-content: space-between;
    gap: 1.875rem;
    flex-wrap: wrap;
}
.fuss-marke { max-width: 20rem; line-height: 1.55; }
/* So groß wie das Logo oben in der Kopfzeile (ungescrollt). */
.fuss-marke img { height: 2.875rem; width: auto; display: block; margin-bottom: 1.125rem; }
.fuss-spalten { display: flex; gap: 3.75rem; flex-wrap: wrap; }
.fuss-spalte { display: flex; flex-direction: column; gap: 0.625rem; }
.fuss-spalte strong { color: #fff; font-family: var(--titel); margin-bottom: 0.125rem; }
.fuss-social { display: inline-flex; align-items: center; gap: 0.5rem; }
.fuss-social svg { width: 1.125rem; height: 1.125rem; flex: none; }
.fuss-unten {
    border-top: 1px solid #22314a;
    padding: 1.25rem var(--seitenrand);
    text-align: center;
    font-size: 0.8125rem;
    color: #7b8598;
}
.fuss--kompakt .fuss-unten { border-top: none; padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* ---------- Formulare ---------- */

fieldset { margin: 0; min-width: 0; }
fieldset.karte-weiss > legend { float: left; width: 100%; padding: 0; }
fieldset.karte-weiss > legend + * { clear: both; }

.karte-weiss {
    background: #fff;
    border: 1px solid var(--rand);
    border-radius: 16px;
    padding: 1.625rem;
}
.schritt-titel { font-family: var(--titel); font-weight: 700; font-size: 1.125rem; margin-bottom: 0.25rem; }
.schritt-hinweis { font-size: 0.8125rem; color: var(--grau-hell); margin-bottom: 1.125rem; }
.pflicht { color: var(--rot); }

.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feld { display: flex; flex-direction: column; gap: 0.375rem; }
.feld--voll { grid-column: 1 / -1; }
.feld > span:first-child, .feld > label:first-child { font-size: 0.8125rem; font-weight: 600; }
.feld-hinweis { font-size: 0.75rem; color: var(--grau-hell); line-height: 1.45; }

.eingabe,
.feld input,
.feld textarea,
.feld select {
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--rand-feld);
    border-radius: 9px;
    font-size: 0.9375rem;
    font-family: var(--schrift);
    color: var(--text);
    background: #fff;
    width: 100%;
}
.feld textarea { resize: vertical; min-height: 6.875rem; }
.eingabe:focus, .feld input:focus, .feld textarea:focus, .feld select:focus { outline: 2px solid var(--blau); outline-offset: 1px; }
::placeholder { color: var(--platzhalter); }

.feld.mit-fehler input, .feld.mit-fehler textarea { border-color: var(--rot); }
.fehler { list-style: none; margin: 0; padding: 0; font-size: 0.7812rem; color: var(--rot); }

.meldung {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.meldung--ok { background: #e3f1e6; color: #1e5b2c; }
.meldung--fehler { background: #f8e3e1; color: #8e2a1f; }

/* Mietformular */

.mieten-raster {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 2rem;
    align-items: start;
    padding-top: 1.5rem;
    padding-bottom: 3.75rem;
}
.mieten-links { display: flex; flex-direction: column; gap: 1.5rem; }
.mieten-rechts { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 6.25rem; }

.groessen { display: grid; gap: 0.875rem; }
.groesse {
    position: relative;
    display: flex;
    cursor: pointer;
    background: #fff;
    border: 2px solid var(--rand);
    border-radius: 14px;
    overflow: hidden;
}
.groesse input { position: absolute; opacity: 0; pointer-events: none; }
.groesse:has(input:checked) { border-color: var(--blau); }
.groesse:has(input:focus-visible) { outline: 2px solid var(--blau); outline-offset: 2px; }
.groesse.ist-ausgebucht { cursor: not-allowed; background: #f5f2f0; border-color: #e6e0dd; opacity: .72; }
.groesse-bild { width: 8.75rem; flex: none; position: relative; background: #ccd5e3; }
.groesse-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.groesse-bild .haken { position: absolute; top: 0.625rem; left: 0.625rem; width: 26px; height: 26px; font-size: 15px; display: none; }
.groesse:has(input:checked) .groesse-bild .haken { display: flex; }
.groesse-text { padding: 1rem 1.125rem; display: flex; flex-direction: column; gap: 0.5625rem; flex: 1; justify-content: center; }
.groesse-zeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.625rem; }
.groesse-zeile > div { display: flex; align-items: baseline; gap: 0.5625rem; flex-wrap: wrap; }
.groesse-zeile strong { font-family: var(--titel); font-weight: 700; font-size: 1.1875rem; }
.groesse-zeile .flaeche { font-size: 0.875rem; font-weight: 700; color: var(--blau); }
.groesse .ab-preis { font-size: 0.8125rem; color: var(--grau-hell); margin-top: 0.125rem; }
.groesse .ab-preis strong { font-family: var(--titel); font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.schild {
    font-weight: 700;
    font-size: 0.6875rem;
    padding: 0.25rem 0.5625rem;
    border-radius: 6px;
    white-space: nowrap;
    background: var(--blau-blass);
    color: var(--blau);
}
.schild--rot { background: #f0e3e1; color: var(--rot); }

.strom-optionen { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
.strom-option {
    position: relative;
    cursor: pointer;
    border: 2px solid var(--rand);
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.strom-option input { position: absolute; opacity: 0; pointer-events: none; }
.strom-option:has(input:checked) { border-color: var(--blau); background: #eef4fb; }
.strom-option:has(input:focus-visible) { outline: 2px solid var(--blau); outline-offset: 2px; }
.strom-option:has(input:disabled) { cursor: not-allowed; opacity: .6; }
.strom-option[hidden] { display: none; }
.strom-option-kopf { display: flex; align-items: center; justify-content: space-between; gap: 0.625rem; }
.strom-option-kopf strong { font-family: var(--titel); font-weight: 700; font-size: 1rem; }
.strom-option .haken { width: 24px; height: 24px; font-size: 14px; display: none; }
.strom-option:has(input:checked) .haken { display: flex; }
.strom-option p { font-size: 0.8125rem; color: var(--grau); line-height: 1.4; }
.strom-preis { display: flex; align-items: baseline; gap: 0.375rem; flex-wrap: wrap; }
.strom-preis s { color: var(--grau-blass); font-size: 0.875rem; }
.strom-preis strong { font-family: var(--titel); font-weight: 800; font-size: 1.5rem; }
.strom-preis span { font-size: 0.75rem; color: var(--grau-hell); }

.upload-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.upload-titel { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.375rem; }
.upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 7.5rem;
    padding: 0.875rem;
    border: 1.5px dashed #cbdaf0;
    border-radius: 11px;
    background: #f7faff;
    cursor: pointer;
    color: var(--grau);
    text-align: center;
}
.upload:hover { border-color: var(--blau); }
.upload:has(input:focus-visible) { outline: 2px solid var(--blau); outline-offset: 2px; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload .pfeil { font-size: 1.375rem; }
.upload .aktion { font-size: 0.8125rem; font-weight: 600; }
.upload .klein { font-size: 0.6875rem; color: var(--platzhalter); word-break: break-all; }
.upload.hat-datei { border-style: solid; border-color: var(--blau); background: #eef4fb; }

.kosten {
    background: var(--navy);
    color: #fff;
    border-radius: 18px;
    padding: 1.75rem;
}
.kosten h2 { font-family: var(--titel); font-weight: 700; font-size: 1.125rem; margin-bottom: 1rem; }
.auswahl {
    background: rgba(255, 255, 255, .08);
    border-radius: 10px;
    padding: 0.75rem 0.875rem;
    margin-bottom: 1.125rem;
}
.auswahl span { display: block; font-size: 0.75rem; color: #a6b1c4; font-weight: 600; }
.auswahl strong { display: block; font-size: 0.9375rem; margin-top: 0.125rem; }
.kosten dl { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; margin: 0; }
.kosten dl > div { display: flex; justify-content: space-between; gap: 0.75rem; }
.kosten dt { color: #c0cbdb; }
.kosten dt small { color: #7b8598; font-size: inherit; }
.kosten dd { margin: 0; font-weight: 700; white-space: nowrap; }
.kosten .angebot dd { color: #8fb4e6; }
.kosten .angebot-hinweis { font-size: 0.7188rem; color: #8fb4e6; margin-top: -0.25rem; }
.kosten .konditionen {
    border-top: 1px solid #2c3a55;
    margin-top: 1rem;
    padding-top: 0.875rem;
    font-size: 0.75rem;
    color: #a6b1c4;
    line-height: 1.55;
}
.kosten .konditionen p + p { margin-top: 0.375rem; }
/* Aus Word eingefügte Texte bringen eigene Farben und Schriften mit. */
.kosten .konditionen * { color: inherit !important; font: inherit !important; }

.absenden { padding: 1.375rem; }
.zustimmung {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    font-size: 0.8125rem;
    color: var(--text-2);
    line-height: 1.5;
    cursor: pointer;
}
.zustimmung input { margin-top: 0.1875rem; width: 1rem; height: 1rem; accent-color: var(--blau); flex: none; }
.absenden .knopf { margin-top: 1rem; }
.absenden .klein, .kontakt-formular .klein { font-size: 0.7188rem; color: var(--platzhalter); text-align: center; margin-top: 0.625rem; line-height: 1.4; }

.adresse-seitenkasten { background: var(--flaeche); border-radius: 16px; padding: 1.25rem 1.375rem; }
.adresse-seitenkasten address { font-style: normal; font-size: 0.9375rem; color: var(--navy); line-height: 1.5; margin-top: 0.5rem; }
.adresse-seitenkasten .karte-rahmen { height: 12.5rem; margin-top: 0.875rem; border-radius: 11px; border-color: #cbdaf0; }
.adresse-seitenkasten .textlink { display: inline-block; margin-top: 0.75rem; font-size: 0.875rem; }

/* Kontakt */

.kontakt-raster {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 1.75rem;
    align-items: start;
    padding-top: 1.5rem;
    padding-bottom: 3.75rem;
}
.kontakt-infos { display: flex; flex-direction: column; gap: 1rem; }
.info-kasten { background: #fff; border: 1px solid var(--rand); border-radius: 14px; padding: 1.375rem 1.5rem; }
.info-kasten .etikett { margin-bottom: 0.5rem; }
.info-kasten p, .info-kasten address { font-style: normal; font-size: 1.0625rem; color: var(--navy); line-height: 1.5; }
.info-kasten .textlink { display: inline-block; margin-top: 0.5rem; font-size: 0.875rem; }
.kontakt-infos .karte-rahmen { height: 16.25rem; border-radius: 14px; }
.kontakt-formular {
    background: #fff;
    border: 1px solid var(--rand);
    border-radius: 18px;
    padding: 2.125rem;
}
.kontakt-formular h2 { font-family: var(--titel); font-weight: 700; font-size: 1.25rem; margin-bottom: 1.25rem; }
.kontakt-formular .felder { gap: 0.875rem 0.75rem; }
.kontakt-formular .knopf { width: 100%; margin-top: 0.25rem; }

/* Textseiten (Impressum, Datenschutz) */

.textseite { padding-bottom: 3.75rem; }
.textseite .karte-weiss { padding: 2.125rem 2.375rem; max-width: 53.75rem; }
.fliesstext { font-size: 1rem; line-height: 1.65; color: var(--text-2); }
.fliesstext h2, .fliesstext h3 { font-family: var(--titel); font-weight: 700; color: var(--navy); line-height: 1.25; }
.fliesstext h2 { font-size: 1.375rem; margin: 1.6em 0 .5em; }
.fliesstext h3 { font-size: 1.125rem; margin: 1.4em 0 .4em; }
.fliesstext > :first-child { margin-top: 0; }
.fliesstext p, .fliesstext ul, .fliesstext ol { margin: 0 0 1em; }
.fliesstext a { text-decoration: underline; text-underline-offset: 2px; }

/* Karte (MapLibre) */

.karte .maplibregl-ctrl-attrib { font-size: 0.6875rem; }
.karten-marke {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--blau);
    border: 4px solid #fff;
    box-shadow: 0 0 0 6px rgba(31, 78, 135, .25), 0 4px 10px rgba(0, 0, 0, .25);
}
.karte .maplibregl-popup-content {
    font-family: var(--schrift);
    font-size: 0.8125rem;
    line-height: 1.45;
    border-radius: 10px;
    padding: 0.625rem 0.875rem;
    color: var(--navy);
}

/* Hinweis während der Vorschau */


/* ---------- Tablet ---------- */

@media (max-width: 62.5em) {
    :root { --seitenrand: 1.75rem; }
    .container-raster { grid-template-columns: repeat(2, 1fr); }
    .vorteile { grid-template-columns: 1fr; padding: 2.5rem; gap: 1.75rem; }
    .mieten-raster, .kontakt-raster { grid-template-columns: 1fr; }
    .mieten-rechts { position: static; }
    .hero h1 { font-size: 2.875rem; }
}

/* ---------- Handy ---------- */

@media (max-width: 43.75em) {
    :root { --seitenrand: 1rem; }
    .navigation { gap: 1rem; }
    .navigation .nur-breit { display: none; }
    .logo { padding: calc(0.5625rem - 0.125rem * var(--kopf)) calc(0.9375rem - 0.1875rem * var(--kopf)); }
    .logo img { height: calc(1.875rem - 0.625rem * var(--kopf)); }
    .hero { padding-top: 1rem; }
    .hero-bild { height: auto; min-height: 28.75rem; }
    .hero-text { position: relative; padding: 2rem 1.5rem; max-width: none; min-height: 28.75rem; }
    .hero-bild > img { position: absolute; inset: 0; }
    .hero h1 { font-size: 2.25rem; }
    .hero-einleitung { font-size: 1.0625rem; }
    .kennzahlen { grid-template-columns: repeat(2, 1fr); gap: 0.625rem; }
    .kennzahl { padding: 1rem; }
    .kennzahl strong { font-size: 1.375rem; }
    .abschnitt { padding-top: 1.75rem; padding-bottom: 1.75rem; }
    .abschnitt h2, .abschnitt h2.gross, .abschlussband h2 { font-size: 1.625rem; }
    .container-raster, .nutzung-raster, .standort-raster { grid-template-columns: 1fr; }
    .vorteile { padding: 1.75rem 1.375rem; border-radius: 16px; }
    .vorteile-liste { grid-template-columns: 1fr; }
    .galerie { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 8.125rem; gap: 0.625rem; }
    .galerie a:nth-child(-n+2) { grid-column: span 2; }
    .nutzung-bild { height: 13.75rem; }
    .seitenkopf { padding-top: 1.75rem; }
    .seitenkopf h1 { font-size: 1.875rem; }
    .felder, .strom-optionen, .upload-felder { grid-template-columns: 1fr; }
    .karte-weiss, .kontakt-formular { padding: 1.25rem; }
    .groesse-bild { width: 6rem; }
    .textseite .karte-weiss { padding: 1.375rem; }
    .fuss-spalten { gap: 2.25rem; }
}

/* Honeypot der Mietanfrage: aus dem sichtbaren Bereich geschoben statt
   display:none – manche Bots überspringen ausgeblendete Felder. */
.mc-honigtopf {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
