/* Mail-Agent – Design „Briefkontor“ (Vorlage: docs/design/briefkontor/) */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f2f3f5;
  --paper: #ffffff;
  --ink: #1e1d1b;
  --muted: #6b6863;
  --line: #e2e2df;
  --flap: #f2f2f0;
  --accent: #2b3f5c;
  --airmail: #b5483a;
  --danger: #a1271a;
  --ok: #2f6b4f;
  /* Knöpfe und Eingabefelder im Stil „Briefkontor präzise“: sanft gerundet, leichter Schatten */
  --radius: 6px;
  --btn-shadow: 0 1px 2px rgba(30, 29, 27, 0.06), 0 1px 1px rgba(30, 29, 27, 0.04);
  --sans: Geist, "Helvetica Neue", Arial, sans-serif;
  --serif: Newsreader, Georgia, serif;
  --airmail-stripes: repeating-linear-gradient(-45deg, var(--accent) 0 9px, #fff 9px 15px, var(--airmail) 15px 24px, #fff 24px 30px);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--ink); }
a:hover { color: #000; }
input::placeholder { color: #8e8b85; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: 11px; color: var(--muted); }

/* Eine Spalte, auf dem Handy volle Breite, am Rechner mittig */
.shell {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- Siegel & Umschläge ---------- */

.seal {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 500 20px/1 var(--serif);
}
.seal.sm { width: 32px; height: 32px; font-size: 17px; }
.env-icon { flex: none; width: 40px; height: 30px; }

.airmail { padding: 4px; background: var(--airmail-stripes); border-radius: 3px; }
.airmail > .inner { background: var(--paper); border-radius: 1px; }

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--btn-shadow);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.btn:hover { color: #fff; filter: brightness(1.1); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.lg { height: 50px; font-size: 18px; }
/* Helle Knöpfe: weißes Papier mit feinem Rand; beim Darüberfahren wird der Rand dunkelblau (bzw. rot) */
.btn.outline { background: var(--paper); color: var(--ink); border: 1px solid var(--line); font-weight: 400; letter-spacing: 0; transition: border-color .15s, color .15s; }
.btn.outline:hover { color: var(--accent); border-color: var(--accent); filter: none; }
.btn.ghost { background: transparent; color: var(--muted); box-shadow: none; font-weight: 400; letter-spacing: 0; padding: 0 6px; }
.btn.danger { background: var(--paper); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--line)); font-weight: 400; letter-spacing: 0; transition: border-color .15s; }
.btn.danger:hover { color: var(--danger); border-color: var(--danger); filter: none; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.block { display: flex; width: 100%; }

/* ---------- Formularfelder: nur eine Linie ---------- */

.field { display: flex; flex-direction: column; gap: 2px; }
.field label { font-size: 11px; color: var(--muted); }
.line-input {
  height: 44px;
  padding: 0 2px;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: 19px;
}
.line-input:focus { outline: none; border-bottom: 2px solid var(--accent); }
.error { color: var(--danger); font-size: 15px; margin: 0; }
.notice { font-size: 15px; margin: 0; }

/* ---------- Chat ---------- */

.chat { height: 100dvh; min-height: 0; }
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 12px 20px;
  border-bottom: 1px solid var(--line);
  padding-top: max(18px, env(safe-area-inset-top));
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font: 500 22px/1 var(--serif); letter-spacing: -0.01em; }
.brand-sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.icon-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: none;
  border: none;
}

.thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 18px 16px;
  overscroll-behavior: contain;
}
.day { text-align: center; font-size: 11px; color: var(--muted); }
.msg { display: flex; flex-direction: column; gap: 2px; max-width: 92%; }
.msg .meta { font-size: 11px; color: var(--muted); }
.msg .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; align-items: flex-end; text-align: right; }
.msg.user .text { font-size: 17px; line-height: 1.35; }
.msg.agent { align-self: flex-start; }
.msg.agent .lead { font: 400 18px/1.4 var(--serif); margin-bottom: 4px; }
.msg.agent .text { font-size: 16px; line-height: 1.5; }
.msg.agent .text p { margin: 0; }
.msg.agent .text p + p, .msg.agent .text ul + p, .msg.agent .text p + ul { margin-top: 8px; }
.msg.agent .text ul { margin: 0; padding-left: 18px; white-space: normal; }
.msg.agent .text li { white-space: pre-wrap; }
.msg.agent .text li + li { margin-top: 2px; }
.msg.agent .text li::marker { color: var(--accent); }
.msg.agent strong { font-weight: 600; }
.msg.error .text { color: var(--danger); }
.typing { font: italic 400 16px var(--serif); color: var(--muted); }
/* drei Pünktchen, die nacheinander erscheinen */
.typing .dots::after { content: "…"; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.2s steps(4, end) infinite; overflow: hidden; vertical-align: bottom; }
@keyframes dots { 0% { width: 0; } 100% { width: 1.2em; } }
@media (prefers-reduced-motion: reduce) { .typing .dots::after { animation: none; } }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 14px;
  max-width: 100%;
}
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip button { border: none; background: none; padding: 0 2px; color: var(--muted); font-size: 18px; line-height: 1; }
.files { display: flex; flex-wrap: wrap; gap: 6px; }
/* Angezeigte Mail als Brief: Kopf, ganzer Text (lange Mails eingeklappt), Anhänge */
.msg.mail-msg { width: 100%; }
.mail-card { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--btn-shadow); min-width: 0; }
.mail-head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); min-width: 0; }
.mail-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mail-from { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.mail-date { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mail-addr { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.mail-subject { margin-top: 6px; font: 400 18px/1.35 var(--serif); overflow-wrap: anywhere; }
.mail-body { font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.mail-body.clamped { max-height: 18em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.mail-more { align-self: flex-start; padding: 4px 0; border: 0; background: none; color: var(--accent); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.mail-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mail-status { margin: 0; font-size: 14px; color: var(--muted); }
.mail-files .chip { text-decoration: none; }
/* Wert zum Kopieren (Code, Link): eigene Zeile bei langen Links, Knopf immer erreichbar */
/* Knöpfe im Stil „Briefkontor präzise“: weißes Papier, feiner Rand, leichter Schatten, sanft gerundet */
svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* Kopier-Knopf: nur das Symbol, nach dem Kopieren kurz ein grünes Häkchen */
.copy { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 1px 1px 1px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--btn-shadow); font-weight: 400; vertical-align: baseline; }
.copy-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; overflow-wrap: anywhere; min-width: 0; }
.copy-btn, .page-copy { flex: none; display: inline-grid; place-items: center; width: 28px; height: 26px; border: 0; border-radius: 4px; background: none; padding: 0; color: var(--muted); cursor: pointer; transition: color .15s, background .15s; }
.copy-btn:hover, .page-copy:hover { color: var(--accent); background: var(--bg); }
.copy-btn:focus-visible, .page-copy:focus-visible, .choice-btn:focus-visible, .feedback-bar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.copy-btn .on-done, .page-copy .on-done, .copy-btn.done .on-idle, .page-copy.done .on-idle { display: none; }
.copy-btn.done .on-done, .page-copy.done .on-done { display: block; }
.copy-btn.done, .page-copy.done { color: var(--ok); }
/* Untereinander, alle so breit wie der breiteste */
.choices { display: grid; gap: 8px; width: fit-content; max-width: 100%; margin-top: -4px; }
.choice-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: var(--btn-shadow); font-size: 15px; max-width: 100%; overflow-wrap: anywhere; text-align: left; transition: border-color .15s, color .15s; }
.choice-btn svg { color: var(--accent); }
.choice-btn:hover { border-color: var(--accent); color: var(--accent); }
.choices.feedback { margin-top: 10px; }
.choice-btn:disabled { opacity: 0.5; cursor: default; }
/* Knöpfe unter einer Meldung: eine verbundene Leiste; bricht sie um, trennen feine Linien auch die Zeilen */
.feedback-bar { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--btn-shadow); overflow: hidden; }
.feedback-bar > * { flex: 1 1 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 13px; border: 0; background: none; color: var(--ink); font-size: 14.5px; text-align: left; overflow-wrap: anywhere; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); transition: background .15s, color .15s; }
.feedback-bar > * svg { color: var(--muted); }
.feedback-bar button:hover { background: var(--bg); color: var(--accent); }
.feedback-bar button:hover svg { color: var(--accent); }
.feedback-bar button:disabled { opacity: 0.5; cursor: default; }
@media (prefers-reduced-motion: reduce) { .copy-btn, .page-copy, .choice-btn, .feedback-bar > * { transition: none; } }
.files a { text-decoration: none; }

/* Entwurf als Luftpost-Umschlag */
.envelope .inner { position: relative; padding: 0 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.envelope .flap { display: block; margin: 0 -14px; width: calc(100% + 28px); height: 38px; }
.envelope .seal { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); }
.envelope .head { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; }
.envelope .title { font: 500 15px var(--serif); letter-spacing: -0.01em; }
.envelope .fields { display: grid; grid-template-columns: 58px minmax(0, 1fr); row-gap: 1px; font-size: 12px; }
.envelope .fields span:nth-child(odd) { color: var(--muted); }
.envelope .fields span:nth-child(even) { overflow-wrap: anywhere; }
.envelope .body { font: 400 17px/1.45 var(--serif); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow-y: auto; }
/* Offener Entwurf: sieht aus wie Text, lässt sich aber direkt bearbeiten */
.envelope .edit-subject, .envelope .edit-body { display: block; width: calc(100% - 8px); border: 0; border-radius: 2px; background: transparent; color: inherit; padding: 2px 4px; margin: -2px -4px; }
.envelope .edit-subject { font: inherit; }
.envelope .edit-body { font: 400 17px/1.45 var(--serif); resize: none; overflow: hidden; max-height: none; min-height: 4em; }
.envelope .edit-subject:hover, .envelope .edit-body:hover { background: rgba(0, 0, 0, 0.03); }
.envelope .edit-subject:focus, .envelope .edit-body:focus { outline: 1px solid var(--line); background: var(--paper); }
.envelope .edit-hint { margin: -2px 0 0; color: var(--muted); }
.envelope .edit-hint.edited { color: inherit; font-weight: 500; }
.envelope .actions { display: flex; gap: 8px; padding-top: 2px; }
.envelope .actions .btn:first-child { flex: 1.3; }
.envelope .actions .btn.outline { flex: 1; }
.envelope .stamp { font-size: 15px; padding: 10px 0 2px; border-top: 1px solid var(--line); }
.envelope.done .seal { background: var(--muted); }

.composer-wrap { border-top: 1px solid var(--line); padding: 8px 14px max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.composer { display: flex; align-items: center; gap: 10px; }
.composer .icon-link { color: var(--muted); }
.composer input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 4px;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: 18px;
}
.composer input[type="text"]:focus { outline: none; border-bottom: 2px solid var(--accent); }
.send {
  flex: none;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.send:disabled { opacity: 0.5; cursor: default; }

/* ---------- Unterseiten (Postfächer, Konto) ---------- */

.sub-head { display: flex; align-items: center; gap: 4px; padding: 14px 12px 0; padding-top: max(14px, env(safe-area-inset-top)); }
.sub-head a { font-size: 15px; color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 4px; height: 44px; }
.sub-title { padding: 6px 20px 0; }
.sub-title h1 { margin: 0; font: 400 32px/1.2 var(--serif); letter-spacing: -0.01em; }
.tabs { display: flex; gap: 24px; padding: 6px 20px 0; border-bottom: 1px solid var(--line); }
.tabs a { height: 44px; display: flex; align-items: center; font-size: 15px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.sub-main { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 18px 16px 24px; }

.rows .row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.rows .row + .row { border-top: 1px solid var(--line); margin: 0 14px; padding-left: 0; padding-right: 0; }
.rows .who { flex: 1; min-width: 0; }
.rows .who .addr { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .who .info { font-size: 14px; color: var(--muted); }
.rows .state { font-size: 11px; }
.box-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.row-link { font-size: 13px; color: var(--muted); padding: 6px 0; }
.fix-link { height: 44px; display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--accent); color: var(--accent); font-size: 15px; text-decoration: none; white-space: nowrap; }

.add-form { display: flex; flex-direction: column; gap: 10px; }
.add-form .composer { gap: 8px; }
.dashed { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 1px dashed var(--muted); font-size: 15px; text-decoration: none; background: transparent; width: 100%; }
.hint { margin: 0; padding: 0 8px; text-align: center; font-size: 16px; line-height: 1.5; color: var(--muted); }

.card { background: var(--paper); border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.plan { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan .name { font: 500 30px var(--serif); letter-spacing: -0.01em; }
.stamp-mark { flex: none; width: 58px; height: 68px; padding: 5px; background: var(--paper); border: 4px dotted var(--bg); box-shadow: 0 0 0 1px #d8d8d4; display: flex; }
.stamp-mark span { flex: 1; background: var(--accent); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 22px/1 var(--serif); }
.stamp-mark small { font: 8px var(--sans); margin-top: 4px; letter-spacing: 0.06em; }
.usage { display: flex; flex-direction: column; gap: 6px; }
.usage-row { display: flex; justify-content: space-between; font-size: 15px; }
.usage-row .val { font-size: 13px; }
.bar { height: 4px; background: var(--line); }
.bar > div { height: 4px; background: var(--accent); }
.card form { margin: 0; }
.meter { height: 4px; background: var(--line); }
.meter > div { height: 4px; background: var(--accent); }
.settings { display: flex; flex-direction: column; }
.settings > * { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 15px; text-decoration: none; }
.settings .val { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.settings input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.settings button { border: none; background: none; padding: 0; text-align: left; }
.settings .toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; }
.settings form.toggles { flex-direction: column; align-items: stretch; gap: 0; }
.settings form.toggles .toggle + .toggle { border-top: 1px solid var(--line); }
.settings .lang-row select { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 4px 2px; }
.settings .row-button { width: 100%; min-height: 48px; font-size: 15px; }
.settings .push-state { display: flex; align-items: center; gap: 12px; }
.settings .link-button { color: var(--accent); font-size: 15px; cursor: pointer; }
/* Benachrichtigungen: Übersichts-Zeiten und eigene Regeln */
.notify-form { display: flex; flex-direction: column; gap: 6px; padding: 14px 0 22px; border-bottom: 1px solid var(--line); }
.notify-form label { font-size: 15px; margin-top: 8px; }
.notify-form input, .notify-form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; background: var(--paper); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.notify-form input:focus, .notify-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.notify-form textarea { resize: vertical; line-height: 1.45; }
.notify-form .muted { margin: 0; font-size: 13px; }
.notify-form .btn { align-self: flex-start; margin-top: 10px; }
.notify-form.off { opacity: 0.55; }
.notify-form .quiet-row { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.notify-form .quiet-row input { width: 4.5em; text-align: center; }
.notify-form .form-title { font-size: 15px; font-weight: 600; margin-top: 8px; }
.notify-form .quiet-row label { margin: 0; flex: 1; }
.notify-form .quiet-row .unit { min-width: 6.5em; }
.notify-form label.check { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.notify-form label.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.danger-zone { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 16px; }
.danger-zone p { margin: 0; text-align: center; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- Anmelden ---------- */

.login { justify-content: space-between; padding: 56px 28px 28px; gap: 32px; }
.login .top { display: flex; flex-direction: column; gap: 26px; }
.login .mark { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.login .rule { width: 120px; border-top: 1px solid var(--line); }
.login .claim { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.login h1 { margin: 0; font: 400 32px/1.15 var(--serif); letter-spacing: -0.01em; }
.login h1 span { color: var(--accent); }
.login .lede { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.login form { display: flex; flex-direction: column; gap: 18px; }
.login .center { margin: 0; text-align: center; font-size: 15px; color: var(--muted); }
.legal { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.legal nav { display: flex; gap: 12px; }
.lang-switch { display: inline-flex; gap: 6px; letter-spacing: 0.04em; }
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--ink); text-decoration: underline; }
.lang-switch [aria-current] { color: var(--ink); font-weight: 500; }
.site-menu nav .lang-switch { padding: 12px 18px; gap: 14px; border-top: 1px solid var(--line); }
.site-menu nav .lang-switch a { padding: 0; }

/* ---------- Einfache Seiten des Kerns (Verbinden, Bestätigen, Hinweise) ---------- */

.simple main { max-width: 34rem; margin: 0 auto; padding: 2.5rem 1rem; }
.simple .sheet { background: var(--paper); border: 1px solid var(--line); padding: 1.5rem; }
.simple .sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; font: 500 18px var(--serif); }
.simple h1 { font: 400 26px/1.2 var(--serif); margin: 0 0 0.75rem; letter-spacing: -0.01em; }
.simple p { margin: 0.5rem 0; }
.simple pre { white-space: pre-wrap; word-break: break-word; background: var(--bg); border: 1px solid var(--line); padding: 0.9rem; font: 15px/1.5 var(--serif); max-height: 50vh; overflow: auto; }
.simple pre.secret { font: 500 22px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 0.04em; text-align: center; user-select: all; }
.simple label { display: block; font-size: 11px; color: var(--muted); margin: 1rem 0 0.2rem; }
.simple input[type="password"], .simple input[type="email"] { width: 100%; height: 44px; padding: 0 2px; border: none; border-bottom: 1px solid var(--ink); background: transparent; font-size: 19px; }
.simple input:focus, .simple .pw input:focus { outline: none; border-bottom: 2px solid var(--accent); }
.simple .row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.simple button { flex: 1; min-width: 9rem; height: 44px; padding: 0 1rem; border: 0; border-radius: var(--radius); box-shadow: var(--btn-shadow); font-size: 17px; background: var(--accent); color: #fff; }
.simple button.secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.simple button.secondary:hover { color: var(--accent); border-color: var(--accent); }
.simple button.danger { background: var(--danger); }
.simple .error { margin-top: 0.75rem; }
/* Passwortfeld mit Auge */
.simple .pw { position: relative; }
.simple .pw input { width: 100%; height: 44px; padding: 0 44px 0 2px; border: none; border-bottom: 1px solid var(--ink); background: transparent; font-size: 19px; }
.simple .pw-toggle { position: absolute; right: 0; bottom: 1px; flex: none; min-width: 0; width: 44px; height: 42px; padding: 0; background: none; box-shadow: none; color: var(--muted); }
.simple .pw-toggle[aria-pressed="true"] { color: var(--accent); }
/* Kopier-Knopf auf einfachen Seiten (App-Name, Einmal-Passwort) */
.simple .page-copy { flex: none; min-width: 0; width: 28px; height: 26px; padding: 0; border-radius: 4px; font-size: 13px; color: var(--muted); background: none; box-shadow: none; }
.simple .page-copy.done { color: var(--ok); }
.simple .row > .page-copy.labeled { display: inline-flex; gap: 8px; width: auto; height: 44px; margin: 0 auto; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--btn-shadow); color: var(--ink); font-size: 15px; }
.simple .row > .page-copy.labeled svg { color: var(--accent); }
.simple .row > .page-copy.labeled.done, .simple .row > .page-copy.labeled.done svg { color: var(--ok); }
.simple .copy { margin: 0 2px; }
/* Zurück zum Chat / zu Telegram – untereinander, gleich breit */
.simple .back { flex-direction: column; margin-top: 1.5rem; }
.simple a.button { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 1rem; border-radius: var(--radius); box-shadow: var(--btn-shadow); font-size: 17px; text-decoration: none; background: var(--accent); color: #fff; }
.simple a.button.secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.simple a.button.secondary:hover { color: var(--accent); border-color: var(--accent); }
.section-title { margin: 1.75rem 0 0.5rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Preise ---------- */

.preise .top { gap: 18px; }
.preise .claim { margin-bottom: 8px; }
.preise a.seal { text-decoration: none; }
.price-card.featured { border-color: var(--accent); }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.checks li::before { content: "✓"; color: var(--accent); margin-right: 8px; }
.faq { margin-top: 16px; }
.faq h2 { margin: 18px 0 4px; font: 500 20px/1.25 var(--serif); }
.faq p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.legal nav { flex-wrap: wrap; }
.doc { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.doc h2 { margin: 22px 0 6px; font: 500 20px/1.25 var(--serif); }
.doc p, .doc ul { margin: 0 0 10px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.cancel-form { display: flex; flex-direction: column; gap: 18px; }
.cancel-form textarea { resize: vertical; font: inherit; }
.choice { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.choice legend { font-size: 11px; color: var(--muted); padding: 0; margin-bottom: 6px; }
.choice label, .consent label { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.choice input, .consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.consent { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }

/* ---------- Startseite für Besucher ---------- */

.landing { padding: 0 20px 28px; gap: 0; }
.site-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 0 6px; }
.site-head .brand { text-decoration: none; margin-right: auto; }
.site-nav { display: none; }
.site-actions { display: flex; align-items: center; gap: 8px; }
.site-actions .btn { height: 40px; padding: 0 14px; font-size: 14px; text-decoration: none; }
.site-actions .btn.outline { display: none; }
.site-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu nav { position: absolute; right: 0; top: 100%; z-index: 10; min-width: 200px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; padding: 6px 0; }
.site-menu nav a { padding: 12px 18px; text-decoration: none; }
@media (max-width: 899px) { .site-head .brand-name { display: none; } }
.landing .hero { padding: 24px 4px 20px; display: flex; flex-direction: column; gap: 12px; }
.landing h1 { margin: 0; font: 400 40px/1.08 var(--serif); letter-spacing: -0.01em; }
.landing h1 em { color: var(--accent); }
.landing .lede { margin: 0; font-size: 17px; line-height: 1.5; color: #4a4843; }
.landing .center { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.landing .cta { display: flex; flex-direction: column; gap: 10px; padding: 24px 0 8px; }
.example { margin: 0; }
.ex-mails { border: 1px solid var(--line); }
.ex-mail { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.ex-mail + .ex-mail { border-top: 1px solid var(--line); }
.ex-mail .env-icon { width: 30px; height: 22px; }
.ex-mail strong { display: block; font-size: 14px; }
.ex-mail span { font-size: 13px; color: var(--muted); }
.ex-draft { border: 1px dashed #b9b9b4; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ex-draft .serif { font-size: 16px; }
.ex-draft .row { display: flex; gap: 8px; }
.ex-draft .btn { flex: 1; height: 44px; cursor: default; }
.example figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.chapter { padding: 48px 0 0; display: flex; flex-direction: column; gap: 12px; }
.chapter h2 { margin: 0 4px; font: 500 28px/1.2 var(--serif); }
.chapter > a { margin: 0 4px; font-size: 15px; color: var(--accent); }
.kicker { margin: 0 4px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--airmail); }
.card.num { flex-direction: row; gap: 14px; padding: 16px; }
.card.num > span { font: 400 26px/1 var(--serif); color: var(--accent); }
.landing .card strong { font-weight: 600; }
.landing .card p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.card.rows { padding: 0; gap: 0; }
.card.rows > * { padding: 14px 16px; }
.card.rows > * + * { border-top: 1px solid var(--line); }
.envs { display: flex; gap: 6px; margin-bottom: 8px; }
.envs .env-icon { width: 30px; height: 22px; }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; min-height: 24px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin-top: 8px; }
.cards3 { display: flex; flex-direction: column; gap: 12px; }

/* Am Rechner: breiter, oben Text links und Beispiel rechts, Karten nebeneinander */
@media (min-width: 900px) {
  .landing { max-width: 1080px; padding: 0 40px 32px; }
  .site-head { padding-top: 24px; gap: 40px; }
  .site-head .brand { margin-right: 0; }
  .site-nav { display: flex; gap: 28px; margin-right: auto; }
  .site-nav a { color: var(--muted); text-decoration: none; }
  .site-nav a:hover { color: var(--ink); }
  .site-actions .btn.outline { display: inline-flex; }
  .site-menu { display: none; }
  .land-top { display: flex; flex-direction: column; align-items: center; gap: 64px; padding: 88px 0 24px; }
  .land-top .hero { padding: 0; gap: 22px; max-width: 760px; align-items: center; text-align: center; }
  .land-top .hero h1 { font-size: 64px; }
  .land-top .hero .lede { max-width: 600px; }
  .land-top .access-form { width: 100%; max-width: 520px; }
  .land-top .example { width: 100%; }
  .landing h1 { font-size: 56px; }
  .landing .lede { font-size: 19px; max-width: 480px; }
    .chapter { padding-top: 72px; }
  .cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
}

/* Formular für frühen Zugang */
.access-form { display: flex; flex-direction: column; gap: 10px; }
.access-form label { font-size: 13px; color: var(--muted); }
.access-row { display: flex; flex-direction: column; gap: 10px; }
.access-form select.line-input { background: var(--paper); }
.landing .note { margin: 0; font-size: 13px; color: var(--muted); }
.landing .trust { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
@media (min-width: 560px) {
  .access-row { flex-direction: row; }
  .access-row input { flex: 1; min-width: 0; }
  .access-form.stacked .access-row { flex-direction: column; }
}

/* Interaktives Beispiel */
.demo-tabs { display: flex; justify-content: center; gap: 4px; margin-bottom: 16px; }
.demo-tabs button { min-height: 40px; padding: 0 16px; border: 1px solid transparent; background: transparent; font-size: 14px; color: var(--muted); }
.demo-tabs button[aria-selected="true"] { color: var(--ink); background: var(--paper); border-color: var(--line); }
.window { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(30, 29, 27, 0.04), 0 24px 48px rgba(30, 29, 27, 0.08); display: grid; text-align: left; }
.pane { display: flex; flex-direction: column; min-width: 0; }
.pane-head { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pane-head span:not(.seal) { margin-left: auto; font-size: 12px; color: var(--muted); }
.inbox { display: none; background: #fafaf9; }
.inbox-list { margin: 0; padding: 0; list-style: none; }
.inbox-list li { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); transition: background-color 0.2s, opacity 0.2s; }
.inbox-list li .env-icon { width: 26px; height: 20px; }
.inbox-list li div { flex: 1; min-width: 0; }
.inbox-list li strong { display: block; font-weight: 500; color: var(--ink); }
.inbox-list li span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-list li time { font-size: 12px; }
.inbox-list li:not(.hit) { opacity: 0.45; }
.inbox-list li.hit { background: var(--paper); box-shadow: inset 3px 0 0 var(--accent); }
.agent .demo-panel { padding: 20px; gap: 14px; font-size: 15px; }
.agent p { margin: 0; }
.agent .bubble { align-self: flex-end; max-width: 80%; background: var(--accent); color: #fff; padding: 10px 14px; }
@media (min-width: 760px) {
  .window { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .inbox { display: flex; border-right: 1px solid var(--line); }
}
.demo-next { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 15px; font-weight: 500; }
.demo-panel { display: flex; flex-direction: column; gap: 12px; }
.demo-panel[hidden] { display: none; }
.ex-mail em { font-style: normal; color: var(--airmail); }
.ex-mail[hidden] { display: none; }
.ex-draft textarea { width: 100%; border: 0; padding: 0; resize: vertical; background: transparent; font-size: 16px; line-height: 1.45; }
.ex-draft button.btn { cursor: pointer; }
.demo-sent { margin: 0; font-size: 14px; color: var(--accent); }
.demo-chips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.demo-chips button { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; }
.demo-none { margin: 0; font-size: 14px; color: var(--muted); }

/* Kanäle, Meldung im Handy, dunkler Abschnitt, Preise, Schluss */
.channels { margin-top: 40px; padding: 18px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.channels ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 500; font-size: 15px; }
.split .lede { margin: 4px; }
.split .checks { margin: 8px 4px 0; gap: 10px; }
.phone { margin: 8px auto 0; width: 100%; max-width: 320px; padding: 10px; background: var(--ink); border-radius: 28px; }
.phone-screen { background: var(--bg); border-radius: 20px; padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; min-height: 420px; }
.push { display: flex; gap: 10px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.push p { margin: 2px 0 0; font-size: 13px; color: #4a4843; }
.phone .bubble { align-self: flex-end; max-width: 80%; margin: 0; background: var(--accent); color: #fff; padding: 8px 12px; }
.phone .ex-draft { background: var(--paper); }
.phone .ex-draft p { margin: 0; font-size: 15px; }
/* Beispiel „Der Agent lernt mit“: Knöpfe unter der Meldung, Antwort, gelernte Regel */
.feedback-bar.ex, .choices.ex { margin: 0; }
.feedback-bar.ex > *, .choices.ex .choice-btn { min-height: 0; padding: 6px 11px; font-size: 13px; cursor: default; }
.feedback-bar.ex > .picked { background: var(--accent); color: #fff; }
.feedback-bar.ex > .picked svg { color: #fff; }
.choices.ex .choice-btn:hover { border-color: var(--line); color: var(--ink); }
.ex-agent { margin: 0; font-size: 14px; }
.ex-rule { padding: 10px 12px; background: var(--paper); border: 1px dashed var(--line); border-radius: 2px; }
.ex-rule p { margin: 4px 0 0; font-size: 14px; }
.dark { margin: 48px -20px 0; padding: 48px 20px; background: var(--ink); color: #f2f3f5; }
.dark h2 { color: #fff; }
.dark .lede { color: #c9c7c2; margin: 4px; }
.dark .pair > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.frank { margin-top: 12px; border: 1px solid #3a3936; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.frank p { margin: 0; font-size: 15px; color: #e2e2df; }
.frank a, .dark a { color: #fff; }
.tiles { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.tiles > div { border: 1px solid #3a3936; padding: 16px; }
.tiles strong { color: #fff; }
.tiles p { margin: 4px 0 0; font-size: 14px; color: #c9c7c2; }
.prices .price-card { gap: 10px; }
.price-card .plan .name { font-size: 24px; }
.price-card .price { font: 400 36px/1 var(--serif); }
.price-card .who { margin: 0; font-size: 14px; color: var(--muted); }
.price-card .checks { flex: 1; font-size: 14px; }
.price-card .btn { margin-top: 6px; font-size: 15px; }
.badge { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--airmail); border: 1px solid var(--airmail); padding: 2px 6px; }
.finale { margin: 48px -20px 32px; padding: 40px 20px; background: var(--paper); border-top: 6px solid transparent; border-image: var(--airmail-stripes) 6; display: grid; gap: 24px; }
.finale-text { display: flex; flex-direction: column; gap: 10px; }
.finale h2 { margin: 0; font: 400 34px/1.1 var(--serif); }
.finale p { margin: 0; font-size: 16px; color: #4a4843; }
.finale .card { padding: 20px; }

@media (min-width: 900px) {
  .channels ul { justify-content: space-between; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: center; }
  .split.flip { grid-template-columns: 340px minmax(0, 1fr); }
  .split.flip > .phone { order: -1; }
  .dark { padding: 64px 48px; margin: 72px -40px 0; }
  .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .finale { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 56px; align-items: center; padding: 56px 48px; margin: 72px -40px 32px; }
  .finale h2 { font-size: 44px; }
  .tiles { margin-top: 0; }
  .phone { margin: 0; }
}

/* Knopf während des Absendens */
.btn.busy { opacity: 1; cursor: progress; gap: 10px; }
.btn.busy::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.busy::before { animation-duration: 2s; } }

/* Anmelden */
.auth { width: 100%; max-width: 420px; margin: 0 auto; padding: 48px 0 64px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.auth h1 { margin: 0; font: 400 40px/1.1 var(--serif); }
.auth .lede { margin: 0 0 12px; }
.auth form { display: flex; flex-direction: column; gap: 18px; }
.code-toggle summary { cursor: pointer; list-style: none; font-size: 14px; color: var(--accent); min-height: 32px; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; }
.code-toggle summary::-webkit-details-marker { display: none; }
.code-toggle summary::before { content: "+"; text-decoration: none; display: inline-block; width: 10px; }
.code-toggle[open] summary::before { content: "–"; }
.code-toggle[open] summary { margin-bottom: 8px; }
.auth-alt { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .auth { padding-top: 96px; } }

/* Erster Besuch: Anmelde-Adresse als Postfach anbieten */
.connect-offer { margin-top: 12px; }
.connect-offer .btn { max-width: 100%; white-space: normal; text-align: center; height: auto; min-height: 44px; padding: 8px 16px; }
/* Nach dem ersten Postfach: Meldungen auf diesem Gerät einschalten */
.push-offer { margin-top: 12px; }
.btn.push-offer { max-width: 100%; white-space: normal; text-align: center; height: auto; min-height: 44px; padding: 8px 16px; }

/* ---------- Ansicht „Offen“: Liste zum Abhaken ---------- */

.offen [hidden] { display: none !important; }

.head-links { display: flex; align-items: center; gap: 2px; }
.open-link { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.count.late { background: var(--airmail); }

.offen { height: 100dvh; min-height: 0; position: relative; }
.offen-head { display: flex; align-items: center; gap: 4px; padding: 14px 16px 12px 6px; padding-top: max(14px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.offen-head h1 { margin: 0; font: 500 24px/1.1 var(--serif); letter-spacing: -0.01em; }
.offen-main { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 16px; overscroll-behavior: contain; }
.offen-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 12px; color: var(--muted); }
.offen-legend > span { display: flex; align-items: center; gap: 5px; }
.offen-legend .dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #8e8b85; }
.offen-empty { margin: 0; padding: 10px 12px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.offen-main section { display: flex; flex-direction: column; gap: 8px; }
.offen-h { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.offen-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.offen-item { display: flex; align-items: center; gap: 4px; padding: 8px 12px; transition: background-color .6s; }
.offen-item + .offen-item { border-top: 1px solid #eeeeeb; }
.offen-item.fresh { background: #e9eef5; }
.offen-check { flex: none; width: 44px; height: 44px; margin-left: -6px; border: none; background: transparent; display: flex; align-items: center; justify-content: center; }
.offen-check .circle { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 1.5px solid #8e8b85; transition: border-color .15s, background-color .15s; }
.offen-check:hover .circle { border-color: var(--accent); }
.late .offen-check .circle { border-color: var(--airmail); }
.offen-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 2px 0; border: none; background: transparent; text-align: left; }
.offen-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.offen-title { font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.offen-meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offen-when { flex: none; min-width: 62px; text-align: right; }
.offen-label { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.offen-date { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--accent); }
.reply .offen-date, .followup .offen-date { color: var(--ink); }
.late .offen-label, .late .offen-date, .offen-date.late { color: var(--airmail); }
.offen-note { margin: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.offen-done-toggle { align-self: flex-start; display: flex; align-items: center; gap: 4px; min-height: 36px; padding: 0; border: none; background: none; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.offen-done-toggle svg { transition: transform .15s; }
.offen-done-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.offen-done { list-style: none; margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; }
.offen-done li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }
.offen-done li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: line-through; }
.link-btn { flex: none; min-height: 44px; padding: 0 4px; border: none; background: transparent; font-size: 13px; color: var(--accent); text-decoration: underline; }
.offen-foot { padding: 10px 16px 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.offen-foot .btn { height: 48px; gap: 8px; }
.offen-toast { position: absolute; left: 16px; right: 16px; bottom: 92px; z-index: 5; min-height: 48px; padding: 4px 6px 4px 16px; border-radius: var(--radius); background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; box-shadow: 0 4px 16px rgba(30, 29, 27, 0.18); }
.offen-toast[hidden] { display: none; }
.offen-toast span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offen-toast button { flex: none; min-height: 40px; padding: 0 10px; border: none; background: transparent; color: #fff; font-weight: 600; font-size: 15px; text-decoration: underline; }

/* Fenster von unten (neuer Punkt, Mail zum Punkt) */
.sheet-backdrop { position: absolute; inset: 0; z-index: 10; background: rgba(30, 29, 27, 0.35); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 11; max-height: 88%; overflow-y: auto; background: var(--paper); border-radius: 12px 12px 0 0; padding: 10px 20px 28px; padding-bottom: max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 -6px 24px rgba(30, 29, 27, 0.12); }
.sheet-grip { align-self: center; flex: none; width: 40px; height: 4px; border-radius: 2px; background: #d3d3cf; }
.sheet-title { margin: 0; font: 500 20px/1.25 var(--serif); overflow-wrap: anywhere; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sheet-head .offen-date { flex: none; }
.sheet-form { display: flex; flex-direction: column; gap: 8px; }
.sheet-label { font-size: 14px; color: var(--muted); margin-top: 4px; }
.sheet-input { height: 44px; padding: 0 4px; border: none; border-bottom: 1px solid var(--accent); border-radius: 0; background: transparent; font-size: 18px; }
.sheet-input:focus { outline: none; border-bottom-width: 2px; }
.sheet-input.date { font-size: 16px; }
.sheet-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid #d3d3cf; background: var(--paper); font-size: 15px; }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.sheet-hint { margin: 0; padding: 10px 12px; border-radius: var(--radius); background: var(--bg); font-size: 14px; line-height: 1.4; }
.sheet-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.sheet-actions .btn { flex: 1; height: 48px; }
.sheet-mail { box-shadow: none; }
.sheet-body { max-height: 40vh; overflow-y: auto; }
.open-all { margin-top: 6px; font-size: 14px; color: var(--accent); }
