/* OrgInbox – hell, luftig, ohne Fettschrift, Farben aus dem Logo. Systemschrift (keine externen Fonts → DSGVO). */
:root {
  /* Markenfarben aus dem OrgInbox-Logo */
  --brand: #f4be44;
  --brand-2: #f7d46c;
  --slate: #505863;
  --navy: #303a46;
  --navy-2: #252d37;
  --orange: #ef7d22;
  --orange-2: #f5913f;

  --bg: #f6f7fa;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --line: #e3e6ec;
  --text: #1f2731;
  --muted: #667085;
  --accent: #303a46;          /* Hauptknöpfe */
  --accent-soft: #fff4d6;     /* aktive Elemente */
  --accent-text: #2c4f86;     /* Links */
  --new: #c98a06;             /* Text „neu“ – dunkles Gelb, gut lesbar */
  --new-badge: #f4be44;
  --new-soft: #fff8e6;
  --ok: #2b8a3e;
  --ok-soft: #ebfbee;
  --err: #c92a2a;
  --err-soft: #fff0f0;
  --radius: 14px;
  --nav-w: 248px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .05);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
b, strong, h1, h2, h3, h4, th, label, button, .btn { font-weight: 400; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; margin: 0 0 .6em; }
h3 { font-size: 1.05rem; margin: 0 0 .4em; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- Buttons & Formulare ---------- */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 42px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: .95rem; cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn-primary, button.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover, button.btn-primary:hover { filter: brightness(1.06); }
.btn-danger, button.btn-danger { color: var(--err); }
.btn-brand, button.btn-brand { background: var(--brand); border-color: var(--brand); color: var(--navy); }
.btn-brand:hover, button.btn-brand:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-done, button.btn-done { background: var(--ok); border-color: var(--ok); color: #fff; transition: background .4s; }
.btn-wa, button.btn-wa, .act-wa { background: #25d366; border-color: #25d366; color: #073b1c; }
.act-wa:hover { background: #3fe07a; border-color: #3fe07a; }
.act-call { background: var(--navy); border-color: var(--navy); color: #fff; }
.act-call:hover { background: var(--navy-2); }
.btn-danger:hover { border-color: var(--err); }
.btn-delete, button.btn-delete { background: var(--err); border-color: var(--err); color: #fff; }
.btn-delete:hover { background: #b42318; border-color: #b42318; color: #fff; }
.btn-sm, button.btn-sm { min-height: 34px; padding: 0 12px; font-size: .875rem; }
.linkbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 6px 8px; }
.linkbtn:hover { color: var(--text); }

.form { display: grid; gap: 14px; }
.form .row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form .row-3 { display: grid; gap: 14px; grid-template-columns: 2fr 1fr 1fr; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .875rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
input[type=color] { width: 56px; height: 44px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0; }
legend { padding: 0 6px; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.flash { max-width: 1120px; margin: 12px auto 0; padding: 12px 16px; border-radius: 10px; width: calc(100% - 32px); }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-err { background: var(--err-soft); color: var(--err); }
.badge { display: inline-block; min-width: 24px; padding: 1px 8px; border-radius: 999px; font-size: .8rem; text-align: center; background: var(--surface-2); color: var(--muted); }
.badge-new { background: var(--new-badge); color: var(--navy); }

table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { color: var(--muted); font-size: .85rem; }

/* ---------- App-Rahmen: Seitenleiste (Desktop), Kopf + Leiste unten (Handy) ---------- */
.shell { display: flex; min-height: 100vh; }
.appnav {
  position: fixed; inset: 0 auto 0 0; width: var(--nav-w); z-index: 30;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--navy); color: #c9d1db; padding: 14px 12px 12px;
}
.appnav-logo { display: block; background: #fff; border-radius: 12px; padding: 10px 12px; }
.appnav-logo img { display: block; width: 100%; height: auto; }
.appnav-compose {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 10px;
  background: var(--brand); color: var(--navy); margin: 4px 2px 2px;
}
.appnav-compose:hover { background: var(--brand-2); text-decoration: none; }
.appnav-links { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; }
.nav-sec { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 14px 10px 6px; }
.appnav-links a {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 9px;
  color: #d7dde5; font-size: .95rem;
}
.appnav-links a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appnav-links a:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.appnav-links a.on { background: rgba(244,190,68,.16); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.appnav-links .ic { flex: none; opacity: .9; }
.appnav-links a.nav-home {
  justify-content: center; min-height: 44px; margin: 2px 2px 4px; border-radius: 10px;
  background: var(--orange); color: #fff; box-shadow: none;
}
.appnav-links a.nav-home span { flex: none; }
.appnav-links a.nav-home .ic { color: #fff; opacity: 1; }
.appnav-links a.nav-home:hover { background: var(--orange-2); color: #fff; }
.appnav-links a.nav-home.on { background: var(--orange); color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.nav-accounts a { min-height: 34px; font-size: .9rem; }
.nav-fold { display: flex; align-items: center; gap: 8px; width: calc(100% - 12px); padding: 4px 4px 4px 0; background: none; border: 0; border-radius: 6px; font: inherit; font-size: .72rem; cursor: pointer; text-align: left; }
.nav-fold span { flex: 1; }
.nav-fold:hover { color: #ffd77a; }
.nav-fold .nav-badge { font-size: .7rem; letter-spacing: 0; text-transform: none; }
.nav-fold[aria-expanded="true"] .nav-badge { display: none; }
.nav-chev { flex: none; transition: transform .15s; }
.nav-fold[aria-expanded="false"] .nav-chev { transform: rotate(-90deg); }
.nav-accounts.is-folded a:not(.on) { display: none; }
.nav-accounts i { width: 9px; height: 9px; border-radius: 50%; flex: none; margin: 0 5px 0 5px; }
.nav-badge { font-style: normal; font-size: .75rem; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 999px; background: var(--brand); color: var(--navy); }
.appnav-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px 2px; border-top: 1px solid rgba(255,255,255,.1); }
.appnav-user form { margin: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--slate); color: #fff; display: grid; place-items: center; font-size: .85rem; flex: none; }
.appnav-user .who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.appnav-user .who span { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appnav-user .who small { color: #9aa6b4; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.appnav .iconbtn:hover { background: rgba(255,255,255,.08); color: #fff; }
.appmain { flex: 1; min-width: 0; margin-left: var(--nav-w); }
.mobilebar, .bottomnav { display: none; }
.brand { color: var(--text); font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand img { display: block; height: 42px; width: auto; }

/* ---------- Öffentliche Seiten ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-foot { padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(60% 50% at 85% 0%, rgba(244,190,68,.22), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(80,88,99,.12), transparent 70%), var(--bg); }
.auth .card { width: 100%; max-width: 420px; }
.auth h1 { font-size: 1.6rem; }
.auth .brand img { height: 46px; }

/* Startseite */
.lp { background: #fffdf8; }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.lp-head { position: sticky; top: 0; z-index: 20; background: rgba(255,253,248,.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(48,58,70,.06); }
.lp-head-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.lp-nav { display: flex; align-items: center; gap: 22px; }
.lp-nav a:not(.btn) { color: var(--slate); }
.lp-eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(244,190,68,.2); color: #8a5e00; font-size: .82rem; letter-spacing: .02em; margin-bottom: 18px; }
.lp-eyebrow.dark { background: rgba(244,190,68,.16); color: var(--brand); }
.lp-hero { position: relative; overflow: hidden; padding: 70px 0 80px;
  background: radial-gradient(45% 55% at 92% 20%, rgba(244,190,68,.28), transparent 70%), radial-gradient(35% 45% at 70% 95%, rgba(247,212,108,.25), transparent 70%), radial-gradient(40% 50% at 0% 0%, rgba(80,88,99,.08), transparent 70%); }
.lp-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.lp-hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.08; letter-spacing: -.02em; color: var(--navy); margin: 0 0 22px; }
.hl { background: linear-gradient(transparent 62%, rgba(244,190,68,.75) 62%); padding: 0 .08em; }
.lp-lead { font-size: 1.15rem; color: #56606e; max-width: 34em; margin: 0; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.lp-cta .btn { min-height: 50px; padding: 0 26px; font-size: 1rem; }
.lp-btn-light { background: #fff; border-color: rgba(48,58,70,.15); }
.lp-trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--slate); font-size: .9rem; }
.lp-trust li::before { content: "✓"; color: #c98a06; margin-right: 7px; }

.lp-mock { position: relative; }
.mock-window { display: grid; grid-template-columns: 74px 1fr; min-height: 360px; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -20px rgba(48,58,70,.35), 0 0 0 1px rgba(48,58,70,.06); transform: rotate(-1.2deg); }
.mock-side { background: var(--navy); padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.mock-logo { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 34px; height: 34px; margin-bottom: 8px; }
.mock-logo i { border-radius: 4px; background: var(--brand); }
.mock-logo i:nth-child(2) { background: var(--brand-2); }
.mock-logo i:nth-child(3) { background: var(--slate); }
.mock-logo i:nth-child(4) { background: #1e252e; }
.mock-side .mock-logo i:nth-child(4) { background: #5d6774; }
.mock-logo.small { width: 18px; height: 18px; gap: 2px; display: inline-grid; vertical-align: -3px; margin: 0 6px 0 0; }
.mock-logo.small i { border-radius: 2px; }
.mock-nav { height: 10px; border-radius: 5px; background: rgba(255,255,255,.18); }
.mock-nav.on { background: var(--brand); }
.mock-sec { height: 6px; width: 60%; border-radius: 3px; background: rgba(244,190,68,.5); margin-top: 10px; }
.mock-acc { display: flex; align-items: center; gap: 6px; height: 10px; }
.mock-acc::after { content: ""; flex: 1; height: 7px; border-radius: 4px; background: rgba(255,255,255,.14); }
.mock-acc b { width: 8px; height: 8px; border-radius: 50%; }
.mock-main { padding: 18px; background: #f6f7fa; display: flex; flex-direction: column; gap: 12px; }
.mock-all { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--navy); color: #fff; font-size: .95rem; }
.mock-all em { font-style: normal; color: var(--brand); }
.mock-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-tile { position: relative; display: flex; flex-direction: column; padding: 11px 12px 11px 15px; border-radius: 11px; background: #fff; border: 1px solid #e6e9ee; font-size: .85rem; color: var(--navy); }
.mock-tile::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: #cfd5dd; }
.mock-tile small { color: #8a94a2; font-size: .7rem; }
.mock-tile.new { background: #fff8e6; border-color: #f6dc97; }
.mock-tile.new::before { background: var(--brand); }
.mock-tile em { position: absolute; right: 10px; top: 10px; font-style: normal; font-size: .72rem; min-width: 20px; text-align: center; border-radius: 999px; padding: 1px 6px; background: var(--brand); color: var(--navy); }
.mock-float { position: absolute; left: -26px; bottom: -22px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -12px rgba(48,58,70,.3); transform: rotate(1.5deg); max-width: 300px; }
.mock-float .mf-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px rgba(43,138,62,.15); flex: none; }
.mock-float .mf-title { display: block; color: var(--navy); }
.mock-float small { color: var(--muted); font-size: .8rem; }

.lp-strip { background: var(--navy); color: #d7dde5; }
.lp-strip-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.lp-strip-row > div { display: flex; align-items: center; gap: 14px; padding: 26px 10px; }
.lp-strip-row > div + div { border-left: 1px solid rgba(255,255,255,.1); padding-left: 26px; }
.lp-strip .num { font-size: 2.2rem; color: var(--brand); line-height: 1; min-width: 34px; text-align: center; }

.lp-section { padding: 90px 0; }
.lp-section-head { max-width: 640px; margin-bottom: 44px; }
.lp-section h2, .lp-family h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; color: var(--navy); margin: 0 0 14px; letter-spacing: -.01em; }
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-feature { padding: 26px; border-radius: 18px; background: #fff; border: 1px solid #eceef2; transition: transform .15s, box-shadow .15s; }
.lp-feature:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(48,58,70,.35); }
.lp-feature h3 { font-size: 1.12rem; color: var(--navy); margin: 16px 0 6px; }
.lp-feature p { margin: 0; color: #5d6774; }
.fi { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; }
.fi .ic { width: 22px; height: 22px; }
.fi-1 { background: var(--brand); color: var(--navy); }
.fi-2 { background: var(--brand-2); color: var(--navy); }
.fi-3 { background: var(--slate); color: #fff; }
.fi-4 { background: var(--navy); color: var(--brand); }

.lp-steps-sec { background: linear-gradient(180deg, #fff 0%, #fff8e6 100%); }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.lp-step { position: relative; padding: 28px 24px 24px; border-radius: 18px; background: #fff; border: 1px solid #f1e5c4; }
.lp-step .sn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--brand); font-size: 1.1rem; }
.lp-step h3 { color: var(--navy); margin: 14px 0 6px; font-size: 1.12rem; }
.lp-step p { margin: 0; color: #5d6774; }

.lp-family { padding: 90px 0; background: var(--navy); color: #c9d1db;
  background-image: radial-gradient(40% 60% at 100% 0%, rgba(244,190,68,.18), transparent 70%); }
.lp-family h2 { color: #fff; }
.lp-family p { font-size: 1.08rem; max-width: 32em; }
.lp-family-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-flow { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.lp-flow span { padding: 14px 18px; border-radius: 12px; background: rgba(255,255,255,.07); color: #eef1f5; border: 1px solid rgba(255,255,255,.08); }
.lp-flow em { font-style: normal; color: var(--brand); }
.lp-flow .arrow { background: none; border: 0; padding: 0; text-align: center; color: var(--brand); }
.lp-flow .done { background: rgba(244,190,68,.14); color: #fff; border-color: rgba(244,190,68,.6); }

.lp-end { padding: 34px 0; background: #fffaf0; border-top: 1px solid #f1e5c4; }
.lp-end-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lp-end p { margin: 0; color: var(--navy); font-size: 1.15rem; }
/* Hero-Bild */
.lp-shot { position: relative; margin: 0; }
.lp-shot img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 30px 70px -24px rgba(48,58,70,.45), 0 0 0 1px rgba(48,58,70,.06); background: #f1ece2; }
@media (min-width: 901px) { .lp-hero-grid:has(.lp-shot) { grid-template-columns: 1fr 1.1fr; gap: 44px; } .lp-shot .mock-float { left: -18px; } }
.lp-shot .mock-float { bottom: -52px; padding: 11px 15px; }
.mf-dot.clar { background: var(--brand); box-shadow: 0 0 0 5px rgba(244,190,68,.25); }
/* Nachrichten-Verwaltung */
.lp-manage { background: #fff; }
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.cmp { padding: 26px 28px; border-radius: 18px; }
.cmp h3 { margin: 0 0 12px; font-size: 1.12rem; }
.cmp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cmp li { position: relative; padding-left: 28px; }
.cmp-old { background: #f4f5f7; color: #5d6774; }
.cmp-old h3 { color: #5d6774; }
.cmp-old li::before { content: "–"; position: absolute; left: 6px; color: #9aa3ae; }
.cmp-new { background: #fff8e6; border: 1px solid #f6dc97; color: #3a4350; }
.cmp-new h3 { color: var(--navy); }
.cmp-new li::before { content: "✓"; position: absolute; left: 4px; color: #c98a06; }
.fi-clar { background: #fde7a8; font-size: 1.3rem; box-shadow: inset 4px 0 0 #ef7d22; }
.lp-foot { background: var(--navy-2); color: #aeb8c4; padding: 26px 0; font-size: .9rem; }
.lp-foot a { color: #fff; }
/* Webseite: Telefonzeile, Menü, große Fußzeile, Datenschutz-Hinweis */
.lp-topbar { background: var(--navy); color: #c9d1db; font-size: .85rem; }
.lp-topbar-row { display: flex; justify-content: flex-end; align-items: center; gap: 14px; height: 34px; }
.lp-topbar .tb-phone { color: var(--brand); white-space: nowrap; }
.lp-topbar .tb-phone:hover { color: #fff; text-decoration: none; }
.lp-nav a.on { color: var(--navy); box-shadow: inset 0 -2px 0 var(--brand); }
.lp-burger { display: none; position: relative; }
.lp-burger > summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; color: var(--navy); }
.lp-burger > summary::-webkit-details-marker { display: none; }
.lp-burger-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, 86vw); padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 40px -18px rgba(48,58,70,.45); display: grid; gap: 2px; z-index: 30; }
.lp-burger-panel a { padding: 11px 12px; border-radius: 10px; color: var(--navy); }
.lp-burger-panel a:hover { background: var(--surface-2); text-decoration: none; }
.lp-burger-panel .btn { margin-top: 6px; justify-content: center; color: #fff; }
.site-foot-big { padding: 54px 0 26px; }
.foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 36px; }
.foot-cols h4 { margin: 4px 0 14px; color: #fff; font-size: .95rem; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-cols a { color: #c9d1db; }
.foot-cols a:hover { color: #fff; }
.foot-brand img { background: #fff; border-radius: 10px; padding: 6px 10px; height: auto; }
.foot-tag { margin: 14px 0 0; color: #9aa6b4; max-width: 34ch; line-height: 1.6; }
.foot-phone a { color: var(--brand); font-size: 1.05rem; }
.foot-phone span { color: #9aa6b4; font-size: .82rem; }
.foot-bottom { margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: #7f8b99; font-size: .82rem; }
.table-wrap { overflow-x: auto; }
.site-admin { margin: 0 0 18px; }
.users-card .acc-row { flex-wrap: wrap; gap: 8px; }
.users-card .acc-row > .grow { flex-basis: 100%; }
.lead-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lead-head form { margin: 0; }
.tenant-list { display: grid; gap: 10px; }
.tenant { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tenant > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 16px; }
.tenant > summary::-webkit-details-marker { display: none; }
.tenant > summary::before { content: "▸"; color: var(--muted); }
.tenant[open] > summary::before { content: "▾"; }
.tenant[open] > summary { border-bottom: 1px solid var(--line); }
.tenant .tn-name { color: var(--navy); }
.tenant .tn-meta { flex: 1; min-width: 220px; }
.tn-own { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: #fff3d6; color: #8a5e00; font-size: .78rem; }
.tenant .tn-note { margin: 0; padding: 12px 16px; }
.tenant .table-wrap { padding: 4px 12px; }
.tenant .tn-toggle { padding: 10px 16px 14px; margin: 0; }
.tenant.is-off { opacity: .75; }
.tn-state { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; }
.tn-state.ok { background: #e7f5ea; color: var(--ok); }
.tn-state.off { background: var(--err-soft); color: var(--err); }
.plat-users tr.is-off td { color: var(--muted); }
.plat-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.plat-actions form { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.log-scroll { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.log-scroll table { margin: 0; }
.log-scroll thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; box-shadow: 0 1px 0 var(--line); }
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 620px; margin: 0 auto; display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(30,38,48,.45); }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; font-size: .9rem; color: #4a5361; }
.cookie-note .cn-title { display: block; color: var(--navy); margin-bottom: 2px; }
.cookie-note .btn { flex: none; }
/* Seitentitel, Über uns, Rechtliches */
.lp-page-title { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.1; letter-spacing: -.02em; color: var(--navy); margin: 0 0 18px; max-width: 22ch; }
.about-hero { padding: 64px 0 30px; }
.about-mark { margin: 22px 0; padding-left: 18px; border-left: 3px solid var(--brand); color: var(--navy); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.45; max-width: 40ch; }
.about-block { padding: 46px 0; }
.about-block + .about-block { border-top: 1px solid #efe7d4; }
.about-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 52px; align-items: start; }
.about-side h2, .about-split h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.2; color: var(--navy); margin: 0 0 12px; }
.about-side p { color: #5d6774; margin: 0; }
.about-prose p { margin: 0 0 16px; line-height: 1.7; color: #3a4350; }
.claim-box { background: #fff8e6; border: 1px solid #f6dc97; border-radius: 22px; padding: 36px; text-align: center; color: var(--navy); font-size: clamp(1.15rem, 2.3vw, 1.45rem); line-height: 1.5; }
.about-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.about-cta .btn, .cta-actions .btn { min-height: 48px; padding: 0 24px; }
.about-cta p { flex-basis: 100%; margin: 0; }
.legal { padding: 54px 0 70px; }
.legal-wrap { max-width: 820px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 18px 0 30px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid #efe7d4; font-size: .9rem; }
.legal-toc a { color: var(--slate); }
.legal section { margin: 0 0 26px; }
.legal h2 { font-size: 1.2rem; color: var(--navy); margin: 0 0 10px; }
.legal p { margin: 0 0 12px; line-height: 1.7; color: #3a4350; }
/* Kontakt */
.lp-contact { padding-top: 60px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.contact-points li { display: flex; align-items: center; gap: 12px; color: #3a4350; }
.contact-points a { color: var(--navy); font-size: 1.05rem; }
.contact-points small { display: block; color: var(--muted); font-size: .82rem; }
.cp-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: #fff3d6; color: #8a5e00; }
.contact-quote { margin: 28px 0 0; padding-left: 16px; border-left: 3px solid var(--orange); color: var(--navy); font-size: 1.12rem; line-height: 1.5; max-width: 34ch; }
.cform { background: #fff; border: 1px solid #efe7d4; border-radius: 22px; padding: 28px; box-shadow: 0 24px 50px -32px rgba(48,58,70,.35); position: relative; }
.cf-body { display: grid; gap: 14px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform .err { border-color: #e03131; box-shadow: 0 0 0 3px rgba(224,49,49,.12); }
.cf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.cf-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.cf-consent a { color: var(--navy); text-decoration: underline; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-submit { min-height: 50px; justify-content: center; }
.cf-submit:disabled { opacity: .6; }
.cf-status { margin: 0; min-height: 1.2em; font-size: .92rem; }
.cf-status.bad { color: #c92a2a; }
.cform.sent .cf-body { display: none; }
.cform-done { display: none; text-align: center; padding: 30px 6px; }
.cform.sent .cform-done { display: block; }
.cd-mark { width: 58px; height: 58px; border-radius: 50%; background: #e7f5ea; color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; font-size: 1.8rem; }
.cd-big { font-size: 1.4rem; color: var(--navy); margin-bottom: 6px; }
.cform-done p { color: var(--muted); max-width: 34ch; margin: 0 auto; }
/* Preise */
.lp-prices { background: #fff; }
.price-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #f4f5f7; margin-bottom: 26px; }
.price-switch button { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font: inherit; color: var(--slate); cursor: pointer; }
.price-switch button span { font-size: .78rem; color: #8a5e00; margin-left: 4px; }
.price-switch button.on { background: var(--navy); color: #fff; }
.price-switch button.on span { color: var(--brand); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 26px; border-radius: 20px; background: #fff; border: 1px solid #efe7d4; }
.price-card.is-best { border: 2px solid var(--brand); box-shadow: 0 24px 50px -28px rgba(48,58,70,.45); background: #fffdf6; }
.price-card h3 { margin: 0; font-size: 1.3rem; color: var(--navy); }
.pc-badge { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--orange); color: #fff; font-size: .8rem; }
.pc-txt { margin: 0; color: #5d6774; min-height: 3em; }
.pc-price { min-height: 4.4em; }
.pc-num { font-size: 2.3rem; color: var(--navy); letter-spacing: -.02em; }
.pc-per { color: var(--muted); }
.pc-y small { display: block; color: var(--muted); }
.pc-note { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #fff3d6; color: #8a5e00; font-size: .8rem; }
.price-card ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; flex: 1; }
.price-card li { position: relative; padding-left: 24px; color: #3a4350; }
.price-card li::before { content: "✓"; position: absolute; left: 2px; color: #c98a06; }
.price-card .btn { justify-content: center; min-height: 46px; }
.price-foot { margin: 18px 0 0; }
.pc-trial { display: block; margin-top: -4px; text-align: center; font-size: 13px; color: #2f9e44; }
.pc-soon { opacity: .55; cursor: default; pointer-events: none; }
.abo-pick .pc-trial { margin-top: 6px; }
.price-how { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.price-how li { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid #efe7d4; font-size: 14px; line-height: 1.45; color: #303a46; }
.price-how li span { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fdf0d9; color: #ef7d22; font-size: 13px; }
@media (max-width: 760px) { .price-how { grid-template-columns: 1fr; } }
.reg-plan { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #fff8ea; border: 1px solid #f4dca8; }
.reg-plan .rp-name { font-size: 16px; color: #303a46; }
.reg-plan .rp-free { font-size: 13px; color: #2f9e44; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 520px; } }
/* Org-Familie auf der Startseite */
.lp-org { background: #fffaf0; }
.org-mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.org-mod { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 22px; border-radius: 20px; background: #fff; border: 1px solid #efe7d4; transition: transform .15s, box-shadow .15s, border-color .15s; }
.org-mod:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgba(48,58,70,.4); }
.org-mod.is-here { background: linear-gradient(160deg, #fff4d6 0%, #fff 60%); border-color: var(--brand); }
.org-mod.is-hub { background: linear-gradient(160deg, #f3f6f9 0%, #fff 55%); }
.om-logo { height: 52px; display: flex; align-items: center; }
.om-logo img { max-height: 52px; max-width: 210px; width: auto; height: auto; object-fit: contain; }
.om-logo-txt { font-size: 1.4rem; color: var(--navy); }
.om-st { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: #f1f3f6; color: #4a5361; font-size: .8rem; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.om-st i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--ok); }
.om-st.is-test i { background: #f0a23b; }
.om-st.is-build i { background: #9aa6b8; }
.om-st.is-hub i { background: var(--navy); }
.om-desc { margin: 0; color: #4a5361; line-height: 1.55; }
.om-flow { margin-top: 2px; padding-top: 12px; border-top: 1px dashed #e4e0d4; font-size: .86rem; color: var(--muted); }
.om-flow span { color: var(--orange); }
.om-more { align-self: flex-start; margin-top: auto; background: none; border: 0; padding: 0 0 2px; font: inherit; font-size: .92rem; color: var(--navy); border-bottom: 2px solid #f6dc97; cursor: pointer; }
.om-more:hover { border-color: var(--orange); }
.om-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: .88rem; color: var(--muted); }
.om-legend span { display: inline-flex; align-items: center; gap: 7px; }
.om-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.om-legend i.is-test { background: #f0a23b; }
.om-legend i.is-build { background: #9aa6b8; }
.om-orgplace { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 34px; padding: 28px 30px; border-radius: 20px; background: var(--navy); color: #c9d1db; }
.om-orgplace h3 { margin: 0 0 6px; color: #fff; font-size: 1.25rem; }
.om-orgplace p { margin: 0; max-width: 60ch; }
.om-orgplace .btn { flex: none; }
.om-pop { width: min(620px, calc(100vw - 24px)); max-height: 90vh; padding: 34px 32px 30px; border: 0; border-radius: 22px; background: #fff; color: var(--text); box-shadow: 0 40px 90px -30px rgba(30,38,48,.6); }
.om-pop::backdrop { background: rgba(30,38,48,.55); }
.om-pop-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; color: var(--slate); cursor: pointer; }
.om-pop-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; padding-right: 40px; }
.om-pop-head img { height: 48px; width: auto; max-width: 220px; object-fit: contain; }
.om-pop h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.5rem; }
.om-pop p { margin: 0 0 18px; color: #3a4350; line-height: 1.65; }
.om-pop .om-flow { margin: 0 0 20px; }
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: 40px; border-radius: 24px; background: #fff; border: 1px solid #efe7d4; }
.cta-box h2 { margin: 0 0 8px; }
.cta-box p { margin: 0; color: #5d6774; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta-actions .muted { flex-basis: 100%; }
@media (max-width: 1000px) {
  .org-mods { grid-template-columns: 1fr 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .lp-nav { display: none; }
  .lp-burger { display: block; }
  .lp-topbar-row { justify-content: space-between; }
  .contact-grid, .about-split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  .org-mods, .foot-cols, .cf-row { grid-template-columns: 1fr; }
  .cform { padding: 20px; }
  .cta-box { padding: 26px 20px; }
  .cookie-note { flex-direction: column; align-items: stretch; }
  .lp-topbar .tb-note { display: none; }
  .lp-topbar-row { justify-content: center; }
}

@media (max-width: 900px) {
  .lp-nav a:not(.btn) { display: none; }
  .lp-hero { padding: 40px 0 70px; }
  .lp-hero-grid, .lp-family-grid { grid-template-columns: 1fr; gap: 48px; }
  .lp-features, .lp-steps, .lp-compare { grid-template-columns: 1fr; }
  .lp-strip-row { grid-template-columns: 1fr; }
  .lp-strip-row > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); padding-left: 10px; }
  .lp-section, .lp-family { padding: 60px 0; }
  .mock-float { left: 8px; }
  .lp-head-row { height: 64px; }
  .lp-head .brand img { height: 38px; }
}
@media (max-width: 480px) {
  .mock-window { grid-template-columns: 52px 1fr; min-height: 300px; }
  .mock-tiles { grid-template-columns: 1fr; }
  .mock-tile:nth-child(n+4) { display: none; }
}

/* ---------- Dashboard ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 24px 16px 60px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; }
.tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); white-space: nowrap; }
.tabs a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs a:hover { text-decoration: none; }
/* Datumsfeld mit Hinweis „📅 Kalender“ solange leer */
.date-wrap { position: relative; display: block; min-width: 0; }
span.date-wrap > input[type=date] { display: block; width: 100%; }
.date-wrap.is-empty input[type=date] { color: transparent; }
.date-wrap.is-empty input[type=date]:focus { color: inherit; }
.date-ph { display: none; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; white-space: nowrap; }
.date-wrap.is-empty .date-ph { display: block; }
.date-wrap.is-empty input:focus + .date-ph { display: none; }
.quick-task .date-wrap { flex: none; width: 170px; }
/* ☰-Menü für Gruppen/Filter/Ordner – nur auf dem Handy */
.mm-toggle { display: none; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 18px 16px; min-height: 120px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); box-shadow: var(--shadow); transition: transform .12s, border-color .12s, background .2s;
}
.tile::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--tile-color, var(--accent)); opacity: .35; }
.tile:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--tile-color, var(--accent)); }
.tile .t-name { font-size: 1.1rem; }
.tile .t-addr { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .t-status { margin-top: auto; font-size: .9rem; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.tile.has-new { background: var(--new-soft); border-color: color-mix(in srgb, var(--new) 35%, var(--line)); }
.tile.has-new::before { background: var(--new-badge); opacity: 1; }
.tile.has-new .t-status { color: var(--new); }
.tile.has-error .t-status { color: var(--err); }
.tile { min-width: 0; }
.tile .t-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-all {
  display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding: 18px 22px;
  border-radius: var(--radius); background: var(--navy); color: #fff; box-shadow: var(--shadow);
}
.tile-all:hover { text-decoration: none; background: var(--navy-2); }
.tile-all .ta-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--brand); flex: none; }
.tile-all .ta-icon .ic { width: 24px; height: 24px; }
.tile-all .ta-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tile-all .t-name { font-size: 1.2rem; }
.tile-all .t-addr { color: #aeb8c4; font-size: .88rem; }
.tile-all .t-big { font-size: 1.45rem; white-space: nowrap; }
.tile-all.has-new .t-big { color: var(--brand); }
.dash-filters { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.dash-filters .tabs { margin-bottom: 0; flex: 1; min-width: 0; }
.dash-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .88rem; white-space: nowrap; }
.chip .ic { width: 16px; height: 16px; }
.chip:hover { text-decoration: none; color: var(--text); border-color: var(--slate); }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--navy); }
/* Übersicht: „Nur ungelesene“ ↔ „Alle Postfächer“ */
.chip.chip-unread { background: #fff3e6; border-color: #f6c08f; color: #b4580b; }
.chip.chip-unread:hover { border-color: var(--orange); color: #9a4a08; }
.chip.chip-unread.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.chip.chip-unread.on:hover { background: var(--orange-2); border-color: var(--orange-2); }
.visibility h2 { margin-bottom: 4px; }
.vis-group { margin: 16px 0 4px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vis-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.vis-row input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.vis-row i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.vis-row .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.vis-sort { list-style: none; margin: 8px 0 0; padding: 0; }
.vis-sort .vis-row { background: var(--surface); }
.vis-sort .vis-row.dragging { opacity: .45; }
.vis-sort .vis-row.moved { background: var(--accent-soft); transition: background .4s; }
.vis-sort .vis-row { user-select: none; -webkit-user-select: none; }
.vis-sort .drag-handle { touch-action: none; cursor: grab; padding: 6px 8px; margin: -6px -4px; font-size: 1.2rem; color: var(--muted); }
.vis-sort .vis-row.dragging { cursor: grabbing; box-shadow: 0 8px 20px -10px rgba(48,58,70,.45); position: relative; z-index: 2; }
.vis-status { min-height: 1.2em; margin: 6px 0 0; color: var(--muted); }
.vis-status.ok { color: var(--ok); }
.vis-status.err { color: #c0392b; }
.drag-handle { cursor: grab; color: var(--muted); font-size: 1.1rem; padding: 0 2px; user-select: none; }
.move-btns { display: flex; gap: 2px; flex: none; }
.move-btns .iconbtn { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.move-btns .iconbtn:hover { border-color: var(--slate); }
.vis-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.access-list.disabled { opacity: .45; }
.tile-add { border-style: dashed; box-shadow: none; align-items: center; justify-content: center; color: var(--muted); }
.tile-add::before { display: none; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }

/* ---------- Arbeitsbereich (Postfach / Alle) ---------- */
.workspace { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.workspace.three { grid-template-columns: 260px minmax(0, 420px) minmax(0, 1fr); }
.side { border-right: 1px solid var(--line); background: var(--surface); padding: 14px 10px; overflow-y: auto; }
.acct-chip {
  display: block; padding: 12px 12px 12px 16px; margin-bottom: 12px; border-radius: 12px;
  background: var(--surface-2); color: var(--text); position: relative; border: 1px solid transparent;
}
.acct-chip::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--tile-color, var(--accent)); }
.acct-chip:hover { text-decoration: none; border-color: var(--line); }
.acct-chip .c-name { display: block; font-size: 1.05rem; padding-right: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-chip .c-addr { display: block; color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; }
.acct-chip .c-close { position: absolute; right: 10px; top: 10px; color: var(--muted); font-size: .8rem; }
.folders { list-style: none; margin: 0; padding: 0; }
.folders li a, .folders li .nolink {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px; color: var(--text);
}
.folders li .nolink { color: var(--muted); }
.folders li a:hover { background: var(--surface-2); text-decoration: none; }
.folders li a.on { background: var(--accent-soft); color: var(--accent-text); }
.folders li a.drop-hover { background: var(--accent); color: #fff; }
.folders .f-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folders .sep { margin: 10px 10px 4px; font-size: .78rem; color: var(--orange); letter-spacing: .04em; text-transform: uppercase; }
.side-hint { font-size: .8rem; color: var(--muted); padding: 10px; }

.main { min-width: 0; padding: 0; display: flex; flex-direction: column; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.toolbar .grow { flex: 1; }
.toolbar select { width: auto; min-height: 34px; padding: 4px 8px; }
.msglist { list-style: none; margin: 0; padding: 0; }
.msg { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 10px; align-items: start; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.msg:hover { background: var(--surface-2); }
.msg.sel { background: var(--accent-soft); }
.msg input[type=checkbox] { margin-top: 4px; width: 18px; height: 18px; }
.msg .m-from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg .m-subj { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg.unseen .m-from::before { content: "●"; color: var(--accent); margin-right: 6px; font-size: .75em; vertical-align: 1px; }
.msg.unseen .m-subj { color: var(--text); }
.msg .m-date { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.msg a.m-link { color: inherit; display: block; min-width: 0; }
.msg a.m-link:hover { text-decoration: none; }
.msg[draggable=true] { cursor: grab; }
.m-tag { display: inline-block; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: 1px 8px; border-radius: 6px; margin-bottom: 3px; color: #fff; background: var(--tile-color, var(--accent)); }
.m-to { color: var(--muted); font-size: .8rem; }
/* Klärung (gelb wie bei OrgDesk) */
.msg.clarify { background: #fff6dc; box-shadow: inset 4px 0 0 #ef7d22; }
.msg.clarify:hover { background: #fdefc6; }
.clar-tag { display: inline-block; max-width: 100%; margin-top: 4px; padding: 1px 9px; border-radius: 999px; background: #fde7a8; color: #7a4d00; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.clar-tag::before { content: "⏳ "; }
/* Grünes Abzeichen „Beantwortet am …“ – wie die Klärung, nur in Grün */
.reply-tag { display: inline-block; max-width: 100%; margin: 4px 6px 0 0; padding: 1px 9px; border-radius: 999px; background: #d3f2dc; color: #1e6b37; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.reply-tag::before { content: "✓ "; }
.msg .reply-tag + .clar-tag { margin-left: 0; }
.reply-line { margin: -4px 0 10px; }
.m-flag { color: #e03131; }
.btn-clarify, button.btn-clarify { background: #fde7a8; border-color: #f4be44; color: #6b4300; }
.btn-clarify:hover { background: #f9dc8a; }
.clar-banner { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #fff6dc; border: 1px solid #f4d27a; box-shadow: inset 4px 0 0 #ef7d22; }
.clar-banner .cb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.clar-banner .cb-title { overflow-wrap: anywhere; }
.clar-banner small { color: #8a5e00; }
.clar-dot { width: 12px; height: 12px; border-radius: 50%; background: #f4be44; flex: none; display: inline-block; margin-right: 8px; vertical-align: 1px; }
.clar-banner .clar-dot { margin: 0; }
.task.is-clarify { background: #fff6dc; box-shadow: inset 4px 0 0 #ef7d22; }
.task.is-clarify.done { background: transparent; box-shadow: none; }
.task.is-clarify .clar-tag { margin: 0 4px 0 0; }
.tabs a.tab-clarify:not(.on) { border-color: #f4d27a; background: #fff6dc; color: #7a4d00; }
/* ⋯-Menü hinter jeder Mail */
.msg.msg-alle { grid-template-columns: minmax(0, 1fr) auto auto; }
.rowmenu { position: relative; align-self: center; }
.rowmenu-btn { list-style: none; display: grid; place-items: center; width: 34px; height: 30px; border-radius: 8px; border: 1px solid transparent; color: var(--muted); cursor: pointer; font-size: 1.2rem; line-height: 1; user-select: none; }
.rowmenu-btn::-webkit-details-marker { display: none; }
.rowmenu-btn:hover, .rowmenu[open] .rowmenu-btn { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.rowmenu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 250px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 36px -14px rgba(48,58,70,.45); }
.rowmenu.up .rowmenu-panel { top: auto; bottom: calc(100% + 6px); }
.rowmenu-panel a, .rowmenu-panel button, .rowmenu-move { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.rowmenu-panel a:hover, .rowmenu-panel button:hover, .rowmenu-move:hover { background: var(--surface-2); text-decoration: none; }
.rowmenu-panel i { font-style: normal; width: 20px; text-align: center; flex: none; }
.rowmenu-panel .danger { color: #c92a2a; }
.rowmenu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.rowmenu-move select { flex: 1; min-width: 0; min-height: 32px; padding: 2px 6px; font-size: .9rem; }
/* Fenster */
.dlg { width: min(520px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 30px 70px -20px rgba(20,28,40,.5); background: var(--surface); color: var(--text); }
.dlg::backdrop { background: rgba(30,38,48,.45); }
.dlg form { display: grid; gap: 12px; padding: 20px; margin: 0; }
.dlg h2 { margin: 0; display: flex; align-items: center; }
.dlg p { margin: 0; }
.clar-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.clar-chips .chip { cursor: pointer; font: inherit; font-size: .85rem; }
.dlg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px; color: var(--muted); }
.detail { padding: 22px; background: var(--bg); border-left: 1px solid var(--line); overflow-y: auto; }
.detail h2 { font-size: 1.25rem; }
.detail dl { display: grid; grid-template-columns: 80px 1fr; gap: 4px 12px; margin: 0 0 18px; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; overflow-wrap: anywhere; }
.detail .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.notice { padding: 14px 16px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }

/* ---------- Schreiben ---------- */
.from-chip { position: relative; padding: 10px 12px 10px 16px; border-radius: 10px; background: var(--surface-2); overflow-wrap: anywhere; }
.from-chip::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--tile-color, var(--accent)); }
.compose-text { min-height: 320px; font: inherit; line-height: 1.55; }
.dropzone { position: relative; display: block; border: 1px dashed var(--line); border-radius: 12px; padding: 16px; text-align: center; background: var(--surface-2); }
.dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.filelist { list-style: none; margin: 8px 0 0; padding: 0; text-align: left; }
.filelist li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.filelist li > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.filelist .fl-del { border: 1px solid var(--line); background: var(--surface); color: var(--err); border-radius: 8px; padding: 2px 10px; font: inherit; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.filelist .fl-del:hover { border-color: var(--err); }
.filelist .fl-sum { border-bottom: 0; color: #1e6b37; }
/* Grün: Datei angehängt und bereit zum Versand */
.filelist li.fl-ok { margin-top: 6px; border: 1px solid #a8dfb8; border-radius: 10px; background: #e8f7ed; color: #1e6b37; }
.filelist .fl-ready { flex: 0 0 auto; font-style: normal; font-size: .8rem; color: #1e6b37; white-space: nowrap; }
.filelist li.fl-warn { border-color: #f1b0b0; background: #fdeeee; color: var(--err); }
.filelist li.fl-warn .fl-ready { display: none; }
@media (max-width: 620px) { .filelist li.fl-ok { flex-wrap: wrap; } .filelist .fl-ready { order: 3; flex-basis: 100%; } }
.filelist .fl-sum.too-big { color: var(--err); }

/* ---------- Editor ---------- */
.rte { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.rte:focus-within { border-color: var(--accent); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.rte-bar button, .rte-bar .rte-btn, .rte-bar .rte-color { min-height: 32px; min-width: 32px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.rte-bar button:hover, .rte-bar .rte-btn:hover, .rte-bar .rte-color:hover { background: var(--surface); border-color: var(--line); }
.rte-bar select { width: auto; min-height: 32px; padding: 2px 6px; font-size: .88rem; border-radius: 8px; }
.rte-bar .rte-color input { width: 22px; height: 22px; padding: 0; border: 0; background: none; min-height: 0; }
.rte-sep { width: 1px; height: 22px; background: var(--line); margin: 0 2px; }
.rte .rte-img-only { display: none; }
.rte.img-selected .rte-img-only { display: inline-flex; }
.rte-area { padding: 14px 16px; outline: none; overflow-wrap: anywhere; background: #fff; color: #1c2030; }
.rte-area p { margin: 0 0 .7em; }
.rte-area h2 { font-size: 1.3em; font-weight: 700; margin: .3em 0; }
.rte-area h3 { font-size: 1.1em; font-weight: 700; margin: .3em 0; }
.rte-area b, .rte-area strong { font-weight: 700; }
.rte-area img { max-width: 100%; height: auto; cursor: pointer; }
.rte-area img.rte-sel { outline: 2px solid var(--accent); outline-offset: 2px; }
.rte-area blockquote { margin: 0 0 0 .6em; padding-left: .8em; border-left: 3px solid #d0d5dd; color: #555; }
.rte-area a { color: #2f4ac0; text-decoration: underline; }
.rte-area .oi-signature { color: #444; }
/* Mail-Vorlage im Editor (wie beim Empfänger) */
.tpl-edit-head { background: #fff; padding: 0 0 4px; }
.tpl-edit-bar { display: flex; height: 6px; }
.tpl-edit-bar i:nth-child(1) { flex: 5; background: #f4be44; }
.tpl-edit-bar i:nth-child(2) { flex: 3; background: #ef7d22; }
.tpl-edit-bar i:nth-child(3) { flex: 2; background: #505863; }
.tpl-edit-head img { display: block; max-width: 150px; height: auto; margin: 18px 16px 0; }
.tpl-edit-head span { display: block; margin: 18px 16px 0; font-size: 18px; color: #303a46; }
.tpl-edit-foot { padding: 10px 16px; background: #303a46; color: #c9d1db; font-size: 11px; }
.tpl-edit-foot span { color: #f4be44; }

/* ---------- Kunden ---------- */
.searchbar { display: flex; gap: 8px; margin-bottom: 16px; }
.searchbar input { flex: 1; }
.custlist { padding: 0; overflow: hidden; }
.cust-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); }
.cust-row:last-child { border-bottom: 0; }
.cust-row:hover { background: var(--surface-2); text-decoration: none; }
.cr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cr-name, .cr-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-sub { color: var(--muted); font-size: .85rem; }
.avatar.soft { background: var(--accent-soft); color: #8a5e00; }
.avatar.big { width: 54px; height: 54px; font-size: 1.3rem; background: var(--navy); color: var(--brand); }
.src-tag { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: #e7f6f3; color: #1f7a6c; white-space: nowrap; }
.cust-head { display: grid; gap: 16px; margin-bottom: 18px; }
.ch-info { display: flex; gap: 14px; align-items: flex-start; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-actions .btn { white-space: nowrap; }
.contact-actions .ic { width: 17px; height: 17px; }
.cust-note { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); color: #4a5361; }
.call-log { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; background: var(--surface-2); border-color: var(--line); }
[data-call-panel][hidden] { display: none !important; }
.cust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.tl { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); }
.tl:last-child { border-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 4px; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: var(--slate); }
.tl-whatsapp_in::before, .tl-whatsapp_out::before { background: #25d366; }
.tl-anruf::before { background: var(--navy); }
.tl-anruf_verpasst::before { background: var(--err); }
.tl-mail_in::before { background: var(--brand); }
.tl-mail_gesendet::before { background: var(--brand-2); }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-type { color: var(--text); }
.tl-at { color: var(--muted); font-size: .82rem; margin-left: auto; }
.tl-del { margin: 0; }
.tl-del .linkbtn { padding: 0 4px; }
.tl-body { display: block; margin-top: 4px; color: #4a5361; overflow-wrap: anywhere; }
.tl-whatsapp_in .tl-body, .tl-whatsapp_out .tl-body { background: #ecfbf1; border-radius: 10px; padding: 10px 12px; color: #18412a; }
.tl-whatsapp_out .tl-body { background: #e7f3ff; color: #1b3a57; }
.wa-tag { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: #d8f7e3; color: #12693a; }
.custcard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: -6px 0 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.custcard .cc-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.custcard .cc-main > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.custcard small { color: var(--muted); }
.custcard .call-log { flex-basis: 100%; margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px solid #f2dc9c; }
.call-log > span { color: var(--muted); font-size: .88rem; }
.custcard .call-log { background: var(--surface-2); border-color: var(--line); }
.call-log.call-flash { box-shadow: 0 0 0 3px rgba(239,125,34,.45); transition: box-shadow .3s; }
.custcard.unknown { background: var(--surface-2); border-style: dashed; }

/* ---------- Integrationen ---------- */
.integ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 18px; }
.integ { display: flex; flex-direction: column; gap: 12px; }
.integ.is-on { box-shadow: inset 4px 0 0 #2b8a3e, var(--shadow); }
.integ-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.integ-logo { display: flex; align-items: center; gap: 10px; }
.integ-logo .mark { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 36px; height: 36px; flex: none; }
.integ-logo .mark i { border-radius: 4px; }
.integ-logo .in-name { display: block; font-size: 1.15rem; color: var(--navy); line-height: 1.1; }
.integ-logo small { color: var(--muted); font-size: .78rem; }
.pill { font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-err { background: var(--err-soft); color: var(--err); }
.pill-soon { background: #f3f4f6; color: #8a94a2; }
.integ-text { margin: 0; color: #4a5361; }
.integ-stats { margin: 0; }
.integ-stats div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.integ-stats dt { color: var(--text); }
.integ-stats dd { margin: 0; }
.integ-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: auto; }
.integ-actions form { margin: 0; }
.integ-actions .linkbtn, .integ a.linkbtn { color: var(--err); padding: 0; }
.integ .err { color: var(--err); margin: 0; }
.integ-soon { margin-top: auto; }
.push-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: #8a5e00; flex: none; }

/* ---------- Admin: Passwort & Benutzer ---------- */
.pw-box { margin-bottom: 18px; background: var(--ok-soft); border-color: #b9e6c2; display: grid; gap: 8px; }
.pw-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pw-code { font-size: 1.25rem; letter-spacing: .06em; padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid #b9e6c2; user-select: all; }
.user-more { position: relative; }
.user-more > summary { list-style: none; }
.user-more > summary::-webkit-details-marker { display: none; }
.user-more-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; width: min(340px, 86vw); display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 34px -12px rgba(48,58,70,.35); }
.user-more-panel form { margin: 0; }
.user-more-panel label { display: grid; gap: 6px; }
.user-more-panel select { width: 100% !important; max-width: 100%; }
/* Benutzerfarbe: Band bei Aufgaben + Auswahl im Admin */
.user-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: #4a5361; font-size: .8rem; line-height: 1.5; white-space: nowrap; }
.user-pill.has-color { box-shadow: 0 1px 2px rgba(48,58,70,.18); }
.task-meta .user-pill { font-size: .8rem; }
.color-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.12); }
.user-more.is-left .user-more-panel { left: 0; right: auto; }
.color-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.color-pick .swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.color-pick .swatch:hover { transform: scale(1.08); }
.color-pick .swatch.is-on { box-shadow: 0 0 0 2px #303a46; }
.acc-row .grow { min-width: 180px; }
.acc-row { flex-wrap: wrap; }

/* ---------- Aufgaben ---------- */
.tile-tasks {
  display: flex; align-items: center; gap: 16px; margin: -4px 0 14px; padding: 16px 22px;
  border-radius: var(--radius); background: var(--orange); color: #fff; box-shadow: var(--shadow);
}
.tile-tasks:hover { text-decoration: none; background: var(--orange-2); }
.read-filter { display: flex; gap: 4px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.read-filter a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; background: var(--surface); }
.read-filter a:hover { text-decoration: none; color: var(--text); border-color: var(--slate); }
.read-filter a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.folders li { position: relative; }
.folders li:has(> .folder-menu) { display: flex; align-items: center; gap: 2px; }
.folders li:has(> .folder-menu) > a { flex: 1; min-width: 0; }
.folder-menu .rowmenu-btn { width: 28px; height: 28px; font-size: 1.05rem; opacity: .55; }
.folders li:hover .folder-menu .rowmenu-btn, .folder-menu[open] .rowmenu-btn { opacity: 1; }
.folder-menu .rowmenu-panel { width: 226px; }
.folder-menu .rowmenu-panel a { font-size: .88rem; padding: 8px; justify-content: flex-start; text-align: left; gap: 10px; background: none; }
.folder-menu .rowmenu-panel a:hover { background: var(--surface-2); }
.folder-info { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.folder-info .fi-name { font-size: 1.1rem; color: var(--navy); }
.mp-bar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0 6px; }
.mp-bar i { display: block; height: 100%; background: var(--orange); transition: width .3s; }
.folder-new { margin: 10px 0 0; }
.folder-new > summary { list-style: none; cursor: pointer; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--line); color: var(--slate); font-size: .92rem; }
.folder-new > summary::-webkit-details-marker { display: none; }
.folder-new > summary:hover, .folder-new[open] > summary { border-color: var(--slate); background: var(--surface); }
.folder-new-form { display: grid; gap: 10px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tile.tile-off { opacity: .6; cursor: default; }
.tile.tile-off:hover { transform: none; box-shadow: none; }
.tile-tasks.is-done { background: var(--ok); }
.tile-tasks.is-done:hover { background: #237533; }
.tile-tasks .ta-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.2); color: #fff; flex: none; }
.tile-tasks .ta-icon .ic { width: 24px; height: 24px; }
.tile-tasks .ta-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tile-tasks .t-name { font-size: 1.2rem; }
.tile-tasks .t-addr { color: rgba(255,255,255,.85); font-size: .88rem; }
.tile-tasks .t-big { font-size: 1.45rem; white-space: nowrap; }
.appnav-links a.nav-tasks .nav-badge { background: var(--orange); color: #fff; }
.appnav-links a.nav-tasks .nav-badge.due { background: #e03131; }
.quick-task { display: flex; gap: 8px; padding: 10px; margin-bottom: 14px; }
.quick-task input[type=text] { flex: 1; }
.quick-task input[type=date] { width: auto; }
.task-form { margin-bottom: 18px; }
.tasklist { list-style: none; padding: 0; margin: 0; overflow: hidden; }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task.prio-1 { box-shadow: inset 4px 0 0 var(--brand); }
.task.prio-2 { box-shadow: inset 4px 0 0 #e03131; }
.task-check { margin: 0; }
.checkbtn { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #c7cdd6; background: #fff; color: #fff; cursor: pointer; display: grid; place-items: center; font-size: .9rem; margin-top: 1px; }
.checkbtn:hover { border-color: var(--ok); }
.task.done .checkbtn { background: var(--ok); border-color: var(--ok); }
.task.done .task-title { color: var(--muted); text-decoration: line-through; }
.task-main { flex: 1; min-width: 0; }
.task-title { overflow-wrap: anywhere; }
.task-note { color: #4a5361; font-size: .9rem; margin-top: 3px; overflow-wrap: anywhere; }
.task-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; font-size: .82rem; color: var(--muted); }
.task-meta .due { padding: 1px 8px; border-radius: 999px; background: var(--surface-2); }
.task-meta .due.late { background: var(--err-soft); color: var(--err); }
.task-meta .due.today { background: #fff0d6; color: #b4610b; }
.task-meta .due.soon { background: var(--new-soft); color: #8a5e00; }
.prio-tag { font-size: .72rem; padding: 1px 8px; border-radius: 999px; background: #fff0d6; color: #b4610b; vertical-align: 2px; }
.task.prio-2 .prio-tag { background: var(--err-soft); color: var(--err); }
.task-actions { display: flex; align-items: center; gap: 6px; }
.task-actions form { margin: 0; }
.task-actions .linkbtn { font-size: .85rem; }
.task-actions .btn { white-space: nowrap; }
/* Handy: Titel bekommt die volle Breite, Knöpfe rutschen in eine eigene Zeile darunter */
@media (max-width: 760px) {
  .task { flex-wrap: wrap; }
  .task-main { flex: 1 1 calc(100% - 40px); }
  .task-actions { flex: 1 1 100%; flex-wrap: wrap; padding-left: 34px; gap: 8px 10px; }
}

/* ---------- Mail-Vorlage ---------- */
.tpl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); cursor: pointer; white-space: nowrap; }
.switch input { width: 18px; height: 18px; accent-color: var(--orange); }
.tpl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.tpl-logo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; }
.tpl-logo img { max-height: 54px; max-width: 160px; background: #fff; padding: 4px; border-radius: 6px; border: 1px solid var(--line); }
.tpl-preview iframe { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #f4f5f7; }

/* ---------- Cache-Werkzeug ---------- */
.admin-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.cw-actions { display: grid; gap: 14px; margin-bottom: 18px; }
.cw-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cw-btns form { margin: 0; }
.cw-orange, button.cw-orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.cw-orange:hover { background: var(--orange-2); border-color: var(--orange-2); }
.cw code, .cw-table code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
.cw-summary { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cw-pill { font-size: .82rem; padding: 3px 10px; border-radius: 999px; }
.cw-pill.ok { background: var(--ok-soft); color: var(--ok); }
.cw-pill.warn { background: #fff4e0; color: #b4610b; }
.cw-pill.bad { background: var(--err-soft); color: var(--err); }
.cw-pill.muted { background: var(--surface-2); color: var(--muted); }
.cw-table { margin-bottom: 18px; overflow-x: auto; }
.cw-table h2 { font-size: 1.05rem; margin-bottom: 8px; }
.cw-table table { width: 100%; border-collapse: collapse; min-width: 720px; }
.cw-table th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.cw-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
.cw-table tr:last-child td { border-bottom: 0; }
.cw-table .nowrap { white-space: nowrap; }
.cw-table tr.st-abweichend { background: #fffaf0; }
.cw-table tr.st-fehlt { background: #fff5f5; }
.cw-state { font-size: .78rem; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.cw-state.aktuell { background: var(--ok-soft); color: var(--ok); }
.cw-state.abweichend { background: #fff0d6; color: #b4610b; }
.cw-state.fehlt { background: var(--err-soft); color: var(--err); }
.cw-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cw-tag { font-size: .78rem; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.cw-tag.ok { background: #e3f8e9; color: #1f7a3a; }
.cw-tag.bad { background: var(--err-soft); color: var(--err); }

/* ---------- Einstellungen ---------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acc-row:last-child { border-bottom: 0; }
.acc-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.acc-row .grow { flex: 1; min-width: 0; }
.acc-row .err { color: var(--err); font-size: .82rem; }

/* ---------- Mittlere Breiten ---------- */
@media (max-width: 1180px) {
  :root { --nav-w: 220px; }
  .workspace { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .workspace.three { grid-template-columns: 240px minmax(0, 1fr); }
  .workspace.three .detail { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Handy & Tablet hochkant: Kopf oben, Navigation unten ---------- */
@media (max-width: 860px) {
  .appnav { display: none; }
  .appmain { margin-left: 0; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .mobilebar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: sticky; top: 0; z-index: 25; height: 56px; padding: 0 12px 0 14px;
    background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
  }
  .mobilebar-logo img { display: block; height: 34px; width: auto; }
  .mobilebar .compose { background: var(--brand); color: var(--navy); }
  .bottomnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--navy); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 10px; color: #b9c3cf; font-size: .72rem; }
  .bottomnav a:hover { text-decoration: none; }
  .bottomnav a.on { color: var(--brand); background: rgba(255,255,255,.06); }
  .bottomnav a.bn-home { background: var(--orange); color: #fff; }
  .bottomnav a.bn-home.on { background: var(--orange); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
  .bottomnav .ic { width: 22px; height: 22px; }
  .workspace { min-height: 0; }
  .toolbar { top: 56px; }
}
@media (max-width: 760px) {
  .settings-grid, .form .row, .form .row-3, .cust-grid, .tpl-grid { grid-template-columns: 1fr; }
  .tpl-preview iframe { height: 520px; }
  .integ-grid { grid-template-columns: 1fr; }
  .contact-actions .btn { flex: 1; }
  .tl-at { margin-left: 0; flex-basis: 100%; }
  .page { padding: 16px 12px 40px; }
  .page-head h1 { font-size: 1.5rem; }
  /* Postfächer als kompakte Liste statt abgeschnittener Kacheln */
  .tiles { grid-template-columns: 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .tile { flex-direction: row; align-items: center; gap: 12px; min-height: 0; padding: 12px 14px 12px 18px; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); box-shadow: none; transform: none !important; }
  .tile:last-child { border-bottom: 0; }
  .tile::before { top: 10px; bottom: 10px; opacity: .9; }
  .tile .t-main { flex: 1; gap: 1px; }
  .tile .t-name { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tile .t-addr { font-size: .8rem; }
  .tile .t-status { margin: 0; flex: none; }
  .tile .t-status > span:first-child { display: none; }
  .tile.has-error .t-status > span:first-child { display: inline; font-size: .8rem; }
  .tile-add { justify-content: flex-start; padding-left: 18px; }
  .tile-all, .tile-tasks { padding: 14px 16px; gap: 12px; }
  .tile-tasks .ta-icon { width: 40px; height: 40px; }
  .tile-tasks .t-name { font-size: 1.05rem; }
  .tile-tasks .t-big { font-size: 1.1rem; }
  .quick-task { flex-wrap: wrap; }
  .quick-task input[type=text] { flex-basis: 100%; }
  .tile-all .ta-icon { width: 40px; height: 40px; }
  .tile-all .t-name { font-size: 1.05rem; }
  .tile-all .t-big { font-size: 1.1rem; }
  .dash-filters { flex-direction: column; align-items: stretch; }
  .dash-filters .tabs { flex-wrap: nowrap; }
  .workspace, .workspace.three { grid-template-columns: 1fr; align-content: start; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .side .folders { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .side .folders li a { white-space: nowrap; background: var(--surface-2); }
  .side .folders .sep, .side-hint { display: none; }
  .side .folders .sep.keep { display: block; margin: 0 4px 0 0; align-self: center; white-space: nowrap; }
  .workspace.three .detail { order: -1; }
  .toolbar { position: static; gap: 6px; padding: 8px 10px; }
  .toolbar .btn-sm { min-height: 32px; padding: 0 10px; }
}
.mobile-only { display: none; }
@media (max-width: 860px) { .mobile-only { display: block; } }

@media (max-width: 860px) {
  .mm-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; margin: 0 0 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
  .mm-toggle .mm-ic { color: var(--muted); font-size: 1.1rem; }
  .mm-toggle .mm-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mm-toggle .mm-caret { color: var(--muted); transition: transform .15s; }
  .mm-toggle[aria-expanded="true"] { border-color: var(--slate); }
  .mm-toggle[aria-expanded="true"] .mm-caret { transform: rotate(180deg); }
  nav.tabs.mm-bar, .side .folders.mm-bar { display: none; }
  nav.tabs.mm-bar.mm-open, .side .folders.mm-bar.mm-open {
    display: flex; flex-direction: column; gap: 2px; overflow: visible; margin: -4px 0 12px; padding: 6px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 28px -16px rgba(48,58,70,.4);
  }
  nav.tabs.mm-bar.mm-open a { border: 0; border-radius: 8px; padding: 11px 12px; white-space: normal; background: transparent; }
  nav.tabs.mm-bar.mm-open a.on { background: var(--navy); color: #fff; }
  .side .folders.mm-bar.mm-open li a { white-space: normal; background: transparent; }
  .side .folders.mm-bar.mm-open li a.on { background: var(--accent-soft); }
  .side .folders.mm-bar .sep.keep { display: none; }
  .quick-task .date-wrap { flex: 1; width: auto; }
}

/* Schreiben: Senden + Anhänge oben, damit man bei langen Verläufen nicht scrollen muss */
.compose-send { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.compose-send-top { padding: 4px 0 2px; }

/* Posteingang automatisch sortieren */
.folder-sort { display: block; margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; border: 1px dashed #f6c08f; color: #b4580b; font-size: .92rem; background: #fff8f0; }
.folder-sort:hover { text-decoration: none; border-color: var(--orange); color: #9a4a08; }
.sort-opts { margin: 0 0 12px; }
.sort-opts select { width: auto; min-height: 32px; padding: 2px 8px; margin: 0 4px; }
.sort-card { padding: 0; overflow: hidden; }
.sort-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.sort-head .grow { flex: 1; }
.sort-head label { white-space: nowrap; }
.sort-list { list-style: none; margin: 0; padding: 0; }
.sort-row { display: grid; grid-template-columns: 28px 1fr minmax(180px, 240px); gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); opacity: .62; }
.sort-row.on { opacity: 1; background: #fffaf3; }
.sr-main { min-width: 0; }
.sr-title { overflow-wrap: anywhere; color: var(--navy); }
.sr-count { display: inline-block; margin-left: 6px; padding: 0 9px; border-radius: 999px; background: var(--orange); color: #fff; font-size: .8rem; line-height: 1.6; }
.sr-who, .sr-subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-target { display: grid; gap: 3px; }
.sr-target input { min-height: 36px; }
.sort-foot { display: grid; gap: 10px; padding: 16px; }
.sort-foot select { max-width: 320px; }
@media (max-width: 700px) {
  .sort-row { grid-template-columns: 28px 1fr; }
  .sr-target { grid-column: 2; }
}

/* Bilder in Mails */
.img-block { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.img-block form { margin: 0; }
.img-mode label { display: flex; gap: 8px; align-items: flex-start; }
.img-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.img-trust form { margin: 0; }

/* Einem Kunden zuweisen */
.assign-list { list-style: none; margin: 0; padding: 0; max-height: min(320px, 42vh); overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.assign-list li + li { border-top: 1px solid var(--line); }
.assign-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.assign-list button:hover { background: var(--surface-2); }
.assign-list button.on { background: #fff3e6; box-shadow: inset 3px 0 0 var(--orange); }
.assign-list .avatar { width: 30px; height: 30px; flex: 0 0 30px; font-size: .85rem; }
.assign-mail { display: block; }
.assign-scope { display: grid; gap: 8px; }
.assign-scope label { display: flex; gap: 8px; align-items: flex-start; }
.assign-scope label[hidden] { display: none; }
.assign-file { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #fff8f0; border: 1px solid #f6c08f; }
.assign-file[hidden] { display: none; }
.tl-from { margin: 2px 0 2px; }
.cust-domains { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.cust-domains form { margin: 0; }

/* Mail-Lesefenster in der Kundenakte */
.dlg-mail { width: min(860px, 96vw); max-height: 92vh; padding: 0; overflow: hidden; display: none; }
.dlg-mail[open] { display: flex; flex-direction: column; }
.mail-dlg-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mail-dlg-bar .grow { flex: 1; }
.mail-dlg-body { overflow-y: auto; padding: 16px 18px 18px; }
.mail-dlg-body h2 { margin: 0 0 8px; font-size: 1.15rem; font-weight: normal; }
.mail-dlg-body dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 0 0 12px; font-size: .9rem; }
.mail-dlg-body dt { color: var(--muted); }
.mail-dlg-body dd { margin: 0; overflow-wrap: anywhere; }
.mail-dlg-body .mailframe { width: 100%; height: 120px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mail-dlg-att { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tl-read { display: inline-block; margin-left: 6px; padding: 1px 10px; border-radius: 999px; background: var(--brand); color: var(--navy); font-size: .78rem; vertical-align: 1px; }
.tl-read::before { content: "👁 "; }
a.tl-body:hover .tl-read { background: var(--brand-2); }

/* Suche in Ordnern und über alle gesendeten Mails */
.mail-search { display: flex; gap: 8px; align-items: center; padding: 8px 16px 0; }
.mail-search input[type=search] { flex: 1; min-width: 0; min-height: 38px; }
.ms-text { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.sh-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.sh-head > span:first-child { color: var(--navy); }
.sh-head .btn { margin-left: auto; }
@media (max-width: 620px) { .mail-search { flex-wrap: wrap; } .mail-search input { flex-basis: 100%; } }

/* Ordner-Auswahl mit Suche („Verschieben nach …“) */
.fp { position: relative; display: inline-flex; flex: 1; min-width: 0; }
.toolbar .fp, .msg-actions .fp { flex: 0 1 auto; }
.fp-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.fp-btn::after { content: "▾"; color: var(--muted); font-size: .8rem; }
.fp-btn:hover, .fp.open .fp-btn { border-color: var(--slate); }
.rowmenu-panel .fp-btn { width: 100%; justify-content: space-between; padding: 4px 8px; }
.fp-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; width: min(320px, 86vw); padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 36px -14px rgba(48,58,70,.45); }
.fp.up .fp-pop { top: auto; bottom: calc(100% + 6px); }
.rowmenu-panel .fp-pop { left: auto; right: 0; }
.fp-q { width: 100%; min-height: 38px; margin-bottom: 6px; }
.fp-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.rowmenu-panel .fp-list button.fp-item, .fp-item { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: .92rem; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-item:hover, .rowmenu-panel .fp-list button.fp-item:hover { background: var(--surface-2); }
.fp-item.on, .rowmenu-panel .fp-list button.fp-item.on { background: #fff3e6; box-shadow: inset 3px 0 0 var(--orange); }
.fp-item mark { background: #fde7a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.fp-none { margin: 4px 6px; color: var(--muted); font-size: .88rem; }

/* Abo & Stripe */
.bill-bar { margin: 0 0 12px; padding: 9px 16px; background: #fff6df; border-bottom: 1px solid #f2dc9c; color: #7a4d00; font-size: .92rem; }
.bill-bar a { color: #7a4d00; text-decoration: underline; margin-left: 6px; }
.bill-bar.is-soon { background: #fff0d6; border-color: #f6c08f; color: #9a4a08; }
.bill-bar.is-soon a { color: #9a4a08; }
.bill-bar.is-off { background: #fdeeee; border-color: #f1b0b0; color: #a12a2a; }
.bill-bar.is-off a { color: #a12a2a; }
.abo-state { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 22px; border-left: 4px solid var(--brand); }
.abo-state .as-main { flex: 1; min-width: 260px; }
.abo-state h2 { margin: 6px 0 4px; font-weight: normal; }
.abo-state p { margin: 0; }
.as-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #fff3d1; color: #7a4d00; font-size: .8rem; }
.abo-state.is-active { border-left-color: #2f9e44; } .abo-state.is-active .as-chip { background: #d3f2dc; color: #1e6b37; }
.abo-state.is-free { border-left-color: #2f9e44; } .abo-state.is-free .as-chip { background: #d3f2dc; color: #1e6b37; }
.abo-state.is-locked { border-left-color: var(--err); } .abo-state.is-locked .as-chip { background: #fdeeee; color: #a12a2a; }
.abo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.abo-head h2 { margin: 0; font-weight: normal; }
.abo-grid .price-card.is-current { box-shadow: 0 0 0 2px #2f9e44; }
.pc-badge.pc-current { background: #2f9e44; }
.abo-pick { margin-top: auto; }
.abo-pick .btn { width: 100%; }
.abo-pick .btn:disabled { opacity: .5; cursor: default; }
.stripe-admin { margin-bottom: 18px; }
.stripe-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.stripe-stats .ss { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); font-size: .85rem; color: var(--muted); }
.stripe-stats .ss b { font-weight: normal; color: var(--navy); }
.stripe-steps { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: .9rem; }
.stripe-steps li { margin: 3px 0; }
.stripe-steps li.done { color: #1e6b37; }
.stripe-steps li.done::marker { content: "✓  "; }
.stripe-book { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.stripe-ids summary { cursor: pointer; margin: 4px 0 8px; }
.stripe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 12px; }
.stripe-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tn-bill { padding: 1px 9px; border-radius: 999px; font-size: .78rem; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tn-bill.bs-trial { background: #fff3d1; color: #7a4d00; }
.tn-bill.bs-active, .tn-bill.bs-free { background: #d3f2dc; color: #1e6b37; }
.tn-bill.bs-locked, .tn-bill.bs-past_due, .tn-bill.bs-canceled { background: #fdeeee; color: #a12a2a; }
.tn-billing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 8px 0 4px; }
.tn-billing form { display: flex; gap: 6px; margin: 0; }

/* ---------- OrgInbox AI ---------- */
.ki-btn { background: linear-gradient(135deg, #fff6e0, #fde9d4); border-color: #f2c98d; color: #8a4b0f; }
.ki-btn:hover { background: linear-gradient(135deg, #ffefc8, #fbdcbc); }
.ki-btn:disabled { opacity: .7; cursor: progress; }
.ki-box { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(180deg, #fffaf0, #fff); border: 1px solid #f2d9a8; box-shadow: inset 4px 0 0 var(--brand); }
.ki-box[hidden] { display: none; }
.ki-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.ki-badge { font-size: .75rem; padding: 2px 9px; border-radius: 999px; background: #303a46; color: #ffd77a; }
.ki-kind { font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: #eef1f5; color: #303a46; }
.ki-anfrage, .ki-auftrag { background: #e6f4ea; color: #1e6b34; }
.ki-rueckfrage, .ki-termin { background: #fff1d6; color: #8a5a00; }
.ki-beschwerde { background: #fde8e8; color: #a12626; }
.ki-rechnung { background: #e8efff; color: #2a4aa0; }
.ki-newsletter, .ki-werbung { background: #f1f1f1; color: #6b7280; }
.ki-note { font-size: .88rem; color: #505863; }
.ki-again { margin-left: auto; }
.ki-sum { margin: 0 0 10px; line-height: 1.55; color: #303a46; }
.ki-dates { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; font-size: .9rem; }
.ki-date { display: inline-block; min-width: 150px; color: #8a5a00; }
.ki-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.ki-foot { margin: 6px 0 0; font-size: .78rem; color: #8a93a0; }
.ki-wait { display: flex; align-items: center; gap: 10px; margin: 0; color: #8a4b0f; }
.ki-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #f2c98d; border-top-color: #ef7d22; animation: kispin .8s linear infinite; }
@keyframes kispin { to { transform: rotate(360deg); } }
.ki-err { color: #a12626; font-size: .9rem; }
.ki-err a { margin-left: 6px; }
.ki-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #fffaf0; border: 1px dashed #f2c98d; }
.ki-draft input { flex: 1 1 280px; min-width: 0; }
.ki-status { flex-basis: 100%; font-size: .85rem; color: #1e6b34; }
.ki-status:empty { display: none; }
.ki-headrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ki-headrow h2 { margin: 0; }
.ki-cust ul { margin: 4px 0 8px 18px; padding: 0; }
.ki-cust p { margin: 0 0 8px; }
.ki-open { margin-bottom: 2px !important; color: #8a5a00; }
.ki-usage { margin: 8px 0 0; font-size: .88rem; color: #8a4b0f; }
.ki-quota { display: flex; flex-wrap: wrap; gap: 12px; }
.ki-quota label { display: flex; flex-direction: column; gap: 4px; }
.ki-quota input { width: 130px; }
@media (max-width: 640px) { .ki-date { min-width: 0; margin-right: 6px; } .ki-again { margin-left: 0; } }
.ki-src-pick { display: flex; align-items: center; gap: 6px; flex: 0 1 auto; }
.ki-src-pick select { max-width: 240px; }
.ki-wissen .ki-src { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ki-src-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ki-src-main .small { overflow-wrap: anywhere; }
.ki-src-name { font-size: 1rem; color: #303a46; }
.ki-src-err { color: #a12626; }
.ki-src-btns { display: flex; gap: 6px; align-items: flex-start; }
.ki-src-btns form { margin: 0; }
.ki-src-edit { grid-column: 1 / -1; }
.ki-src-edit summary, .ki-src-new summary { cursor: pointer; }
.ki-src-new { margin-top: 12px; }
.ki-src-new summary { list-style: none; display: inline-flex; }
.ki-src-new summary::-webkit-details-marker { display: none; }
.ki-src-form { margin-top: 10px; padding: 12px; border-radius: 12px; background: #fafbfc; border: 1px solid var(--line); }
.ki-src-accs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ki-src-accs label { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
.ki-src-accs i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ki-src-preview { max-height: 260px; overflow: auto; white-space: pre-wrap; font-size: .8rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 10px 0 0; }
@media (max-width: 640px) { .ki-wissen .ki-src { grid-template-columns: 1fr; } }
.field[hidden], [data-src-web][hidden], [data-src-text][hidden] { display: none !important; }
.btn.ki-yellow, .ki-draft .btn.ki-btn.is-busy, .ki-draft .btn.ki-btn:disabled { background: var(--brand); border-color: #e0a92a; color: #303a46; opacity: 1; }
.btn.ki-yellow:hover { background: #ffd36b; }
.ki-status.busy { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #fff3c4; border: 1px solid var(--brand); color: #6b4a00; font-size: .92rem; }
.ki-box.is-loading .ki-wait { padding: 4px 0; }
.rte-area.ki-writing { opacity: .55; pointer-events: none; }
/* OrgInbox AI Pro */
.ki-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.ki-tag { font-size: .72rem; padding: 1px 8px; border-radius: 999px; background: #eef1f5; color: #303a46; white-space: nowrap; }
.ki-tag.ki-anfrage, .ki-tag.ki-auftrag { background: #e6f4ea; color: #1e6b34; }
.ki-tag.ki-rueckfrage, .ki-tag.ki-termin { background: #fff1d6; color: #8a5a00; }
.ki-tag.ki-beschwerde, .ki-urgent { background: #fde8e8 !important; color: #a12626 !important; }
.ki-tag.ki-rechnung { background: #e8efff; color: #2a4aa0; }
.ki-tag.ki-ready { background: var(--brand); color: #303a46; }
.m-ki { font-size: .82rem; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ki-ready { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #fff3c4; border: 1px solid var(--brand); color: #6b4a00; }
.ki-ready small { display: block; color: #8a6d1f; }
.ki-pro-opts { display: grid; gap: 8px; margin: 6px 0 4px; }
.ki-pro-opts label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .92rem; }
.ki-pro-opts select, .ki-pro-opts input[type=email] { width: auto; min-width: 0; }
.ki-pro-opts textarea { width: 100%; }
.ki-rule-acts { display: grid; gap: 8px; }
.ki-rule-acts label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .92rem; }
.ki-rule-acts select, .ki-rule-acts input[type=text] { width: auto; flex: 1 1 200px; min-width: 0; }
.ki-pro-h { margin: 18px 0 4px; font-size: 1.05rem; }
.pc-trial.pc-live { color: #c56a12; }
.push-devs { display: grid; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.push-dev { display: flex; align-items: center; gap: 10px; }
.pd-dot { width: 10px; height: 10px; border-radius: 50%; background: #c7ccd4; flex: none; }
.pd-dot.ok { background: #2f9e44; }
.pd-dot.bad { background: #e03131; }
.pd-main { flex: 1; min-width: 0; }
.pd-main small { display: block; color: #6b7280; }
/* KI im Schreiben-Fenster: vier Wege */
.ki-draft { flex-direction: column; align-items: stretch; }
.ki-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ki-tab { font: inherit; font-size: .88rem; padding: 6px 12px; border-radius: 999px; border: 1px solid #f2c98d; background: #fff; color: #6b4a00; cursor: pointer; }
.ki-tab.on { background: var(--brand); border-color: #e0a92a; color: #303a46; }
.ki-pro-tag { font-size: .68rem; padding: 0 6px; border-radius: 999px; background: #303a46; color: #ffd77a; margin-left: 4px; vertical-align: 1px; }
.ki-pane { display: grid; gap: 6px; }
.ki-pane[hidden] { display: none; }
.ki-pane textarea, .ki-pane input[type=text] { width: 100%; }
.ki-help { margin: 0; font-size: .82rem; color: #6b5a3a; line-height: 1.5; }
.ki-help span { color: #8a4b0f; }
.ki-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px dashed #e0a92a; background: #fff; font-size: .88rem; color: #6b5a3a; cursor: pointer; }
.ki-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ki-row .ki-btn { margin-left: auto; }
@media (max-width: 640px) { .ki-row .ki-btn { margin-left: 0; width: 100%; } }
.reply-tag.is-link { cursor: pointer; text-decoration: none; }
.reply-tag.is-link:hover { filter: brightness(.95); text-decoration: underline; }
/* Weiterleitungs-Adressen */
.alias-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.alias-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.alias-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.alias-main small { font-size: .8rem; }
.alias-ok { color: #2f9e44; }
.alias-warn { color: #8a5a00; }
.alias-edit, .alias-add { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.alias-edit input[type=text] { width: 160px; }
.alias-add { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.alias-add input[type=email], .alias-add input[type=text] { flex: 1 1 200px; min-width: 0; }
.alias-edit input[type=color], .alias-add input[type=color] { width: 40px; height: 36px; padding: 2px; }
.tile-alias { border-style: dashed; }
.t-via { color: #8a93a0; }
.appnav-links a.nav-alias { padding-left: 22px; font-size: .86rem; }
.alias-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 16px 0; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--tile-color); }
.alias-banner .ab-name { color: #303a46; }
.from-note { display: block; margin-top: 4px; }
