/* ── Design Tokens (Hero-Page-Norm, Style-Guide §1) ───────────────────────── */
:root{
  --navy:    #1648a6;
  --navy-d:  #0f3683;
  --teal:    #23b5a0;
  --teal-d:  #1c9583;
  --sky:     #15a7ce;
  --bg:      #f3f5f9;
  --line:    #e1e6ee;
  --text:    #1a2740;
  --muted:   #6b7a8d;
  --radius:  14px;
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*{box-sizing:border-box;margin:0;padding:0}
body{height:100vh;overflow:hidden;font-family:'Segoe UI',system-ui,sans-serif;background:var(--bg);display:flex;color:var(--text)}
button,input,textarea,select{font:inherit}
.button-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.ghost-btn{border:1px solid #9eb8d8;background:#edf2fa;color:#1e3d73;padding:9px 14px;border-radius:10px;font-weight:700;cursor:pointer}
.ghost-btn:hover{background:#dce8f5;border-color:#6a95c0}
.mini-btn{border:1px solid #ccd7e5;background:#fff;color:#405165;padding:6px 10px;font-size:12px;border-radius:8px;font-weight:700;cursor:pointer}
.mini-btn:hover{background:#f0f4f8}
::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:#f0f4f8}::-webkit-scrollbar-thumb{background:#c8d0dc;border-radius:3px}

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.fade-up{animation:fadeUp .4s ease forwards}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
#sidebar{
  width:232px;flex-shrink:0;
  background:linear-gradient(160deg,#0d2557 0%,#1648a6 58%,#1a7a6a 100%);
  display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;
  transition:width .25s ease;
  box-shadow:3px 0 18px rgba(13,35,71,.26);
  position:relative;z-index:10;
}
body.sidebar-collapsed #sidebar{width:0;overflow:hidden}

#sidebar-brand{
  padding:18px 14px 14px;border-bottom:1px solid rgba(0,0,0,.08);
  cursor:pointer;flex-shrink:0;display:flex;flex-direction:column;align-items:center;
  background:#fff;text-align:center;
}
#sidebar-logo{height:96px;object-fit:contain;mix-blend-mode:multiply;max-width:200px}
#sidebar-tagline{font-size:10px;font-weight:700;color:#3a6b8a;letter-spacing:.08em;text-transform:uppercase;margin-top:8px;line-height:1.5;text-align:center}

#sidebar-nav{flex:1;padding:6px 0 10px;overflow-y:auto;overflow-x:hidden}

.nav-sec{padding:2px 0 4px}
.nav-sec-label{padding:12px 16px 4px;font-size:9.5px;font-weight:700;color:rgba(255,255,255,.55);letter-spacing:.1em;text-transform:uppercase;white-space:nowrap}
.nav-item{
  width:100%;background:none;border:none;padding:8px 16px;
  display:flex;align-items:center;gap:9px;cursor:pointer;
  color:rgba(255,255,255,.72);font-size:13px;font-weight:600;font-family:inherit;text-align:left;
  transition:background .15s,color .15s;border-left:3px solid transparent;white-space:nowrap;
}
.nav-item:hover{background:rgba(255,255,255,.1);color:#fff;border-left-color:rgba(122,220,176,.55)}
.nav-item-active{background:rgba(255,255,255,.14);color:#fff;border-left-color:rgba(122,220,176,.8)}
.nav-soon{opacity:.55;cursor:default}
.nav-logo{display:none}
.nav-ic-fb{display:none}
.nav-static{margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,.08)}
.nav-static-item{margin-bottom:6px}
.nav-static-ic{width:18px;height:18px;font-size:9px;font-weight:800}
.nav-static-label{padding-top:8px;font-size:10px;font-weight:800;color:rgba(255,255,255,.82)}
.nav-static-tail{margin-top:0;padding-top:4px;border-bottom:none;padding-bottom:0}
.nav-lbl{flex:1;overflow:hidden;text-overflow:ellipsis}
.nav-extra{font-size:10px;flex-shrink:0}
.soon-dot{color:#7ddcb0;font-size:8px}

/* ── Sidebar User Switcher ───────────────────────────────────────────────── */
#sidebar-user-switcher{padding:8px 12px 4px;border-top:1px solid rgba(255,255,255,.1);flex-shrink:0}
.sw-label{font-size:9px;font-weight:700;color:rgba(255,255,255,.3);letter-spacing:.1em;text-transform:uppercase;padding:0 2px 5px}
.sw-user-btn{
  width:100%;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);
  border-radius:9px;color:rgba(255,255,255,.65);padding:7px 10px;margin-bottom:5px;
  font-size:12.5px;font-family:inherit;text-align:left;display:flex;align-items:center;
  gap:8px;cursor:pointer;transition:all .15s;
}
.sw-user-btn:hover{background:rgba(255,255,255,.13);color:#fff;border-color:rgba(255,255,255,.25)}
.sw-active{background:rgba(255,255,255,.15) !important;border-color:rgba(122,220,176,.5) !important;color:#fff !important}
.sw-av{
  width:26px;height:26px;border-radius:50%;flex-shrink:0;
  background:rgba(255,255,255,.18);
  font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;
}
.sw-active .sw-av{background:linear-gradient(135deg,rgba(30,61,115,.8),rgba(58,140,104,.8))}
.sw-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sw-check{font-size:11px;color:#7ddcb0;flex-shrink:0}

#sidebar-bottom{padding:10px 12px 14px;flex-shrink:0}
.sidebar-btn{
  width:100%;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);
  border-radius:9px;color:rgba(255,255,255,.75);padding:8px 13px;font-size:12.5px;
  cursor:pointer;font-family:inherit;text-align:left;display:flex;align-items:center;
  gap:8px;transition:background .15s;
}
.sidebar-btn:hover{background:rgba(255,255,255,.14);color:#fff}
#sidebar-org-label{font-size:10px;color:rgba(255,255,255,.3);padding:9px 2px 2px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ── Main Wrapper ─────────────────────────────────────────────────────────── */
#main-wrap{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}

/* ── Header ──────────────────────────────────────────────────────────────── */
#suite-header{
  background:#fff;flex-shrink:0;display:flex;align-items:center;
  padding:0 22px;gap:12px;height:58px;
  border-bottom:3px solid var(--navy);
  box-shadow:0 2px 16px rgba(22,72,166,.10);position:relative;z-index:5;
}
#menu-btn{
  background:none;border:none;cursor:pointer;width:34px;height:34px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;color:#4b5a6e;flex-shrink:0;transition:background .15s;
}
#menu-btn:hover{background:#f0f4f8}
/* ── Login Wrap + Panel ──────────────────────────────────────────────────── */
#login-wrap{position:relative;flex-shrink:0}
#login-btn{
  background:linear-gradient(135deg,var(--navy),var(--teal-d));color:#fff;border:none;
  border-radius:22px;padding:7px 14px 7px 12px;font-size:12.5px;font-weight:700;
  cursor:pointer;font-family:inherit;display:flex;align-items:center;gap:7px;
  white-space:nowrap;transition:opacity .15s;
  box-shadow:0 2px 8px rgba(22,72,166,.15);
}
#login-btn:hover{opacity:.88}
#login-panel{
  position:absolute;top:calc(100% + 8px);left:0;
  width:280px;background:#fff;border-radius:16px;
  box-shadow:0 8px 40px rgba(0,0,0,.18),0 1px 0 rgba(255,255,255,.4) inset;
  z-index:200;overflow:hidden;
}
.lp-profile{display:flex;align-items:center;gap:11px;padding:16px 18px 14px}
.lp-av{
  width:36px;height:36px;border-radius:50%;flex-shrink:0;
  background:linear-gradient(135deg,#1e3d73,#3a8c68);
  color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;
}
.lp-name{font-size:13.5px;font-weight:800;color:#1e293b}
.lp-org{font-size:11px;color:#9ba8bb;margin-top:1px;line-height:1.4}
.lp-sep{height:1px;background:#f0f4f8;margin:0}
.lp-block{padding:12px 18px}
.lp-label{font-size:10px;font-weight:700;color:#9ba8bb;letter-spacing:.08em;text-transform:uppercase;margin-bottom:7px}
.lp-tier-row{display:flex;align-items:center;gap:9px}
.lp-extras{font-size:11.5px;color:#6b7a8d;font-weight:600}
.lp-nav-btn{
  width:100%;background:none;border:1.5px solid #dde3ec;border-radius:9px;
  padding:8px 12px;font-size:12.5px;font-weight:700;color:#1e3d73;
  cursor:pointer;font-family:inherit;text-align:left;transition:all .15s;
}
.lp-nav-btn:hover{background:#f4f7fb;border-color:#1e3d73}
.lp-footer-block{padding:10px 18px 14px;background:#f8fafc}
.lp-login-main{
  width:100%;background:#1e3d73;color:#fff;border:none;border-radius:9px;
  padding:9px 14px;font-size:12.5px;font-weight:700;cursor:pointer;font-family:inherit;
  transition:background .15s;
}
.lp-login-main:hover{background:#2a4f8f}
.lp-hint{font-size:10px;color:#b0bbc9;text-align:center;margin-top:7px}
/* ── Header Institut Logo ────────────────────────────────────────────────── */
#header-institut{height:42px;object-fit:contain;mix-blend-mode:multiply;opacity:.95}
#breadcrumb{flex:1;display:flex;align-items:center;gap:7px;font-size:14px;min-width:0}
#bc-sep{color:#9ba8bb;font-size:15px}
#bc-page{font-weight:700;color:#3a8c68;white-space:nowrap}
#header-right{display:flex;align-items:center;gap:10px;flex-shrink:0}
#user-chip{display:flex;align-items:center;gap:8px;background:#f4f7fb;border-radius:20px;padding:5px 12px 5px 5px}
#user-av{
  width:28px;height:28px;border-radius:50%;
  background:linear-gradient(135deg,#1e3d73,#3a8c68);
  color:#fff;display:flex;align-items:center;justify-content:center;font-size:10.5px;font-weight:800;flex-shrink:0;
}
#user-nm{font-size:12.5px;font-weight:600;color:#4b5a6e;white-space:nowrap}

/* ── Main Content ─────────────────────────────────────────────────────────── */
#main-content{flex:1;overflow-y:auto;padding:24px 28px}

/* ── Dashboard ───────────────────────────────────────────────────────────── */
.dash-top{margin-bottom:20px}
.dash-greeting-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.dash-title{font-size:clamp(18px,2vw,24px);font-weight:800;color:#1e3d73;margin-bottom:3px}
.dash-sub{font-size:12.5px;color:#6b7a8d;line-height:1.5}

.profile-shell{animation:fadeUp .35s ease}
.profile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.profile-head-actions{display:flex;align-items:center;gap:10px}
.profile-save-btn{
  border:1px solid #cfd9e5;background:#fff;color:#486072;border-radius:999px;padding:8px 14px;
  font:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:all .15s
}
.profile-save-btn:hover{border-color:#3a8c68;color:#1e6b3a;background:#f7fcf9}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.profile-card{
  background:#fff;border:1px solid #dce5ef;border-radius:18px;padding:18px 18px 16px;
  box-shadow:0 10px 28px rgba(30,61,115,.08)
}
.profile-card-title{font-size:13px;font-weight:800;color:#1e3d73;margin-bottom:14px}
.profile-card-actions{display:flex;justify-content:flex-end;margin-top:-40px;margin-bottom:12px}
.profile-form-grid.single-column > .profile-card-actions{order:-1}
.profile-save-btn-small{padding:6px 11px;font-size:11px;white-space:nowrap}
.profile-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.profile-form-grid.single-column{grid-template-columns:minmax(0,1fr)}
.profile-form-grid label{display:flex;flex-direction:column;gap:6px}
.profile-form-grid span{font-size:11px;font-weight:700;color:#526275}
.profile-inline-field{display:flex;flex-direction:column;gap:8px}
.profile-checkbox{
  display:inline-flex !important;flex-direction:row !important;align-items:center;gap:8px;
  font-size:13px;font-weight:600;color:#32465a
}
.profile-checkbox input{width:16px;height:16px;accent-color:#3a8c68}
.committee-row{
  display:grid;grid-template-columns:minmax(0,1.6fr) auto auto;gap:14px 16px;align-items:end;
  padding:14px 14px 12px;border:1px solid #dce5ef;border-radius:14px;background:#fbfdff
}
.committee-summary-list{display:flex;flex-direction:column;gap:10px}
.committee-summary-row{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:10px 12px;border:1px solid #dce5ef;border-radius:14px;background:#fbfdff
}
.committee-summary-row strong{
  color:#1f5f4f;font-size:12px;letter-spacing:.04em;text-transform:uppercase
}
.committee-role-participant{
  color:#2f6fb2;
  background:#edf4ff;
  border:1px solid #c8daf8;
  border-radius:999px;
  padding:4px 8px;
}
.committee-role-chair{
  color:#6f5800;
  background:linear-gradient(transparent 42%, #fff1a6 42%, #fff1a6 86%, transparent 86%);
  padding:0 4px;
}
.committee-check{padding-bottom:11px}
.profile-form-grid input,
.profile-form-grid select,
.profile-form-grid textarea{
  width:100%;border:1px solid #cfd9e5;border-radius:12px;background:#f8fbfd;color:#1e293b;
  font:inherit;font-size:13px;padding:11px 12px;outline:none;transition:border-color .15s,box-shadow .15s
}
.profile-form-grid textarea{min-height:108px;resize:vertical}
.profile-form-grid input:focus,
.profile-form-grid select:focus,
.profile-form-grid textarea:focus{
  border-color:#3a8c68;box-shadow:0 0 0 3px rgba(58,140,104,.14)
}
.gremium-shell{animation:fadeUp .35s ease}
.gremium-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.gremium-list{display:flex;flex-direction:column;gap:12px}
.gremium-row{
  display:grid;grid-template-columns:minmax(0,1.5fr) minmax(180px,.8fr) auto;gap:12px;align-items:end;
  padding:12px;border:1px solid #dce5ef;border-radius:14px;background:#fbfdff
}
.gremium-remove-btn{height:42px}

.tier-chip{display:inline-flex;align-items:center;padding:4px 13px;border-radius:20px;font-size:11px;font-weight:700;letter-spacing:.04em;flex-shrink:0}
.tier-base        {background:#dbe6f9;color:#1e3d73}
.tier-pro         {background:#dce8f8;color:#2d5a9e}
.tier-complete    {background:#d1f0e4;color:#1e6b3a}
.tier-complete_plus{background:#fde8d0;color:#b45309}

/* ── Module Grid (Flip Cards) ─────────────────────────────────────────────── */
.mod-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:12px;
}

/* Flip container */
.mod-card{
  perspective:900px;cursor:pointer;
  height:200px;
}
.mod-card-inner{
  position:relative;width:100%;height:100%;
  transform-style:preserve-3d;
  transition:transform .55s cubic-bezier(.4,0,.2,1);
}
.mod-card:hover .mod-card-inner,
.mod-card.flipped .mod-card-inner{
  transform:rotateY(180deg);
}

/* Front face */
.mc-front{
  position:absolute;inset:0;border-radius:18px;
  backface-visibility:hidden;-webkit-backface-visibility:hidden;
  background:#fff;border:2px solid #eef1f5;
  padding:10px 10px 8px;
  display:flex;flex-direction:column;
  transition:border-color .2s,box-shadow .2s;
}
.mod-card:hover .mc-front{
  border-color:var(--tc,#1e3d73);
  box-shadow:0 8px 28px rgba(30,61,115,.12);
}

/* Back face */
.mc-back{
  position:absolute;inset:0;border-radius:18px;
  backface-visibility:hidden;-webkit-backface-visibility:hidden;
  transform:rotateY(180deg);
  background:linear-gradient(135deg,#0d2347 0%,#1e3d73 55%,#1a5c4a 100%);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:14px;color:#fff;gap:8px;
}

/* Status badge (booked / locked) */
.mc-status-badge{
  position:absolute;top:9px;right:9px;
  width:20px;height:20px;border-radius:50%;
  font-size:10px;display:flex;align-items:center;justify-content:center;font-weight:800;
}
.mc-booked{background:#d1f0e4;color:#1e6b3a}
.mc-locked{background:#f0f0f0;color:#9ba8bb;font-size:9px}

/* Front content */
.mc-logo-wrap{width:100%;height:120px;display:flex;align-items:center;justify-content:center;margin-bottom:5px;flex-shrink:0;overflow:hidden}
.mc-logo-f{width:100%;height:auto;max-height:120px;object-fit:contain;mix-blend-mode:multiply}
.mc-logo-f[src$="BEKI_TimeCheck.png"]{max-height:115px}
.mc-logo-fb{height:52px;width:52px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800}
.mc-name{font-size:12.5px;font-weight:800;color:#1e3d73;margin-bottom:3px;line-height:1.2}
.mc-sub{font-size:10px;color:#6b7a8d;line-height:1.4;flex:1;overflow:hidden}
.mc-tier-chip{display:inline-flex;align-items:center;padding:2px 8px;border-radius:20px;font-size:10px;font-weight:700;margin-top:3px;align-self:flex-start}

/* Back content */
.mc-logo-b-pill{
  background:rgba(255,255,255,.93);
  border-radius:10px;
  padding:6px 10px;display:flex;align-items:center;justify-content:center;
  width:82%;overflow:hidden;
}
.mc-logo-b{width:100%;height:auto;max-height:54px;object-fit:contain;mix-blend-mode:multiply;filter:brightness(1.03)}
.mc-back-name-fb{font-size:12px;font-weight:800;color:rgba(255,255,255,.75);letter-spacing:.05em}
.mc-back-sub{font-size:11px;color:rgba(255,255,255,.9);line-height:1.5}
.mc-back-pill{
  font-size:11px;font-weight:700;padding:3px 11px;border-radius:20px;
  background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.3);color:#fff;
}
.mc-not-booked{background:rgba(255,160,0,.2);border-color:rgba(255,160,0,.4);color:#ffd080}
.mc-included{background:rgba(122,220,176,.18);border-color:rgba(122,220,176,.4);color:#7ddcb0}
.mc-coming-soon{background:rgba(180,180,220,.18);border-color:rgba(180,180,220,.4);color:#c8cfe8}
.mc-back-price{font-size:12px;font-weight:700;color:rgba(255,255,255,.55)}
.mc-open-btn{
  font-size:13px;font-weight:800;color:#7ddcb0;letter-spacing:.02em;
  border:1.5px solid rgba(122,220,176,.5);border-radius:10px;
  padding:7px 18px;background:transparent;cursor:pointer;font-family:inherit;
  transition:background .15s;
}
.mc-open-btn:hover{background:rgba(122,220,176,.15)}

/* ── Modul-Sektionen (Base / Pro / Complete / Addon) ────────────────────── */
/* 5-Spalten outer grid: dash-main=4fr, dash-aside=1fr → alle Kacheln exakt gleich breit */
.dash-layout{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;align-items:start}
.dash-main{grid-column:span 4}
.dash-aside{border-left:2px solid #d0daea;padding-left:10px}
.dash-aside .mod-grid{grid-template-columns:1fr}
.dash-aside .mod-card{height:200px}

.dash-main .mod-grid{grid-template-columns:repeat(4,1fr)}
.desk-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.desk-kicker{font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#2e6f5e;margin-bottom:5px}
.desk-status-card{min-width:240px;background:linear-gradient(145deg,#f7fcf8 0%,#e4f0e7 100%);border:1px solid rgba(73,120,101,.18);border-radius:20px;padding:16px 18px;box-shadow:0 14px 28px rgba(55,92,72,.14),inset 0 1px 0 rgba(255,255,255,.75)}
.desk-status-label{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#2e6f5e;margin-bottom:8px}
.desk-status-tier{display:inline-flex}
.desk-status-meta{margin-top:10px;font-size:11.5px;color:#547464}
.desk-surface{
  position:relative;display:grid;grid-template-columns:1.08fr .96fr .84fr;gap:16px;padding:18px;border-radius:30px;
  background:
    radial-gradient(circle at top left,rgba(251,255,248,.88),transparent 30%),
    linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,0)),
    radial-gradient(circle at 22% 26%,rgba(111,146,104,.08) 0 1px,transparent 1px 7px),
    radial-gradient(circle at 68% 62%,rgba(106,139,100,.06) 0 1px,transparent 1px 6px),
    radial-gradient(circle at 82% 34%,rgba(98,129,93,.05) 0 1px,transparent 1px 5px),
    linear-gradient(135deg,#dfead6 0%,#d2e2c8 24%,#c4d8bc 54%,#d7e5ce 78%,#e8f1df 100%);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.36),inset 0 -10px 24px rgba(67,96,62,.08),0 24px 56px rgba(67,96,62,.14)
}
.desk-surface::before{
  content:'';position:absolute;inset:14px;border-radius:22px;border:1px solid rgba(255,255,255,.16);pointer-events:none
}
.desk-surface::after{
  content:'';position:absolute;inset:0;border-radius:30px;pointer-events:none;opacity:.5;
  background:
    radial-gradient(circle at var(--stain-x1,26%) var(--stain-y1,24%),rgba(111,82,47,.12) 0,rgba(161,130,86,.07) 28%,transparent 55%),
    radial-gradient(circle at var(--stain-x2,72%) var(--stain-y2,66%),rgba(114,82,44,.10) 0,rgba(168,140,92,.05) 24%,transparent 50%);
  background-size:var(--stain-s1,110px) var(--stain-s1,110px),var(--stain-s2,88px) var(--stain-s2,88px);
  background-repeat:no-repeat;
  filter:blur(.2px);
}
.desk-card{
  position:relative;background:#fff;border:1px solid rgba(205,214,229,.96);border-radius:18px;padding:14px 14px 12px;
  box-shadow:0 10px 22px rgba(30,61,115,.07),0 3px 8px rgba(53,34,15,.08)
}
.desk-card-title{font-size:13.5px;font-weight:800;color:#1e3d73;margin-bottom:8px}
.desk-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:6px}
.desk-card-date{font-size:11px;color:#8a96a8;font-weight:700}
.desk-card-pin{position:absolute;top:10px;left:16px;width:13px;height:13px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#b7f0d0,#4e9f7a 68%,#2f6e54 100%);box-shadow:0 2px 5px rgba(0,0,0,.18)}
.desk-calendar .desk-card-pin{left:50%;transform:translateX(-50%)}
.desk-card-clip{position:absolute;top:-12px;left:50%;transform:translateX(-50%);width:68px;height:20px;border-radius:10px 10px 6px 6px;background:linear-gradient(180deg,#dde3eb,#b4becd);box-shadow:0 3px 8px rgba(0,0,0,.18)}
.desk-calendar{
  grid-column:1;min-height:226px;padding-top:24px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(251,253,255,.96)),
    repeating-linear-gradient(0deg,transparent 0 34px,rgba(30,61,115,.06) 34px 35px)
}
.desk-calendar-list{display:flex;flex-direction:column;gap:8px}
.desk-calendar-item{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-top:1px dashed #d9e1ee}
.desk-calendar-item:first-child{border-top:none;padding-top:4px}
.desk-calendar-badge{min-width:50px;border-radius:12px;background:#f4f7fb;color:#1e3d73;font-size:10.5px;font-weight:800;padding:7px 9px;text-align:center}
.desk-entry-title{font-size:12px;font-weight:700;color:#1e3d73;margin-bottom:2px}
.desk-entry-meta{font-size:11px;line-height:1.45;color:#6b7a8d}
.desk-tasks{
  grid-column:2;background:
    linear-gradient(180deg,rgba(255,255,255,.88),rgba(255,255,255,.72)),
    linear-gradient(180deg,#d9ecfb 0 18px,#eef7fe 18px,#f7fbff 100%);
  transform:rotate(-1.1deg);
  display:flex;
  flex-direction:column
}
.desk-fristen{
  grid-column:3;
  background:
    linear-gradient(180deg,rgba(255,255,255,.96),rgba(247,250,252,.95)),
    repeating-linear-gradient(0deg,transparent 0 34px,rgba(30,61,115,.05) 34px 35px);
  display:flex;
  flex-direction:column
}
.desk-thumbtack{
  position:absolute;top:9px;left:50%;transform:translateX(-50%);
  width:14px;height:14px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#ffffff,#f3f3f3 66%,#d8d8d8 100%);
  border:1px solid rgba(160,160,160,.7);
  box-shadow:0 2px 5px rgba(0,0,0,.16)
}
.desk-thumbtack::before{
  content:'';position:absolute;left:50%;top:10px;transform:translateX(-50%);
  width:2px;height:13px;background:linear-gradient(180deg,#8b8b8b,#d4d4d4);
  border-radius:2px;box-shadow:0 1px 2px rgba(0,0,0,.12)
}
.desk-thumbtack::after{
  content:'';position:absolute;left:50%;top:3px;transform:translateX(-50%);
  width:5px;height:3px;border-radius:999px;background:rgba(255,255,255,.92)
}
.desk-deadline{font-size:13px;color:#1e3d73;margin-bottom:8px}
.desk-recent{grid-column:1;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}
.desk-recent::before,
.desk-recent::after{
  content:'';position:absolute;top:10px;width:12px;height:12px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#bfe3ff,#4a8fd1 68%,#2d5f97 100%);
  box-shadow:0 2px 5px rgba(0,0,0,.18)
}
.desk-recent::before{left:16px}
.desk-recent::after{right:16px}
.desk-recent-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.desk-module-chip{display:flex;align-items:center;gap:10px;border:1px solid #e6edf7;background:#fbfdff;border-radius:14px;padding:9px 10px;font:inherit;color:#1e3d73;cursor:pointer;box-shadow:0 4px 10px rgba(30,61,115,.04)}
.desk-module-chip img{height:30px;object-fit:contain}
.desk-module-chip:hover{border-color:#bfd0e8;box-shadow:0 8px 18px rgba(30,61,115,.08)}
.desk-sticky{
  grid-column:2 / span 2;background:
    linear-gradient(180deg,rgba(255,255,255,.94),rgba(255,255,255,.9)),
    linear-gradient(180deg,#fffef6 0%,#f9efc8 100%);
  transform:rotate(-1.3deg)
}
.desk-sticky::before,
.desk-sticky::after{
  content:'';position:absolute;top:-12px;width:68px;height:20px;border-radius:10px 10px 6px 6px;
  background:linear-gradient(180deg,#dde3eb,#b4becd);box-shadow:0 3px 8px rgba(0,0,0,.18)
}
.desk-sticky::before{left:24px;transform:rotate(-7deg)}
.desk-sticky::after{right:24px;transform:rotate(7deg)}
.desk-letterhead{
  margin:-2px -2px 12px;padding:8px 12px 10px;border-bottom:1px solid rgba(30,61,115,.08);
  display:flex;align-items:center;justify-content:flex-start;gap:12px;
  background:linear-gradient(180deg,rgba(236,242,250,.95),rgba(247,249,252,.65))
}
.desk-letterhead img{
  display:block;width:54px;height:54px;object-fit:contain;mix-blend-mode:multiply;flex-shrink:0;
  filter:drop-shadow(0 2px 2px rgba(30,61,115,.08))
}
.desk-letterhead-text{
  font-size:12px;line-height:1.3;font-weight:700;color:#1e3d73;max-width:220px
}
.desk-writing-area{
  width:100%;border:none;outline:none;resize:none;border-radius:12px;padding:12px 14px 10px;
  font:500 13px/28px "Segoe Print","Bradley Hand ITC","Comic Sans MS",cursive;color:#39465b;
  background:
    linear-gradient(180deg,transparent 0 31px,rgba(30,61,115,.10) 31px 32px),
    linear-gradient(90deg,rgba(199,79,61,.14) 0 1px,transparent 1px 100%),
    linear-gradient(180deg,rgba(255,255,255,.76),rgba(255,255,255,.76));
  background-size:100% 32px,100% 100%,100% 100%;
  box-shadow:inset 0 1px 3px rgba(30,61,115,.05)
}
.desk-writing-area::placeholder{color:#8e8f96;font-style:italic}
.desk-writing-board{min-height:0;flex:1;background-position:0 0,34px 0,0 0}
.desk-writing-note{min-height:164px;background-position:0 0,26px 0,0 0}
.desk-fristen .desk-writing-inline{
  min-height:0;
  flex:1;
  margin-top:12px;
  background-position:0 0,30px 0,0 0
}
.desk-writing-area:focus{box-shadow:inset 0 1px 3px rgba(30,61,115,.05),0 0 0 2px rgba(30,61,115,.08)}

.mod-section{margin-bottom:10px}

/* ── Pricing Section (Dashboard-Übersicht, kompakt) ─────────────────────── */
.pricing-section{margin-top:40px;padding-top:14px;border-top:1px solid #e2e8f0}
.pricing-section-hdr{margin-bottom:8px;display:flex;align-items:baseline;gap:10px}
.pricing-title{font-size:12px;font-weight:700;color:#8a96a8}
.pricing-hint{font-size:10.5px;color:#b8c2cc}
.pricing-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}
.pricing-card{
  background:#fafbfc;border-radius:10px;border:1px solid #eef1f5;
  padding:8px 10px;position:relative;
  transition:border-color .2s;
}
.pricing-card:hover{border-color:#c8d4ea}
.pricing-current{border-color:#3a8c68 !important;background:#f4fbf8 !important}
.pc-cur-badge{
  position:absolute;top:-7px;left:8px;
  background:#3a8c68;color:#fff;font-size:8.5px;font-weight:800;
  padding:1px 7px;border-radius:20px;letter-spacing:.04em;
}
.pricing-card .tier-chip{margin-bottom:5px;display:inline-flex;padding:2px 9px;font-size:10px}
.pc-users{font-size:9.5px;font-weight:700;color:#3a8c68;margin-bottom:4px}
.pc-modules{list-style:none;margin-bottom:5px}
.pc-modules li{font-size:10px;color:#8a96a8;padding:0;line-height:1.5}
.pc-modules li::before{content:'· ';color:#d0d8e4}
.pc-price{font-size:11.5px;font-weight:800;color:#6b7a8d}
.pc-per{font-size:9.5px;font-weight:600;color:#9ba8bb;margin-left:2px}

/* ── Pricing Full Page ───────────────────────────────────────────────────── */
#pricing-view .dash-top{margin-bottom:10px}
#pricing-view .dash-title{font-size:18px}
.pricing-full-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px;
}
.pf-card{
  background:#fff;border-radius:16px;border:2px solid #eef1f5;
  padding:14px 16px;position:relative;display:flex;flex-direction:column;gap:4px;
  transition:border-color .2s,box-shadow .2s;
}
.pf-card:hover{border-color:#c8d4ea;box-shadow:0 4px 18px rgba(30,61,115,.08)}
.pf-current{border-color:#3a8c68 !important;box-shadow:0 4px 18px rgba(58,140,104,.15) !important}
.pf-cur-badge{
  position:absolute;top:-10px;left:14px;
  background:#3a8c68;color:#fff;font-size:9.5px;font-weight:800;
  padding:2px 10px;border-radius:20px;letter-spacing:.04em;
}
.pf-card .tier-chip{display:inline-flex;margin-bottom:4px}
.pf-users{font-size:11px;font-weight:700;color:#3a8c68;margin-bottom:2px}
.pf-modules{list-style:none;flex:1}
.pf-modules li{font-size:11.5px;color:#6b7a8d;padding:1px 0;line-height:1.45}
.pf-modules li::before{content:'· ';color:#c8d4ea}
.pf-price{font-size:20px;font-weight:800;color:#1e3d73}
.pf-price-block{margin-top:6px;display:flex;flex-direction:column;gap:3px;flex:1;justify-content:flex-end}
.pf-price-annual{font-size:11.5px;color:#3a8c68;font-weight:600}
.pf-save-badge{display:inline-block;background:#d1f0e4;color:#1e6b3a;font-size:10px;font-weight:700;padding:2px 9px;border-radius:20px;margin-top:2px}
.pc-price-annual{font-size:10px;color:#3a8c68;font-weight:600;margin-top:1px}
.pf-per{font-size:11px;font-weight:600;color:#9ba8bb;margin-left:2px}
.pf-contact-btn{
  width:100%;background:none;border:1.5px solid #1e3d73;border-radius:9px;
  padding:8px;font-size:12.5px;font-weight:700;color:#1e3d73;cursor:pointer;
  font-family:inherit;transition:all .15s;margin-top:6px;
}
.pf-contact-btn:hover{background:#f4f7fb}
.pf-price-basis{font-size:11px;color:#6b7a8d;font-weight:600;margin-bottom:6px}
.pf-tiers{display:flex;flex-direction:column;gap:4px}
.pf-tier-row{display:flex;justify-content:space-between;align-items:center;font-size:12px}
.pf-tier-label{color:#6b7a8d}
.pf-tier-price{font-weight:800;color:#1e3d73}
.pf-tier-hint{font-size:10px;color:#b0bad0;margin-top:5px}

/* Addons */
.pa-section{border-top:2px solid #eef1f5;padding-top:12px;margin-top:4px}
.pa-title{font-size:14px;font-weight:800;color:#1e3d73;margin-bottom:2px}
.pa-sub{font-size:12px;color:#6b7a8d;margin-bottom:8px}
.pa-grid{display:flex;flex-direction:column;gap:10px}
.pa-extras-grid{display:flex;flex-direction:column;gap:6px}
.pa-extra-row{display:flex;align-items:center;gap:14px;background:#fff;border-radius:12px;border:1.5px solid #eef1f5;padding:8px 14px}
.pa-extra-info{width:200px;flex-shrink:0}
.pa-extra-label{font-size:13px;font-weight:700;color:#1e3d73}
.pa-extra-sub{font-size:11px;color:#9ba8bb;margin-top:1px}
.pa-extra-logos{display:flex;gap:8px;flex:1;flex-wrap:wrap;align-items:center}
.pa-extra-prices{display:flex;flex-direction:row;align-items:baseline;gap:8px;margin-top:5px;flex-wrap:wrap}
.pa-extra-price-mo{font-size:14px;font-weight:800;color:#1e3d73}
.pa-extra-per{font-size:11px;font-weight:600;color:#9ba8bb;margin-left:1px}
.pa-extra-price-an{font-size:11px;color:#3a8c68;font-weight:600}
.pa-book-btn{flex-shrink:0;background:none;border:1.5px solid #1e3d73;border-radius:9px;padding:7px 14px;font-size:12px;font-weight:700;color:#1e3d73;cursor:pointer;font-family:inherit;transition:all .15s;white-space:nowrap}
.pa-book-btn:hover{background:#f4f7fb}
.pa-card{
  background:#fff;border-radius:14px;border:1.5px solid #eef1f5;
  padding:14px 18px;display:flex;align-items:center;gap:14px;
}
/* Pricing: reserved price label */
.pf-price-anfrage{font-size:12px;color:#94a3b8;font-weight:500;margin-top:4px}

/* Fachmodul flip cards */
.pa-flip-card{perspective:700px;width:200px;height:160px;cursor:pointer;flex-shrink:0}
.pa-flip-inner{position:relative;width:100%;height:100%;transition:transform .4s;transform-style:preserve-3d}
.pa-flip-card.flipped .pa-flip-inner{transform:rotateY(180deg)}
.pa-flip-front,.pa-flip-back{position:absolute;width:100%;height:100%;backface-visibility:hidden;border-radius:12px;border:1px solid #eef1f5;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px;box-sizing:border-box}
.pa-flip-back{transform:rotateY(180deg);background:#1e3d73;border-color:#1e3d73;color:#e2e8f0;text-align:center}

.pa-logo-pill{background:#fff;border-radius:13px;border:1px solid #eef1f5;padding:7px 16px;flex-shrink:0}
.pa-logo-btn{display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;font-family:inherit;transition:border-color .15s,box-shadow .15s;padding:8px 16px}
.pa-logo-btn:hover{border-color:#1e3d73;box-shadow:0 2px 8px rgba(30,61,115,.12)}
.pa-logo-btn-label{font-size:9.5px;font-weight:700;color:#1e3d73;letter-spacing:.02em;opacity:0;transition:opacity .15s}
.pa-logo-btn:hover .pa-logo-btn-label{opacity:1}
.pa-logo{height:43px;object-fit:contain}
.pa-time-badge{display:inline-block;background:#d97706;color:#fff;font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;border-radius:6px;padding:2px 7px;margin-bottom:4px}
.pa-einzel-row{width:fit-content;min-width:0}
.pa-einzel-row .pa-extra-logos{flex:0 0 auto}
.pa-einzel-sep{display:none}
.pa-time-card{display:flex;align-items:center;gap:18px;background:#fff;border:1.5px solid #e3ebf6;border-radius:14px;padding:12px 16px;box-shadow:0 6px 18px rgba(30,61,115,.06)}
.pa-time-info{flex-shrink:0;width:185px}
.pa-time-features{flex-shrink:0;padding-left:10px}
.pa-time-features ul{margin:0;padding:0 0 0 14px;display:flex;flex-direction:column;gap:0}
.pa-time-features li{font-size:10.5px;color:#4a5a72;line-height:1.65}
.pa-time-logo{height:44px;object-fit:contain;filter:brightness(1.03);mix-blend-mode:multiply;flex-shrink:0;margin-left:18px}
.pa-time-cs-btn{cursor:default;margin-left:10px}
.pa-time-cs-btn .pa-logo-btn-label{opacity:1;color:#d97706}
.pa-book-btn{flex-shrink:0;background:none;border:1.5px solid #1e3d73;border-radius:9px;padding:7px 14px;font-size:12px;font-weight:700;color:#1e3d73;cursor:pointer;font-family:inherit;transition:all .15s;white-space:nowrap}
.pa-book-btn:hover{background:#f4f7fb}
.pa-info{flex:1}
.pa-name{font-size:13px;font-weight:800;color:#1e3d73}
.pa-modsub{font-size:11.5px;color:#6b7a8d;margin-top:1px}
.pa-price{font-size:13px;font-weight:800;color:#1e3d73;white-space:nowrap}

/* ── Vault ───────────────────────────────────────────────────────────────── */
.vault-empty{text-align:center;padding:60px 20px;background:#fff;border-radius:18px;border:2px dashed #dde3ec}
.ve-title{font-weight:800;color:#1e3d73;font-size:16px;margin-bottom:8px}
.ve-sub{font-size:13.5px;color:#6b7a8d;line-height:1.6;max-width:380px;margin:0 auto}
.vault-list{display:flex;flex-direction:column;gap:12px}
.vault-card{background:#fff;border-radius:14px;border:1.5px solid #eef1f5;padding:16px 18px;transition:box-shadow .2s,border-color .2s}
.vault-card:hover{border-color:#c8d4ea;box-shadow:0 4px 16px rgba(30,61,115,.08)}
.vc-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}
.vc-mod{font-size:11.5px;font-weight:700;color:#1e3d73}
.vc-date{font-size:11px;color:#9ba8bb}
.vc-title{font-size:13.5px;font-weight:700;color:#1e293b;margin-bottom:6px}
.vc-summary{font-size:12px;color:#6b7a8d;line-height:1.6;margin-bottom:10px;max-height:56px;overflow:hidden}
.vc-btns{display:flex;gap:8px;margin-top:10px}
.vc-btn{background:none;border:1.5px solid #dde3ec;border-radius:8px;padding:5px 13px;font-size:12px;cursor:pointer;font-family:inherit;color:#4b5a6e;transition:all .15s}
.vc-btn:hover{border-color:#1e3d73;color:#1e3d73;background:#f4f7fb}
.vc-del:hover{border-color:#c0392b !important;color:#c0392b !important;background:#fdf0ef !important}

/* ── User Picker ─────────────────────────────────────────────────────────── */
.up-user-btn{
  width:100%;background:#f8fafc;border:1.5px solid #dde3ec;border-radius:13px;
  padding:14px 16px;margin-bottom:10px;display:flex;align-items:center;gap:14px;
  cursor:pointer;font-family:inherit;text-align:left;transition:all .15s;
}
.up-user-btn:hover{border-color:#1e3d73;background:#f0f4fb;box-shadow:0 2px 12px rgba(30,61,115,.1)}
.up-av{
  width:42px;height:42px;border-radius:50%;flex-shrink:0;
  background:linear-gradient(135deg,#1e3d73,#3a8c68);
  color:#fff;font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center;
}
.up-info{flex:1;min-width:0}
.up-name{font-size:14px;font-weight:700;color:#1e293b}
.up-role{font-size:11.5px;color:#9ba8bb;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.up-arrow{color:#c8d0dc;flex-shrink:0;transition:color .15s}
.up-user-btn:hover .up-arrow{color:#1e3d73}

/* ── Login-Seite ─────────────────────────────────────────────────────────── */
#login-screen{position:fixed;inset:0;background:linear-gradient(135deg,#0d2347 0%,#1e3d73 60%,#1a5c4a 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:10000}
#login-screen.ls-hidden{display:none}
.ls-card{background:#fff;border-radius:20px;padding:40px 36px;width:90%;max-width:400px;box-shadow:0 32px 80px rgba(0,0,0,.45);animation:fadeUp .3s ease}
.ls-logo{height:64px;display:block;margin:0 auto 22px;object-fit:contain;mix-blend-mode:multiply}
.ls-title{font-size:22px;font-weight:800;color:#1e3d73;text-align:center;margin-bottom:4px}
.ls-sub{font-size:12px;color:#64748b;text-align:center;margin-bottom:28px}
.ls-form{display:flex;flex-direction:column;gap:16px;margin-bottom:20px}
.ls-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#475569}
.ls-footer{color:rgba(255,255,255,.35);font-size:11px;margin-top:24px;text-align:center}

/* ── Modals ──────────────────────────────────────────────────────────────── */
.modal-overlay{position:fixed;inset:0;background:rgba(10,20,45,.78);display:flex;align-items:center;justify-content:center;z-index:9999;backdrop-filter:blur(8px)}
.modal-box{background:#fff;border-radius:20px;padding:34px 30px;width:90%;max-width:480px;box-shadow:0 28px 80px rgba(0,0,0,.3);animation:fadeUp .25s ease;position:relative}
.modal-box.wide{max-width:660px}
.modal-close-btn{position:absolute;top:14px;right:16px;background:none;border:none;cursor:pointer;color:#9ba8bb;font-size:22px;line-height:1;padding:4px;transition:color .15s}
.modal-close-btn:hover{color:#1e3d73}
.modal-kicker{font-size:10.5px;font-weight:700;color:#9ba8bb;letter-spacing:.1em;text-transform:uppercase;margin-bottom:7px}
.modal-title{font-size:20px;font-weight:800;color:#1e3d73;margin-bottom:12px}
.modal-body{font-size:13.5px;color:#4b5a6e;line-height:1.7;margin-bottom:22px}
.modal-error{font-size:12px;color:#c0392b;margin-bottom:10px;display:none}
.inp-label{font-size:12.5px;font-weight:700;color:#4b5a6e;margin-bottom:5px;display:block}
.text-inp{width:100%;padding:11px 14px;border:1.5px solid #dde3ec;border-radius:10px;font-size:13.5px;font-family:inherit;color:#1a2740;background:#f8fafc;outline:none;transition:border-color .15s}
.text-inp:focus{border-color:#3a8c68}
.btn-navy{padding:12px 24px;border-radius:11px;border:none;background:#1e3d73;color:#fff;font-size:14px;font-weight:700;cursor:pointer;font-family:inherit;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;transition:background .15s}
.btn-navy:hover{background:#2a4f8f}
.btn-primary{padding:12px 24px;border-radius:11px;border:none;background:#3a8c68;color:#fff;font-size:14px;font-weight:700;cursor:pointer;font-family:inherit;display:inline-flex;align-items:center;gap:8px;transition:all .15s;box-shadow:0 4px 14px rgba(58,140,104,.3)}
.btn-primary:hover{background:#2d7055;transform:translateY(-1px)}
.btn-ghost{padding:11px 22px;border-radius:11px;border:1.5px solid #dde3ec;background:#fff;color:#6b7a8d;font-size:13.5px;font-weight:600;cursor:pointer;font-family:inherit;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:10px;transition:all .15s}
.btn-ghost:hover{border-color:#1e3d73;color:#1e3d73}
.result-ta{width:100%;min-height:300px;border:1.5px solid #dde3ec;border-radius:12px;padding:16px;font-size:13px;font-family:'Courier New',monospace;resize:vertical;outline:none;line-height:1.75;color:#1e293b;background:#f8fafc}
.result-ta:focus{border-color:#3a8c68}

/* Lock Modal extras */
.lock-logo-row{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.lock-name{font-size:17px;font-weight:800;color:#1e3d73}
.lock-sub{font-size:12.5px;color:#6b7a8d;margin-top:2px}

/* ── Vault Modal meta ────────────────────────────────────────────────────── */
.vm-meta{display:flex;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.vm-meta span{font-size:12px;font-weight:600;color:#6b7a8d}
.vm-meta strong{color:#1e3d73}

/* ── Footer ──────────────────────────────────────────────────────────────── */
#app-footer{background:#fff;border-top:1px solid #dde3ec;padding:7px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;font-size:11.5px;color:#9ba8bb}
.footer-copy{font-size:11.5px;color:#9ba8bb;font-weight:500}
.footer-copy strong{color:#6b7a8d}
.footer-version{font-size:11px;color:#c8d0dc}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media(max-width:1200px){
  .mod-grid{grid-template-columns:repeat(4,1fr)}
  .mod-card{height:192px}
  .desk-surface{grid-template-columns:1fr 1fr}
  .desk-fristen,.desk-sticky{grid-column:auto}
  .profile-grid{grid-template-columns:1fr}
  .gremium-grid{grid-template-columns:1fr}
}
/* Tablet: Sidebar als Overlay – Desktop bleibt unberührt */
@media(max-width:1024px){
  #sidebar{position:fixed;top:0;left:0;bottom:0;z-index:100}
  body:not(.sidebar-collapsed)::after{content:'';position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:99;cursor:pointer}
  .nav-item{padding:10px 14px}
  .mc-open-btn,.sidebar-btn{padding:10px 18px}
}
@media(max-width:860px){
  #main-content{padding:16px 14px}
  .mod-grid{grid-template-columns:repeat(3,1fr)}
  .mod-card{height:186px}
  .dash-main .mod-grid{grid-template-columns:repeat(3,1fr)}
  .desk-topbar{flex-direction:column}
  .desk-status-card{min-width:0;width:100%}
  .desk-surface{grid-template-columns:1fr;padding:16px}
  .profile-form-grid{grid-template-columns:1fr}
  .committee-row{grid-template-columns:1fr}
  .profile-head{flex-direction:column}
  .profile-head-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .gremium-row{grid-template-columns:1fr}
  .desk-calendar,.desk-tasks,.desk-fristen,.desk-recent,.desk-sticky{grid-column:auto}
}
@media(max-width:600px){
  .mod-grid{grid-template-columns:repeat(2,1fr)}
  .mod-card{height:178px}
  .dash-main .mod-grid{grid-template-columns:repeat(2,1fr)}
  .desk-recent-grid{grid-template-columns:1fr}
  .desk-writing-board{min-height:176px}
  .desk-writing-note{min-height:152px}
}
