/* ─────────────────────────────────────────────────────────────
   Calculiro – gemeinsames Design (Webseite, Konto, App, Betreiber)
   CI aus dem Logo: Nachtblau (Wortteil „Calcul“), Calculiro-Blau
   (Wortteil „iro“, Signet) und ein Verlauf nach Cyan.
   Keine externen Schriften (DSGVO) – Inter liegt lokal unter assets/fonts/.
   ───────────────────────────────────────────────────────────── */
/* Schriften lokal (keine fremden Server): Inter, Fragment Mono – beide SIL Open Font License */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Fragment Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/fragment-mono-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD}


:root {
  --cx-nacht: #15213b;
  --cx-nacht-2: #1f2e52;
  --cx-blau: #0b5fe8;
  --cx-blau-dunkel: #0a47c9;
  --cx-blau-hell: #e8f0fe;
  --cx-cyan: #18c4f5;
  --cx-verlauf: linear-gradient(120deg, #0a3aa8 0%, #0b5fe8 55%, #18c4f5 100%);
  --cx-text: #16213a;
  --cx-text-2: #4d5870;
  --cx-text-3: #7b8499;
  --cx-linie: #e1e6f0;
  --cx-flaeche: #f4f7fc;
  --cx-weiss: #ffffff;
  --cx-gruen: #0f9d6b;
  --cx-gruen-hell: #e3f6ee;
  --cx-rot: #d64545;
  --cx-rot-hell: #fdecec;
  --cx-gelb-hell: #fff6e0;
  --cx-radius: 12px;
  --cx-schatten: 0 1px 2px rgba(21,33,59,.06), 0 8px 24px rgba(21,33,59,.06);
  --cx-schrift: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--cx-schrift); font-size: 16px; line-height: 1.55;
  color: var(--cx-text); background: var(--cx-weiss);
}
img, svg { max-width: 100%; }
a { color: var(--cx-blau); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; color: var(--cx-nacht); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 .6em; }
h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.gedaempft { color: var(--cx-text-2); }
.klein { font-size: .875rem; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── Logo ─────────────────────────────────────────────────── */
.cx-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--cx-nacht); font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; }
.cx-logo:hover { text-decoration: none; }
.cx-logo img { width: 36px; height: 36px; }
.cx-logo b { color: var(--cx-blau); font-weight: 800; }

/* ─── Knöpfe ───────────────────────────────────────────────── */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--cx-blau); color: #fff; transition: background .15s, box-shadow .15s;
}
.knopf:hover { background: var(--cx-blau-dunkel); text-decoration: none; }
.knopf.gross { padding: 14px 26px; font-size: 1.05rem; }
.knopf.klein { padding: 7px 12px; font-size: .9rem; }
.knopf.zweit { background: #fff; color: var(--cx-nacht); border-color: var(--cx-linie); }
.knopf.zweit:hover { background: var(--cx-flaeche); }
.knopf.hell { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.knopf.hell:hover { background: rgba(255,255,255,.24); }
.knopf.gefahr { background: var(--cx-rot); }
.knopf.gefahr:hover { background: #b83434; }
.knopf.link { background: none; color: var(--cx-blau); padding: 0; border: 0; font-weight: 600; }
.knopf[disabled] { opacity: .55; cursor: not-allowed; }

/* ─── Formulare ────────────────────────────────────────────── */
label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 6px; color: var(--cx-nacht); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cfd6e4; border-radius: 9px;
  font: inherit; color: var(--cx-text); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(11,95,232,.25); border-color: var(--cx-blau); }
.feld { margin-bottom: 16px; }
.feld .hilfe { font-size: .84rem; color: var(--cx-text-3); margin-top: 5px; }
.feldreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.auswahl { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.auswahl input { margin-top: 4px; }

/* ─── Hinweise ─────────────────────────────────────────────── */
.hinweis { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-size: .95rem; border: 1px solid transparent; }
.hinweis.ok { background: var(--cx-gruen-hell); color: #0b6b49; border-color: #bfe8d6; }
.hinweis.fehler { background: var(--cx-rot-hell); color: #9d2b2b; border-color: #f4c6c6; }
.hinweis.info { background: var(--cx-blau-hell); color: #0a3f9c; border-color: #cddcfb; }
.hinweis.warn { background: var(--cx-gelb-hell); color: #7a5300; border-color: #f2dfae; }

/* ─── Karten, Tabellen ─────────────────────────────────────── */
.karte { background: #fff; border: 1px solid var(--cx-linie); border-radius: var(--cx-radius); padding: 24px; box-shadow: var(--cx-schatten); }
.karte + .karte { margin-top: 20px; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabelle th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cx-text-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--cx-linie); }
.tabelle td { padding: 11px 10px; border-bottom: 1px solid var(--cx-linie); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle-rahmen { overflow-x: auto; }
.marke { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--cx-flaeche); color: var(--cx-text-2); }
.marke.blau { background: var(--cx-blau-hell); color: var(--cx-blau-dunkel); }
.marke.gruen { background: var(--cx-gruen-hell); color: #0b6b49; }
.marke.rot { background: var(--cx-rot-hell); color: #9d2b2b; }

/* ─── Tarif-Karten und Hakenlisten (App: Konto & Abo) ───────── */
.haken { list-style: none; padding: 0; margin: 0 0 1em; }
.haken li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.haken li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--cx-gruen-hell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230f9d6b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.preise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .preise { grid-template-columns: 1fr; } }
.preis { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cx-linie); border-radius: 16px; padding: 28px; }
.preis.empfohlen { border: 2px solid var(--cx-blau); box-shadow: 0 20px 40px -20px rgba(11,95,232,.4); }
.preis .band { position: absolute; top: -12px; left: 28px; background: var(--cx-verlauf); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.preis .betrag { font-size: 2.4rem; font-weight: 800; color: var(--cx-nacht); letter-spacing: -.03em; }
.preis .betrag small { font-size: .95rem; font-weight: 500; color: var(--cx-text-3); }
.preis ul { flex: 1; }

/* ─── Anmelde-/Kontoseiten (schmal, zentriert) ─────────────── */
.schmal-seite { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; background: radial-gradient(900px 400px at 50% -10%, #dfeafe 0%, rgba(223,234,254,0) 70%), var(--cx-flaeche); }
.schmal-seite .karte { width: 100%; max-width: 440px; }
.schmal-seite .karte.breit { max-width: 560px; }
.schmal-seite .cx-logo { margin-bottom: 24px; }
.schmal-seite h1 { font-size: 1.5rem; margin-bottom: 6px; }
.schmal-seite .unter { color: var(--cx-text-2); margin-bottom: 22px; }
.schmal-seite .fusszeile { margin-top: 18px; font-size: .9rem; color: var(--cx-text-3); text-align: center; }

/* ─── App-Rahmen ───────────────────────────────────────────── */
.app-body { background: var(--cx-flaeche); min-height: 100vh; }
.app-kopf { background: #fff; border-bottom: 1px solid var(--cx-linie); position: sticky; top: 0; z-index: 40; }
.app-kopf .innen { display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 20px; }
.app-kopf .cx-logo { font-size: 1.25rem; }
.app-kopf .cx-logo img { width: 30px; height: 30px; }
.app-nav { display: flex; gap: 4px; }
.app-nav a { padding: 8px 12px; border-radius: 8px; color: var(--cx-text-2); font-weight: 600; font-size: .93rem; }
.app-nav a:hover { background: var(--cx-flaeche); text-decoration: none; color: var(--cx-nacht); }
.app-nav a.aktiv { background: var(--cx-blau-hell); color: var(--cx-blau-dunkel); }
.app-kopf .rechts { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: .9rem; color: var(--cx-text-2); }
.app-kopf .konto-name { font-weight: 600; color: var(--cx-nacht); }
@media (max-width: 760px) { .app-kopf .innen { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 8px 14px; } .app-kopf .rechts .wer { display: none; } }
.app-band { padding: 8px 20px; font-size: .9rem; text-align: center; }
.app-band.info { background: var(--cx-blau-hell); color: #0a3f9c; }
.app-band.fehler { background: var(--cx-rot-hell); color: #9d2b2b; }
.app-band a { font-weight: 700; }
.app-inhalt { max-width: 1160px; margin: 0 auto; padding: 28px 20px 60px; }
.app-inhalt h1 { font-size: 1.7rem; margin-bottom: 4px; }
.app-inhalt .unter { color: var(--cx-text-2); margin-bottom: 24px; }
.kopfzeile { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.kopfzeile .unter { margin-bottom: 0; }

.firmen-raster { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.firma-karte { background: #fff; border: 1px solid var(--cx-linie); border-radius: var(--cx-radius); padding: 20px; box-shadow: var(--cx-schatten); display: flex; flex-direction: column; }
.firma-karte h2 { font-size: 1.15rem; margin: 0; }
.firma-karte .meta { color: var(--cx-text-3); font-size: .88rem; margin: 2px 0 14px; }
.plan-liste { list-style: none; padding: 0; margin: 0 0 14px; flex: 1; }
.plan-liste li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--cx-linie); border-radius: 9px; margin-bottom: 8px; }
.plan-liste li a.name { font-weight: 600; color: var(--cx-nacht); }
.plan-liste li .wann { font-size: .8rem; color: var(--cx-text-3); }
.firma-karte .fuss { display: flex; gap: 8px; flex-wrap: wrap; }
.leer { text-align: center; padding: 48px 24px; }

/* Dialog */
dialog.cx-dialog { border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(21,33,59,.35); }
dialog.cx-dialog::backdrop { background: rgba(21,33,59,.45); }
dialog.cx-dialog form { padding: 24px; }
dialog.cx-dialog h2 { font-size: 1.25rem; }
dialog.cx-dialog .knoepfe { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ── Planungsverwaltung: Aktionsmenü je Planung (29.09.2026) ── */
.plan-menue { position: relative; }
.plan-menue > summary { list-style: none; }
.plan-menue > summary::-webkit-details-marker { display: none; }
.plan-menue-inhalt { position: absolute; right: 0; top: 36px; z-index: 20; padding: 14px; width: 290px; display: flex; flex-direction: column; gap: 12px; }
.plan-menue-inhalt form { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.plan-menue-inhalt label { margin: 0; font-weight: 600; color: var(--cx-text-2); }
.plan-menue-inhalt input, .plan-menue-inhalt select { padding: 7px 9px; font-size: .88rem; }
.plan-menue-inhalt .zeile { display: flex; gap: 6px; align-items: center; flex-direction: row; }
.plan-menue-inhalt .zeile input { flex: 1; min-width: 0; }
.plan-menue-inhalt > .zeile { justify-content: space-between; border-top: 1px solid var(--cx-linie); padding-top: 12px; }
.plan-archiv { opacity: .6; }

/* ─────────────────────────────────────────────────────────────
   App-Rahmen mit Seitenleiste (05.10.2026)
   Übersichts- und Einstellungsseiten: Navigation links (Nachtblau), Inhalt rechts auf hellem Grund.
   Flächen flach mit Haarlinien, keine weichen Schatten-Karten.
   ───────────────────────────────────────────────────────────── */
.app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; background: #f6f8fb; }
.app-seite { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--cx-nacht); color: #c9d3e6; padding: 18px 12px; }
.app-seite-kopf { padding: 2px 10px 22px; }
.app-seite .cx-logo { color: #fff; font-size: 1.2rem; }
.app-seite .cx-logo b { color: #46c6f5; }
.app-seite .cx-logo img { width: 28px; height: 28px; }
.app-seite-nav { display: flex; flex-direction: column; gap: 2px; }
.app-seite-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px; color: #b8c4da; font-weight: 500; font-size: .93rem; }
.app-seite-nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.app-seite-nav a.aktiv { background: rgba(70,198,245,.12); color: #fff; box-shadow: inset 2px 0 0 #46c6f5; }
.app-seite-nav .sym { flex: none; opacity: .9; }
.app-seite-fuss { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 14px 6px 0; display: flex; flex-direction: column; gap: 10px; }
.app-wer { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-wer b { display: block; color: #fff; font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-wer small { display: block; color: #8f9cb6; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-wer > span:last-child { min-width: 0; }
.app-avatar { flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: #24365e; color: #e8edf7; font: 600 .78rem/1 "Fragment Mono", ui-monospace, monospace; }
.abmelden { margin: 0; }
.abmelden button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: #b8c4da; font: 500 .86rem var(--cx-schrift); cursor: pointer; }
.abmelden button:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-haupt { min-width: 0; display: flex; flex-direction: column; }
.app-shell .app-band { text-align: left; padding: 9px 40px; border-bottom: 1px solid var(--cx-linie); }
.app-shell .app-inhalt { width: 100%; max-width: 1240px; margin: 0; padding: 32px 40px 72px; }
.app-shell .karte { box-shadow: none; border-radius: 10px; }
.app-shell .karte + .karte { margin-top: 16px; }
.app-shell h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
/* Planung behält die Kopfleiste; Abmelden dort als kleiner Knopf */
.app-kopf .abmelden button { width: auto; padding: 6px 10px; color: var(--cx-text-2); border: 1px solid var(--cx-linie); background: #fff; }
.app-kopf .abmelden button:hover { background: var(--cx-flaeche); color: var(--cx-nacht); }
.app-kopf .abmelden .sym { display: none; }

/* Seitenkopf: Titel links, Aktionen rechts, Haarlinie darunter */
.seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--cx-linie); }
.seitenkopf h1 { font-size: 1.6rem; font-weight: 750; letter-spacing: -.025em; margin: 0 0 4px; }
.seitenkopf .unter { margin: 0; color: var(--cx-text-2); font-size: .95rem; }
.seitenkopf-aktionen { display: flex; gap: 10px; flex-wrap: wrap; }
.app-shell .kopfzeile { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--cx-linie); }
.app-shell .kopfzeile h1, .app-shell .app-inhalt > h1 { font-size: 1.6rem; font-weight: 750; letter-spacing: -.025em; }
.app-shell .knopf { border-radius: 8px; padding: 9px 16px; font-size: .92rem; }
.app-shell .knopf.klein { padding: 6px 11px; font-size: .85rem; }

/* Kennzahlen-Leiste */
.kennzahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 28px; border: 1px solid var(--cx-linie); border-radius: 10px; background: #fff; }
.kennzahlen > div { padding: 16px 20px; min-width: 0; }
.kennzahlen > div + div { border-left: 1px solid var(--cx-linie); }
.kennzahlen dt { font: 500 .72rem/1.2 "Fragment Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--cx-text-3); margin-bottom: 6px; }
.kennzahlen dd { margin: 0; font-size: 1.6rem; font-weight: 700; color: var(--cx-nacht); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kennzahlen dd small { display: block; font-size: .8rem; font-weight: 500; color: var(--cx-text-3); letter-spacing: 0; margin-top: 2px; }
.kennzahlen dd.text { font-size: .98rem; font-weight: 600; letter-spacing: 0; padding-top: 6px; }
.kennzahlen dd.text a { color: var(--cx-nacht); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Mandantenliste */
.liste-werkzeug { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.suche { flex: 1; max-width: 420px; margin: 0; }
.suche input { padding-left: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%237b8499%22 stroke-width=%222%22 stroke-linecap=%22round%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%227%22/%3E%3Cpath d=%22M20 20l-3.5-3.5%22/%3E%3C/svg%3E") 11px center/16px no-repeat; }
.m-liste { border: 1px solid var(--cx-linie); border-radius: 10px; background: #fff; }
.m-eintrag + .m-eintrag { border-top: 1px solid var(--cx-linie); }
.m-eintrag.archiviert { opacity: .65; }
.m-kopf { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 16px 20px 10px; }
.m-kuerzel { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: #eef3fd; color: var(--cx-blau-dunkel); font: 600 .82rem/1 "Fragment Mono", ui-monospace, monospace; }
.m-name h2 { margin: 0; font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em; }
.m-name h2 a { color: var(--cx-nacht); }
.m-meta { display: block; font-size: .84rem; color: var(--cx-text-3); }
.m-plaene { list-style: none; margin: 0; padding: 0 20px 14px 74px; }
.m-plaene > li { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: column; grid-auto-columns: auto; gap: 8px 10px; align-items: center; padding: 8px 10px; border-radius: 8px; }
.m-plaene > li:hover { background: #f6f8fb; }
.m-plaene > li + li { border-top: 1px dashed #e8ecf3; }
.m-plaene > li > form { margin: 0; }
.m-plan { color: var(--cx-nacht); font-weight: 550; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-plan::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cx-blau); margin-right: 10px; vertical-align: 2px; }
.m-plan-wann { font-size: .82rem; color: var(--cx-text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.m-plaene > li.m-leer, .m-plaene > li.m-neu { display: block; }
.m-neu summary { cursor: pointer; color: var(--cx-blau); font-size: .88rem; font-weight: 600; list-style: none; }
.m-neu summary::-webkit-details-marker { display: none; }
.m-neu form { display: flex; gap: 8px; margin-top: 8px; max-width: 460px; }
.m-neu input { padding: 7px 10px; font-size: .9rem; }
.m-keine { padding: 20px; margin: 0; }
.leerzustand { border: 1px dashed #cfd6e4; border-radius: 10px; padding: 48px 24px; text-align: center; background: #fff; }
.leerzustand h2 { font-size: 1.2rem; }
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-seite { position: sticky; top: 0; z-index: 40; height: auto; flex-direction: row; align-items: center; gap: 10px; padding: 8px 12px; overflow-x: auto; }
  .app-seite-kopf { padding: 0 6px 0 0; }
  .app-seite-nav { flex-direction: row; }
  .app-seite-nav a span { display: none; }
  .app-seite-fuss { margin: 0 0 0 auto; border: 0; padding: 0; flex-direction: row; }
  .app-wer { display: none; }
  .abmelden button span { display: none; }
  .app-shell .app-band { padding: 9px 16px; }
  .app-shell .app-inhalt { padding: 22px 16px 56px; }
  .kennzahlen { grid-template-columns: 1fr; }
  .kennzahlen > div + div { border-left: 0; border-top: 1px solid var(--cx-linie); }
  .m-kopf { grid-template-columns: 36px minmax(0, 1fr); }
  .m-status, .m-aktionen { grid-column: 2; }
  .m-plaene { padding: 0 12px 12px; }
  .m-plaene > li { grid-template-columns: minmax(0, 1fr) auto; grid-auto-flow: row; }
  .m-plan-wann { grid-column: 1; }
}

/* Einstellungsseiten (Konto, Team, Betreiber): Raster, Seitenkopf aus h1 + Unterzeile, Formulare nicht über die ganze Breite */
.raster { display: grid; gap: 16px; }
.app-shell .app-inhalt > h1 { margin: 0 0 4px; }
.app-shell .app-inhalt > h1 + .unter { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--cx-linie); }
.app-shell .karte > h2:first-child { font-size: 1rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--cx-linie); }
.app-shell .karte form { max-width: 620px; }
.app-shell .karte form.breit, .app-shell .karte .tabelle-rahmen form, .app-shell dialog form { max-width: none; }
.app-shell .tabelle th { font: 500 .7rem/1.2 "Fragment Mono", ui-monospace, monospace; letter-spacing: .06em; }
.app-shell .tabelle td { padding: 12px 10px; }
.app-shell .tabelle tbody tr:hover td { background: #f8fafd; }
.app-shell .app-nav { gap: 2px; }
.raster > .karte + .karte { margin-top: 0; }

/* KI-Kontingent (Konto & Abo) */
.ki-balken { height: 8px; border-radius: 4px; background: #e8edf5; overflow: hidden; margin: 4px 0 6px; }
.ki-balken i { display: block; height: 100%; background: var(--cx-blau); border-radius: 4px; }
.ki-balken i.knapp { background: #e0a100; }
.ki-balken i.voll { background: var(--cx-rot); }
.ki-anfrage { border-top: 1px solid var(--cx-linie); padding-top: 16px; }

/* ─── Einstellungsseiten (Konto & Abo, Ausgabe) ───────────────
   Abschnitte als Zeilen: links Titel und Erklärung, rechts die Felder in einer umrandeten Fläche,
   Speichern unten rechts in der Fußleiste der Fläche. Ruhig, dicht, ohne Schatten. */
.einst { max-width: 1080px; }
.einst-abschnitt { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--cx-linie); }
.einst-abschnitt:first-of-type { border-top: 0; padding-top: 8px; }
.einst-text h2 { font-size: 1rem; font-weight: 650; letter-spacing: -.01em; margin: 2px 0 6px; color: var(--cx-nacht); }
.einst-text p { font-size: .86rem; line-height: 1.55; color: var(--cx-text-2); margin: 0 0 8px; }
.einst-text .marke { margin-top: 4px; }
.einst-panel { background: #fff; border: 1px solid var(--cx-linie); border-radius: 8px; }
.einst-panel-inhalt { padding: 20px 22px 6px; }
.einst-panel-fuss { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 22px; border-top: 1px solid var(--cx-linie); background: #fafbfd; border-radius: 0 0 8px 8px; }
.einst-panel-fuss .gedaempft { margin-right: auto; font-size: .82rem; }
.einst .feld { margin-bottom: 16px; }
.einst label { font-size: .84rem; font-weight: 600; margin-bottom: 5px; color: var(--cx-text); }
.einst input[type=text], .einst input[type=email], .einst input[type=password], .einst select, .einst textarea { padding: 8px 11px; border-radius: 6px; font-size: .92rem; border-color: #d3d9e5; }
.einst input[disabled] { background: #f6f8fb; color: var(--cx-text-2); }
.einst textarea { resize: vertical; min-height: 64px; }
.einst .feld .hilfe { font-size: .8rem; }
.einst .feldreihe { gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.einst .knopf { padding: 8px 16px; border-radius: 6px; font-size: .9rem; }
.einst .knopf.zweit { color: var(--cx-text); }
.einst .tabelle th { font-size: .74rem; }
.einst .kennzahlen { margin-bottom: 14px; }
.einst-zeilen { margin: 0; padding: 0; list-style: none; }
.einst-zeilen li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--cx-linie); font-size: .9rem; }
.einst-zeilen li:first-child { border-top: 0; padding-top: 0; }
.einst-zeilen .wert { color: var(--cx-text-2); text-align: right; }
@media (max-width: 1100px) { .einst-abschnitt { grid-template-columns: 1fr; gap: 12px; } }

/* Tarifwahl in Konto & Abo: schlichte Tabelle statt Kärtchen */
.tarif-tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tarif-tabelle th { text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cx-text-3); padding: 0 12px 8px 0; border-bottom: 1px solid var(--cx-linie); }
.tarif-tabelle td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--cx-linie); vertical-align: top; }
.tarif-tabelle tr:last-child td { border-bottom: 0; }
.tarif-tabelle .preis-zelle { white-space: nowrap; font-weight: 600; }
.tarif-tabelle td small { display: block; color: var(--cx-text-3); font-size: .8rem; margin-top: 2px; }
.tarif-tabelle tr.aktuell td { background: #f6f9ff; }
.tarif-tabelle tr.aktuell td:first-child { box-shadow: inset 2px 0 0 var(--cx-blau); padding-left: 10px; }

/* Farbwahl: Farbfeld + Code */
.farbwahl { display: flex; align-items: center; gap: 8px; }
.farbwahl input[type=color] { width: 38px; height: 36px; padding: 2px; border: 1px solid #d3d9e5; border-radius: 6px; background: #fff; cursor: pointer; flex: none; }
.farbwahl input[type=text] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: lowercase; max-width: 120px; }
.farbvorlagen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.farbvorlagen button { width: 22px; height: 22px; border-radius: 5px; border: 1px solid rgba(0,0,0,.12); cursor: pointer; padding: 0; }
.farbvorlagen button:hover { outline: 2px solid var(--cx-blau); outline-offset: 1px; }

/* Logo-Feld */
.logo-feld { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 16px; }
.logo-vorschau { height: 96px; border: 1px dashed #c9d2e2; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: #fafbfd; padding: 10px; }
.logo-vorschau img { max-height: 72px; max-width: 100%; object-fit: contain; }
.logo-vorschau span { font-size: .8rem; color: var(--cx-text-3); }

/* Vorschau der Ausgabe (Deckblatt + Tabellenseite, A4 quer) */
.ausgabe-vorschau { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.av-seite { aspect-ratio: 297 / 210; background: #fff; border: 1px solid var(--cx-linie); border-radius: 3px; box-shadow: 0 1px 3px rgba(21,33,59,.08); position: relative; overflow: hidden; font-size: 7.4px; color: var(--av-dunkel); }
.av-unter { font-size: .78rem; color: var(--cx-text-3); margin-top: 6px; text-align: center; }
.av-deck .av-dach { position: absolute; left: 9%; top: 34%; font-size: 6.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--av-akzent); }
.av-deck .av-titel { position: absolute; left: 9%; top: 39%; font-size: 21px; font-weight: 750; letter-spacing: -.02em; line-height: 1.05; }
.av-deck .av-sub { position: absolute; left: 9%; top: 58%; font-size: 7.5px; color: #6b7489; max-width: 60%; line-height: 1.5; }
.av-deck .av-logo { position: absolute; left: 9%; top: 9%; height: 14%; max-width: 32%; display: flex; align-items: center; font-weight: 800; font-size: 11px; color: var(--av-akzent); }
.av-deck .av-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.av-deck .av-fuss { position: absolute; left: 0; right: 0; bottom: 0; height: 16%; border-top: 1px solid #e3e7ef; display: grid; grid-template-columns: 1.2fr 2fr 1.1fr; }
.av-deck .av-fuss div { padding: 5px 9px; border-right: 1px solid #e3e7ef; font-size: 5.6px; line-height: 1.45; color: #6b7489; overflow: hidden; }
.av-deck .av-fuss div:last-child { border-right: 0; }
.av-deck .av-fuss b { color: var(--av-dunkel); font-size: 6.2px; display: block; }
.av-deck .av-streifen { position: absolute; left: 0; top: 0; bottom: 16%; width: 2.2%; background: var(--av-akzent); }
.av-tab { padding: 5% 6% 0; }
.av-tab .av-kopf { display: flex; align-items: baseline; gap: 6px; border-bottom: 1px solid #e3e7ef; padding-bottom: 5px; margin-bottom: 7px; }
.av-tab .av-nr { font-size: 15px; font-weight: 300; color: var(--av-akzent); }
.av-tab .av-h { font-size: 10px; font-weight: 700; }
.av-tab .av-kennz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 7px; }
.av-tab .av-kennz div { border-top: 2px solid var(--av-dunkel); background: #f7f8fb; padding: 4px 5px; font-size: 5px; color: #6b7489; }
.av-tab .av-kennz div:last-child { border-top-color: var(--av-akzent); }
.av-tab .av-kennz b { display: block; font-size: 8.5px; color: var(--av-dunkel); margin-top: 1px; }
.av-tab table { width: 100%; border-collapse: collapse; font-size: 5.4px; }
.av-tab th { text-align: right; font-weight: 600; color: var(--av-dunkel); padding: 2px 3px; background: var(--av-hell); }
.av-tab th:first-child, .av-tab td:first-child { text-align: left; }
.av-tab td { text-align: right; padding: 2px 3px; border-bottom: 1px solid #edf0f5; }
.av-tab tr.sum td { font-weight: 700; border-top: 1px solid var(--av-dunkel); }
.av-tab tr.erg td { background: var(--av-dunkel); color: #fff; font-weight: 700; }
.av-tab .av-fz { position: absolute; left: 6%; right: 6%; bottom: 4%; display: flex; justify-content: space-between; font-size: 5px; color: #8a93a6; border-top: 1px solid #edf0f5; padding-top: 3px; }
@media (max-width: 1100px) { .ausgabe-vorschau { grid-template-columns: 1fr; } }
/* Dateiauswahl mit Ablagefläche (Seite Ausgabe) */
.datei-wahl { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px dashed #c9d2e2; border-radius: 6px; background: #fafbfd; }
.datei-wahl.ziehen { border-color: var(--cx-blau); background: var(--cx-blau-hell); }
.datei-wahl .knopf { margin: 0; cursor: pointer; }
.datei-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.datei-input:focus-visible + .knopf { outline: 2px solid rgba(11,95,232,.35); }
.datei-name { font-size: .84rem; color: var(--cx-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Import/Export Calculiro-Datei */
.import-info { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin: -4px 0 16px; border: 1px solid var(--cx-linie); border-left: 3px solid var(--cx-blau); border-radius: 6px; background: #f8faff; font-size: .86rem; }
.import-info b { color: var(--cx-nacht); }
.import-info span { color: var(--cx-text-2); }
.import-info.fehler { border-left-color: var(--cx-rot); background: var(--cx-rot-hell); color: #9d2b2b; }
.plan-menue-inhalt .plan-export { width: 100%; justify-content: flex-start; margin-bottom: 10px; }
/* Rückfrage/Hinweis im Calculiro-Stil (cxBestaetigen, cxMeldung) */
.cx-frage { max-width: 440px; }
.cx-frage p { margin: 0 0 20px; font-size: .95rem; line-height: 1.55; color: var(--cx-text); }
.cx-frage .knoepfe { margin-top: 0; }
/* Dialoge mit Inhalt außerhalb des Formulars (Rückfrage, Teilen) */
dialog.cx-frage, dialog#dlg-teilen { padding: 24px; }
dialog#dlg-teilen form { padding: 0; }
dialog#dlg-teilen { width: min(600px, calc(100vw - 32px)); }
dialog.cx-dialog h2 { margin: 0 0 8px; }
.dlg-trenner { margin: 6px 0 12px; padding-top: 14px; border-top: 1px solid var(--cx-linie); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cx-text-3); }
.freigabe-liste { list-style: none; margin: 14px 0 18px; padding: 0; border: 1px solid var(--cx-linie); border-radius: 8px; }
.freigabe-liste li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--cx-linie); font-size: .9rem; }
.freigabe-liste li:first-child { border-top: 0; }
.freigabe-liste li > span:first-child { flex: 1; min-width: 0; }
.freigabe-liste li b { display: block; color: var(--cx-nacht); }
.freigabe-liste li small { display: block; color: var(--cx-text-3); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.freigabe-liste li.leer { color: var(--cx-text-3); justify-content: center; }
.m-gruppe { padding: 22px 4px 8px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cx-text-3); border-top: 1px solid var(--cx-linie); margin-top: 6px; }

/* ── Übersicht als Datentabelle (Mandanten und Planungen) ── */
.mt-sym { flex: none; }
.seitenkopf-aktionen .knopf { gap: 7px; }
.mt { border: 1px solid var(--cx-linie); border-radius: 10px; background: #fff; }
.mt-werkzeug { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--cx-linie); flex-wrap: wrap; }
.mt-suche { position: relative; flex: 1 1 260px; max-width: 380px; margin: 0; }
.mt-suche .mt-sym { position: absolute; left: 11px; top: 50%; margin-top: -8px; color: var(--cx-text-3); }
.mt-suche input { padding: 8px 12px 8px 34px; font-size: .9rem; border-radius: 7px; background: var(--cx-flaeche); border-color: transparent; }
.mt-suche input:focus { background: #fff; }
.mt-filter { display: inline-flex; background: var(--cx-flaeche); border-radius: 7px; padding: 2px; }
.mt-filter a { padding: 5px 11px; border-radius: 5px; font-size: .84rem; font-weight: 600; color: var(--cx-text-2); }
.mt-filter a:hover { text-decoration: none; color: var(--cx-nacht); }
.mt-filter a.an { background: #fff; color: var(--cx-nacht); box-shadow: 0 1px 2px rgba(21,33,59,.12); }
.mt-anzahl { margin-left: auto; font-size: .84rem; color: var(--cx-text-3); font-variant-numeric: tabular-nums; }
.mt-link { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--cx-text-2); padding: 6px 8px; border-radius: 6px; }
.mt-link:hover { background: var(--cx-flaeche); color: var(--cx-nacht); text-decoration: none; }
table.mt-tabelle { width: 100%; border-collapse: collapse; }
.mt-tabelle thead th { text-align: left; font: 500 .7rem/1.2 "Fragment Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--cx-text-3); padding: 10px 14px; border-bottom: 1px solid var(--cx-linie); background: #fbfcfe; white-space: nowrap; }
.mt-tabelle td { padding: 0 14px; vertical-align: middle; }
.mt-tabelle tbody.mt-gruppe + tbody.mt-gruppe tr.mt-mandant td, .mt-tabelle tbody.mt-abschnitt + tbody tr.mt-mandant td { border-top: 1px solid var(--cx-linie); }
.mt-mandant td { padding-top: 14px; padding-bottom: 6px; }
.mt-m { display: flex; align-items: center; gap: 12px; }
.mt-m b { display: block; font-size: .98rem; font-weight: 650; color: var(--cx-nacht); letter-spacing: -.01em; }
.mt-m small { display: block; font-size: .82rem; color: var(--cx-text-3); margin-top: 1px; }
.mt-kuerzel { width: 32px; height: 32px; border-radius: 7px; background: var(--cx-nacht); color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .03em; flex: none; }
.mt-plan td { height: 44px; border-top: 1px solid #f0f2f7; }
.mt-plan:first-of-type td { border-top: 0; }
.mt-plan { cursor: pointer; }
.mt-plan:hover td { background: #f8fafd; }
.mt-plan-name { display: inline-flex; align-items: center; gap: 9px; padding-left: 44px; font-weight: 600; font-size: .92rem; color: var(--cx-nacht); }
.mt-plan-name .mt-sym { color: var(--cx-text-3); }
.mt-plan-name:hover { color: var(--cx-blau); text-decoration: none; }
.mt-zeit, .mt-wer { font-size: .86rem; color: var(--cx-text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mt-status { white-space: nowrap; }
.mt-status .marke + .marke { margin-left: 4px; }
.mt-plan.plan-archiv td { color: var(--cx-text-3); }
.mt-plan.plan-archiv .mt-plan-name { color: var(--cx-text-2); }
th.mt-aktion, td.mt-aktion { width: 1%; white-space: nowrap; text-align: right; }
td.mt-aktion { padding-right: 10px; }
.mt-oeffnen { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--cx-blau); padding: 5px 10px; border-radius: 6px; vertical-align: middle; }
.mt-oeffnen:hover { background: var(--cx-blau-hell); text-decoration: none; }
.mt-menue { position: relative; display: inline-block; vertical-align: middle; }
.mt-menue summary { list-style: none; cursor: pointer; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: var(--cx-text-2); }
.mt-menue summary::-webkit-details-marker { display: none; }
.mt-menue summary:hover, .mt-menue[open] summary { background: var(--cx-flaeche); color: var(--cx-nacht); }
.mt-menue-liste { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 230px; background: #fff; border: 1px solid var(--cx-linie); border-radius: 9px; box-shadow: 0 12px 32px rgba(21,33,59,.14); padding: 5px; text-align: left; }
.mt-menue-liste a, .mt-menue-liste button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 6px; font: inherit; font-size: .88rem; font-weight: 500; color: var(--cx-text); cursor: pointer; text-align: left; }
.mt-menue-liste a:hover, .mt-menue-liste button:hover { background: var(--cx-flaeche); text-decoration: none; }
.mt-menue-liste .mt-sym { color: var(--cx-text-3); }
.mt-menue-liste .gefahr, .mt-menue-liste .gefahr .mt-sym { color: var(--cx-rot); }
.mt-menue-liste .gefahr:hover { background: var(--cx-rot-hell); }
.mt-menue-liste form { margin: 0; max-width: none; }
.mt-menue-liste hr { border: 0; border-top: 1px solid var(--cx-linie); margin: 5px 2px; }
.mt-hinweis td { padding: 8px 14px 12px 58px; font-size: .84rem; color: var(--cx-text-3); }
.mt-textknopf { border: 0; background: none; padding: 0; font: inherit; color: var(--cx-blau); font-weight: 600; cursor: pointer; }
.mt-abschnitt td { padding: 18px 14px 6px; font: 500 .7rem/1.2 "Fragment Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--cx-text-3); border-top: 1px solid var(--cx-linie); }
.mt-gruppe:last-of-type tr:last-child td { padding-bottom: 8px; }
.mt-gruppe.archiviert .mt-m { opacity: .6; }
@media (max-width: 900px) {
  .mt-tabelle thead th:nth-child(3), .mt-wer, .mt-tabelle thead th:nth-child(4), .mt-status { display: none; }
  .mt-plan-name { padding-left: 0; }
  .mt-hinweis td { padding-left: 14px; }
}

/* ── Konto & Abo: KI-Kennzahlen, Verbrauch je Funktion, Ausgabe-Vorschau ── */
.ki-kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 20px; border: 1px solid var(--cx-linie); border-radius: 8px; }
.ki-kacheln > div { padding: 13px 16px; min-width: 0; }
.ki-kacheln > div + div { border-left: 1px solid var(--cx-linie); }
.ki-kacheln dt { font: 500 .68rem/1.2 "Fragment Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--cx-text-3); margin-bottom: 6px; }
.ki-kacheln dd { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--cx-nacht); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ki-kacheln dd small { display: block; font-size: .78rem; font-weight: 500; color: var(--cx-text-3); letter-spacing: 0; margin-top: 2px; }
.ki-nutzung { font-size: .86rem; }
.ki-nutzung-kopf, .ki-nutzung-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 80px 90px; gap: 12px; align-items: center; }
.ki-nutzung-kopf { font: 500 .68rem/1.2 "Fragment Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--cx-text-3); padding-bottom: 8px; border-bottom: 1px solid var(--cx-linie); }
.ki-nutzung-kopf span + span, .ki-nutzung-zeile span + span { text-align: right; font-variant-numeric: tabular-nums; }
.ki-nutzung-zeile { padding: 9px 0; border-bottom: 1px solid #f0f2f7; color: var(--cx-text-2); }
.ki-nutzung-zeile:last-child { border-bottom: 0; }
.ki-nutzung-name { position: relative; color: var(--cx-text); font-weight: 500; padding-bottom: 6px; }
.ki-nutzung-name i { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--cx-blau); opacity: .55; }
.ag-vorschau { display: flex; align-items: center; gap: 18px; }
.ag-logo { width: 120px; height: 64px; border: 1px solid var(--cx-linie); border-radius: 8px; display: grid; place-items: center; background: #fff; flex: none; overflow: hidden; }
.ag-logo img { max-width: 100px; max-height: 48px; object-fit: contain; }
.ag-logo span { font-size: .78rem; color: var(--cx-text-3); }
.ag-angaben { min-width: 0; }
.ag-angaben b { display: block; font-size: .98rem; color: var(--cx-nacht); }
.ag-angaben small { display: block; font-size: .82rem; color: var(--cx-text-3); margin-top: 1px; }
.ag-farben { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.ag-farben i { width: 18px; height: 18px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.ag-farben em { font-style: normal; font: 500 .74rem/1 "Fragment Mono", ui-monospace, monospace; color: var(--cx-text-3); margin-left: 4px; }
@media (max-width: 700px) { .ki-kacheln { grid-template-columns: 1fr; } .ki-kacheln > div + div { border-left: 0; border-top: 1px solid var(--cx-linie); } }

/* ─── Tablet und Touch (seit 17.10.2026): größere Tippflächen im App-Rahmen, Desktop unverändert ─── */
@media (hover: none) and (pointer: coarse) {
  .app-nav a, .abmelden button, .app-kopf .innen a, .app-kopf .innen button { min-height: 40px; }
  .app-band a { display: inline-block; padding: 10px 0; }
  button, a, input, select, textarea, label { touch-action: manipulation; }
}
