@font-face { font-family: "Fraunces"; src: url(fonts/fraunces.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

/* Farben und Maße aus dem abgenommenen Entwurf */
:root {
  --bg: #FAF5EC; --card: #FFFFFF; --ink: #2A2118; --ink2: #3D3229; --muted: #6E6257; --soft: #8A7D70; --faint: #A89A8A;
  --line: #EFE6D8; --line2: #EADFCF; --sep: #F3ECE1; --sand: #F1E8DA;
  --gold: #E8A93A; --gold-ink: #8A5A12; --gold-bg: #FFF5E0; --amber: #C98A1E; --amber-bg: #FFF0D2; --amber-ink: #7A4E0B;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Instrument Sans", system-ui, sans-serif; font-size: 16px; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:focus, select:focus { outline: none; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
a { color: var(--gold-ink); }
h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }

.avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; }
.avatar.big { width: 84px; height: 84px; font-family: "Fraunces", Georgia, serif; font-size: 36px; font-weight: 600; }
.avatar.big2 { width: 52px; height: 52px; font-size: 17px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot.sm { width: 7px; height: 7px; }
.logomark { background: var(--gold); display: flex; align-items: center; justify-content: center; flex: none; }
.field { height: 52px; border-radius: 16px; border: 1px solid var(--line2); background: var(--card); padding: 0 16px; width: 100%; font-size: 16px; }
.btn { height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.primary { border: 0; background: var(--gold); color: var(--ink); font-weight: 700; }
.btn.small { height: 40px; padding: 0 16px; font-size: 14px; }
.pill { height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.pill.gold { border: 0; background: var(--gold); font-weight: 700; color: var(--ink); text-decoration: none; }
.pill.user { padding: 0 14px 0 4px; gap: 8px; }
.pill.user .avatar { width: 36px; height: 36px; font-size: 14px; }
.error { color: var(--amber-ink); background: var(--amber-bg); padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.meta { color: var(--muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.chip { font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #F5EFE6; color: #5A4D41; }
.chip.urgent { font-weight: 700; background: var(--amber-bg); color: var(--amber-ink); }
.chip.fraud { font-weight: 700; background: var(--ink); color: #F2B544; }
.chip.goldchip { font-size: 12px; font-weight: 700; padding: 3px 10px; background: var(--gold); color: var(--ink); }
.chip.greenchip { font-size: 12px; font-weight: 700; padding: 3px 10px; background: #E7EEDC; color: #3F5A26; }

/* Anmeldung: „Wer arbeitet heute?“ */
.picker { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 48px 16px; }
.picker-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.picker-head h1 { margin: 0; font-size: 40px; }
.picker-head p { margin: 0; font-size: 18px; color: var(--muted); }
.picker-cards { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; width: 100%; max-width: 720px; }
.usercard { flex: 1 1 260px; max-width: 340px; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 32px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: 0 8px 24px rgba(42,33,24,0.06); }
.usercard.on { border: 2px solid var(--gold); padding: 31px 27px; }
.usercard .uname { font-family: "Fraunces", Georgia, serif; font-size: 28px; font-weight: 600; }
.usercard .urole { font-size: 15px; color: var(--muted); }
.picker-pw { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; }

/* Rahmen */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 24px; }
.home { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 0; min-height: 44px; }
.home > span:last-child { font-family: "Fraunces", Georgia, serif; font-size: 24px; font-weight: 600; }
.topbtns { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page { width: 100%; max-width: 880px; margin: 0 auto; padding: 8px 16px 120px; display: flex; flex-direction: column; gap: 18px; }
.page.narrow { max-width: 780px; gap: 16px; }
.pagetitle { margin: 0; font-size: 36px; }

/* Postfach */
.searchbar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line2); }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; }
.pushhint { width: 100%; padding: 12px 18px; border-radius: 18px; border: 0; background: var(--gold-bg); color: var(--gold-ink); font-weight: 600; font-size: 15px; text-align: left; }
.urgentbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 20px; background: var(--amber-bg); }
.urgentbar .dot { width: 10px; height: 10px; }
.urgentbar .txt { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; color: var(--amber-ink); font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.urgentbar .txt b { font-size: 15px; }
.urgentbar button { height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--card); color: var(--amber-ink); font-size: 14px; font-weight: 700; }
.folders { display: flex; flex-direction: column; gap: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 8px; }
.tile { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 14px; text-align: left; background: var(--card); border: 2px solid transparent; box-shadow: 0 1px 3px rgba(42,33,24,0.06); }
.tile.on { box-shadow: none; }
.tile .lbl { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink2); overflow-wrap: anywhere; }
.tile .num { font-family: "Fraunces", Georgia, serif; font-size: 18px; font-weight: 600; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 20px; padding: 0 4px; }
.links button { min-height: 40px; padding: 0; border: 0; background: transparent; font-size: 15px; color: var(--muted); font-weight: 600; }
.links button.on { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.links .n { color: var(--faint); font-weight: 500; }
.folderhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 6px; }
.folderhead h1 { margin: 0; font-size: 34px; }
.folderhead .stats { font-size: 15px; color: var(--muted); margin-top: 4px; }
.views { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sand); }
.views button { height: 38px; padding: 0 16px; border-radius: 999px; border: 0; font-size: 14px; background: transparent; color: var(--muted); font-weight: 500; }
.views button.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(42,33,24,0.08); }
.list { display: flex; flex-direction: column; gap: 10px; }
.mailcard { display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 1px 2px rgba(42,33,24,0.04); }
.mailcard.done { opacity: .75; }
.mc-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.mc-top { display: flex; align-items: baseline; gap: 10px; }
.mc-top .from { font-size: 16px; font-weight: 500; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mc-top .clip { flex: none; align-self: center; display: flex; }
.mc-top .time { font-size: 13px; color: var(--soft); flex: none; }
.mailcard .subj { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.mailcard.b .from, .mailcard.b .subj { font-weight: 700; }
.mailcard .sum { font-size: 14px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.mc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 4px; font-size: 13px; color: var(--soft); }
.mc-meta .brand { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.emptycard { padding: 56px 24px; text-align: center; display: flex; flex-direction: column; gap: 8px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.emptycard .t { font-family: "Fraunces", Georgia, serif; font-size: 26px; font-weight: 600; color: var(--ink); }
.emptycard.plain { border: 0; padding: 40px 0; }

/* Mail lesen */
.readtop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.backbtn { align-self: flex-start; height: 44px; padding: 0 16px 0 10px; border-radius: 999px; border: 0; background: transparent; font-size: 15px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.readctl { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.readctl .pill { height: 40px; }
.pillselect { position: relative; display: inline-flex; align-items: center; }
.pillselect select { appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; height: 40px; padding: 0 34px 0 16px; font-size: 14px; font-weight: 700; }
.pillselect svg { position: absolute; right: 13px; pointer-events: none; }
.readcard { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 24px; box-shadow: 0 8px 24px rgba(42,33,24,0.05); }
.rc-from { display: flex; align-items: center; gap: 14px; }
.rc-from .who { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.rc-from .who b { font-size: 17px; }
.rc-from .who span { font-size: 14px; color: var(--soft); overflow-wrap: anywhere; }
.rc-from .time { font-size: 14px; color: var(--soft); flex: none; }
.rc-subj { display: flex; flex-direction: column; gap: 8px; }
.rc-subj h1 { margin: 0; font-size: 32px; line-height: 1.2; overflow-wrap: anywhere; }
.urgentline { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--gold-ink); }
.fraudbox { display: flex; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--ink); color: #F5EFE6; }
.fraudbox .bang { width: 40px; height: 40px; border-radius: 50%; background: #F2B544; color: var(--ink); font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.fraudbox div { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }
.fraudbox b { font-size: 17px; color: #F2B544; }
.notebox { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 20px; }
.notebox .ic { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.notebox div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.45; }
.notebox b { font-size: 17px; }
.notebox.blue { background: #E9EEF2; color: #2F4E63; }
.notebox.blue b { color: #1F3B4D; }
.notebox.green { background: #E7EEDC; color: #3F5A26; }
.notebox.green b { color: #2F4A1C; }
.kurz { padding: 14px 18px; border-radius: 16px; background: #FFF8EA; font-size: 15px; line-height: 1.55; color: #5E4A2E; }
.kurz b { display: block; font-size: 12px; letter-spacing: .08em; color: #A07A3A; margin-bottom: 4px; }
.msg { display: flex; flex-direction: column; gap: 6px; }
.msgmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); overflow-wrap: anywhere; }
.msgmeta strong { color: var(--ink); }
.bubble { padding: 16px 20px; border-radius: 20px; border-top-left-radius: 6px; background: #F7F2EA; font-size: 16px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.new { background: var(--card); border: 2px solid var(--gold); box-shadow: 0 6px 18px rgba(232,169,58,0.18); }
.bubble.quoted { background: transparent; border: 1px solid var(--line); border-radius: 20px; font-size: 15px; color: var(--muted); }
.quotebtn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; margin-top: 4px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-size: 14px; font-weight: 600; color: var(--gold-ink); }
.bubble .link { display: inline-block; padding: 0 8px; margin: 1px 0; border-radius: 999px; background: #E9EEF2; color: #2F4E63; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bubble .link.off { background: #F5EFE6; color: var(--soft); }
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.files span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.hint { font-size: 13px; line-height: 1.5; color: var(--soft); }
.sections { display: flex; flex-direction: column; border-top: 1px solid var(--sep); }
.section { border-bottom: 1px solid var(--sep); }
.sec-head { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 2px; border: 0; background: transparent; text-align: left; }
.sec-head .l { flex: 1; font-size: 15px; font-weight: 600; }
.sec-head .hintx { font-size: 13px; color: var(--soft); }
.sec-body { padding: 0 2px 18px; display: flex; flex-direction: column; gap: 4px; }
.histrow { display: flex; gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 0; font-size: 14px; line-height: 1.45; color: var(--ink2); }
.histrow .d { flex: none; width: 130px; color: var(--soft); }

/* Schreiben */
.replybar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 22px; border-top: 1px solid var(--sep); }
.writer { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--sep); scroll-margin-top: 16px; }
.page .readcard > .writer:first-child { padding-top: 0; border-top: 0; }
.w-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.w-title { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #A07A3A; }
.w-head .pillselect select { height: 36px; font-size: 13px; font-weight: 600; padding: 0 30px 0 14px; }
.w-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; }
.w-row > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.w-row .field { height: 46px; border-radius: 14px; font-size: 15px; }
.w-row select.field { appearance: auto; }
.w-to { position: relative; }
.suggs { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); display: flex; flex-direction: column; background: var(--card); border-radius: 16px; box-shadow: 0 10px 30px rgba(42,33,24,.15); overflow: hidden; }
.suggs:empty { display: none; }
.sugg { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 0; background: transparent; text-align: left; border-bottom: 1px solid var(--sep); }
.sugg:hover { background: #FBF7F0; }
.sugg span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sugg small { color: var(--soft); overflow-wrap: anywhere; }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; background: #F1E8DA; color: #5A4D41; }
.instr { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 18px; background: var(--gold-bg); }
.instr .ti { font-size: 14px; font-weight: 700; color: #7A4E0B; }
.instr textarea, .w-text { width: 100%; border-radius: 14px; border: 1px solid var(--line2); padding: 14px 16px; font-size: 16px; line-height: 1.6; resize: vertical; background: var(--card); }
.w-text { min-height: 260px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.w-msg { font-size: 14px; color: var(--gold-ink); }
.w-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; padding-top: 4px; }
.w-tools select.pill { appearance: none; -webkit-appearance: none; padding: 0 16px; }
.pill.rec { background: #FCE3DC; border-color: #E8A08A; color: #8A2A12; }
.pill:disabled, .btn:disabled { opacity: .55; cursor: default; }
.files .x { border: 0; background: none; font-size: 16px; line-height: 1; color: var(--soft); padding: 0 0 0 4px; }
.linkish { border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; padding: 6px; }
.show-s { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 20px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 15px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 20; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
.toast.big { font-size: 17px; padding: 12px 12px 12px 22px; gap: 16px; width: min(480px, calc(100% - 32px)); justify-content: space-between; white-space: nowrap; }
.toast.big button { height: 44px; padding: 0 20px; font-size: 16px; }
.toast button { height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--gold); color: var(--ink); font-weight: 700; }
.overlay { position: fixed; inset: 0; background: rgba(20,16,10,.45); z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pv { width: 100%; max-width: 760px; height: 90vh; background: var(--card); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.pv-frame { flex: 1; width: 100%; border: 0; background: #EAE6DF; }

/* Etappe 3 */
.askbtn { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--gold-bg); color: var(--gold-ink); font-size: 13px; font-weight: 700; }
.askbox { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 20px; background: var(--gold-bg); }
.askbox .ti { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #A07A3A; }
.askbox .field { height: 46px; }
.answer { font-size: 16px; line-height: 1.6; white-space: pre-line; }
.row.nowrap { flex-wrap: nowrap; }
.pill.small { height: 34px; font-size: 13px; padding: 0 12px; }
.awaybar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 18px; background: #E9EEF2; font-size: 15px; line-height: 1.5; color: #1F3B4D; }
.swipehint { font-size: 13px; color: var(--soft); text-align: center; padding-top: 6px; }
.mailcard { transition: transform .15s; }
a.filechip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.filechip:hover { border-color: var(--gold); }
a.filechip .dl { color: var(--gold-ink); font-weight: 700; }
.linkcard { border: 0; background: transparent; padding: 0; text-align: left; width: 100%; }
.custlink { font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.avatar.cust { width: 72px; height: 72px; font-family: "Fraunces", Georgia, serif; font-size: 28px; font-weight: 600; }
.custname { margin: 0; font-size: 30px; line-height: 1.15; overflow-wrap: anywhere; }
.stats3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stats3 div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: #F7F2EA; }
.stats3 b { font-family: "Fraunces", Georgia, serif; font-size: 22px; }
.stats3 span { font-size: 13px; color: var(--muted); }
.notebox div span { display: block; }
.timeline { display: flex; flex-direction: column; }
.tl { display: grid; grid-template-columns: 120px 1fr; gap: 4px 12px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--sep); background: none; text-align: left; font-size: 14px; }
.tl .d { color: var(--soft); }
.tl .dir { font-weight: 700; }
.tl.aus .dir { color: #3F5A26; }
.tl .s { grid-column: 2; display: flex; flex-direction: column; gap: 2px; color: var(--ink2); overflow-wrap: anywhere; }
.tl .s span { color: var(--muted); }
.notebody textarea, .panel textarea { width: 100%; border-radius: 14px; border: 1px solid var(--line2); padding: 12px 14px; font-size: 15px; line-height: 1.6; resize: vertical; }
.brief { max-width: 620px; padding-top: 40px; gap: 24px; }
.brief .today { font-size: 15px; color: var(--muted); }
.brief h1 { margin: -10px 0 0; font-size: 44px; line-height: 1.1; }
.brief .lead { margin: 0; font-size: 19px; line-height: 1.7; color: var(--ink2); }
.topitems { display: flex; flex-direction: column; gap: 12px; }
.topitems .lbl { font-size: 15px; font-weight: 600; color: var(--muted); }
.topitem { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.topitem .t { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.topitem .t b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.topitem .t span { font-size: 14px; color: var(--muted); }
.brief .rest { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.brief .btn { align-self: flex-start; }
.switchrow { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 0; border: 0; background: transparent; }
.switchrow .l { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.switchrow .l b { font-size: 17px; }
.switchrow .l span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.switch { flex: none; width: 52px; height: 30px; border-radius: 999px; position: relative; background: #D9CFC2; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0,0,0,.15); transition: left .15s; }
.switch.on { background: #6F8F4E; }
.switch.on span { left: 25px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.grid2 label, label.col { display: flex; flex-direction: column; gap: 6px; }
.grid2 label span, label.col span { font-size: 13px; font-weight: 600; color: var(--muted); }
.grid2 .field { height: 48px; }

.devlist { display: flex; flex-direction: column; border-top: 1px solid var(--sep); }
.devrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--sep); }
.devrow > span { display: flex; flex-direction: column; gap: 2px; }
.devrow small { color: var(--soft); font-size: 13px; }

.pill.dark { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.sigframe { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 16px; background: #FFFFFF; }

.invbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.invbar a.pill { text-decoration: none; color: var(--ink); }

.greet { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Einstellungen */
.panel { padding: 22px 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 14px; }
.panel > h2:first-child:has(+ .switchrow) { display: none; }
.panel h2 { margin: 0; font-family: "Instrument Sans", system-ui, sans-serif; font-size: 17px; font-weight: 700; letter-spacing: 0; }
.panel p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.panel ol { margin: 0; padding-left: 20px; line-height: 1.7; color: var(--muted); }
.panel .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.panel table { border-collapse: collapse; font-size: 14px; }
.panel td { padding: 6px 10px 6px 0; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .top { padding: 12px 16px; }
  .home > span:last-child { font-size: 21px; }
  .pill.user span:last-child { display: none; }
  .pill.user { padding: 0 4px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .folderhead h1 { font-size: 28px; }
  .mailcard { padding: 16px; gap: 12px; }
  .mailcard .avatar { width: 38px; height: 38px; font-size: 14px; }
  .readcard { padding: 20px 18px; border-radius: 22px; gap: 18px; }
  .rc-subj h1 { font-size: 24px; }
  .readctl { margin-left: 0; width: 100%; }
  .histrow .d { width: 100px; }
  .hide-s { display: none; }
  .show-s { display: flex; }
  .top { gap: 8px; }
  .home .logomark { width: 34px !important; height: 34px !important; }
  .topbtns .pill { padding: 0 12px; }
  .w-row { grid-template-columns: 1fr; gap: 4px; }
  .askbtn { padding: 0 10px; }
  .tl { grid-template-columns: 1fr; }
  .tl .s { grid-column: 1; }
  .brief h1 { font-size: 34px; }
}
