: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; white-space: nowrap; }
tr:hover td { background: #fafbfc; }
td.num, th.num { text-align: right; }
td.num, td.mono, td .mono, a.mono, .badge, td.nowrap { white-space: nowrap; }
.btn:not(.btn-block) { white-space: nowrap; }
td .clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 260px; }

/* 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; }
.grid2 > *, .form-grid > * { min-width: 0; }
.form-actions, .pill-row, .toolbar { flex-wrap: wrap; }
.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); }
.subnav2 { background: #fff; padding-top: 6px; padding-bottom: 6px; gap: 6px; }
.subnav2 a { padding: 5px 12px; font-size: 12.5px; border: 1px solid var(--border); border-radius: 999px; border-bottom-width: 1px; }
.subnav2 a.active { background: rgba(37,99,235,.08); border-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: 240px; height: auto; margin: 6px 0 10px; }
.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"] .subnav2, 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; }

/* v1.12 – breite Seiten, Hygiene & Audit, Kacheln Schulungen, Anwesenheit */
.content.content-wide { max-width: 1680px; }
.hy-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .hy-grid { grid-template-columns: 1fr; } }
.hy-mini { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 0; }
.hy-mini input, .hy-mini select { width: auto; flex: 1 1 110px; margin: 0; }
.hy-edit { margin-top: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; width: 340px; box-shadow: 0 12px 30px rgba(20,30,60,.18); display: grid; gap: 4px; text-align: left; }
.hy-edit label { margin: 0; font-size: 12.5px; }
.hy-plaene { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.hy-plan { margin: 0; padding: 12px; }
.hy-vorschau { display: block; position: relative; height: 260px; border-radius: 10px; overflow: hidden; background: #eef1f6; border: 1px solid var(--border); }
.hy-vorschau img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hy-vorschau iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.hy-vorschau .hy-klick { position: absolute; inset: 0; }
.hy-vorschau .muted { display: flex; height: 100%; align-items: center; justify-content: center; }
.kachel-status { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.anw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.anw { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.anw .pkt { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.anw .nm { font-weight: 600; } .anw .sub { font-size: 12.5px; color: var(--muted); }
.hinweise { border-left: 4px solid #d97706; }
.hinweise ul { margin: 6px 0 0 18px; padding: 0; line-height: 1.7; }
.matrix td, .matrix th { padding: 6px 8px; }
.matrix th.rot { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: 12px; text-align: left; vertical-align: bottom; height: 170px; }
.avv-tab td { padding-top: 7px; padding-bottom: 7px; vertical-align: middle; }
.avv-tab input { margin: 0; }
.avv-tab .bez { min-width: 340px; }
.vorschlag { display: inline-block; font-size: 11.5px; background: #eef2ff; color: #3730a3; border-radius: 6px; padding: 1px 6px; margin: 2px 4px 0 0; cursor: pointer; border: 0; }
html[data-theme="dark"] .hy-edit, html[data-theme="dark"] .anw { background: #2c2c2e; }
.matrix th.kopf { min-width: 104px; max-width: 130px; white-space: normal; text-transform: none; letter-spacing: 0; font-size: 11.5px; line-height: 1.25; vertical-align: bottom; font-weight: 600; }
.bt-monate { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 900px) { .bt-monate { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bt-monat { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; color: inherit; font-size: 12px; background: var(--surface); }
.bt-monat:hover { text-decoration: none; border-color: var(--primary); }
.bt-monat b { font-size: 14px; } .bt-monat span { color: var(--muted); }
.bt-monat.akt { background: var(--primary); border-color: var(--primary); color: #fff; } .bt-monat.akt span { color: #e0e7ff; }
.bt-monat.leer { opacity: .55; }
.dp-wahl { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.dp-opt { display: flex !important; align-items: center; gap: 6px; margin: 0 !important; padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; font-weight: 400 !important; cursor: pointer; background: var(--surface); }
.dp-opt input { width: auto !important; margin: 0; }
.dp-opt:has(input:checked) { background: #dcfce7; border-color: #16a34a; }
.dp-opt.schlecht:has(input:checked) { background: #fee2e2; border-color: #dc2626; }
.dms { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .dms { grid-template-columns: 1fr; } }
.dms-baum { padding: 8px; position: sticky; top: 10px; max-height: calc(100vh - 30px); overflow: auto; }
.dms-k { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; color: inherit; font-size: 13.5px; }
.dms-k:hover { background: var(--bg); text-decoration: none; }
.dms-k.akt { background: #e0e7ff; color: #1e3a8a; font-weight: 600; }
.dms-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dms-z { font-size: 11.5px; color: var(--muted); } .dms-lock { font-size: 9px; color: #d97706; } .dms-ic { display: inline-flex; color: var(--muted); }
.dms-suche { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; } .dms-suche input[name=q] { flex: 1 1 320px; margin: 0; } .dms-suche select { width: auto; margin: 0; }
.dms-drop { border: 2px dashed var(--border); } .dms-drop.ueber { border-color: var(--primary); background: #eef2ff; }
@media (min-width: 1025px) { .tn-menu a { padding: 8px 8px; } }

/* Betriebstagebuch: klickbare Kachel Jahresübersicht, Suche, Jahresübersicht Input/Output */
a.kpi-link { text-decoration: none; color: inherit; border-color: var(--primary, #1e8c5a); box-shadow: inset 4px 0 0 var(--primary, #1e8c5a); transition: background .15s; }
a.kpi-link:hover { background: var(--bg); }
a.kpi-link .lbl::after { content: ' \203A'; font-weight: 700; }
.bt-suche input[type=search] { font-size: 15px; }
.jahr-io { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .jahr-io { grid-template-columns: 1fr; } }
.jahr-io .io-kopf { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.jahr-io .io-kopf b { font-size: 16px; }
.io-in .io-kopf { box-shadow: inset 4px 0 0 #1e8c5a; }
.io-out .io-kopf { box-shadow: inset 4px 0 0 #b45309; }
.io-balken { display: flex; gap: 2px; align-items: flex-end; height: 120px; padding: 8px 4px 0; }
.io-balken .mon { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; text-decoration: none; color: inherit; }
.io-balken .paar { display: flex; gap: 2px; align-items: flex-end; height: 96px; width: 100%; justify-content: center; }
.io-balken .b-in { background: #1e8c5a; width: 42%; border-radius: 2px 2px 0 0; min-height: 1px; }
.io-balken .b-out { background: #d97706; width: 42%; border-radius: 2px 2px 0 0; min-height: 1px; }
.io-balken .mon span { font-size: 11px; color: var(--muted, #667); margin-top: 3px; }
.aw-stoffe { columns: 3 260px; font-size: 13px; margin-top: 8px; }
.aw-stoffe label { display: flex; gap: 6px; align-items: flex-start; font-weight: 400; margin: 0 0 4px; break-inside: avoid; }
.aw-stoffe input { width: auto; margin-top: 3px; }

/* Freigabe Rechnung aus Annahme */
.fr-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.4fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .fr-grid { grid-template-columns: 1fr; } }
.fr-zeile { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.fr-zeile > span:first-child { color: var(--muted, #667); white-space: nowrap; }
.fr-zeile b { text-align: right; }
.fr-pos { margin-top: 10px; font-size: 14px; }
.fr-pos input.fr-preis { width: 110px; text-align: right; padding: 6px 8px; }
input.fr-leer { border-color: #d97706 !important; background: #fff7ed; }
.fr-summe { margin-top: 8px; display: grid; gap: 2px; justify-items: end; font-size: 14px; }
.fr-summe div { display: flex; gap: 18px; }
.fr-summe .gross { font-size: 20px; margin-top: 4px; }
.fr-check { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: 13.5px; margin: 8px 0 0; }
.fr-check input { width: auto; margin: 0; }
.fr-aktionen { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.fr-aktionen .fr-gross { padding: 14px 22px; font-size: 16px; }
@media (max-width: 600px) { .fr-aktionen .btn { flex: 1 1 100%; text-align: center; } }
.bv-liste { display: grid; gap: 6px; margin-top: 6px; }
.bv-item { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13.5px; }
.bv-item.dabei { background: #f0fdf4; border-color: #86efac; }
.bv-score { display: inline-block; min-width: 42px; text-align: center; border-radius: 10px; padding: 1px 6px; font-size: 12px; font-weight: 700; background: #e0f2fe; color: #075985; }
.bv-score.hoch { background: #dcfce7; color: #166534; }
.bv-gruende { color: var(--muted, #667); font-size: 12px; }
.fr-grid > * { min-width: 0; }
.fr-zeile b { overflow-wrap: anywhere; }
.fr-aktionen .btn { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 600px) { .fr-pos th:nth-child(4), .fr-pos td:nth-child(4) { display: none; } .fr-pos input.fr-preis { width: 84px; } .fr-pos { font-size: 13px; } }

/* Lösch-Dialog (Testdaten / Grund) */
.dlg-hg { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.dlg { background: var(--surface, #fff); border-radius: 12px; padding: 18px 20px; width: 100%; max-width: 440px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.dlg h3 { margin: 0 0 6px; font-size: 17px; }
.dlg-test { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fffbeb; margin: 0; }
.dlg-test input { width: auto; margin-top: 3px; }
.dlg-knoepfe { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.badge-test { background: #fef3c7; color: #92400e; }

/* ---------- Inventar: Scanner, Scanleiste, Kennzeichen ---------- */
.scan-hg { position: fixed; inset: 0; background: rgba(5, 10, 18, .88); z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 14px; }
.scan-box { position: relative; width: 100%; max-width: 520px; }
.scan-box video { width: 100%; border-radius: 18px; background: #000; display: block; max-height: 70vh; object-fit: cover; }
.scan-rahmen { position: absolute; left: 10%; right: 10%; top: 30%; height: 26%; border: 3px solid rgba(255, 255, 255, .9); border-radius: 14px; box-shadow: 0 0 0 2000px rgba(0, 0, 0, .25); pointer-events: none; }
.scan-info { color: #fff; text-align: center; margin-top: 10px; font-size: 15px; font-weight: 600; }
.scan-log { color: #c7f0d4; text-align: center; font-size: 13.5px; margin-top: 6px; min-height: 18px; }
.scan-knoepfe { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.scan-knoepfe .btn { padding: 12px 26px; font-size: 15px; }
.inv-scan { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inv-scan input { flex: 1 1 260px; font-size: 18px; padding: 12px 14px; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; }
.inv-scan .btn { padding: 12px 18px; font-size: 15px; }
.inv-nr { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; }
.inv-kopf { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .inv-kopf { grid-template-columns: 1fr; } }
.inv-status { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.inv-status .gross { font-size: 18px; font-weight: 700; }
.inv-log { font-size: 13px; }
.inv-log td { padding: 6px 8px; }
.inv-gefunden { background: #e4f5ec; color: #157347; border-radius: 10px; padding: 8px 12px; font-weight: 600; margin-bottom: 12px; }
.inv-feed div { padding: 6px 10px; border-bottom: 1px solid var(--border); font-size: 14px; }
.inv-feed .ok { color: #157347; } .inv-feed .neu { font-weight: 700; } .inv-feed .fehl { color: #b02a37; }

/* ---------- Notfall ---------- */
.tn-notfall { background: #c62828; color: #fff !important; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; text-decoration: none !important; box-shadow: 0 4px 12px -4px rgba(198, 40, 40, .6); }
.tn-notfall:hover, .tn-notfall.active { background: #a31f1f; }
.nf-kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 760px) { .nf-kopf { grid-template-columns: 1fr; } }
.nf-112 { display: flex; align-items: center; gap: 18px; background: linear-gradient(160deg, #e53935, #b71c1c); color: #fff; border-radius: 20px; padding: 18px 22px; text-decoration: none !important; box-shadow: 0 16px 34px -16px rgba(183, 28, 28, .8); font-size: 15px; line-height: 1.35; }
.nf-112-nr { font-size: 54px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.nf-merk { margin: 0; font-size: 15px; display: flex; flex-direction: column; justify-content: center; }
.nf-kontakte { display: grid; gap: 8px; margin-top: 10px; }
.nf-kontakt { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border); }
.nf-tel { display: flex; gap: 8px; flex-wrap: wrap; }
.nf-tel .btn { font-size: 15px; padding: 9px 14px; font-variant-numeric: tabular-nums; }
.nf-faelle { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 16px; align-items: start; }
.nf-fall summary { cursor: pointer; display: flex; gap: 12px; align-items: center; font-size: 15.5px; list-style: none; }
.nf-fall summary::-webkit-details-marker { display: none; }
.nf-k { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: #fde8e8; color: #b71c1c; font-weight: 800; flex-shrink: 0; }
.nf-fall[open] .nf-k { background: #c62828; color: #fff; }
.nf-fall ol, .nf-fall ul { margin: 4px 0 8px 18px; padding: 0; line-height: 1.55; font-size: 14px; }
.nf-sub { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-top: 10px; }
.nf-alarm { background: #fff4e5; border-radius: 10px; padding: 8px 12px; margin-top: 10px; font-size: 14px; }
.nf-plaene { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.nf-bild { width: 100%; border-radius: 12px; display: block; margin-bottom: 10px; }
.nf-punkte { columns: 2 160px; font-size: 13.5px; margin: 0 0 8px 18px; padding: 0; }
html[data-theme="dark"] .nf-alarm { background: rgba(255, 152, 0, .12); }
html[data-theme="dark"] .nf-k { background: rgba(229, 57, 53, .2); color: #ff8a80; }

/* Zurück-Knopf oben auf jeder Seite (v1.87) */
.zurueck-leiste{margin:-6px 0 6px}
.zurueck-btn{padding:4px 10px;font-size:13px;color:var(--muted,#5b6472)}
@media print{.zurueck-leiste{display:none}}

/* ===== Handy-Menü: drei Striche → Seitenmenü mit allen Punkten (v1.91) ===== */
.tn-burger { width: 42px; height: 42px; border-radius: 10px; padding: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.tn-burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink, #1f2937); }
.tn-burger:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mm-hinter { position: fixed; inset: 0; background: rgba(10, 16, 28, .38); z-index: 90; opacity: 0; transition: opacity .2s; }
.mm-hinter.offen { opacity: 1; }
.mm { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); z-index: 91; background: var(--surface, #fff); color: var(--ink);
  box-shadow: -12px 0 32px -12px rgba(0, 0, 0, .35); transform: translateX(100%); transition: transform .2s ease; display: flex; flex-direction: column; }
.mm.offen { transform: none; }
.mm[hidden], .mm-hinter[hidden] { display: none; }
html[data-theme="dark"] .mm { background: #1c2129; }
.mm-kopf { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.mm-titel { font-weight: 800; font-size: 16px; }
.mm-zu { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.mm-inhalt { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 10px 24px; flex: 1; }
.mm-punkt, .mm-gruppe > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 12px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; background: none; border: 0; font-family: inherit; text-align: left; cursor: pointer; }
.mm-punkt:hover, .mm-gruppe > summary:hover { background: rgba(127, 127, 127, .1); text-decoration: none; }
.mm-punkt.active, .mm-gruppe > summary.active { color: var(--primary); background: rgba(37, 99, 235, .09); }
.mm-gruppe > summary { list-style: none; } .mm-gruppe > summary::-webkit-details-marker { display: none; }
.mm-pfeil { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; margin-right: 4px; opacity: .6; }
.mm-gruppe[open] > summary .mm-pfeil { transform: rotate(-135deg); }
.mm-unterkopf { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 2px 24px; }
.mm-unter { display: block; padding: 9px 12px 9px 24px; border-radius: 8px; font-size: 14px; color: var(--ink); text-decoration: none; }
.mm-unter:hover { background: rgba(127, 127, 127, .1); text-decoration: none; }
.mm-unter.active { color: var(--primary); font-weight: 700; }
.mm-trenner { height: 1px; background: var(--border); margin: 10px 4px; }
.mm-notfall { color: #c62828; }
.mm-abmelden { color: var(--muted); }
html.mm-sperre, html.mm-sperre body { overflow: hidden; }
@media (max-width: 1024px) {
  .tn-burger { display: flex; order: 3; margin-left: 4px; }
  .tn-menu, .tn-menu.open { display: none; }
  .tn-bar { gap: 10px; padding: 0 12px; min-height: 56px; flex-wrap: nowrap; }
  .tn-right { order: 2; margin-left: auto; gap: 8px; }
  .tn-right .tn-user, .tn-right .tn-link, .tn-right form { display: none; }
  .subnav, .subnav2 { display: none; }
}
@media (max-width: 420px) { .tn-name { font-size: 14px; } .tn-notfall { padding: 6px 10px !important; font-size: 13px !important; } }
@media print { .mm, .mm-hinter, .tn-burger { display: none !important; } }
