/*
 * Tacheles – Grundgerüst (Design aus claude.ai/design, Stand 7a).
 * Gestaltet für ein Tablet quer (1180 × 820), fließend für andere Größen.
 *
 * Aufbau:
 *   Startseite  – Kopf (Logo, Uhr), Titel, Karte „Zuletzt benutzt“ und Kacheln aller Werkzeuge
 *   Werkzeug    – schmale Leiste links (Menü, Uhr), offenes Werkzeug, großes Feld in der Modulfarbe
 *
 * Bausteine für Module: .knopf (--haupt, --neben, --leise, --hell), .schalter, .regler, .platzhalter
 * Alles ist mit einem Finger bedienbar: nur Antippen und Ziehen, Tippflächen mindestens 48 × 48 px.
 */

/* ---------- Schriften (selbst eingebunden, nichts von fremden Servern) ---------- */

@font-face {
    font-family: "Saira";
    src: url("schriften/saira.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Atkinson Hyperlegible Next";
    src: url("schriften/atkinson-hyperlegible-next.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

/* ---------- Farben und Maße ---------- */

:root {
    /* Grundfarben */
    --petrol: #186380;          /* Seitenhintergrund */
    --petrol-tief: #0E4A62;     /* Menü-Knopf, Dialoge, Logo-Grund */
    --petrol-hell: #3688AF;     /* Band */
    --creme: #FFF0CF;           /* Text auf Dunkel · Modulfarbe 1 */
    --orange: #E87F1C;          /* Hauptknopf, Timer-Balken · Modulfarbe 2 */
    --tinte: #131723;           /* Text auf Hell · Modulfarbe 3 */
    --tuerkis: #49AEC0;         /* Modulfarbe 4, Entsperr-Ring, Fokus */

    /* Flächen auf Tinte */
    --tinte-flaeche: #1F2433;
    --tinte-knopf: #262D3D;     /* Balken-Spur, Rand der leisen Knöpfe */
    --tinte-rand: #3A4254;      /* Rand der Nebenknöpfe, Schalter aus */
    --tinte-leise: #AEB7C4;     /* blasser Text auf Tinte */
    --tinte-leise-2: #C9D0DA;   /* Text der leisen Knöpfe */

    /* Flächen auf Creme */
    --creme-dunkel: #F2DFB5;
    --weiss: #FFFFFF;
    --petrol-leise: #D4E6EC;    /* blasser Text auf Petrol-tief */

    /* Verläufe */
    --band-waagerecht: linear-gradient(#4597BD 0%, #3688AF 14%, #2479A0 42%, #1C6A88 72%, #145670 100%);
    --band-senkrecht: linear-gradient(90deg, #134F66 0%, #2A7BA0 30%, #4597BD 44%, #3688AF 54%, #1F6E8C 78%, #155872 100%);
    --balken-fuellung: linear-gradient(#F39A45, #E87F1C 45%, #C9690F);

    /* Schatten */
    --schatten-kachel: 0 14px 28px rgba(0, 22, 32, .28), inset 0 2px 0 rgba(255, 255, 255, .22);
    --schatten-karte: 0 18px 36px rgba(0, 22, 32, .32), inset 0 2px 0 rgba(255, 255, 255, .08);
    --schatten-feld: 0 20px 40px rgba(0, 22, 32, .25);
    --schatten-menue: 0 8px 16px rgba(0, 20, 30, .25);
    --glanz-knopf: inset 0 2px 0 rgba(255, 255, 255, .3);
    --glanz-band: inset 0 2px 0 rgba(255, 255, 255, .18), inset 0 -3px 6px rgba(0, 20, 30, .25);

    /* Schrift */
    --schrift-titel: "Saira", system-ui, sans-serif;                       /* Überschriften, Knöpfe, Zahlen */
    --schrift-text: "Atkinson Hyperlegible Next", system-ui, sans-serif;   /* Fließtext, Beschriftungen */

    /* Radien */
    --radius-feld: 32px;
    --radius-karte: 44px;
    --radius-kachel: 32px;
    --radius-voll: 999px;       /* alle Knöpfe sind Pillen */

    /* Bewegung */
    --feder: cubic-bezier(.34, 1.56, .64, 1);        /* Antippen: zurückfedern */
    --feder-weich: cubic-bezier(.34, 1.35, .64, 1);  /* Werkzeug fährt in die Leiste */
    --gleiten: cubic-bezier(.2, .8, .2, 1);          /* Kachel wächst, Band rollt */

    /* Abstände */
    --abstand: 24px;            /* um das Feld herum */
    --leiste: 104px;            /* Breite der Leiste */
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }

body {
    margin: 0;
    min-height: 100%;
    font-family: var(--schrift-text);
    font-size: 1.0625rem;
    line-height: 1.4;
    color: var(--creme);
    background: var(--petrol);
    transition: background-color .6s ease;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tuerkis); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Alles mit EINEM Finger: kein Zoom bei Doppeltipp, keine Verzögerung */
a, button, summary, label, input, select, textarea { touch-action: manipulation; }

/* Hintergrund im Werkzeug: Petrol, leicht in der Modulfarbe getönt */
body.modul-farbe-creme   { background: color-mix(in oklch, var(--petrol) 84%, var(--creme)); }
body.modul-farbe-orange  { background: color-mix(in oklch, var(--petrol) 84%, var(--orange)); }
body.modul-farbe-tinte   { background: color-mix(in oklch, var(--petrol) 76%, var(--tinte)); }
body.modul-farbe-tuerkis { background: color-mix(in oklch, var(--petrol) 84%, var(--tuerkis)); }

/* Modulfarben für Flächen (Kachel, Feld, offenes Werkzeug) – mit passender Schrift */
.farbe-creme,   body.modul-farbe-creme   :is(.feld, .leiste__modul) { background: var(--creme);   color: var(--tinte); }
.farbe-orange,  body.modul-farbe-orange  :is(.feld, .leiste__modul) { background: var(--orange);  color: var(--tinte); }
.farbe-tinte,   body.modul-farbe-tinte   :is(.feld, .leiste__modul) { background: var(--tinte);   color: var(--creme); }
.farbe-tuerkis, body.modul-farbe-tuerkis :is(.feld, .leiste__modul) { background: var(--tuerkis); color: var(--tinte); }

/* ---------- Logo mit Name ---------- */

.marke { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.marke__logo { width: 52px; height: 52px; flex: none; }
.marke__name { font-family: var(--schrift-titel); font-size: 30px; font-weight: 800; line-height: 1; }

/* ---------- Knöpfe: alle sind Pillen ---------- */

.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 2px solid transparent;
    border-radius: var(--radius-voll);
    background: transparent;
    color: inherit;
    font-family: var(--schrift-titel);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: transform .45s var(--feder), background-color .25s;
}
.knopf:active { transform: scale(.95); }
.knopf__symbol { width: 1.25em; height: 1.25em; flex: none; }

.knopf--haupt { background: var(--orange); color: var(--tinte); box-shadow: var(--glanz-knopf); }   /* genau einer pro Ansicht */
.knopf--neben { border-color: var(--tinte-rand); }
.knopf--neben:active { transform: scale(.92); }
.knopf--leise { border-color: var(--tinte-knopf); color: var(--tinte-leise-2); }
.knopf--leise:active { transform: scale(.94); }
.knopf--hell { background: var(--creme); color: var(--tinte); }
.knopf--hell:active { transform: scale(.94); }

/* ---------- Schalter: ganze Zeile antippbar, rechts ein Kippschalter ---------- */

.schalter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
.schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.schalter__bahn {
    position: relative;
    flex: none;
    width: 56px;
    height: 32px;
    border-radius: var(--radius-voll);
    background: var(--tinte-rand);
    transition: background-color .25s;
}
.schalter__bahn::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--tinte);
    transition: left .35s var(--feder);
}
.schalter input:checked + .schalter__bahn { background: var(--orange); }
.schalter input:checked + .schalter__bahn::after { left: 28px; }
.schalter input:focus-visible + .schalter__bahn { outline: 3px solid var(--tuerkis); outline-offset: 3px; }

/* Kästchen (z. B. „Voller Balken = eingestellte Zeit“) */
.kaestchen { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.kaestchen input { width: 26px; height: 26px; margin: 0; flex: none; accent-color: var(--orange); }

/* ---------- Schieberegler: Spur, orange Füllung (Wert in --anteil), großer creme Griff ---------- */

.regler {
    --anteil: 50%;
    width: 100%;
    height: 40px;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.regler::-webkit-slider-runnable-track {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--orange) var(--anteil), var(--tinte-rand) var(--anteil));
}
.regler::-moz-range-track { height: 10px; border-radius: 5px; background: var(--tinte-rand); }
.regler::-moz-range-progress { height: 10px; border-radius: 5px; background: var(--orange); }
.regler::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 36px;
    height: 36px;
    margin-top: -13px;
    border: 0;
    border-radius: 50%;
    background: var(--creme);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.regler::-moz-range-thumb { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--creme); }
.regler:disabled { opacity: .35; cursor: not-allowed; }
.regler:focus-visible { outline: 3px solid var(--tuerkis); outline-offset: 3px; }

/* ---------- Startseite ----------
 * Quer passt immer alles auf einen Bildschirm: Abstände, Schrift, Karte und Kacheln wachsen und
 * schrumpfen mit der Höhe (vh). Gestaltet für 820 px Höhe, passt bis ca. 360 px Höhe
 * (viele Android-Tablets melden dem Browser nur 400 px Höhe, weil sie die Pixel vergrößern).
 * Hochkant oder sehr schmal: untereinander, die Seite scrollt.
 */

.start {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: clamp(12px, 4.9vh, 40px) clamp(20px, 4.7vw, 56px);
    overflow: hidden;
    animation: start-erscheinen .34s ease-out;
}
@keyframes start-erscheinen {
    from { opacity: 0; transform: scale(.985); }
}

/* Band quer über die Seite – nur in den Lücken zu sehen */
.start__band {
    position: absolute;
    left: 0;
    right: 0;
    top: 40%;
    height: 30.5%;
    background: var(--band-waagerecht);
    box-shadow: var(--glanz-band);
    pointer-events: none;
}

.start__kopf { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.start .marke__logo { width: clamp(36px, 6.3vh, 52px); height: clamp(36px, 6.3vh, 52px); }
.start .marke__name { font-size: clamp(22px, 3.7vh, 30px); }
/* Oben rechts: Knopf „Konto“ und der Streifen mit Uhr (rechts daran in Türkis „App installieren“, nur wenn möglich) */
.start__rechts { display: flex; align-items: center; gap: 12px; }
.start__konto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: clamp(48px, 6.3vh, 52px);
    padding: 0 clamp(14px, 2.7vh, 20px);
    border-radius: var(--radius-voll);
    background: var(--petrol-tief);
    color: var(--creme);
    font-family: var(--schrift-titel);
    font-size: clamp(15px, 2.2vh, 18px);
    font-weight: 700;
    text-decoration: none;
    transition: transform .45s var(--feder);
}
.start__konto:active { transform: scale(.94); }
.start__konto-symbol { width: 22px; height: 22px; flex: none; }
/* Streifen oben rechts: Uhr, rechts daran in Türkis „App installieren“ (erscheint nur, wenn möglich) */
.start__streifen {
    display: inline-flex;
    align-items: stretch;
    height: clamp(48px, 6.3vh, 52px);
    border-radius: var(--radius-voll);
    background: var(--petrol-tief);
}
.start__uhr {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 clamp(14px, 2.7vh, 22px);
    border-radius: var(--radius-voll);
    font-family: var(--schrift-titel);
    font-size: clamp(15px, 2.2vh, 18px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.start__uhr-trenner { opacity: .6; }
.start__installieren {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: -6px;                  /* setzt den Streifen nahtlos fort */
    padding: 0 clamp(16px, 2.7vh, 22px);
    border: 0;
    border-radius: var(--radius-voll);
    background: var(--tuerkis);
    color: var(--tinte);
    font-family: var(--schrift-titel);
    font-size: clamp(15px, 2.2vh, 18px);
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--glanz-knopf);
    transition: transform .45s var(--feder);
}
.start__installieren:active { transform: scale(.94); }
.start__installieren-symbol { width: 22px; height: 22px; flex: none; }

.start__titel {
    position: relative;
    flex: none;
    margin: clamp(6px, 4.1vh, 34px) 0 clamp(8px, 5.6vh, 46px);
    font-family: var(--schrift-titel);
    font-size: clamp(20px, min(4.1vw, 5.9vh), 48px);
    font-weight: 700;
    line-height: 1.1;
}
.start__leer { position: relative; font-size: 22px; }

.start__inhalt {
    position: relative;
    flex: 1;
    min-height: 0;
    max-height: 520px;
    display: grid;
    grid-template-columns: minmax(220px, min(420px, 36%)) minmax(0, 1fr);
    gap: clamp(14px, 3.4vh, 28px);
}

/* Karte „Zuletzt benutzt“ */
.zuletzt {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: clamp(14px, 4.4vh, 36px);
    border-radius: clamp(24px, 5.4vh, 44px);
    overflow: hidden;
    background: var(--tinte);
    color: var(--creme);
    box-shadow: var(--schatten-karte);
}
.zuletzt__beschriftung { flex: none; font-size: clamp(14px, 2.4vh, 20px); font-weight: 700; color: var(--tinte-leise); }
.zuletzt__symbol { flex: 1; min-height: 0; display: flex; align-items: center; }
.zuletzt__symbol svg { width: min(120px, 14.6vh); height: min(120px, 14.6vh); max-height: 100%; }
.zuletzt__name { flex: none; font-family: var(--schrift-titel); font-size: clamp(26px, min(5.4vw, 7.8vh), 64px); font-weight: 700; line-height: 1; }
.zuletzt__weiter { flex: none; margin-top: clamp(8px, 2.9vh, 24px); height: clamp(48px, 8.8vh, 72px); font-size: clamp(17px, 2.9vh, 24px); }
.zuletzt__weiter .knopf__symbol { width: 1.15em; height: 1.15em; }

/* Kacheln aller Werkzeuge */
.kacheln {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 2vh, 16px);
}
.kachel {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(4px, 1.2vh, 10px);
    padding: 0 clamp(12px, 1.9vw, 22px);
    border-radius: clamp(22px, 3.9vh, 32px);
    box-shadow: var(--schatten-kachel);
    text-decoration: none;
    transition: transform .45s var(--feder);
}
.kachel:active { transform: scale(.94); }
.kachel__symbol { width: clamp(24px, 5.4vh, 44px); height: clamp(24px, 5.4vh, 44px); flex: none; }
.kachel__name { font-family: var(--schrift-titel); font-size: clamp(15px, 2.9vh, 24px); font-weight: 700; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Werkzeug-Seite: Leiste links, Feld rechts ---------- */

body.art-modul { height: 100vh; height: 100dvh; overflow: hidden; }

/*
 * Leiste: oben Menü, darunter alle Werkzeuge in fester Reihenfolge, unten die Uhr.
 * Die Knöpfe liegen über dem Feld, die Leiste ist etwas breiter als ihr Band – so hat das offene Werkzeug
 * Platz, um ins Feld hineinzuragen. Der durchsichtige Rand lässt Antippen zum Feld durch.
 * Das blaue Band selbst liegt UNTER dem Feld (body::before), damit dessen runde Ecken sichtbar bleiben.
 */
.leiste {
    position: fixed;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    width: calc(var(--leiste) + 20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
    pointer-events: none;
}
body.art-modul::before {                /* das senkrechte Band – unter dem Feld */
    content: "";
    position: fixed;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--leiste);
    background: var(--band-senkrecht);
    box-shadow: inset -2px 0 4px rgba(0, 20, 30, .2);
}
.leiste > * { position: relative; pointer-events: auto; }

.leiste__menue {
    flex: none;
    margin-left: 12px;
    width: 80px;
    height: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 26px;
    background: var(--petrol-tief);
    color: var(--creme);
    box-shadow: var(--schatten-menue);
    font-family: var(--schrift-titel);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .45s var(--feder);
}
.leiste__menue:active { transform: scale(.92); }
.leiste__menue-symbol { width: 30px; height: 30px; }

/* Werkzeuge: passen sie nicht in die Höhe, lässt sich der Bereich senkrecht wischen */
.leiste__werkzeuge {
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 4px 0 8px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}
.leiste__werkzeuge::-webkit-scrollbar { display: none; }
.leiste__eintrag { flex: none; padding-left: 12px; }
/* Nur die Werkzeuge selbst fangen das Antippen – der Rand rechts daneben gehört zum Feld */
.leiste > .leiste__werkzeuge { pointer-events: none; }
.leiste__eintrag > a { pointer-events: auto; }

/* Andere Werkzeuge: klein, in ihrer Farbe, mit Symbol und Namen */
.leiste__werkzeug {
    width: 80px;
    min-height: 72px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 22px;
    box-shadow: 0 6px 12px rgba(0, 20, 30, .22), inset 0 2px 0 rgba(255, 255, 255, .18);
    font-family: var(--schrift-titel);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    transition: transform .45s var(--feder);
}
.leiste__werkzeug:active { transform: scale(.92); }
.leiste__werkzeug span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leiste__werkzeug-symbol { width: 26px; height: 26px; flex: none; }

/* Offenes Werkzeug: gleiche Farbe wie das Feld, ragt hinein und verschmilzt damit */
.leiste__modul {
    width: 108px;
    height: 96px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 32px 0 0 32px;
    font-family: var(--schrift-titel);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    animation: modul-hereinfahren .56s var(--feder-weich) .06s backwards;
}
.leiste__modul-symbol { width: 32px; height: 32px; }
@keyframes modul-hereinfahren {
    from { transform: translateX(-130px); }
}

/* Uhr unten in der Leiste */
.leiste__uhr {
    flex: none;
    width: calc(var(--leiste) - 16px);
    margin-left: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 4px;
    border-radius: 22px;
    background: rgba(14, 74, 98, .75);
    color: var(--creme);
    text-align: center;
}
.leiste__zeit { font-family: var(--schrift-titel); font-size: 22px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.leiste__datum { font-size: 13px; font-weight: 700; color: var(--petrol-leise); white-space: nowrap; }

.feld {
    position: fixed;
    z-index: 1;
    top: var(--abstand);
    right: var(--abstand);
    bottom: var(--abstand);
    left: calc(var(--leiste) - 4px);
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: var(--radius-feld);
    box-shadow: var(--schatten-feld);
    transition: left .5s var(--gleiten);
    view-transition-name: feld;            /* die angetippte Kachel wächst zu diesem Feld */
}
/* Inhalt blendet ein. Module mit Überlagerungen über den ganzen Bildschirm (z. B. der Timer) nehmen sich
   davon aus und blenden ihre Teile selbst ein – sonst würde die Bewegung die Überlagerung ins Feld sperren. */
.feld > :not(.ohne-einblenden) { animation: inhalt-einblenden .38s ease-out .08s backwards; }
@keyframes inhalt-einblenden {
    from { opacity: 0; transform: translateY(14px); }
}

/* Gesperrt (z. B. Timer): nur noch das Feld, über die ganze Breite */
body.ist-gesperrt .leiste,
body.ist-gesperrt::before { display: none; }
body.ist-gesperrt .feld { left: var(--abstand); }

/* ---------- Platzhalter für Werkzeuge, die es noch nicht gibt ---------- */

.platzhalter {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 32px;
    text-align: center;
}
.platzhalter__symbol { width: 110px; height: 110px; }
.platzhalter__titel { font-family: var(--schrift-titel); font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; line-height: 1.1; }
.platzhalter__text { font-size: 21px; }

/* ---------- Einfache Seiten (z. B. Fehler) ---------- */

.einfach {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 56px;
}
.einfach__karte {
    display: grid;
    gap: 18px;
    width: min(100%, 680px);
    padding: 36px;
    border-radius: var(--radius-karte);
    background: var(--tinte);
    box-shadow: var(--schatten-karte);
}
.einfach__titel { font-family: var(--schrift-titel); font-size: 40px; font-weight: 700; line-height: 1.1; }
.einfach__text { font-size: 20px; color: var(--tinte-leise); }

/* ---------- Konto ---------- */

.konto { display: grid; gap: 18px; }
.meldung { padding: 12px 16px; border-radius: 16px; background: rgba(73, 174, 192, .18); color: var(--creme); font-weight: 700; }
.meldung--fehler { background: rgba(232, 127, 28, .2); }
.konto__status { display: flex; align-items: center; gap: 12px; font-size: 20px; }
.konto__status-symbol { width: 34px; height: 34px; flex: none; padding: 6px; border-radius: 50%; background: var(--creme); color: var(--tinte); }
.konto__ueberschrift { font-family: var(--schrift-titel); font-size: 22px; font-weight: 700; margin-top: 6px; }
.konto__geraete { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.konto__geraet { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--tinte-knopf); }
.konto__geraet-name { display: grid; font-weight: 700; }
.konto__geraet-name em { font-style: normal; color: var(--tuerkis); }
.konto__geraet-name small { font-weight: 400; color: var(--tinte-leise); }
.konto__formular { display: grid; gap: 8px; }
.konto__beschriftung { font-weight: 700; color: var(--tinte-leise); }
.konto__zeile { display: flex; flex-wrap: wrap; gap: 10px; }
.konto__zeile .eingabe { flex: 1 1 240px; }
.konto__zeile .knopf { height: 56px; font-size: 20px; }
.konto__klein { font-size: 15px; color: var(--tinte-leise); }
.konto__anderes summary { cursor: pointer; font-weight: 700; color: var(--tinte-leise-2); min-height: 48px; display: flex; align-items: center; }
.konto__anderes[open] summary { margin-bottom: 8px; }
.konto__gross { height: 64px; font-size: 22px; padding: 0 32px; }
.konto__warten { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--tuerkis); }
.konto__punkt { width: 14px; height: 14px; border-radius: 50%; background: var(--tuerkis); animation: konto-pulsieren 1.6s ease-in-out infinite; }
@keyframes konto-pulsieren {
    50% { opacity: .3; }
}

/* ---------- Einstellungen und Verwaltung ---------- */

.einfach__karte:has(.verwaltung, .einstellungen) { width: min(100%, 860px); }
.einstellungen, .verwaltung { display: grid; gap: 18px; }
.verwaltung__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.verwaltung__abschnitt { display: grid; gap: 10px; padding-top: 18px; border-top: 2px solid var(--tinte-knopf); scroll-margin-top: 24px; }
.verwaltung__zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.verwaltung__zahlen p { padding: 14px 16px; border-radius: 20px; background: var(--tinte-flaeche); color: var(--tinte-leise); }
.verwaltung__zahlen strong { display: block; font-family: var(--schrift-titel); font-size: 32px; line-height: 1.1; color: var(--creme); }
.verwaltung__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.verwaltung__werkzeug { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.verwaltung__werkzeug-name {
    flex: 1 1 180px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 20px;
    font-family: var(--schrift-titel);
    font-size: 20px;
    font-weight: 700;
}
.verwaltung__werkzeug-name.farbe-tinte { box-shadow: inset 0 0 0 2px var(--tinte-rand); }   /* sonst auf der dunklen Karte unsichtbar */
.verwaltung__symbol { width: 28px; height: 28px; flex: none; }
.verwaltung__schalter { min-height: 56px; gap: 10px; color: var(--tinte-leise); }
.verwaltung__auswahl { min-height: 56px; padding: 0 16px; font-size: 17px; }
.verwaltung__pfeile { display: inline-flex; gap: 6px; }
.verwaltung__pfeile .knopf { width: 56px; height: 56px; padding: 0; font-size: 18px; }
.verwaltung__pfeile .knopf:disabled { opacity: .3; }
.verwaltung__zahl { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.verwaltung__eingabe { width: 110px; padding: 0 14px; text-align: center; }
.einstellungen__hinweis { display: block; font-size: 15px; font-weight: 400; color: var(--tinte-leise); }
.einstellungen__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.einstellungen__sprache select { width: 100%; }

/* Einstellungen-Knopf mit Kindersicherung: beim Halten füllt sich der Knopf von links */
.start__konto { position: relative; overflow: hidden; }
.start__konto[data-halten]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--tuerkis);
    opacity: .45;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease-out;
}
.start__konto.haelt::before { transform: scaleX(1); transition: transform 3s linear; }
.start__konto > * { position: relative; }
.start__halten-hinweis {
    position: absolute !important;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--petrol-tief);
    font-size: 15px;
}
.start__konto.zeigt-hinweis .start__halten-hinweis { display: flex; }

/* Eingabefelder */
.eingabe {
    min-height: 56px;
    padding: 0 20px;
    border: 2px solid var(--tinte-rand);
    border-radius: var(--radius-voll);
    background: var(--tinte-flaeche);
    color: var(--creme);
    font: inherit;
    font-size: 20px;
}
.eingabe::placeholder { color: var(--tinte-leise); opacity: .7; }
.eingabe:focus { outline: none; border-color: var(--tuerkis); }
.eingabe--code { font-family: var(--schrift-titel); font-size: 26px; letter-spacing: .15em; font-variant-numeric: tabular-nums; }

/* ---------- Übergänge zwischen Seiten ---------- */

@view-transition { navigation: auto; }
::view-transition-group(feld) { animation-duration: .54s; animation-timing-function: var(--gleiten); }
::view-transition-old(feld), ::view-transition-new(feld) { height: 100%; }

/* ---------- Andere Größen ---------- */

/* Hochkant oder sehr schmal: Startseite untereinander, sie darf scrollen */
@media (orientation: portrait), (max-width: 599px) {
    .start { height: auto; min-height: 100vh; min-height: 100dvh; padding: 28px 24px; overflow: visible; }
    .start__titel { margin: 24px 0 28px; font-size: clamp(26px, 6vw, 44px); }
    .start__inhalt { max-height: none; grid-template-columns: minmax(0, 1fr); }
    .zuletzt__symbol svg { width: 88px; height: 88px; margin: 16px 0; }
    .zuletzt__name { font-size: clamp(36px, 8vw, 56px); }
    .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 140px; }
}

@media (max-width: 720px) {
    :root { --abstand: 12px; --leiste: 92px; }
    .leiste__menue { margin-left: 8px; width: 76px; }
    .leiste__eintrag { padding-left: 8px; }
    .leiste__werkzeug { width: 76px; }
    .leiste__modul { width: 100px; }
}

/* Bewegung aus: Systemeinstellung „weniger Bewegung“ (später auch eigene Einstellung html.bewegung-aus) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    @view-transition { navigation: none; }
}
html.bewegung-aus *, html.bewegung-aus *::before, html.bewegung-aus *::after { transition: none !important; animation: none !important; }
