:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #1c2530;
  --muted: #6b7684;
  --border: #e3e8ef;
  --primary: #1f6feb;
  --primary-dark: #1a5fd0;
  --sidebar: #101826;
  --sidebar-ink: #c7d0dc;
  --green: #157347;
  --green-bg: #e4f5ec;
  --blue: #1f6feb;
  --blue-bg: #e6effd;
  --orange: #b45309;
  --orange-bg: #fbeed9;
  --red: #b02a37;
  --red-bg: #fbe5e7;
  --gray: #566;
  --gray-bg: #eceff3;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.app { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 224px;
  background: var(--sidebar);
  color: var(--sidebar-ink);
  padding: 18px 12px;
  flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand-mark { font-size: 22px; color: #4f9bff; }
.brand-name { font-weight: 700; color: #fff; font-size: 15px; }
.brand-sub { font-size: 11px; color: #7f8ca0; letter-spacing: .5px; text-transform: uppercase; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a {
  color: var(--sidebar-ink);
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13.5px;
}
.sidebar nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.sidebar nav a.active { background: var(--primary); color: #fff; }

/* Main */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.topbar-title { font-weight: 600; font-size: 16px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.user-chip { font-size: 13px; color: var(--ink); }
.user-chip .role { color: var(--muted); text-transform: capitalize; }
.tenant-chip { font-size: 12px; background: var(--gray-bg); color: var(--gray); padding: 3px 8px; border-radius: 20px; }
.content { padding: 24px; max-width: 1200px; width: 100%; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px; margin-bottom: 18px;
}
.card h1, .card h2 { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.card-head h1, .card-head h2 { margin: 0; }
h1 { font-size: 20px; } h2 { font-size: 17px; }

/* KPI grid */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.kpi .val { font-size: 26px; font-weight: 700; }
.kpi .lbl { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.kpi.accent { border-left: 3px solid var(--primary); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); font-weight: 600; }
tr:hover td { background: #fafbfc; }
td.num, th.num { text-align: right; }

/* Badges */
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-green { color: var(--green); background: var(--green-bg); }
.badge-blue { color: var(--blue); background: var(--blue-bg); }
.badge-orange { color: var(--orange); background: var(--orange-bg); }
.badge-red { color: var(--red); background: var(--red-bg); }
.badge-gray { color: var(--gray); background: var(--gray-bg); }

/* Buttons */
.btn { display: inline-block; border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  padding: 8px 14px; border-radius: 7px; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.btn:hover { text-decoration: none; background: #f7f9fb; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-danger { color: var(--red); border-color: var(--red-bg); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-block { width: 100%; }

/* Forms */
label { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: #35404d; }
input, select, textarea {
  width: 100%; padding: 8px 10px; margin-top: 4px; border: 1px solid var(--border);
  border-radius: 7px; font-size: 14px; font-family: inherit; background: #fff; font-weight: 400; color: var(--ink);
}
textarea { min-height: 70px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }

/* Flash */
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13.5px; }
.flash-success { background: var(--green-bg); color: var(--green); }
.flash-error { background: var(--red-bg); color: var(--red); }
.flash-info { background: var(--blue-bg); color: var(--blue); }

/* Toolbar */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; margin: 0; }
.spacer { flex: 1; }

/* Detail layout */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 18px 0 8px; }

/* Calendar */
.cal { overflow-x: auto; }
.cal table { min-width: 900px; }
.cal th.veh, .cal td.veh { position: sticky; left: 0; background: var(--surface); min-width: 190px; font-weight: 600; z-index: 1; }
.cal td { padding: 4px; text-align: center; font-size: 11px; }
.cal .day { min-width: 30px; }
.cal .wknd { background: #f6f8fb; }
.cal .cell-res { background: var(--blue-bg); color: var(--blue); border-radius: 4px; }
.cal .cell-act { background: var(--green-bg); color: var(--green); border-radius: 4px; }

/* Photo slots */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
.photo-slot { border: 1px solid var(--border); border-radius: 8px; padding: 8px; text-align: center; background: #fafbfc; }
.photo-slot img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; background: #eee; }
.photo-slot .slot-name { font-size: 12px; color: var(--muted); margin: 6px 0; text-transform: capitalize; }

/* Wizard steps */
.steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.steps .step { padding: 6px 12px; border-radius: 20px; background: var(--gray-bg); color: var(--muted); font-size: 12.5px; }
.steps .step.active { background: var(--primary); color: #fff; }

.muted { color: var(--muted); }
.right { text-align: right; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Login */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--sidebar); }
.login-card { background: #fff; padding: 34px; border-radius: 14px; width: 360px; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.login-brand { font-size: 22px; font-weight: 700; } .login-brand .brand-mark { color: var(--primary); }
.login-sub { color: var(--muted); margin: 4px 0 20px; }
.login-hint { font-size: 12px; color: var(--muted); margin-top: 16px; text-align: center; }
.login-hint code { background: var(--gray-bg); padding: 1px 5px; border-radius: 4px; }

/* Intranet nav additions */
.brand .nv { background: linear-gradient(120deg,#7c8bff,#b39dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sidebar { display: flex; flex-direction: column; }
.sidebar nav { flex: 1; overflow-y: auto; }
.nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: #6f7b90; padding: 14px 12px 4px; }
.sidebar nav a .ic { display: inline-block; width: 20px; text-align: center; margin-right: 4px; }
.sidebar nav a.sub { padding-left: 34px; font-size: 13px; color: #9aa6b8; }
.sidebar nav a.sub.active { color: #fff; background: rgba(255,255,255,.08); }
.side-foot { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; color: #7f8ca0; }
.burger { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); }

/* Tiles (Kacheln) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 16px; }
.tile { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; transition: .15s; position: relative; overflow: hidden; }
.tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(30,40,90,.12); border-color: #cfd6e4; }
.tile .tile-ic { font-size: 30px; display: block; margin-bottom: 10px; }
.tile .tile-name { font-weight: 700; font-size: 15.5px; }
.tile .tile-desc { color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.4; }
.tile .tile-badge { position: absolute; top: 14px; right: 14px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; }
.tile.accent { background: linear-gradient(150deg,#20264f,#3a2d78); border: none; color: #fff; }
.tile.accent .tile-desc { color: #c9c4ff; }
.welcome { background: linear-gradient(120deg,#eef0fd,#f7f4ff); border: 1px solid #d9ddfb; border-radius: 14px; padding: 18px 20px; margin-bottom: 20px; }
.welcome h1 { margin: 0 0 4px; font-size: 20px; }
.welcome p { margin: 0; color: #4b5573; font-size: 13.5px; }

/* Progress bar (Urlaub) */
.progress { height: 10px; background: var(--gray-bg); border-radius: 6px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); }

/* small helpers */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.tag { display:inline-block; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--gray-bg); color: var(--gray); }
fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; }
legend { font-weight: 700; font-size: 13px; padding: 0 6px; }
.check-row { display:flex; align-items:flex-start; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.check-row input { width:auto; margin-top:3px; }
.check-row .r-label { font-weight:600; } .check-row .r-desc { color:var(--muted); font-size:12.5px; font-weight:400; }

@media (max-width: 860px) {
  .app { display: block; }
  .sidebar { position: fixed; left: -260px; top: 0; height: 100vh; z-index: 60; transition: .2s; }
  .sidebar.open { left: 0; }
  .burger { display: block; }
  .form-grid, .detail-grid, .grid2 { grid-template-columns: 1fr; }
}

/* ===== Horizontale Kopfzeile (Südfrost-Stil) ===== */
.topnav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.tn-bar { display: flex; align-items: center; gap: 16px; padding: 0 18px; min-height: 56px; }
.tn-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; color: var(--ink); }
.tn-brand:hover { text-decoration: none; }
.tn-mark { color: var(--primary); font-size: 20px; }
.tn-name b { color: var(--primary); font-weight: 800; }
.tn-menu { display: flex; align-items: center; gap: 1px; flex: 1; flex-wrap: wrap; }
.tn-menu a { padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #3a4658; white-space: nowrap; }
.tn-menu a:hover { background: #f2f4f8; text-decoration: none; }
.tn-menu a.active { color: var(--primary); background: #eaf0fd; }
.tn-menu a.strong { color: var(--primary); }
.tn-menu a.strong.active { background: var(--primary); color: #fff; }
.tn-badge { display: inline-block; background: #e02440; color: #fff; border-radius: 20px; font-size: 11px; font-weight: 700; padding: 0 6px; line-height: 17px; vertical-align: middle; }
.tn-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.tn-user { font-weight: 700; font-size: 13px; }
.tn-lang { color: var(--muted); font-size: 12.5px; }
.tn-link { font-size: 13px; color: var(--muted); background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; }
.tn-link:hover { color: var(--ink); text-decoration: none; }
.tn-logout { color: var(--muted); }
.tn-burger { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); }

.subnav { display: flex; gap: 2px; padding: 0 18px; background: #f7f8fb; border-top: 1px solid var(--border); overflow-x: auto; }
.subnav a { padding: 9px 12px; font-size: 13px; font-weight: 600; color: #4b5568; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); text-decoration: none; }
.subnav a.active { color: var(--primary); border-bottom-color: var(--primary); }

.content { padding: 24px; max-width: 1200px; margin: 0 auto; width: 100%; }

@media (max-width: 1024px) {
  .tn-burger { display: block; order: 3; margin-left: auto; }
  .tn-menu { display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .tn-menu.open { display: flex; }
  .tn-menu a { padding: 10px 12px; }
  .tn-right { order: 2; margin-left: auto; }
}

/* Trivera Resources – Logo */
.tn-logo { width: 34px; height: 34px; display: block; }
.tn-logo-dunkel { display: none; }
html[data-theme="dark"] .tn-logo-hell { display: none; }
html[data-theme="dark"] .tn-logo-dunkel { display: block; }
.login-logo { text-align: center; margin: -10px 0 4px; }
.login-logo img { width: 170px; height: auto; }
.login-body { background: radial-gradient(circle at 50% 30%, #0b1f3f 0%, #050b16 70%); }

/* =====================================================================
   Urlaub / Profil / Personal – Darstellung wie Intranet MM Südfrost
   (auf .sf begrenzt, damit das übrige Trivera-Design unberührt bleibt)
   ===================================================================== */
.sf {
  --sf-primary: var(--primary); --sf-primary-dark: var(--primary-dark);
  --accent-soft: rgba(31, 111, 235, 0.10); --card: #ffffff; --text: #1d1d1f; --text-2: #48484a; --sf-muted: #86868b;
  --hairline: rgba(0, 0, 0, 0.08); --danger: #d70015; --success: #1d8a3f; --input-bg: #ffffff; --head-bg: #f8fafc;
  --weekend-bg: #eef1f5; --fill-soft: rgba(0, 0, 0, 0.05); --radius-lg: 20px; --radius-md: 14px; --radius-pill: 980px;
  --shadow-md: 0 6px 24px rgba(0,0,0,0.06); --ease: cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 1100px; margin: 0 auto; color: var(--text); line-height: 1.5; letter-spacing: -0.011em;
}
.sf.wide { max-width: none; }
.sf a { color: var(--sf-primary); }
.sf h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 22px; line-height: 1.1; }
.sf h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 22px 0 12px; }
.sf h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px; }
.sf .page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.sf .page-head h1 { margin: 0; }
.sf .card { background: var(--card); border: none; border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow-md); }
.sf .meta { color: var(--sf-muted); font-size: 13px; margin-bottom: 12px; }
.sf .hint { color: var(--sf-muted); font-size: 13px; margin-top: 6px; }
.sf .small-link { color: var(--sf-muted); font-size: 13px; }
.sf .tag { display: inline-block; background: var(--accent-soft); color: var(--sf-primary); font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: var(--radius-pill); }
.sf .btn { display: inline-flex; align-items: center; justify-content: center; background: var(--sf-primary); color: #fff; padding: 10px 20px;
  border-radius: var(--radius-pill); border: none; cursor: pointer; font-size: 14px; font-weight: 500; font-family: inherit; text-decoration: none; }
.sf .btn:hover { background: var(--sf-primary-dark); color: #fff; text-decoration: none; }
.sf .btn:active { transform: scale(0.97); }
.sf .btn.secondary { background: var(--fill-soft); color: var(--sf-primary); }
.sf .btn.secondary:hover { background: rgba(0,0,0,0.09); }
.sf .btn.danger { background: rgba(215,0,21,0.08); color: var(--danger); }
.sf .btn.danger:hover { background: rgba(215,0,21,0.14); }
.sf .btn.small { padding: 7px 14px; font-size: 13px; }
.sf .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sf .actions form { margin: 0; }
.sf form.form { background: var(--card); border-radius: var(--radius-lg); padding: 28px; max-width: 620px; box-shadow: var(--shadow-md); }
.sf .field { margin-bottom: 20px; }
.sf label { display: block; font-weight: 500; margin-bottom: 7px; font-size: 14px; color: var(--text); }
.sf input, .sf textarea, .sf select { width: 100%; padding: 11px 14px; border: 1px solid var(--hairline); border-radius: var(--radius-md);
  font-size: 15px; font-family: inherit; background: var(--input-bg); color: var(--text); margin-top: 0; }
.sf input:focus, .sf textarea:focus, .sf select:focus { outline: none; border-color: var(--sf-primary); box-shadow: 0 0 0 3px var(--accent-soft); }
.sf textarea { min-height: 120px; resize: vertical; }
.sf input[type="checkbox"], .sf input[type="radio"] { width: 18px; height: 18px; min-width: 18px; padding: 0; margin: 0; accent-color: var(--sf-primary); vertical-align: -3px; box-shadow: none; }
.sf input[type="file"] { padding: 8px; }
.sf .alert { padding: 13px 16px; border-radius: var(--radius-md); margin-bottom: 20px; font-size: 14px; }
.sf .alert.error { background: rgba(215,0,21,0.08); color: var(--danger); }
.sf .alert.success { background: rgba(29,138,63,0.10); color: var(--success); }
.sf table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); font-size: 14px; }
.sf th, .sf td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.sf th { background: var(--head-bg); font-weight: 500; color: var(--text-2); font-size: 13px; }
.sf tr:last-child td { border-bottom: none; }
.sf .card table, .sf form table { box-shadow: none; border-radius: 0; background: transparent; }
.sf .inp { width: 100%; box-sizing: border-box; }

/* ---------- Darstellung (Profil): Dunkel, Schriftgröße, Schriftart ---------- */
html[data-theme="dark"] {
  --bg: #1c1c1e; --surface: #2c2c2e; --ink: #f2f2f7; --muted: #98989f; --border: rgba(255,255,255,0.14);
  --primary: #4c9aff; --primary-dark: #79b3ff; --gray-bg: #3a3a3c; --blue-bg: #1f3350; --green-bg: #1d3b2a; --orange-bg: #3d2f1a; --red-bg: #43242a;
}
html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .card, html[data-theme="dark"] .kpi, html[data-theme="dark"] .tile, html[data-theme="dark"] .topnav,
html[data-theme="dark"] .subnav, html[data-theme="dark"] table, html[data-theme="dark"] .welcome { background: #2c2c2e; color: var(--ink); border-color: var(--border); }
html[data-theme="dark"] th { background: #3a3a3c; color: #c7c7cc; }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background: #3a3a3c; color: var(--ink); border-color: var(--border); }
html[data-theme="dark"] .tn-menu a, html[data-theme="dark"] .tn-brand, html[data-theme="dark"] .tn-user { color: var(--ink); }
html[data-theme="dark"] .sf { --card: #2c2c2e; --text: #f2f2f7; --text-2: #c7c7cc; --sf-muted: #98989f; --hairline: rgba(255,255,255,0.14);
  --danger: #ff6961; --success: #4cd07d; --input-bg: #3a3a3c; --head-bg: #3a3a3c; --weekend-bg: #3a3a3c; --fill-soft: rgba(255,255,255,0.10);
  --accent-soft: rgba(76,154,255,0.16); --shadow-md: 0 6px 24px rgba(0,0,0,0.55); }
html[data-fontsize="klein"] { zoom: 0.9; }
html[data-fontsize="gross"] { zoom: 1.15; }
html[data-font="serif"] body { font-family: Georgia, "Times New Roman", serif; }
html[data-font="rund"] body { font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif; }

/* ===================== Footer & Rechtstexte ===================== */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main.content { flex: 1 0 auto; }
.app-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px;
  padding: 16px 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px; }
.app-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.app-footer a { color: var(--muted); text-decoration: none; }
.app-footer a:hover { color: var(--primary); text-decoration: underline; }
.login-body { flex-direction: column; }
.login-body .login-card { margin: auto 0 0; }
.login-body .app-footer { border: 0; justify-content: center; text-align: center; flex-direction: column; margin-top: auto; padding: 28px 16px 18px; }
.login-body .app-footer, .login-body .app-footer a { color: rgba(255,255,255,.62); }
.login-body .app-footer a:hover { color: #fff; }
html[data-theme="dark"] .app-footer { border-color: var(--border); }

.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.legal-tabs a { padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(0,0,0,.04); text-decoration: none; }
.legal-tabs a.on { background: var(--primary); color: #fff; }
.legal-app { background: rgba(31,111,235,.07); border: 1px solid rgba(31,111,235,.22); border-radius: 12px; padding: 16px 20px; margin: 0 0 18px; font-size: 14px; }
.legal-app p { margin: 8px 0 0; line-height: 1.55; }
.legal-table { width: 100%; border-collapse: collapse; margin: 10px 0 4px; font-size: 13.5px; }
.legal-table th, .legal-table td { text-align: left; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal { background: #fff; border-radius: 14px; padding: 28px 32px; box-shadow: 0 1px 3px rgba(0,0,0,.05); overflow-wrap: break-word; hyphens: auto; }
.legal h1 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 6px; }
.legal .lead { color: var(--muted); font-size: 16px; margin: 0 0 22px; }
.legal h2 { font-size: 19px; margin: 28px 0 8px; }
.legal h3 { font-size: 16px; margin: 20px 0 6px; }
.legal p, .legal li { font-size: 14.5px; line-height: 1.65; }
.legal .box { background: #f4f6f9; border-radius: 12px; padding: 16px 20px; margin: 0 0 12px; }
.legal .box p { margin: 0; }
.legal .note { font-size: 12.5px; color: var(--muted); }
.legal .toc { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; margin: 0 0 10px; }
.legal table { width: 100%; }
.legal blockquote { margin: 10px 0; padding: 10px 16px; border-left: 3px solid var(--border); color: var(--muted); }
html[data-theme="dark"] .legal { background: #2c2c2e; color: var(--ink); }
html[data-theme="dark"] .legal .box { background: #3a3a3c; }
html[data-theme="dark"] .legal p, html[data-theme="dark"] .legal li { color: var(--ink); }
html[data-theme="dark"] .legal-tabs a:not(.on) { background: rgba(255,255,255,.08); }

.legal-public { background: #f4f6f9; }
.lp-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--border); }
.lp-head .tn-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #14263F; font-weight: 600; }
.lp-back { font-size: 14px; }
html[data-theme="dark"] .tn-menu a:hover { background: rgba(255,255,255,.08); }
html[data-theme="dark"] .tn-menu a.active { background: rgba(31,111,235,.28); color: #fff; }
html[data-theme="dark"] .tn-menu a.strong.active { background: var(--primary); color: #fff; }

/* Urlaub: Antragsart */
.sf .art-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.sf .art-opt { position: relative; cursor: pointer; }
.sf .art-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sf .art-opt span { display: inline-block; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--hairline); font-weight: 500; font-size: 14px; }
.sf .art-opt input:checked + span { background: var(--c); border-color: var(--c); color: #fff; }
.sf .art-opt input:focus-visible + span { outline: 2px solid var(--c); outline-offset: 2px; }
.sf .krank-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; align-items: end; }
.sf .krank-form > label, .sf .krank-form > button { grid-column: 1 / -1; justify-self: start; }
.sf .krank-nach summary { cursor: pointer; list-style: none; }
.sf .krank-nach summary::-webkit-details-marker { display: none; }
.sf .krank-nach summary::before { content: '▸ '; color: var(--sf-muted); }
.sf .krank-nach[open] summary::before { content: '▾ '; }

/* Status-Punkte (statt Emojis) & Kachel-Icons */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.dot-rot { background: #d92d20; } .dot-orange { background: #f79009; } .dot-gelb { background: #eaaa08; } .dot-gruen { background: #12b76a; }
.tile .tile-ic { font-size: 0; color: var(--primary); }
.tile.accent .tile-ic { color: #fff; }
