/*
 * FamilyCal – Einstellungen (12.09.2026)
 * © 2026 Annett Förster, handelnd unter UniqDesigns · info@uniqdesigns.de
 *
 * Ein Bereich statt sechs Menüpunkte: links die Navigation, rechts die
 * Unterseite. Auf dem Handy erst die Liste, dann die Seite ganzflächig.
 * Farben kommen aus den Design-Variablen, Türkis #0e9aa7 ist die Hauptfarbe
 * (Annetts Designregel vom 12.09.2026).
 */

:root { --es-tuerkis: #0e9aa7; --es-tuerkis-hell: rgba(14, 154, 167, 0.14); --es-gelb: #f5c542; }

#einstellungenSection { padding: 0; }
.es-wrap {
    display: flex; gap: 1rem; align-items: flex-start;
    width: 100%; max-width: 1400px; margin: 0 auto; padding: 1rem; box-sizing: border-box;
}

/* ---------- Navigation links ---------- */
.es-nav {
    /* Das Hauptskript stylt jedes nav als waagerechte Leiste – hier senkrecht */
    display: flex; flex-direction: column; align-items: stretch; gap: 0; overflow-x: hidden;
    width: 250px; flex-shrink: 0; box-sizing: border-box;
    background: var(--bg-surface); border: 1px solid var(--border); border-radius: 1rem;
    padding: 0.7rem 0.6rem; position: sticky; top: 0.5rem;
    max-height: calc(100vh - 7rem); overflow-y: auto;
}
.es-nav-titel { display: flex; align-items: center; gap: 0.5rem; font-size: 1.15rem; font-weight: 800; color: var(--heading-color, var(--text-primary)); padding: 0.3rem 0.6rem 0.6rem; }
.es-nav-gruppe { font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin: 0.85rem 0.6rem 0.25rem; }
.es-nav-eintrag {
    display: flex; align-items: center; gap: 0.6rem; width: 100%;
    padding: 0.48rem 0.7rem; border: none; border-radius: 0.6rem; background: none;
    color: var(--text-primary); font-size: 0.92rem; text-align: left; cursor: pointer; line-height: 1.25;
}
.es-nav-eintrag:hover { background: var(--hover-bg, rgba(0,0,0,0.05)); }
.es-nav-eintrag.aktiv { background: var(--es-tuerkis-hell); color: var(--es-tuerkis); font-weight: 700; }
.es-nav-eintrag .es-ico { width: 1.4rem; text-align: center; flex-shrink: 0; font-size: 1rem; }
.es-nav-eintrag.es-rot { color: #c0392b; }
.es-nav-eintrag[hidden] { display: none; }

/* ---------- Inhalt rechts ---------- */
.es-inhalt { flex: 1; min-width: 0; }
.es-seite { display: none; }
.es-seite.aktiv { display: block; }
.es-zurueck { display: none; align-items: center; gap: 0.4rem; background: none; border: none; color: var(--es-tuerkis); font-weight: 600; font-size: 0.95rem; cursor: pointer; padding: 0.2rem 0 0.8rem; }

.es-kopf { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.es-kopf-ico { font-size: 2.2rem; line-height: 1; width: 3.4rem; height: 3.4rem; display: flex; align-items: center; justify-content: center; background: var(--es-tuerkis-hell); border-radius: 1rem; flex-shrink: 0; }
.es-kopf h2 { margin: 0; font-size: 1.7rem; font-weight: 800; color: var(--heading-color, var(--text-primary)); }
.es-kopf p { margin: 0.15rem 0 0; color: var(--text-secondary); font-size: 0.95rem; }
.es-kopf-text { flex: 1; min-width: 12rem; }

/* Suche (nur Übersicht) – hell, kein dunkler Balken */
.es-suche { position: relative; width: 100%; max-width: 26rem; }
.es-suche input {
    width: 100%; box-sizing: border-box; padding: 0.6rem 0.8rem 0.6rem 2.3rem;
    border: 1px solid var(--border); border-radius: 0.7rem; background: var(--bg-input); color: var(--text-primary); font-size: 0.95rem;
}
.es-suche .es-suche-ico { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); opacity: 0.6; pointer-events: none; }
.es-treffer {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60;
    background: var(--bg-surface); border: 1px solid var(--border-hover, var(--border)); border-radius: 0.7rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18); overflow: hidden; max-height: 20rem; overflow-y: auto;
}
.es-treffer[hidden] { display: none; }
.es-treffer button { display: block; width: 100%; text-align: left; padding: 0.55rem 0.8rem; border: none; border-bottom: 1px solid var(--border); background: none; color: var(--text-primary); cursor: pointer; font-size: 0.9rem; }
.es-treffer button:last-child { border-bottom: none; }
.es-treffer button:hover { background: var(--hover-bg, rgba(0,0,0,0.05)); }
.es-treffer small { display: block; color: var(--text-muted); font-size: 0.75rem; }
.es-treffer .es-leer { padding: 0.6rem 0.8rem; color: var(--text-muted); font-size: 0.85rem; }

/* Kurz aufleuchten, wenn die Suche hierher springt */
@keyframes esHervor { 0% { box-shadow: 0 0 0 4px rgba(14,154,167,0.55); } 100% { box-shadow: 0 0 0 0 rgba(14,154,167,0); } }
.es-hervor { animation: esHervor 1.6s ease-out 1; }

/* ---------- Banner „Geführt einrichten“ ---------- */
.es-banner {
    display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(14,154,167,0.12), rgba(245,197,66,0.14));
    border: 1px solid var(--border); border-radius: 1rem; padding: 1.1rem 1.3rem; margin-bottom: 1.3rem;
}
.es-banner img { width: 150px; max-width: 30vw; height: auto; border-radius: 0.8rem; flex-shrink: 0; }
.es-banner-text { flex: 1; min-width: 14rem; }
.es-banner-text h3 { margin: 0 0 0.25rem; font-size: 1.35rem; font-weight: 800; }
.es-banner-text p { margin: 0 0 0.7rem; color: var(--text-secondary); font-size: 0.92rem; }
.es-banner-text small { display: block; margin-top: 0.4rem; color: var(--text-muted); font-size: 0.78rem; }
.es-knopf-gelb {
    background: var(--es-gelb); color: #1e1e2e; border: none; border-radius: 0.7rem;
    padding: 0.65rem 1.2rem; font-weight: 700; font-size: 0.95rem; cursor: pointer;
}
.es-knopf-gelb:hover { filter: brightness(0.96); }
.es-knopf-tuerkis { background: var(--es-tuerkis); color: #fff; border: none; border-radius: 0.7rem; padding: 0.6rem 1.1rem; font-weight: 700; font-size: 0.92rem; cursor: pointer; }
.es-knopf-hell { background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border); border-radius: 0.7rem; padding: 0.55rem 1rem; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.es-schritte { display: flex; gap: 0.2rem; align-items: flex-start; flex-wrap: wrap; }
.es-schritt { display: flex; flex-direction: column; align-items: center; width: 4.6rem; font-size: 0.72rem; color: var(--text-secondary); text-align: center; position: relative; }
.es-schritt-nr { width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; background: var(--bg-surface); margin-bottom: 0.25rem; }
.es-schritt.fertig .es-schritt-nr { background: var(--es-tuerkis); border-color: var(--es-tuerkis); color: #fff; }
.es-schritt.aktuell .es-schritt-nr { border-color: var(--es-tuerkis); color: var(--es-tuerkis); box-shadow: 0 0 0 4px var(--es-tuerkis-hell); }

/* ---------- Status-Karten ---------- */
.es-abschnitt-titel { font-size: 1.15rem; font-weight: 800; margin: 0 0 0.7rem; }
.es-karten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.9rem; }
.es-karte {
    display: flex; align-items: center; gap: 0.9rem;
    background: var(--bg-surface); border: 1px solid var(--border); border-radius: 0.9rem;
    padding: 0.95rem 1.1rem; cursor: pointer; text-align: left; color: var(--text-primary); width: 100%; min-width: 0; box-sizing: border-box;
}
.es-karte:hover { border-color: var(--es-tuerkis); }
.es-karte.breit { grid-column: 1 / -1; }
.es-karte-ico { font-size: 1.9rem; width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; border-radius: 0.8rem; background: var(--es-tuerkis-hell); flex-shrink: 0; }
.es-karte-text { flex: 1; min-width: 0; }
.es-karte-text b { display: block; font-size: 1.02rem; }
.es-karte-text span { display: block; color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.1rem; overflow: hidden; text-overflow: ellipsis; }
.es-karte-farben { display: inline-flex; gap: 0.25rem; margin-right: 0.4rem; vertical-align: middle; }
.es-karte-farben i { width: 0.9rem; height: 0.9rem; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,0.15); }
.es-karte-pfeil { color: var(--text-muted); font-size: 1.2rem; }
.es-pille { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.es-pille.ok { background: rgba(34,197,94,0.15); color: #15803d; }
.es-pille.warn { background: rgba(245,158,11,0.18); color: #b45309; }
.es-pille.aus { background: rgba(148,163,184,0.2); color: var(--text-secondary); }
.es-pille.knopf { background: var(--es-tuerkis-hell); color: var(--es-tuerkis); }
.es-fuss { text-align: center; color: var(--text-secondary); font-size: 0.85rem; margin-top: 1.2rem; }
.es-fuss a { color: var(--es-tuerkis); font-weight: 600; cursor: pointer; }

/* ---------- Umgezogene Gruppen ---------- */
.es-seite .settings-group { padding: 1.1rem 1.25rem; margin-bottom: 0.9rem; border-radius: 0.9rem; }
.es-seite .settings-group > h3 { margin-top: 0; }
.es-seite .settings-group.es-versteckt-titel > h3 { display: none; }
.es-hinweis { display: flex; gap: 0.6rem; align-items: flex-start; background: rgba(59,130,246,0.09); border: 1px solid rgba(59,130,246,0.25); border-radius: 0.7rem; padding: 0.7rem 0.9rem; font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 0.9rem; }
.es-zeile { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); gap: 0.6rem 1rem; align-items: center; max-width: 48rem; margin-bottom: 0.7rem; }
.es-zeile label { font-weight: 600; margin: 0; font-size: 0.9rem; }
.es-zeile input[type="text"], .es-zeile select { width: 100%; box-sizing: border-box; padding: 0.5rem 0.7rem; border: 1px solid var(--border); border-radius: 0.6rem; background: var(--bg-input); color: var(--text-primary); font-size: 0.95rem; }
.es-profil { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.es-profil-bild { text-align: center; }
.es-profil-bild .sn-portrait { width: 9rem; height: 9rem; font-size: 3rem; margin: 0 auto 0.8rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; }
.es-abzeichen { display: inline-flex; align-items: center; gap: 0.35rem; background: rgba(34,197,94,0.15); color: #15803d; border-radius: 999px; padding: 0.3rem 0.8rem; font-weight: 700; font-size: 0.85rem; margin-top: 0.6rem; }
.es-farbkreise { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.es-farbkreis { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 3px solid transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.1rem; }
.es-farbkreis.an { border-color: var(--text-primary); box-shadow: 0 0 0 3px var(--bg-surface) inset; }
.es-chipliste { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.es-info-zeile { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.es-info-zeile:last-child { border-bottom: none; }
.es-info-zeile b { color: var(--text-secondary); font-weight: 600; }

/* ---------- Handy ---------- */
@media (max-width: 768px) {
    .es-wrap { flex-direction: column; padding: 0.6rem; gap: 0.6rem; }
    .es-nav { width: 100%; position: static; max-height: none; box-sizing: border-box; }
    .es-inhalt { width: 100%; max-width: 100%; }
    .es-suche { max-width: 100%; }
    .es-kopf-text, .es-banner-text { min-width: 0; }
    .es-banner { padding: 0.9rem 1rem; }
    .es-wrap.seite-offen .es-nav { display: none; }
    .es-wrap.seite-offen .es-zurueck { display: inline-flex; }
    .es-karten { grid-template-columns: minmax(0, 1fr); }
    .es-karte { flex-wrap: wrap; }
    .es-karte-text span { white-space: normal; overflow-wrap: anywhere; }
    .es-kopf h2 { font-size: 1.35rem; }
    .es-profil { grid-template-columns: 1fr; }
    .es-zeile { grid-template-columns: 1fr; gap: 0.25rem; }
    .es-banner img { width: 110px; }
}

/* Drei Porträts überlappend als Familienbild im Banner */
.es-banner-bilder { display: flex; flex-shrink: 0; }
.es-banner-bilder img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg-surface); background: var(--es-tuerkis-hell); margin-left: -18px; }
.es-banner-bilder img:first-child { margin-left: 0; }
@media (max-width: 768px) { .es-banner-bilder img { width: 56px; height: 56px; } }


/* =====================================================================
   Geführte Einrichtung (7 Schritte) – Vorlage: Annetts Mockups 12.09.2026
   ===================================================================== */
#einrichtungSection { padding: 0; }
.er-wrap { max-width: 1300px; margin: 0 auto; padding: 1rem; box-sizing: border-box; width: 100%; }
.er-link { background: none; border: none; color: var(--es-tuerkis); font-weight: 600; cursor: pointer; padding: 0.2rem 0; font-size: 0.92rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.er-kopf { display: grid; grid-template-columns: auto 1fr auto; gap: 0.5rem 1.2rem; align-items: center; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.1rem 1.4rem; margin: 0.6rem 0 1rem; }
.er-kopf-bilder { display: flex; }
.er-kopf-bilder img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg-surface); background: var(--es-tuerkis-hell); margin-left: -16px; }
.er-kopf-bilder img:first-child { margin-left: 0; }
.er-kopf-ico { font-size: 2.4rem; width: 3.6rem; height: 3.6rem; display: flex; align-items: center; justify-content: center; background: var(--es-tuerkis-hell); border-radius: 1rem; }
.er-kopf-text h2 { margin: 0; font-size: 1.55rem; font-weight: 800; }
.er-kopf-text p { margin: 0.15rem 0 0; color: var(--text-secondary); font-size: 0.92rem; }
.er-kopf-nr { font-weight: 600; color: var(--text-secondary); white-space: nowrap; align-self: start; }
.er-leiste { grid-column: 1 / -1; display: flex; align-items: flex-start; justify-content: center; padding-top: 0.5rem; }
.er-schritt { display: flex; flex-direction: column; align-items: center; font-size: 0.8rem; color: var(--text-secondary); width: 5.2rem; }
.er-schritt-nr { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; background: var(--bg-surface); color: var(--es-tuerkis); margin-bottom: 0.3rem; }
.er-schritt.fertig .er-schritt-nr { background: var(--es-tuerkis); border-color: var(--es-tuerkis); color: #fff; }
.er-schritt.aktuell { color: var(--text-primary); font-weight: 700; }
.er-schritt.aktuell .er-schritt-nr { border-color: var(--es-tuerkis); box-shadow: 0 0 0 4px var(--es-tuerkis-hell); }
.er-strich { flex: 1; max-width: 5rem; min-width: 1rem; border-top: 2px dashed var(--border); margin-top: 1.05rem; }

.er-inhalt { min-height: 20rem; }
/* Vorseite „Benachrichtigungen erlauben“ (09.10.2026) */
.er-push-wrap { max-width: 620px; }
.er-push-karte { text-align: center; padding: 1.8rem 1.5rem 1.4rem; margin-top: 1rem; }
.er-push-karte h3 { font-size: 1.45rem; margin: 0 0 0.7rem; }
.er-push-gross { font-size: 3.2rem; line-height: 1; margin-bottom: 0.6rem; }
.er-push-warum { font-size: 1rem; line-height: 1.55; color: var(--text-secondary); margin: 0 0 1rem; text-align: left; }
.er-push-liste { text-align: left; font-size: 1rem; line-height: 1.55; margin: 0 0 1.1rem; padding-left: 1.4rem; }
.er-push-liste li { margin-bottom: 0.35rem; }
.er-push-knopf { width: 100%; min-height: 54px; font-size: 1.1rem !important; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.er-push-spaeter { display: block; margin: 1.3rem auto 0.2rem; }
.er-karte { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.1rem 1.3rem; }
.er-karte h3 { margin: 0 0 0.2rem; font-size: 1.5rem; font-weight: 800; }
.er-karte h4 { margin: 0 0 0.6rem; font-size: 1.05rem; font-weight: 800; }
.er-karte-kopf { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; }
.er-karte-kopf h4 { margin: 0; }
.er-unter { margin: 0 0 1rem; color: var(--text-secondary); font-size: 0.92rem; }
.er-klein { color: var(--text-secondary); font-size: 0.82rem; margin: 0.3rem 0 0; display: block; }
.er-mitte { text-align: center; margin-top: 0.8rem; }
.er-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.er-breit { grid-column: 1 / -1; }
.er-liste { margin: 0; padding-left: 0; list-style: none; line-height: 1.8; }
.er-fuss { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; margin-top: 1rem; position: sticky; bottom: 0; background: var(--bg-body); padding: 0.7rem 0; }
.er-fuss-mitte { flex: 1; text-align: center; }
.er-fuss .es-knopf-gelb { padding: 0.8rem 1.6rem; font-size: 1rem; }

/* Formulare */
.er-input, .er-select { width: 100%; box-sizing: border-box; padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: 0.6rem; background: var(--bg-input); color: var(--text-primary); font-size: 0.95rem; }
.er-select-kurz { width: auto; }
.er-zeile2 { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr) auto; gap: 0.5rem; align-items: center; margin-bottom: 0.6rem; }
.er-zeile2 > label { font-size: 0.9rem; color: var(--text-secondary); }
.er-profil { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.er-profil-bild { text-align: center; }
.er-profil-bild small { display: block; color: var(--text-muted); font-size: 0.78rem; margin-top: 0.4rem; }
.er-portrait { width: 11rem; height: 11rem; margin: 0 auto 0.8rem; }
.er-portrait .sn-portrait { width: 11rem; height: 11rem; font-size: 4rem; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; }
.er-profil-felder > label { display: block; font-weight: 700; font-size: 0.9rem; margin: 0.9rem 0 0.35rem; }
.er-profil-felder > label small { font-weight: 400; color: var(--text-muted); }
.er-profil-felder > label:first-child { margin-top: 0; }
.er-profil-felder input[type="text"], .er-profil-felder input[type="tel"] { width: 100%; box-sizing: border-box; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: 0.6rem; background: var(--bg-input); color: var(--text-primary); font-size: 1rem; }
.er-kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.er-kacheln-2 { grid-template-columns: 1fr 1fr; }
.er-kacheln-5 { grid-template-columns: repeat(5, 1fr); }
.er-kacheln-frei { display: flex; flex-wrap: wrap; }
.er-kachel { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: 0.7rem; background: var(--bg-input); color: var(--text-primary); font-size: 0.92rem; font-weight: 600; cursor: pointer; text-align: left; }
.er-kachel-klein { padding: 0.45rem 0.7rem; }
.er-radio { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--border-hover, var(--border)); flex-shrink: 0; box-sizing: border-box; }
.er-kachel.an { border-color: var(--es-tuerkis); background: var(--es-tuerkis-hell); }
.er-kachel.an .er-radio { border: 5px solid var(--es-tuerkis); }
.er-farbkreise { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.er-farbkreis { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 3px solid transparent; cursor: pointer; color: #fff; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.er-farbkreis.an { border-color: var(--text-primary); }
.er-farbkreis-mehr { background: var(--bg-input); color: var(--text-secondary); border-color: var(--border); text-shadow: none; }
.er-schalterzeile { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.9rem; }
.er-schalterzeile b { font-size: 0.92rem; }
.er-schalterzeile small { display: block; color: var(--text-secondary); font-size: 0.8rem; }
.er-schalterzeile-rechts { justify-content: space-between; margin-top: 0.6rem; padding: 0.35rem 0; border-top: 1px solid var(--border); }
.er-schalterzeile-klein { margin: 0; gap: 0.4rem; font-size: 0.8rem; color: var(--text-secondary); }
.er-schalter { position: relative; width: 3rem; height: 1.7rem; flex-shrink: 0; cursor: pointer; display: inline-block; }
.er-schalter input { opacity: 0; width: 0; height: 0; position: absolute; }
.er-knubbel { position: absolute; inset: 0; background: #cbd5e1; border-radius: 2rem; transition: background 0.2s; }
.er-knubbel::after { content: ""; position: absolute; width: 1.3rem; height: 1.3rem; left: 0.2rem; top: 0.2rem; background: #fff; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.er-schalter.an .er-knubbel, .er-schalter input:checked + .er-knubbel { background: var(--es-tuerkis); }
.er-schalter input:checked + .er-knubbel::after { transform: translateX(1.3rem); }
.er-schalter.gesperrt { opacity: 0.7; cursor: default; }

/* Schritt 2 */
.er-personen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-bottom: 1rem; }
.er-person { background: var(--bg-input); border: 2px solid var(--border); border-radius: 0.9rem; padding: 0.9rem; cursor: pointer; display: flex; flex-direction: column; gap: 0.7rem; color: var(--text-primary); text-align: left; }
.er-person.gewaehlt { border-color: var(--es-tuerkis); box-shadow: 0 0 0 3px var(--es-tuerkis-hell); }
.er-person-kopf { display: flex; gap: 0.7rem; align-items: flex-start; }
.er-person-bild .sn-portrait { width: 4.2rem; height: 4.2rem; font-size: 1.6rem; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; }
.er-person-name { font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 0.35rem; }
.er-person-name i { width: 0.75rem; height: 0.75rem; border-radius: 50%; display: inline-block; }
.er-person-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.35rem; }
.er-chip { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: var(--text-primary); background: var(--es-tuerkis-hell); }
.er-chip-du { background: transparent; color: var(--text-secondary); padding-left: 0; }
.er-chip-grau { background: rgba(148,163,184,0.25); }
.er-chip-gruen { background: rgba(34,197,94,0.18); color: #15803d; }
.er-chip-blau { background: rgba(59,130,246,0.15); color: #1d4ed8; }
.er-person-knoepfe { display: flex; gap: 0.4rem; margin-top: auto; }
.er-person-knoepfe .es-knopf-hell { flex: 1; padding: 0.45rem 0.6rem; font-size: 0.85rem; }
.er-person-knoepfe .er-mehr { flex: 0 0 auto; }
.er-person-neu { border-style: dashed; align-items: center; justify-content: center; text-align: center; }
.er-person-neu small { color: var(--text-secondary); font-size: 0.8rem; }
.er-plus { width: 3rem; height: 3rem; border-radius: 50%; background: var(--es-tuerkis); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; }
.er-formular { border: 2px solid var(--es-tuerkis); border-radius: 0.9rem; padding: 1rem 1.2rem; margin-top: 0.6rem; background: var(--bg-surface); }
.er-formular h4 { margin-top: 0; }
.er-formular-fuss { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1rem; }
/* Schritt 2 neu: eine Person nach der anderen (09.10.2026) */
.er-person.er-offen { border-color: #f59e0b; }
.er-chip-warn { background: rgba(245,158,11,0.18); color: #b45309; }
.er-fertig-banner { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.4); border-radius: 0.8rem; padding: 0.7rem 0.9rem; margin: 0 0 0.9rem; font-size: 0.95rem; }
.er-person-zeile { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 0.9rem; }
.er-person-zeile h3 { margin: 0; }
.er-person-zeile .er-unter { margin: 0.2rem 0 0; }
.er-wahlen { display: grid; gap: 0.7rem; }
.er-wahl { display: grid; grid-template-columns: 2rem 2.4rem 1fr; gap: 0.6rem; align-items: center; text-align: left; background: var(--bg-input); border: 2px solid var(--border); border-radius: 0.9rem; padding: 0.85rem 0.9rem; cursor: pointer; color: var(--text-primary); font: inherit; }
.er-wahl.an { border-color: var(--es-tuerkis); background: var(--es-tuerkis-hell); }
.er-wahl-haken { width: 1.7rem; height: 1.7rem; border: 2px solid var(--border-hover, #94a3b8); border-radius: 0.4rem; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem; background: var(--bg-surface); }
.er-wahl.an .er-wahl-haken { background: var(--es-tuerkis); border-color: var(--es-tuerkis); color: #fff; }
.er-wahl-ico { font-size: 1.7rem; text-align: center; }
.er-wahl-ico .fc-ico { width: 2rem; height: 2rem; }
.er-wahl-text b { display: block; font-size: 1.02rem; }
.er-wahl-text small { display: block; color: var(--text-secondary); font-size: 0.86rem; line-height: 1.45; margin-top: 0.15rem; }
.er-verbinden-box { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.9rem; border: 2px solid #f59e0b; background: rgba(245,158,11,0.08); border-radius: 0.9rem; padding: 0.85rem 0.9rem; }
.er-verbinden-box.ok { border-color: rgba(34,197,94,0.5); background: rgba(34,197,94,0.1); align-items: center; }
.er-verbinden-box small { display: block; color: var(--text-secondary); font-size: 0.86rem; line-height: 1.45; margin: 0.25rem 0 0.6rem; }
.er-verbinden-liste { margin: 0.4rem 0 0.3rem; padding-left: 1.3rem; font-size: 0.92rem; line-height: 1.5; }
.er-verbinden-liste li { margin-bottom: 0.3rem; }
.er-warn-text { color: #b45309; font-size: 0.85rem; }
.er-verbinden-knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; align-items: center; }
.er-konto { margin-top: 0.9rem; font-size: 0.88rem; }
.er-konto summary { cursor: pointer; color: var(--es-tuerkis); font-weight: 600; }
/* Schritt 6 neu + Assistent „Gerät verbinden“ (09.10.2026) */
.er-besitzer-gross .person-chip { min-height: 48px; font-size: 1rem; }
.er-geraetkacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.er-geraetkachel { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 1rem 0.6rem; background: var(--bg-input); border: 2px solid var(--border); border-radius: 0.9rem; cursor: pointer; color: var(--text-primary); font: inherit; }
.er-geraetkachel.an { border-color: var(--es-tuerkis); background: var(--es-tuerkis-hell); }
.er-geraetkachel .er-wahl-haken { position: absolute; top: 0.5rem; left: 0.5rem; width: 1.4rem; height: 1.4rem; font-size: 0.95rem; }
.er-geraetkachel.an .er-wahl-haken { background: var(--es-tuerkis); border-color: var(--es-tuerkis); color: #fff; }
.er-geraetkachel-bild { font-size: 2.6rem; line-height: 1; }
.er-wuensche { display: grid; gap: 0.5rem; margin-top: 0.9rem; }
.er-wunsch { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; border: 2px solid #f59e0b; background: rgba(245,158,11,0.08); border-radius: 0.7rem; font-weight: 600; }
.er-wunsch.ok { border-color: rgba(34,197,94,0.5); background: rgba(34,197,94,0.08); }
.er-besitzer-wahl { min-width: 9rem; }
.er-ga-hg { position: fixed; inset: 0; z-index: 99990; background: rgba(15,23,42,0.6); display: flex; align-items: center; justify-content: center; padding: 12px; }
.er-ga { width: min(560px, 100%); max-height: 94vh; overflow: auto; background: var(--bg-surface); color: var(--text-primary); border-radius: 1.2rem; padding: 1rem 1.3rem 1.4rem; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.er-ga h3 { font-size: 1.4rem; margin: 0.4rem 0 0.4rem; line-height: 1.3; }
.er-ga .er-unter { margin: 0 0 1rem; }
.er-ga-kopf { display: flex; justify-content: space-between; align-items: center; }
.er-ga-zurueck, .er-ga-spaeter { background: none; border: 0; color: var(--es-tuerkis); font-weight: 700; font-size: 0.95rem; cursor: pointer; padding: 0.4rem 0; }
.er-ga-wahlen { display: grid; gap: 0.7rem; }
.er-ga-drei { grid-template-columns: repeat(3, 1fr); }
.er-ga-wahl { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 1rem 0.6rem; background: var(--bg-input); border: 2px solid var(--border); border-radius: 0.9rem; cursor: pointer; color: var(--text-primary); font: inherit; font-size: 1rem; }
.er-ga-wahl:hover { border-color: var(--es-tuerkis); }
.er-ga-wahl.an { border-color: var(--es-tuerkis); background: var(--es-tuerkis-hell); }
.er-ga-quer { flex-direction: row; text-align: left; gap: 0.9rem; padding: 0.9rem 1rem; }
.er-ga-quer small { display: block; color: var(--text-secondary); font-size: 0.86rem; margin-top: 0.15rem; }
.er-ga-bild { font-size: 2.4rem; line-height: 1; }
.er-ga-text { font-size: 1.05rem; line-height: 1.6; }
.er-ga-schritte { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.8rem; }
.er-ga-schritte li { counter-increment: s; display: grid; grid-template-columns: 1.7rem 4.6rem 1fr; gap: 0.6rem; align-items: center; font-size: 0.98rem; line-height: 1.45; }
.er-ga-schritte li::before { content: counter(s); width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--es-tuerkis); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.er-ga-schritt-bild { display: flex; justify-content: center; align-items: center; gap: 0.2rem; flex-wrap: wrap; }
.er-ga-fuss-mitte { display: flex; flex-direction: column; align-items: stretch; gap: 0.7rem; margin-top: 0.6rem; text-align: center; }
.er-ga-gross { min-height: 54px; font-size: 1.1rem !important; }
.er-ga-zahl { width: 100%; box-sizing: border-box; font-size: 2.2rem; letter-spacing: 0.2em; text-align: center; padding: 0.6rem; border-radius: 0.8rem; border: 2px solid var(--border-hover, #94a3b8); background: var(--bg-input); color: var(--text-primary); }
.er-ga-fehler { min-height: 1.4em; color: #b45309; font-weight: 600; margin: 0.5rem 0; }
.er-bild-chrome, .er-bild-safari, .er-bild-edge { display: inline-block; width: 2.4rem; height: 2.4rem; border-radius: 50%; }
.er-bild-chrome { background: radial-gradient(circle, #4285f4 0 30%, #fff 31% 40%, transparent 41%), conic-gradient(from -30deg, #ea4335 0 120deg, #fbbc04 120deg 240deg, #34a853 240deg 360deg); }
.er-bild-safari { background: radial-gradient(circle, #fff 0 6%, transparent 7%), linear-gradient(45deg, transparent 46%, #ef4444 46% 54%, transparent 54%) center/60% 60% no-repeat, radial-gradient(circle, #e0f2fe 0 62%, #1d8cf8 63%); }
.er-bild-edge { background: conic-gradient(from 200deg, #0c59a4, #2bc3d2, #50e6a0, #0c59a4); }
.er-bild-svg { width: 2.2rem; height: 2.2rem; }
.er-bild-svg.er-bild-rund { width: 2.5rem; height: 2.5rem; }
.er-bild-punkte { font-size: 2rem; font-weight: 900; line-height: 1; color: #475569; }
.er-bild-adresse { font-size: 0.7rem; padding: 0.3rem 0.4rem; border: 1px solid var(--border-hover, #94a3b8); border-radius: 999px; background: var(--bg-input); white-space: nowrap; }
.er-bild-app { width: 2.6rem; height: 2.6rem; border-radius: 0.6rem; }
.er-bild-knopf, .er-bild-text { font-size: 0.66rem; line-height: 1.2; padding: 0.35rem 0.4rem; border: 1px solid var(--border-hover, #94a3b8); border-radius: 0.5rem; text-align: center; background: var(--bg-input); }
.er-bild-zahl { white-space: nowrap; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; padding: 0.3rem 0.4rem; border-radius: 0.5rem; background: var(--es-tuerkis-hell); }
@media (max-width: 480px) {
    .er-ga-drei, .er-geraetkacheln { grid-template-columns: 1fr; }
    .er-ga-drei .er-ga-wahl, .er-geraetkachel { flex-direction: row; justify-content: flex-start; padding: 0.8rem 1rem 0.8rem 2.6rem; gap: 0.8rem; }
    .er-ga-schritte li { grid-template-columns: 1.6rem 3.6rem 1fr; }
}
.er-folgt { display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 0.9rem; padding: 0.8rem 1rem; border-radius: 0.8rem; background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.3); font-size: 0.92rem; line-height: 1.5; }
.er-folgt ol { margin: 0.3rem 0 0; padding-left: 1.2rem; }
.er-kacheln.er-kacheln-liste { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.er-kacheln-liste .er-kachel { justify-content: flex-start; min-height: 48px; font-size: 1rem; }
.er-empfohlen { margin-left: auto; font-size: 0.72rem; font-weight: 800; color: #15803d; background: rgba(34,197,94,0.15); border-radius: 999px; padding: 0.1rem 0.5rem; }
.er-chipliste-gross { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.er-chipliste-gross .person-chip { min-height: 46px; font-size: 1rem; }
.er-schalterzeile-rechts small { display: block; color: var(--text-secondary); font-weight: 400; font-size: 0.85rem; }
/* Was noch fehlt (09.10.2026) */
.er-schritt.warn .er-schritt-nr { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.er-schritt.warn { color: #b45309; font-weight: 700; }
.es-fortschritt i.warn { background: #f59e0b; }
.er-hier-fehlt { background: rgba(245,158,11,0.1); border: 2px solid #f59e0b; border-radius: 0.9rem; padding: 0.7rem 1rem; margin-bottom: 0.9rem; font-size: 0.95rem; }
.er-hier-fehlt ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }
.er-fehlt-karte.ok { border-color: rgba(34,197,94,0.5); }
.er-ansichten { grid-template-columns: 1fr 1fr; }
.er-ansichten .er-ga-wahl { flex-direction: column; align-items: stretch; text-align: left; gap: 0.6rem; }
.er-ansicht-bild { width: 100%; border-radius: 0.6rem; border: 1px solid var(--border); display: block; }
@media (max-width: 600px) { .er-ansichten { grid-template-columns: 1fr; } }
.er-gut-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.er-gut-liste li { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; font-size: 0.95rem; line-height: 1.45; }
.er-gut-liste small { color: var(--text-secondary); }
.er-fehlt-liste { display: grid; gap: 0.6rem; }
.er-fehlt { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1rem; padding: 0.8rem 0.9rem; border: 2px solid #f59e0b; background: rgba(245,158,11,0.07); border-radius: 0.8rem; }
.er-fehlt.wichtig { border-color: #dc2626; background: rgba(220,38,38,0.06); }
.er-fehlt-text { flex: 1 1 16rem; }
.er-fehlt-text b { display: block; font-size: 1rem; }
.er-fehlt-text small { display: block; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.45; margin-top: 0.2rem; }
.er-fehlt-text small b { display: inline; font-size: inherit; }
.er-fehlt-knoepfe { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.er-menue-fehlt { display: flex; align-items: center; gap: 0.5rem; width: 100%; padding: 0.65rem 1rem; background: rgba(245,158,11,0.08); border: none; border-bottom: 1px solid var(--border); color: var(--text-primary); font-size: 0.92rem; font-weight: 700; cursor: pointer; text-align: left; }
.er-menue-fehlt .er-zahl { margin-left: auto; min-width: 1.4rem; height: 1.4rem; border-radius: 999px; background: #f59e0b; color: #fff; font-size: 0.8rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.35rem; }
.er-menue-fehlt .er-ok { margin-left: auto; color: #16a34a; }
.er-menue-fehlt .er-neu { font-size: 0.65rem; font-weight: 800; background: #dc2626; color: #fff; border-radius: 0.3rem; padding: 0.05rem 0.3rem; }
.er-fehlt-punkt { position: absolute; top: -4px; right: -4px; min-width: 1.1rem; height: 1.1rem; border-radius: 999px; background: #f59e0b; color: #fff; font-size: 0.68rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.25rem; pointer-events: none; }
.er-nutzkarten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.er-nutzkarte { background: var(--bg-input); border: 2px solid var(--border); border-radius: 0.9rem; padding: 0.9rem; text-align: center; cursor: pointer; color: var(--text-primary); display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.er-nutzkarte.an { border-color: var(--es-tuerkis); background: var(--es-tuerkis-hell); }
.er-nutzkarte small { color: var(--text-secondary); font-size: 0.8rem; }
.er-nutz-ico { font-size: 1.8rem; }

/* Schritt 3 */
.er-nutzungen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
@media (max-width: 1100px) { .er-nutzungen { grid-template-columns: repeat(3, 1fr); } }
.er-nutzung { display: flex; align-items: center; gap: 0.9rem; background: var(--bg-input); border: 2px solid var(--border); border-radius: 1rem; padding: 1.1rem 1rem; cursor: pointer; color: var(--text-primary); text-align: left; position: relative; }
.er-nutzung.an { border-color: var(--es-tuerkis); }
.er-nutzung.fest { cursor: default; }
.er-nutzung-ico { font-size: 2.6rem; width: 4.5rem; height: 4.5rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--es-tuerkis-hell); flex-shrink: 0; }
.er-nutzung-text b { display: block; font-size: 1rem; }
.er-nutzung-text small { color: var(--text-secondary); font-size: 0.82rem; }
.er-haken { position: absolute; top: 0.7rem; right: 0.7rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; color: #fff; }
.er-nutzung.an .er-haken { background: var(--es-tuerkis); border-color: var(--es-tuerkis); }
.er-leiste-unten { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; padding: 0.8rem 1rem; background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); border-radius: 0.8rem; font-size: 0.88rem; }
.er-leiste-unten .er-schalterzeile { margin: 0; }

/* Schritt 4 */
.er-farbzeilen { display: flex; flex-direction: column; gap: 0.4rem; }
.er-farbzeile { display: grid; grid-template-columns: 1fr auto auto; gap: 0.6rem; align-items: center; padding: 0.35rem 0.5rem; border: 1px solid var(--border); border-radius: 0.6rem; background: var(--bg-input); }
.er-farbfeld { width: 2rem; height: 1.6rem; border-radius: 0.4rem; border: 1px solid rgba(0,0,0,0.15); }
.er-vorschau { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; max-width: 40rem; }
.er-termin { border-left: 5px solid; border-radius: 0.6rem; padding: 0.6rem 0.8rem; color: var(--text-primary); }
.er-termin small { display: block; font-size: 0.78rem; }
.er-termin b { display: block; font-size: 1rem; }
.er-termin span { font-size: 0.8rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.er-termin i { width: 0.6rem; height: 0.6rem; border-radius: 50%; display: inline-block; }

/* Schritt 5 */
.er-tp-kopf, .er-tp-zeile { display: grid; grid-template-columns: minmax(9rem, 12rem) minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 0.5rem 0.8rem; align-items: center; }
.er-tp-kopf { font-size: 0.72rem; color: var(--text-muted); font-weight: 700; margin-bottom: 0.3rem; }
.er-tp-liste { display: flex; flex-direction: column; gap: 0.5rem; }
.er-tp-fuss { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; align-items: center; margin-top: 0.9rem; padding-top: 0.7rem; border-top: 1px solid var(--border); }
.er-tp-fuss .er-schalterzeile, .er-tp-fuss .er-zeile2 { margin: 0; }
.er-tp-fuss .er-zeile2 { grid-template-columns: auto auto; }
.er-chipliste { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.er-stufe { min-width: 3.2rem; justify-content: center; }

/* Schritt 6 */
.er-geraet { display: grid; grid-template-columns: minmax(12rem, 20rem) 1fr; gap: 1.2rem; align-items: start; }
.er-besitzer { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.er-themen { display: inline-flex; gap: 0.4rem; }
/* Die globale Knopf-Regel gibt Buttons Innenabstand – ohne padding:0 werden aus Kreisen Eier */
.er-thema { width: 1.6rem; height: 1.6rem; min-width: 1.6rem; padding: 0; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; line-height: 0; }
.er-thema.an { border-color: var(--text-primary); box-shadow: 0 0 0 2px var(--bg-surface), 0 0 0 4px var(--es-tuerkis); }
.er-tablet { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 0.7rem; }
.er-tablet-bild .sn-portrait { width: 3.6rem; height: 3.6rem; font-size: 1.4rem; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; }
.er-tablet-text b { display: block; }
.er-tablet-text small { color: var(--text-secondary); font-size: 0.82rem; display: block; margin: 0.15rem 0 0.5rem; }
.er-tablet-knoepfe { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }

/* Schritt 7 */
.er-portraits { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.5rem; }
.er-portrait-klein { text-align: center; font-size: 0.8rem; }
.er-portrait-klein .sn-portrait { width: 3.4rem; height: 3.4rem; font-size: 1.3rem; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.2rem; }
.er-portrait-klein small { display: block; }
.er-verbindung { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.er-verbindung:last-child { border-bottom: none; }

/* Kalender-Optionen aus Schritt 4: Wochenende dezenter */
html.kal-we-dezent .weekend, html.kal-we-dezent .day.weekend { opacity: 0.75; filter: saturate(0.6); }

/* Drucken der Zusammenfassung */
@media print {
    html.er-druck body > *:not(#app), html.er-druck header, html.er-druck nav, html.er-druck #bottomNavBar,
    html.er-druck .section:not(#einrichtungSection), html.er-druck .er-fuss, html.er-druck .er-link { display: none !important; }
    html.er-druck #einrichtungSection { display: block !important; overflow: visible !important; height: auto !important; }
    html.er-druck .er-karte { break-inside: avoid; }
}

@media (max-width: 900px) {
    .er-zwei, .er-personen, .er-nutzungen, .er-nutzkarten { grid-template-columns: 1fr 1fr; }
    .er-kacheln-5 { grid-template-columns: repeat(3, 1fr); }
    .er-geraet, .er-profil { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .er-wrap { padding: 0.6rem; }
    .er-kopf { grid-template-columns: 1fr; padding: 0.9rem 1rem; }
    .er-kopf-bilder, .er-kopf-ico { display: none; }
    .er-leiste { justify-content: flex-start; overflow-x: auto; }
    .er-schritt { width: 3.6rem; font-size: 0.7rem; }
    .er-zwei, .er-personen, .er-nutzungen, .er-nutzkarten, .er-vorschau { grid-template-columns: 1fr; }
    .er-kacheln, .er-kacheln-5 { grid-template-columns: 1fr 1fr; }
    .er-tp-kopf { display: none; }
    .er-tp-zeile { grid-template-columns: 1fr; }
    .er-zeile2 { grid-template-columns: 1fr; }
    .er-fuss { flex-wrap: wrap; }
    .er-fuss-mitte { order: 3; flex-basis: 100%; }
}

/* ---------- Wirkung der Einrichtungs-Schalter (12.09.2026) ---------- */
/* Wochenansicht Montag–Freitag: Spalten Sa/So der Wochenansicht ausblenden */
html.kal-fuenf-tage #weekView [style*="repeat(7,1fr)"] { grid-template-columns: 60px repeat(5, 1fr) !important; }
html.kal-fuenf-tage #weekView [style*="repeat(7,1fr)"] > :nth-child(7),
html.kal-fuenf-tage #weekView [style*="repeat(7,1fr)"] > :nth-child(8) { display: none !important; }
/* Wochenende dezenter: Monatsansicht (.weekend) und Wochenansicht (Spalten 7/8) */
html.kal-we-dezent .weekend { opacity: 0.72; filter: saturate(0.55); }
html.kal-we-dezent #weekView [style*="repeat(7,1fr)"] > :nth-child(7),
html.kal-we-dezent #weekView [style*="repeat(7,1fr)"] > :nth-child(8) { opacity: 0.72; filter: saturate(0.55); }
/* Belohnungssystem aus: Wunschbox-Reiter und Sonnen-Felder verschwinden */
html.sonnen-aus [data-section="wunschboxSection"], html.sonnen-aus button[onclick*="wunschboxSection"],
html.sonnen-aus .at-zeile-sonnen, html.sonnen-aus .at-sonnen-hinweis, html.sonnen-aus .at-sonnen,
html.sonnen-aus #newTaskSonnen { display: none !important; }
/* Rezeptvorschläge aus */
html.rezepte-ohne-vorschlaege #rezeptBibliothekBtn, html.rezepte-ohne-vorschlaege #rezeptBibliothekHinweis,
html.rezepte-ohne-vorschlaege #rezeptBibliothekEntfernenBtn { display: none !important; }
/* Ohne Verwaltungsrecht: Mitglieder nur ansehen */
.es-nur-lesen #membersList button, .es-nur-lesen #newMemberName, .es-nur-lesen #newMemberColor, .es-nur-lesen #addMemberBtn { display: none !important; }

/* Verbundene Geräte */
.er-geraet-zeile { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 9rem auto; gap: 0.7rem; align-items: center; padding: 0.5rem 0.6rem; border: 1px solid var(--border); border-radius: 0.7rem; background: var(--bg-input); margin-bottom: 0.4rem; }
.er-geraet-ico { font-size: 1.4rem; width: 2.6rem; text-align: center; }
.er-geraet-knoepfe { display: flex; gap: 0.4rem; flex-wrap: nowrap; }
.er-geraet-zeile > :nth-child(3) { justify-self: start; }
.er-geraet-text b { display: block; font-size: 0.95rem; }
.er-geraet-text b small { font-weight: 400; color: var(--text-muted); }
.er-geraet-text small { color: var(--text-secondary); font-size: 0.78rem; }
#authCodeQr svg { display: block; }
@media (max-width: 640px) { .er-geraet-zeile { grid-template-columns: auto minmax(0, 1fr); } .er-geraet-zeile > :nth-child(3), .er-geraet-zeile > :nth-child(4) { grid-column: 2; } }

/* =====================================================================
   Handy: eigene Führung (GPT-Entwurf, Annett 12.09.2026)
   ===================================================================== */
.es-fortschritt { display: flex; gap: 0.25rem; margin: 0.5rem 0 0.8rem; }
.es-fortschritt i { flex: 1; height: 0.45rem; border-radius: 1rem; background: var(--border); }
.es-fortschritt i.voll { background: var(--es-tuerkis); }
.es-fortschritt i.halb { background: linear-gradient(90deg, var(--es-tuerkis) 50%, var(--border) 50%); }
.er-mobilkopf { display: none; }
.er-karte[hidden], .er-zwei > .er-karte[hidden], #erInhalt > p[hidden], #erInhalt > .es-hinweis[hidden] { display: none !important; }

@media (max-width: 768px) {
    /* Einstellungen: keine Seitenleiste, Übersicht ist die Startseite */
    .es-nav { display: none !important; }
    .es-wrap .es-zurueck, .es-wrap.seite-offen .es-zurueck { display: inline-flex; min-height: 48px; align-items: center; font-size: 1.05rem; }
    .es-kopf { align-items: center; margin-bottom: 0.6rem; }
    .es-kopf-ico { width: 2.8rem; height: 2.8rem; font-size: 1.7rem; }
    .es-kopf h2 { font-size: 1.3rem; }
    .es-kopf p { font-size: 0.85rem; }
    .es-banner-mobil { display: block; text-align: center; padding: 1rem; }
    .es-banner-mobil .es-banner-bilder { justify-content: center; margin-bottom: 0.4rem; }
    .es-banner-mobil h3 { margin: 0; font-size: 1.3rem; font-weight: 800; }
    .es-banner-mobil p { margin: 0.2rem 0 0; color: var(--text-secondary); font-size: 0.9rem; }
    .es-banner-mobil .es-knopf-gelb { width: 100%; min-height: 48px; font-size: 1rem; }
    .es-karte { min-height: 60px; padding: 0.8rem 0.9rem; }
    .es-karte-ico { width: 2.6rem; height: 2.6rem; font-size: 1.5rem; }
    .es-listen { display: flex; flex-direction: column; gap: 0.5rem; }
    .es-listenknopf { display: flex; align-items: center; gap: 0.8rem; min-height: 56px; width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: 0.9rem; background: var(--bg-surface); color: var(--text-primary); text-align: left; cursor: pointer; }
    .es-listenknopf .es-ico { font-size: 1.4rem; width: 2rem; text-align: center; }
    .es-listen-text { flex: 1; min-width: 0; }
    .es-listen-text b { display: block; font-size: 1rem; }
    .es-listen-text small { display: block; color: var(--text-secondary); font-size: 0.8rem; }
    .es-listenknopf.es-rot { color: #c0392b; }
    .es-seite .settings-group button, .es-seite .settings-group select, .es-seite .settings-group input[type="text"] { min-height: 44px; }

    /* Geführte Einrichtung: Vollbild, eigener Kopf, eine Frage je Bildschirm */
    html.er-vollbild header, html.er-vollbild #bottomNavBar, html.er-vollbild .nav-tabs { display: none !important; }
    html.er-vollbild #einrichtungSection { height: 100vh; height: 100dvh; }
    .er-wrap { padding: 0 0 5.5rem; }
    .er-wrap > .er-link, .er-kopf { display: none; }
    .er-mobilkopf { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 0.3rem; position: sticky; top: 0; z-index: 5; background: var(--bg-body); padding: 0.4rem 0.6rem 0.5rem; border-bottom: 1px solid var(--border); margin-bottom: 0.8rem; }
    .er-mobil-zurueck { width: 48px; height: 48px; border: none; background: none; color: var(--text-primary); font-size: 1.6rem; cursor: pointer; }
    .er-mobil-titel { font-weight: 800; font-size: 1.1rem; text-align: center; }
    .er-mobil-spaeter { min-height: 40px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--es-tuerkis); font-weight: 700; border-radius: 999px; padding: 0 0.9rem; cursor: pointer; }
    .er-mobil-fortschritt { grid-column: 1 / -1; padding: 0 0.3rem; }
    .er-mobil-fortschritt span { font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; }
    .er-mobil-fortschritt .es-fortschritt { margin: 0.3rem 0 0; }
    .er-inhalt { padding: 0 0.6rem; }
    .er-karte { border-radius: 1.1rem; padding: 1.1rem 1rem; }
    .er-karte h3 { font-size: 1.35rem; }
    .er-karte h4 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.7rem; }
    .er-karte-kopf { flex-wrap: wrap; }
    .er-unter { font-size: 0.95rem; }
    .er-fuss { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; margin: 0; padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--bg-surface); gap: 0.6rem; flex-wrap: nowrap; }
    .er-fuss > span:first-child:empty { display: none; }
    .er-fuss .es-knopf-hell, .er-fuss .es-knopf-gelb { flex: 1; min-height: 50px; font-size: 1rem; padding: 0.6rem 0.8rem; }
    .er-fuss .er-fuss-mitte { display: none; }
    .er-kachel, .er-nutzung, .er-nutzkarte, .er-person, .es-knopf-hell, .es-knopf-tuerkis, .er-select, .er-input, .er-profil-felder input[type="text"], .er-profil-felder input[type="tel"] { min-height: 48px; }
    .er-schalter { width: 3.4rem; height: 2rem; }
    .er-knubbel::after { width: 1.6rem; height: 1.6rem; }
    .er-schalter input:checked + .er-knubbel::after { transform: translateX(1.4rem); }
    /* „Dieses Gerät gehört“: große Porträt-Karten in zwei Spalten */
    .er-besitzer { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
    .er-besitzer .person-chip { flex-direction: column; justify-content: center; gap: 0.4rem; border-radius: 1rem; padding: 0.9rem 0.5rem; min-height: 7.5rem; font-size: 1rem; }
    .er-besitzer .person-chip .sn-portrait { width: 64px; height: 64px; font-size: 1.6rem; }
    .er-nutzungen, .er-nutzkarten, .er-personen, .er-zwei { grid-template-columns: 1fr; }
    .er-nutzung { min-height: 5.5rem; }
    .er-tp-zeile { grid-template-columns: 1fr; gap: 0.5rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
}

/* „Profil von …“ über Mein Profil (08.10.2026) */
.es-profil-wer { display: flex; align-items: center; gap: 0.8rem; background: var(--bg-elevated, #eef7f5); border: 1px solid var(--border, #d5e3e0); border-radius: 0.9rem; padding: 0.7rem 0.9rem; margin-bottom: 0.9rem; }
.es-profil-wer .sn-portrait, .es-profil-wer img { width: 44px !important; height: 44px !important; flex: 0 0 44px; }
.es-profil-wer b { display: block; font-size: 1.15rem; }
.es-profil-wer small { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.4; }

/* Aufgaben-Assistent (10.10.2026) */
.aa-fenster { width: min(640px, 100%); }
.aa-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 0.6rem; }
.aa-kachel { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.8rem 0.4rem; background: var(--bg-input); border: 2px solid var(--border); border-radius: 0.9rem; cursor: pointer; color: var(--text-primary); font: inherit; font-size: 0.92rem; font-weight: 600; text-align: center; }
.aa-kachel.an, .aa-kachel:hover { border-color: var(--es-tuerkis); }
.aa-kachel-bild { height: 56px; display: flex; align-items: center; justify-content: center; }
.aa-eingabe { width: 100%; box-sizing: border-box; font-size: 1.2rem; padding: 0.7rem 0.8rem; border-radius: 0.7rem; border: 2px solid var(--border-hover, #94a3b8); background: var(--bg-input); color: var(--text-primary); }
.aa-eingabe.aa-klein { width: auto; font-size: 1.05rem; padding: 0.45rem 0.6rem; }
.aa-zeiten { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.aa-zeit { min-width: 4.4rem; min-height: 48px; font-size: 1.05rem; font-weight: 700; border-radius: 0.7rem; border: 2px solid var(--border); background: var(--bg-input); color: var(--text-primary); cursor: pointer; margin: 0.15rem 0; }
.aa-zeit.an { border-color: var(--es-tuerkis); background: var(--es-tuerkis); color: #fff; }
.aa-andere { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.9rem 0 0.4rem; font-size: 1rem; }
.aa-spanne { margin-top: 0.8rem; }
.aa-spanne summary { cursor: pointer; color: var(--es-tuerkis); font-weight: 600; }
.aa-vorschau { display: flex; gap: 1rem; align-items: center; padding: 1rem; border-radius: 1rem; background: linear-gradient(180deg, #e6f7f6 0%, #fbf8f1 100%); color: #12343b; margin: 0.5rem 0 1rem; }
.aa-vorschau b { display: block; font-size: 1.5rem; line-height: 1.2; }
.aa-vorschau span { display: block; font-size: 0.95rem; color: #3b5a60; margin-top: 0.15rem; }
.aa-vorschau-bild { flex: 0 0 auto; }

.aa-legende { margin: 0 0 0.8rem; padding-left: 1.1rem; font-size: 0.9rem; line-height: 1.5; color: var(--text-secondary); }
.aa-pruef-liste { display: grid; gap: 0.7rem; margin-bottom: 0.6rem; }
.aa-pruef-zeile { border: 1px solid var(--border); border-radius: 0.8rem; padding: 0.7rem 0.8rem; background: var(--bg-input); }
.aa-pruef-kopf { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 0.5rem; }
.aa-pruef-kopf b { display: block; font-size: 1.02rem; }
.aa-pruef-kopf small { color: var(--text-secondary); }
.aa-stufen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.aa-stufe { min-height: 44px; border-radius: 0.6rem; border: 2px solid var(--border); background: var(--bg-surface); color: var(--text-primary); font-weight: 700; font-size: 0.88rem; cursor: pointer; }
.aa-stufe.an { border-color: var(--es-tuerkis); background: var(--es-tuerkis-hell); }

.er-fern-stand { font-size: 1rem; line-height: 1.5; margin: 0.6rem 0 0.2rem; padding: 0.6rem 0.8rem; border-radius: 0.7rem; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.4); }
.er-fern-stand.ok { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.45); }
.er-feld-fehler { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,0.15); }
.er-profil.er-profil-einspaltig { grid-template-columns: 1fr; max-width: 640px; }
.er-profil-einspaltig .er-profil-bild { display: flex; align-items: center; gap: 0.9rem; text-align: left; }
.er-profil-einspaltig .er-profil-bild .er-portrait .sn-portrait, .er-profil-einspaltig .er-profil-bild .er-portrait img { width: 4rem !important; height: 4rem !important; font-size: 1.5rem; }
.er-profil-einspaltig .er-profil-bild { display: flex !important; flex-direction: row !important; justify-content: flex-start !important; align-items: center !important; gap: 0.9rem; min-height: 0 !important; height: auto !important; margin: 0 !important; }
.er-profil-einspaltig .er-profil-bild .er-portrait { width: auto !important; height: auto !important; margin: 0 !important; flex: 0 0 auto; }
.er-profil-einspaltig .er-profil-bild .es-knopf-hell { margin: 0 !important; width: auto !important; }

/* Wahl „Jetzt / Später“ + Beispiel-Aufgabe (10.10.2026) */
.er-wahl-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.6rem; }
.er-wahl-zwei .es-knopf-hell { border: 2px solid var(--es-tuerkis); }
.er-wahl-zwei .es-knopf-hell.an { background: var(--es-tuerkis-hell); }
@media (max-width: 480px) { .er-wahl-zwei { grid-template-columns: 1fr; } }
@keyframes erWahlBlink { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,197,66,0); } 30%, 70% { box-shadow: 0 0 0 5px rgba(245,197,66,0.9); } }
.er-wahl-blink { animation: erWahlBlink 1.4s ease 2; }
.aa-beispiel { background: #fff8dc; color: #3a2f00; border: 1px solid #f5c542; border-radius: 0.7rem; padding: 0.55rem 0.8rem; margin: 0.4rem 0 0.8rem; font-size: 0.92rem; line-height: 1.4; }
.aa-tp-knopf { padding: 0.4rem 1rem; font-size: 0.85rem; background: var(--es-tuerkis, #0e9aa7); color: #fff; border: none; border-radius: 2rem; cursor: pointer; font-weight: 700; margin-left: auto; }

/* „👁 So sieht das aus“ in den Wofür-Kacheln (11.10.2026) */
.er-beispiel-link { display: inline-block; margin-top: 0.45rem; padding: 0.25rem 0.7rem; border-radius: 999px; border: 1.5px solid var(--es-tuerkis); color: var(--es-tuerkis); font-weight: 700; font-size: 0.82rem; cursor: pointer; background: var(--bg-surface); }
.er-beispiel-link:hover { background: var(--es-tuerkis-hell); }
.er-beispiel-fenster { width: min(760px, 100%); }
.er-beispiel-bild { display: block; width: 100%; border-radius: 0.8rem; border: 1px solid var(--border); margin: 0.4rem 0 0.8rem; }

/* Wofür-Kacheln mit großem Bildschirmfoto (11.10.2026) */
.er-nutzung.er-nutzung-bild { flex-direction: column; align-items: stretch; padding: 0 0 0.9rem; overflow: hidden; gap: 0.6rem; }
.er-nutzung-foto { position: relative; display: block; aspect-ratio: 16 / 10; background: #eef4f3; border-bottom: 1px solid var(--border); }
.er-nutzung-foto img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.er-foto-gross { position: absolute; left: 0.5rem; bottom: 0.5rem; background: rgba(255,255,255,0.92); color: #16323a; font-weight: 700; font-size: 0.8rem; padding: 0.2rem 0.6rem; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); cursor: pointer; }
.er-nutzung.er-nutzung-bild .er-nutzung-text { padding: 0 0.9rem; }
.er-nutzung.er-nutzung-bild .er-haken { top: 0.5rem; right: 0.5rem; box-shadow: 0 2px 6px rgba(0,0,0,0.18); background: #fff; }
.er-nutzung.er-nutzung-bild.an .er-haken { background: var(--es-tuerkis); }
.er-nutzung.er-nutzung-bild:not(.an) .er-nutzung-foto img { filter: grayscale(0.35); opacity: 0.85; }
@media (max-width: 760px) { .er-nutzungen { grid-template-columns: 1fr 1fr; } .er-nutzung.er-nutzung-bild .er-nutzung-text small { font-size: 0.78rem; } }
@media (max-width: 420px) { .er-nutzungen { grid-template-columns: 1fr; } }

/* „So legst du Aufgaben an“: zwei schlichte Zeilen (11.10.2026) */
.er-weg { display: flex; flex-direction: column; gap: 0.45rem; margin: 0.4rem 0 0.9rem; padding: 0.7rem 0.9rem; border-radius: 0.8rem; background: var(--es-tuerkis-hell); line-height: 1.45; }

/* Streifen „Benachrichtigungen aus“ im Kalender (11.10.2026) */
.er-push-streifen { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin: 0 0 0.7rem; padding: 0.7rem 1rem; border-radius: 0.9rem; background: #fff3d6; color: #5a3d00; border: 2px solid #f5c542; font-size: 0.95rem; line-height: 1.4; }
.er-push-streifen-knoepfe { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.er-push-streifen .er-link { color: #5a3d00; }

/* „Braucht … einen Tagesplan?“: echte Bilder statt Emoji (11.10.2026) */
.er-ga-bild:has(.er-tp-wahl-bild) { width: auto; height: auto; font-size: 0; background: none; flex-shrink: 0; }
.er-tp-wahl-bild { width: clamp(130px, 28vw, 220px); aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 0.6rem; border: 1px solid var(--border); display: block; }
@media (max-width: 480px) { .er-ga-wahl.er-ga-quer:has(.er-tp-wahl-bild) { flex-direction: column; align-items: stretch; } .er-tp-wahl-bild { width: 100%; } }

/* Farben der Tagesplan-Zeilen bei Kindern (11.10.2026) */
.er-tpf-muster { display: inline-flex; flex-direction: column; gap: 3px; width: 54px; flex-shrink: 0; }
.er-tpf-muster i { display: block; height: 9px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.06); }
.er-tpf-lieb { cursor: default; }
.er-tpf-wahl { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.45rem; }
.er-tpf-punkt { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--border); cursor: pointer; padding: 0; }
.er-tpf-punkt.an { box-shadow: 0 0 0 3px var(--es-tuerkis); }

/* Hinweis-Kasten (iPad-Tipps, Android-Empfehlung, 11.10.2026) */
.er-hinweis-box { display: block; margin: 0.8rem 0 0.4rem; padding: 0.75rem 0.95rem; border-radius: 0.8rem; background: #fff8dc; color: #3a2f00; border: 1px solid #f5c542; line-height: 1.45; font-size: 0.95rem; }
.er-hinweis-box ol { margin: 0.4rem 0 0.4rem 1.2rem; padding: 0; }
.er-hinweis-box li { margin: 0.25rem 0; }
.er-hinweis-box small { display: block; color: #5a4a10; }

/* Anleitungs-Schritte im Geräte-Assistenten ordentlich (Annett 11.10.2026: „sieht nicht gut aus“):
   feste Bild-Spalte, alle Bild-Kästchen gleich breit, nichts ragt in den Text */
.er-ga-schritte li { grid-template-columns: 1.8rem 7.5rem 1fr; gap: 0.8rem; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
.er-ga-schritte li:last-child { border-bottom: none; }
.er-ga-schritt-bild { width: 7.5rem; min-height: 3rem; }
.er-ga-schritt-bild .er-bild-adresse,
.er-ga-schritt-bild .er-bild-knopf,
.er-ga-schritt-bild .er-bild-text,
.er-ga-schritt-bild .er-bild-zahl { box-sizing: border-box; width: 7.5rem; white-space: normal; overflow-wrap: anywhere; text-align: center; font-size: 0.72rem; line-height: 1.25; padding: 0.4rem 0.45rem; }
.er-ga-schritt-bild .er-bild-zahl { font-size: 0.95rem; }
@media (max-width: 480px) {
    .er-ga-schritte li { grid-template-columns: 1.6rem 5.5rem 1fr; gap: 0.55rem; }
    .er-ga-schritt-bild, .er-ga-schritt-bild .er-bild-adresse, .er-ga-schritt-bild .er-bild-knopf, .er-ga-schritt-bild .er-bild-text, .er-ga-schritt-bild .er-bild-zahl { width: 5.5rem; }
}

.er-hinweis-warn { background: #fff1e6; border-color: #f59e0b; color: #4a2a00; }
.er-hinweis-warn ul { margin: 0.4rem 0 0 1.1rem; padding: 0; }
.er-hinweis-warn li { margin: 0.3rem 0; }

/* Wofür-Kacheln größer: 3 nebeneinander (Annett 11.10.2026: „damit man es besser erkennen kann“) */
.er-nutzungen:has(.er-nutzung-bild) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 760px) { .er-nutzungen:has(.er-nutzung-bild) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .er-nutzungen:has(.er-nutzung-bild) { grid-template-columns: 1fr; } }

/* Haken unten beim Namen statt oben im Bild (Annett 11.10.2026) */
.er-nutzung.er-nutzung-bild { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "foto foto" "text haken"; column-gap: 0.5rem; row-gap: 0.6rem; }
.er-nutzung.er-nutzung-bild .er-nutzung-foto { grid-area: foto; }
.er-nutzung.er-nutzung-bild .er-nutzung-text { grid-area: text; }
.er-nutzung.er-nutzung-bild .er-haken { grid-area: haken; position: static; align-self: start; margin: 0.1rem 0.9rem 0 0; width: 1.9rem; height: 1.9rem; font-size: 1.05rem; box-shadow: none; }

/* Ferneinrichtung Tagesplan-Gerät: Ansicht + Farben (11.10.2026) */
.er-fern-zeile { margin: 0.7rem 0; }
.er-fern-zeile > b { display: block; margin-bottom: 0.4rem; }
.er-fern-wahl { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.er-fern-knopf { display: flex; flex-direction: column; align-items: stretch; gap: 0.35rem; width: 210px; max-width: 100%; padding: 0.4rem; border: 2px solid var(--border); border-radius: 0.8rem; background: var(--bg-surface); color: var(--text-primary); cursor: pointer; font-weight: 700; font-size: 0.88rem; }
.er-fern-knopf img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 0.5rem; }
.er-fern-knopf.an, .er-fern-chip.an { border-color: var(--es-tuerkis); background: var(--es-tuerkis-hell); }
.er-fern-chip { padding: 0.45rem 0.85rem; border-radius: 999px; border: 2px solid var(--border); background: var(--bg-surface); color: var(--text-primary); font-weight: 700; cursor: pointer; }
