/* Portal-Layout: Apps links, News mittig, Konto/Stempeln oben rechts */

/* Eine Spalte: Markenleiste oben, Inhalt darunter.
   Alle Anwendungen liegen im Apps-Launcher. */
.layout {
  display: grid;
  grid-template-rows: var(--header-h) 1fr;
  min-height: 100vh;
}

/* ---------- Kopfzeile ---------- */
/* Markenleiste wie auf der Website (S. 58): VAMED Blue, Logo links */
.header {
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  background: var(--vamed-blue);
  border-bottom: 3px solid var(--wwh-blue);
  position: sticky; top: 0; z-index: 40;
}
.header__logo { flex: 0 0 auto; }
.header__logo img { height: 72px; width: auto; display: block; }
.header__search { flex: 1; max-width: 460px; position: relative; }
.header__search input {
  padding-left: 36px;
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.header__search input::placeholder { color: rgba(255,255,255,.6); }
.header__search input:focus {
  background: rgba(255,255,255,.16); border-color: var(--wwh-blue);
  box-shadow: 0 0 0 3px rgba(42,155,212,.25);
}
.header__search svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.7);
}
.header__spacer { flex: 1; }
.header__actions { display: flex; align-items: center; gap: 8px; }

.iconbtn {
  width: 38px; height: 38px;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent; color: #fff;
  display: grid; place-items: center; cursor: pointer;
  position: relative;
}
.iconbtn:hover { background: rgba(255,255,255,.12); }
.iconbtn:focus-visible { outline: 2px solid var(--wwh-blue); outline-offset: 2px; }
.iconbtn__dot {
  position: absolute; top: 7px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--deep-orange);
}

/* Stempel-Chip */
.clockchip {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 0;
  padding: 5px 7px 5px 12px;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  font-family: var(--font);
  color: #fff;
}
.clockchip:hover { background: rgba(255,255,255,.16); border-color: var(--wwh-blue); }
.clockchip:focus-visible { outline: 2px solid var(--wwh-blue); outline-offset: 2px; }
.clockchip__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--dark-grey); flex: 0 0 9px;
}
.clockchip[data-state="running"] .clockchip__dot { background: #19a974; animation: pulse 2s infinite; }
.clockchip[data-state="paused"] .clockchip__dot { background: var(--pillar-connection); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.clockchip__time {
  font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: 14px; color: #fff;
}
.clockchip__label { font-size: 11px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .06em; }
.clockchip__text { display: flex; flex-direction: column; line-height: 1.25; align-items: flex-start; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--fusion-blue); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  flex: 0 0 36px;
}
.avatar--lg { width: 48px; height: 48px; flex-basis: 48px; font-size: 16px; }

/* ---------- Menüs ---------- */
.menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 60;
}
.menu[hidden] { display: none; }
.menu__head { display: flex; gap: 12px; align-items: center; padding: 10px; }
.menu__name { font-weight: 700; font-size: 14px; }
.menu__sep { height: 1px; background: var(--border); margin: 6px 4px; }
.menu__item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 10px; border: 0; background: transparent;
  border-radius: var(--radius);
  font-family: var(--font); font-size: 14px; color: var(--text);
  cursor: pointer; text-decoration: none;
}
.menu__item:hover { background: var(--light-grey); }
.menu__item--danger { color: var(--deep-orange); }
.menu-anchor { position: relative; }

/* Stempel-Menü */
.clockmenu { width: 340px; padding: 16px; }
.clockmenu__big {
  font-size: 34px; font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--vamed-blue); line-height: 1;
}
.clockmenu__state { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.clockmenu__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin: 16px 0 12px;
}
.clockmenu__stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; border-top: 1px solid var(--border); padding-top: 12px;
}
.stat__label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.stat__value { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--vamed-blue); }

/* ---------- Seitenleiste ---------- */

/* ---------- Hauptbereich ---------- */
.main {
  padding: 28px 24px 64px;
  max-width: 1020px;   /* Zeilenlänge im News-Feed begrenzen */
  margin: 0 auto;
  width: 100%;
}
.center { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.hero {
  background: linear-gradient(118deg, var(--vamed-blue) 0%, #22264f 55%, var(--fusion-blue) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: "+";
  position: absolute; right: 18px; top: -36px;
  font-size: 190px; font-weight: 700; line-height: 1;
  color: rgba(255,255,255,.07);
}
.hero h1 { font-size: 30px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.hero p { margin: 10px 0 0; max-width: 56ch; color: rgba(255,255,255,.82); font-size: 14.5px; line-height: 1.55; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card__head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.card__head .h2 { flex: 1; }
.card__body { padding: 18px; }

/* News-Filter */
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
/* Filter wie die Reiter auf der Website (S. 58): rechteckig, Versalien */
.chip {
  border: 1px solid var(--dark-grey); background: var(--surface);
  border-radius: 0; padding: 6px 13px;
  font-family: var(--font); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--fusion-blue);
  cursor: pointer;
}
.chip:hover { border-color: var(--accent-soft); }
.chip[aria-pressed="true"] {
  background: var(--vamed-blue); border-color: var(--vamed-blue); color: #fff;
}

/* News-Liste */
.newslist { display: flex; flex-direction: column; gap: 14px; }
.news {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--pillar-awareness);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
}
.news[data-pillar="credibility"] { border-left-color: var(--pillar-credibility); }
.news[data-pillar="awareness"]   { border-left-color: var(--pillar-awareness); }
.news[data-pillar="talent"]      { border-left-color: var(--pillar-talent); }
.news[data-pillar="connection"]  { border-left-color: var(--pillar-connection); }
.news__top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.news__pillar {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: #fff; background: var(--pillar-awareness);
  padding: 3px 8px; border-radius: 0;
}
.news[data-pillar="credibility"] .news__pillar { background: var(--pillar-credibility); }
.news[data-pillar="talent"]      .news__pillar { background: var(--pillar-talent); }
.news[data-pillar="connection"]  .news__pillar { background: var(--pillar-connection); color: #2e1d00; }
.news__pin { color: var(--deep-orange); }
.news h3 {
  font-size: 17px; font-weight: 700; line-height: 1.3;
  color: var(--vamed-blue);
  text-transform: uppercase; letter-spacing: .01em;
}
.news__teaser { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.news__body { margin: 10px 0 0; font-size: 14px; line-height: 1.65; color: var(--text-muted); }
.news__more {
  margin-top: 10px; border: 0; background: transparent; padding: 0;
  color: var(--wwh-blue); font-family: var(--font); font-size: 13.5px; font-weight: 500;
  cursor: pointer;
}
.news__img { width: 100%; border-radius: var(--radius); margin-top: 12px; display: block; }

/* Rail-Elemente */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick__tile {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 13px;
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: var(--text);
  font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: var(--font); text-align: left;
}
.quick__tile:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-sm); }
.quick__ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; }

.list { display: flex; flex-direction: column; }
.list__row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.list__row:last-child { border-bottom: 0; }
.list__row .meta { margin-left: auto; white-space: nowrap; }

.empty { padding: 28px; text-align: center; color: var(--text-muted); font-size: 14px; }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--vamed-blue); color: #fff;
  padding: 11px 18px; border-radius: 0;
  font-size: 14px; box-shadow: var(--shadow-lg);
  z-index: 90;
}
.toast[hidden] { display: none; }
.toast--error { background: var(--deep-orange); }

/* ---------- Login ---------- */
.login {
  min-height: 100vh;
  display: grid; grid-template-columns: 1.1fr 1fr;
}
.login__brand {
  background: linear-gradient(145deg, var(--vamed-blue) 0%, #1e2250 50%, var(--fusion-blue) 100%);
  color: #fff; padding: 44px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.login__brand::after {
  content: "+"; position: absolute; right: -40px; bottom: -120px;
  font-size: 420px; font-weight: 700; line-height: 1; color: rgba(255,255,255,.06);
}
.login__claim { max-width: 22ch; font-size: 40px; font-weight: 900; text-transform: uppercase; line-height: 1.08; }
.login__sub { margin-top: 16px; max-width: 46ch; color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.6; }
.login__form { display: grid; place-items: center; padding: 40px; }
.login__box { width: 100%; max-width: 368px; }
.login__box .h1 { font-size: 24px; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.login__error {
  background: #fdeae3; color: #a8330c;
  border-radius: var(--radius); padding: 10px 12px;
  font-size: 13.5px; margin-bottom: 14px;
}
.login__error[hidden] { display: none; }
.login__foot { margin-top: 18px; font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Apps-Button ---------- */
.appsbtn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 11px 16px;
  border: 1px solid var(--wwh-blue); border-radius: 0;
  background: var(--wwh-blue); color: #fff;
  cursor: pointer;
}
.appsbtn:hover { background: #1f8cc4; border-color: #1f8cc4; }
.appsbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.appsbtn[aria-expanded="true"] {
  background: #fff; border-color: #fff; color: var(--vamed-blue);
}

/* ---------- App-Launcher ---------- */
.launcher {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(24, 24, 66, .5);
  display: flex; justify-content: center;
  padding: 96px 20px 20px;
}
.launcher[hidden] { display: none; }

.launcher__panel {
  width: 100%; max-width: 940px;
  max-height: 100%;
  background: var(--surface);
  border-radius: 0;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: launcherIn .16s ease-out;
}
@keyframes launcherIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.launcher__head {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.launcher__head .iconbtn { color: var(--vamed-blue); }
.launcher__head .iconbtn:hover { background: var(--light-grey); }
.launcher__search { flex: 1; max-width: 320px; margin-left: auto; position: relative; }
.launcher__search input {
  padding-left: 36px; background: var(--light-grey); border-color: var(--dark-grey);
}
.launcher__search svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted);
}

.launcher__body { padding: 20px; overflow-y: auto; }
.launcher__group + .launcher__group { margin-top: 24px; }
.launcher__group-title {
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted); margin-bottom: 12px;
}

.launchgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.launchtile {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px;
  border: 1px solid var(--dark-grey); border-radius: 0;
  background: var(--surface); color: var(--text);
  text-decoration: none; text-align: left;
  font-family: var(--font);
  transition: border-color .15s, box-shadow .15s, transform .08s;
}
.launchtile:hover { border-color: var(--wwh-blue); box-shadow: var(--shadow); }
.launchtile:active { transform: translateY(1px); }
.launchtile:focus-visible { outline: 2px solid var(--wwh-blue); outline-offset: 2px; }
.launchtile--soon { opacity: .55; pointer-events: none; }

.launchtile__ico {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 0; display: grid; place-items: center;
  color: #fff;
}
.launchtile__ico svg { width: 19px; height: 19px; }
.launchtile__main { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.launchtile__name {
  font-size: 13px; font-weight: 700; color: var(--vamed-blue);
  text-transform: uppercase; letter-spacing: .03em;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding-right: 20px;   /* Platz für den Favoriten-Stern */
}
.launchtile__desc {
  margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-muted);
}
.launchtile__star {
  position: absolute; top: 8px; right: 8px;
  border: 0; background: transparent; padding: 3px;
  color: var(--dark-grey); cursor: pointer;
  opacity: 0; display: grid; place-items: center;
  pointer-events: auto;
}
.launchtile:hover .launchtile__star,
.launchtile__star[data-on="1"] { opacity: 1; }
.launchtile__star[data-on="1"] { color: var(--pillar-connection); }

/* ---------- Unterseiten ---------- */
.main--wide { max-width: 1200px; }

.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-muted);
  margin-bottom: 14px;
}
.crumbs a { color: var(--fusion-blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.pagehead {
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.pagehead > div:first-child { flex: 1; min-width: 240px; }
.pagehead__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Kennzahlen */
.statrow {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.statbox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--wwh-blue);
  padding: 14px 16px;
}
.stat__value--lg { font-size: 24px; }

/* Tabelle */
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
/* Spaltenköpfe laut Excel-Vorlage (S. 49): WWH Blue, weisse Fettschrift */
.table thead th {
  background: var(--wwh-blue); color: #fff;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  text-align: left; padding: 11px 14px; white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: #fafbfd; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table th.num { text-align: right; }
.table .day { font-weight: 500; white-space: nowrap; }
.table .day small { display: block; font-weight: 400; color: var(--text-muted); font-size: 11.5px; }
.table tr[data-weekend="1"] td { background: #fbfbfd; }
.table tr[data-open="1"] td { background: #eef8fd; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.linkbtn {
  border: 0; background: transparent; padding: 4px 6px;
  font-family: var(--font); font-size: 13px; font-weight: 500;
  color: var(--wwh-blue); cursor: pointer;
}
.linkbtn:hover { text-decoration: underline; }
.table tfoot td {
  padding: 12px 14px; font-weight: 700;
  background: var(--light-grey); color: var(--vamed-blue);
  border-top: 2px solid var(--vamed-blue);
}

/* Dialog */
.modal {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(24,24,66,.5);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 72px 16px 16px;
}
.modal[hidden] { display: none; }
.modal__panel {
  width: 100%; max-width: 480px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  max-height: 100%;
  animation: launcherIn .16s ease-out;
}
.modal__head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal__head .h2 { flex: 1; }
.modal__head .iconbtn { color: var(--vamed-blue); }
.modal__head .iconbtn:hover { background: var(--light-grey); }
.modal__body { padding: 20px; overflow-y: auto; }
.modal__foot {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 14px 20px; border-top: 1px solid var(--border);
  background: var(--light-grey);
}
.modal__foot #editDelete { margin-right: auto; }

.formgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.formerror {
  background: #fdeae3; color: #a8330c;
  padding: 10px 12px; font-size: 13.5px; margin-bottom: 14px;
}
.formerror[hidden] { display: none; }

.corr { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.corr:last-child { border-bottom: 0; }
.corr__tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 7px; color: #fff; background: var(--fusion-blue); white-space: nowrap;
}
.corr__tag--create { background: var(--pillar-awareness); }
.corr__tag--delete { background: var(--deep-orange); }
.corr__main { flex: 1; min-width: 0; font-size: 13.5px; }
.corr__when { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

@media (max-width: 720px) {
  .formgrid { grid-template-columns: 1fr; }
  .pagehead__actions { width: 100%; }
  .modal { padding: 16px; }
}

/* ---------- IT-Verwaltung ---------- */
.adminTiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.admintile {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; background: var(--surface);
  border: 1px solid var(--dark-grey); text-decoration: none; color: var(--text);
}
.admintile:hover { border-color: var(--wwh-blue); box-shadow: var(--shadow); }
.admintile__ico { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; color: #fff; }
.admintile__name {
  display: block; font-weight: 700; font-size: 14px; color: var(--vamed-blue);
  text-transform: uppercase; letter-spacing: .03em;
}
.admintile__desc { display: block; margin-top: 5px; font-size: 13px; color: var(--text-muted); line-height: 1.45; }

.rolechips { display: flex; flex-wrap: wrap; gap: 8px; }
.rolechip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--dark-grey); background: var(--surface);
}
.rolechip__dot { width: 9px; height: 9px; flex: 0 0 9px; }

.formgrid--2 { grid-template-columns: 1fr 1fr; }
.modal__panel--wide { max-width: 620px; }

/* Rollenauswahl im Nutzerformular */
.rolepick { border: 0; padding: 0; margin: 18px 0 0; }
.rolepick__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rolepick__item {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 10px; border: 1px solid var(--dark-grey); cursor: pointer;
  font-size: 13px;
}
.rolepick__item:hover { border-color: var(--wwh-blue); }
.rolepick__item input { width: auto; margin: 2px 0 0; flex: 0 0 auto; }
.rolepick__item strong { display: block; font-weight: 500; color: var(--vamed-blue); }
.rolepick__item small { color: var(--text-muted); }
.rolepick__item[data-locked="1"] { opacity: .6; cursor: not-allowed; background: var(--light-grey); }

/* Rollen-Editor */
.rolelayout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; }
.rolelist { position: sticky; top: calc(var(--header-h) + 16px); }
.roleitem {
  display: flex; gap: 10px; align-items: flex-start; width: 100%;
  padding: 11px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font); text-align: left; border-left: 3px solid transparent;
}
.roleitem:hover { background: var(--light-grey); }
.roleitem[aria-current="true"] { background: var(--light-grey); border-left-color: var(--wwh-blue); }
.roleitem__dot { width: 11px; height: 11px; flex: 0 0 11px; margin-top: 3px; }
.roleitem__name { font-size: 13.5px; font-weight: 500; color: var(--vamed-blue); }
.roleitem__meta { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

.permhead {
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
  margin: 26px 0 14px; padding-top: 20px; border-top: 1px solid var(--border);
}
.permhead > div:first-child { flex: 1; min-width: 180px; }
.permhead__tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.permarea { border: 1px solid var(--border); margin-bottom: 12px; }
.permarea__head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--light-grey);
  border-bottom: 1px solid var(--border);
}
.permarea__title {
  flex: 1; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--vamed-blue);
}
.permarea__count { font-size: 11.5px; color: var(--text-muted); }

.permrow {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
}
.permrow:last-child { border-bottom: 0; }
.permrow[hidden] { display: none; }
.permrow--off .permrow__label { color: var(--text-muted); }
.permrow__check { flex: 0 0 auto; display: flex; align-items: center; }
.permrow__check input { width: 18px; height: 18px; cursor: pointer; }
.permrow__main { flex: 1; min-width: 0; }
.permrow__label { font-size: 13.5px; font-weight: 500; color: var(--vamed-blue); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.permrow__desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.permrow__key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--text-muted); }
.permrow__scope { flex: 0 0 auto; }
.permrow__scope select { width: auto; min-width: 150px; font-size: 13px; padding: 7px 10px; }
.permrow__scope[hidden] { display: none; }
.permrow--locked { background: #fbfbfd; }
.permrow--locked .permrow__check input { cursor: not-allowed; }

.badge--crit { background: #fdeae3; color: #b93b11; }

.editorfoot {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
}

@media (max-width: 980px) {
  .rolelayout { grid-template-columns: 1fr; }
  .rolelist { position: static; }
  .rolepick__list { grid-template-columns: 1fr; }
  .formgrid--2 { grid-template-columns: 1fr; }
  .permrow { flex-wrap: wrap; }
  .permrow__scope select { min-width: 0; width: 100%; }
  .permrow__scope { flex: 1 0 100%; padding-left: 30px; }
}

/* ---------- Marketing ---------- */
.pillargrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.pillarbox {
  border: 1px solid var(--border); border-left: 4px solid var(--fusion-blue);
  padding: 12px 14px; background: var(--surface);
}
.pillarbox strong {
  display: block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--vamed-blue);
}
.pillarbox span { display: block; margin-top: 5px; font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }

/* Beitragsliste */
.postitem {
  display: flex; gap: 10px; align-items: flex-start; width: 100%;
  padding: 11px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font); text-align: left; border-left: 3px solid transparent;
}
.postitem:hover { background: var(--light-grey); }
.postitem[aria-current="true"] { background: var(--light-grey); border-left-color: var(--wwh-blue); }
.postitem__dot { width: 11px; height: 11px; flex: 0 0 11px; margin-top: 4px; }
.postitem__title {
  font-size: 13.5px; font-weight: 500; color: var(--vamed-blue);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.postitem__meta { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.badge--draft { background: #fff4e0; color: #8a5600; }
.badge--live  { background: #e4f6ee; color: #13704f; }

textarea { resize: vertical; min-height: 60px; line-height: 1.5; }

.previewbox {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
}
.previewbox .news { box-shadow: none; }

@media (max-width: 980px) {
  .previewbox { margin-top: 16px; }
}

/* ---------- Urlaub & Abwesenheit ---------- */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 2px solid var(--border); }
.tab {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font); font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); padding: 11px 16px;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab:hover { color: var(--vamed-blue); }
.tab[aria-selected="true"] { color: var(--vamed-blue); border-bottom-color: var(--wwh-blue); }
.tab__count {
  background: var(--deep-orange); color: #fff;
  font-size: 10.5px; padding: 2px 6px; min-width: 18px; text-align: center;
}

.abstype { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.abstype__dot { width: 11px; height: 11px; flex: 0 0 11px; }

.badge--requested { background: #fff4e0; color: #8a5600; }
.badge--approved  { background: #e4f6ee; color: #13704f; }
.badge--rejected  { background: #fdeae3; color: #b93b11; }
.badge--cancelled { background: var(--light-grey); color: var(--text-muted); }

/* Rechenbox im Antrag */
.calcbox {
  margin-top: 18px; padding: 14px 16px;
  background: var(--light-grey); border-left: 4px solid var(--wwh-blue);
}
.calcbox--warn { border-left-color: var(--deep-orange); background: #fdeae3; }
.calcbox__days { font-size: 20px; font-weight: 700; color: var(--vamed-blue); }
.calcbox__days span { font-variant-numeric: tabular-nums; }

/* Offene Anträge */
.approval {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.approval:last-child { border-bottom: 0; }
.approval__main { flex: 1; min-width: 220px; }
.approval__who { font-weight: 500; color: var(--vamed-blue); font-size: 14px; }
.approval__when { font-size: 13px; margin-top: 3px; }
.approval__note { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }
.approval__actions { display: flex; gap: 8px; align-items: center; }

/* Teamkalender */
.calgrid { border-collapse: collapse; width: 100%; font-size: 12px; }
.calgrid th, .calgrid td { border: 1px solid var(--border); padding: 0; }
.calgrid thead th {
  background: var(--wwh-blue); color: #fff; font-weight: 700;
  font-size: 10px; text-transform: uppercase; letter-spacing: .04em;
  width: 26px; text-align: center; padding: 6px 0;
}
.calgrid thead th.calname {
  width: auto; min-width: 170px; text-align: left; padding: 6px 12px;
}
.calgrid thead th[data-off="1"] { background: var(--fusion-blue); }
.calgrid td.calname {
  padding: 8px 12px; white-space: nowrap;
  font-weight: 500; color: var(--vamed-blue); background: var(--surface);
  position: sticky; left: 0; z-index: 1;
}
.calgrid td.calname small { display: block; font-weight: 400; color: var(--text-muted); font-size: 11px; }
.calgrid td.calday { height: 30px; text-align: center; }
.calgrid td.calday[data-off="1"] { background: var(--light-grey); }
.calcell { display: block; width: 100%; height: 22px; }
.callegend { display: flex; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--border); }
.callegend__item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-muted); }
.callegend__dot { width: 12px; height: 12px; }

@media (max-width: 720px) {
  .tab { padding: 10px 11px; font-size: 11.5px; }
  .approval__actions { width: 100%; }
}

/* ---------- Mein Profil ---------- */
.profilehead { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.profilehead__main { flex: 1; min-width: 220px; }
.avatar--xl {
  width: 84px; height: 84px; flex-basis: 84px;
  font-size: 28px; border-radius: 50%;
}

.profilegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.profilegrid__wide { grid-column: 1 / -1; }

.datalist { margin: 0; display: grid; gap: 0; }
.datalist > div {
  display: flex; gap: 16px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.datalist > div:last-child { border-bottom: 0; }
.datalist dt {
  flex: 0 0 160px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted);
  padding-top: 2px;
}
.datalist dd { margin: 0; flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }

.formok {
  background: #e4f6ee; color: #13704f;
  padding: 10px 12px; font-size: 13.5px; margin-bottom: 14px;
}
.formok[hidden] { display: none; }

/* Passwortstärke */
.pwmeter { height: 4px; background: var(--dark-grey); margin-top: 8px; }
.pwmeter span {
  display: block; height: 100%; width: 0;
  background: var(--deep-orange); transition: width .2s, background .2s;
}
.pwmeter span[data-level="2"] { background: var(--pillar-connection); }
.pwmeter span[data-level="3"] { background: var(--wwh-blue); }
.pwmeter span[data-level="4"] { background: #19a974; }

/* Rechte nach Bereich */
.permgroup { margin-bottom: 16px; }
.permgroup:last-child { margin-bottom: 0; }
.permgroup__title {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted); margin-bottom: 8px;
}
.permchips { display: flex; flex-wrap: wrap; gap: 7px; }
.permchip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--dark-grey); padding: 5px 10px;
  font-size: 12.5px; background: var(--surface);
}
.permchip__scope {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--light-grey); color: var(--text-muted); padding: 2px 6px;
}
.permchip__scope[data-scope="all"]        { background: var(--vamed-blue); color: #fff; }
.permchip__scope[data-scope="entity"]     { background: var(--fusion-blue); color: #fff; }
.permchip__scope[data-scope="department"] { background: var(--accent-soft); color: var(--vamed-blue); }

.sessionrow--current td { background: #eef8fd; }

@media (max-width: 900px) {
  .profilegrid { grid-template-columns: 1fr; }
  .datalist dt { flex-basis: 120px; }
}

/* ---------- Dokumente (Ablage) ---------- */

/* Zwei Spalten: links die Ablagen, rechts der Inhalt. */
.docs {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.docnav { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.docnav__group { padding: 14px 0 6px; }
.docnav__title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted);
  padding: 0 16px 8px;
}
.docnav__item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 16px; border: 0; background: none;
  font: inherit; font-size: 14px; color: var(--text);
  text-align: left; cursor: pointer;
  border-left: 3px solid transparent;
}
.docnav__item:hover { background: var(--light-grey); }
.docnav__item[aria-current="true"] {
  background: var(--light-grey); font-weight: 700;
  border-left-color: var(--wwh-blue);
}
.docnav__item svg { flex: 0 0 auto; color: var(--text-muted); }
.docnav__item[aria-current="true"] svg { color: var(--wwh-blue); }
.docnav__dot { width: 10px; height: 10px; flex: 0 0 auto; background: var(--fusion-blue); }
.docnav__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docnav__count { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.docnav__sep { height: 1px; background: var(--border); margin: 8px 0; }

/* Werkzeugleiste über der Liste */
.doctools {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--border); border-bottom: 0;
}
.doctools__search { position: relative; margin-left: auto; min-width: 220px; }
.doctools__search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.doctools__search input { padding-left: 32px; }
.doctools__note { font-size: 12px; color: var(--text-muted); }

/* Ablagefläche für Drag & Drop */
.dropzone { position: relative; }
.dropzone--over::after {
  content: 'Zum Hochladen hier ablegen';
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(42, 155, 212, .1);
  border: 2px dashed var(--wwh-blue);
  font-weight: 700; color: var(--vamed-blue);
  pointer-events: none;
}

/* Dateiliste */
.docrow__name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.docrow__link {
  color: var(--text); text-decoration: none; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.docrow__link:hover { text-decoration: underline; }
.docrow__sub { font-size: 12px; color: var(--text-muted); }
.docrow__star { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--dark-grey); line-height: 0; }
.docrow__star[aria-pressed="true"] { color: var(--pillar-connection); }
.docrow__lock { color: var(--deep-orange); }

/* Dateiart als farbiges Kürzel, statt eines Symbolzoos */
.docext {
  flex: 0 0 auto; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--fusion-blue); color: #fff;
  font-size: 9.5px; font-weight: 900; letter-spacing: .04em;
  text-transform: uppercase; overflow: hidden;
}
.docext--pdf   { background: #C8102E; }
.docext--word  { background: #185ABD; }
.docext--excel { background: #107C41; }
.docext--ppt   { background: #C43E1C; }
.docext--img   { background: var(--pillar-awareness); }
.docext--zip   { background: var(--text-muted); }
.docext--cad   { background: var(--accent-blue); }
.docext--media { background: var(--pillar-talent); }
.docext--folder { background: var(--vamed-blue); }

/* Freigabestand */
.docstatus { display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.docstatus--draft    { background: var(--light-grey); color: var(--text-muted); }
.docstatus--review   { background: #FFF2DB; color: #8A5300; }
.docstatus--approved { background: #E3F5EA; color: #0F6B3C; }
.docstatus--archived { background: var(--dark-grey); color: var(--text); }

/* Detailspalte rechts */
.docdetail { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; background: rgba(24, 24, 66, .34); }
.docdetail__panel {
  width: 100%; max-width: 460px; height: 100%; overflow-y: auto;
  background: var(--surface); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.docdetail__head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.docdetail__title { font-weight: 700; word-break: break-word; }
.docdetail__body { padding: 18px 20px; flex: 1 1 auto; }
.docdetail__foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; }
.docdetail__section { margin: 0 0 22px; }
.docdetail__section > .h2 { margin-bottom: 10px; }

.docfacts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.docfacts dt { color: var(--text-muted); }
.docfacts dd { margin: 0; }

/* Fassungen */
.verrow { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.verrow:last-child { border-bottom: 0; }
.verrow__no { flex: 0 0 auto; font-weight: 900; min-width: 34px; color: var(--vamed-blue); }
.verrow__main { flex: 1 1 auto; min-width: 0; }
.verrow__meta { color: var(--text-muted); font-size: 12px; }
.verrow--current .verrow__no { color: var(--wwh-blue); }

/* Protokoll */
.actrow { display: flex; gap: 10px; padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.actrow:last-child { border-bottom: 0; }
.actrow__when { flex: 0 0 96px; color: var(--text-muted); font-size: 12px; }

/* Ablagen-Übersicht als Kacheln */
.libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.libtile {
  display: block; text-align: left; padding: 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-top: 4px solid var(--fusion-blue);
  box-shadow: var(--shadow-sm); cursor: pointer; font: inherit;
  width: 100%;
}
.libtile:hover { box-shadow: var(--shadow); }
.libtile__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.libtile__name { font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; color: var(--vamed-blue); }
.libtile__desc { font-size: 13px; color: var(--text-muted); margin: 0 0 12px; min-height: 34px; }
.libtile__meta { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }

/* Zugriffsstufe */
.acc { display: inline-block; padding: 2px 7px; font-size: 11px; font-weight: 700; background: var(--light-grey); color: var(--text-muted); }
.acc--owner       { background: var(--vamed-blue); color: #fff; }
.acc--editor      { background: var(--wwh-blue); color: #fff; }
.acc--contributor { background: var(--accent-soft); color: var(--vamed-blue); }

/* Mitgliederliste */
.memrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.memrow:last-child { border-bottom: 0; }
.memrow__main { flex: 1 1 auto; min-width: 0; }
.memrow__name { font-weight: 500; }

/* Upload-Fortschritt */
.uprow { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 7px 0; }
.uprow__bar { flex: 1 1 auto; height: 6px; background: var(--light-grey); overflow: hidden; }
.uprow__fill { height: 100%; background: var(--wwh-blue); width: 0; transition: width .18s linear; }
.uprow--error { color: var(--deep-orange); }

@media (max-width: 1040px) {
  .docs { grid-template-columns: 1fr; }
  .docnav { order: 2; }
}
@media (max-width: 720px) {
  .doctools__search { margin-left: 0; flex: 1 0 100%; }
  .docdetail__panel { max-width: none; }
  /* Auf dem Telefon zählt der Name, die Nebenspalten können weg */
  .docs .table th:nth-child(3), .docs .table td:nth-child(3),
  .docs .table th:nth-child(4), .docs .table td:nth-child(4) { display: none; }
}

/* ---------- Atlas (Gesellschaften, Standorte, Struktur) ---------- */

.atlas { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 18px; align-items: start; }

/* Kennzahlen oben */
.atlasnums { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }

/* Länderliste */
.landrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.landrow:last-child { border-bottom: 0; }
.landrow__name { flex: 1 1 auto; font-weight: 500; }
.landrow__bar { flex: 0 0 120px; height: 8px; background: var(--light-grey); }
.landrow__fill { height: 100%; background: var(--wwh-blue); }
.landrow__num { flex: 0 0 56px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-muted); font-size: 13px; }

/* Organisationsbaum */
.tree { padding: 4px 0; }
.treerow {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 7px 16px; border: 0; background: none;
  font: inherit; font-size: 14px; color: var(--text); text-align: left; cursor: pointer;
  border-left: 3px solid transparent;
}
.treerow:hover { background: var(--light-grey); }
.treerow[aria-current="true"] { background: var(--light-grey); font-weight: 700; border-left-color: var(--wwh-blue); }
.treerow__twist {
  flex: 0 0 16px; width: 16px; height: 16px; line-height: 0; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
}
.treerow__twist svg { transition: transform .12s ease; }
.treerow[aria-expanded="true"] .treerow__twist svg { transform: rotate(90deg); }
.treerow__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.treerow__code {
  flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 1px 6px;
  background: var(--vamed-blue); color: #fff; letter-spacing: .03em;
}
.treerow__badge { flex: 0 0 auto; font-size: 11px; color: var(--text-muted); }
/* Die Einrückung macht die Ebene sichtbar, ohne eine zweite Spalte */
.treerow--d1 { padding-left: 34px; }
.treerow--d2 { padding-left: 52px; }
.treerow--d3 { padding-left: 70px; }
.treerow--d4 { padding-left: 88px; }

/* Gesellschaftskarte */
.entgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.entcard {
  display: block; width: 100%; text-align: left; padding: 15px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--fusion-blue); box-shadow: var(--shadow-sm);
  font: inherit; cursor: pointer;
}
.entcard:hover { box-shadow: var(--shadow); }
.entcard--branch { border-left-color: var(--accent-soft); }
.entcard__code { font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: .04em; }
.entcard__name { font-weight: 700; margin: 3px 0 6px; line-height: 1.3; }
.entcard__meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 10px; flex-wrap: wrap; }

/* Kennzeichen */
.flagchip { display: inline-block; padding: 1px 7px; font-size: 11px; font-weight: 700; background: var(--light-grey); color: var(--text-muted); }
.flagchip--staff { background: #E3F5EA; color: #0F6B3C; }
.flagchip--branch { background: var(--accent-soft); color: var(--vamed-blue); }

/* Detailschublade */
.atlasdetail { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; background: rgba(24, 24, 66, .34); }
.atlasdetail__panel { width: 100%; max-width: 460px; height: 100%; overflow-y: auto; background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.atlasdetail__head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.atlasdetail__body { padding: 18px 20px; flex: 1 1 auto; }
.atlasdetail__section { margin: 0 0 22px; }
.atlasdetail__section > .h2 { margin-bottom: 10px; }

/* Ansprechpartner */
.person { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.person:last-child { border-bottom: 0; }
.person__main { flex: 1 1 auto; min-width: 0; }
.person__name { font-weight: 500; }
.person__role { font-size: 12px; color: var(--text-muted); }
.person__lead { font-size: 11px; font-weight: 700; background: var(--vamed-blue); color: #fff; padding: 1px 6px; }

/* Hinweis, dass hier bewusst keine Personendaten liegen */
.privacynote {
  border-left: 3px solid var(--pillar-awareness);
  background: var(--light-grey); padding: 12px 14px;
  font-size: 13px; color: var(--text-muted); margin: 0 0 18px;
}

@media (max-width: 1040px) {
  .atlas { grid-template-columns: 1fr; }
  .atlas .docnav { order: 2; }
}
@media (max-width: 720px) {
  .atlasdetail__panel { max-width: none; }
}

/* ---------- Atlas: Kartenansicht ---------- */
/* Die Karte ist eine statische SVG-Plattkarte (assets/worldmap.js).
   Sie laedt keine Kacheln nach: es geht keine Anfrage nach draussen. */
.maptabs { display: flex; flex-wrap: wrap; gap: 0; margin-left: auto; }
.maptab {
  font: 600 13px/1 var(--font);
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left-width: 0;
  color: var(--text-muted);
  cursor: pointer;
}
.maptab:first-child { border-left-width: 1px; }
.maptab:hover { color: var(--text); background: var(--light-grey); }
.maptab[aria-current="true"] {
  background: var(--vamed-blue); border-color: var(--vamed-blue); color: #fff;
}

.mapwrap { padding: 0; background: var(--surface); }
.worldmap { display: block; width: 100%; height: auto; }
.worldmap__sea  { fill: #eef2f7; }
.worldmap__land { fill: #d7dbe6; stroke: var(--surface); }

.maplabel { fill: var(--text-muted); font-family: var(--font); font-weight: 600; pointer-events: none; }

.mappin { cursor: pointer; }
.mappin__halo { fill: rgba(42,155,212,.16); }
.mappin__dot  { fill: var(--wwh-blue); stroke: #fff; }
.mappin:hover .mappin__dot,
.mappin:focus-visible .mappin__dot { fill: var(--deep-orange); }
.mappin:hover .mappin__halo { fill: rgba(244,81,30,.2); }
.mappin:focus-visible { outline: none; }
.mappin:focus-visible .mappin__halo { fill: rgba(244,81,30,.35); }
/* Ein gesetzter Landfilter hebt die Standorte dieses Landes hervor */
.mappin--on .mappin__dot { fill: var(--vamed-blue); }
.mappin--on .mappin__halo { fill: rgba(24,24,66,.18); }

.maplegend {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
}

/* ---------- Räume: Tagesplan und Buchen ---------- */
.formgrid--3 { grid-template-columns: 1fr 1fr 1fr; }
.formgrid--4 { grid-template-columns: repeat(4, 1fr); }

.daypick { display: flex; align-items: center; gap: 6px; }
.daypick input[type="date"] { width: auto; min-width: 150px; }

/* Das Raster: links der Raumname, rechts die Zeitspur. Buchungen liegen
   absolut in der Spur, ihre Breite ist ihr Anteil am Tagesfenster. */
.plan { --plan-name: 190px; position: relative; overflow-x: auto; }
.plan__head,
.plan__row {
  display: grid;
  grid-template-columns: var(--plan-name) minmax(360px, 1fr);
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  min-width: 560px;
}
.plan__head { position: sticky; top: 0; z-index: 2; background: var(--surface); }
.plan__row:last-child { border-bottom: 0; }

.plan__name {
  padding: 10px 12px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px; justify-content: center;
  min-width: 0;
}
.plan__name .meta { font-size: 12px; }
.plan__roomname {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 700 14px/1.25 var(--font); color: var(--text); text-align: left;
}
.plan__roomname:hover { color: var(--wwh-blue); text-decoration: underline; }

.plan__track { position: relative; height: 46px; cursor: copy; }
.plan__track--ruler { height: 28px; cursor: default; }
.plan__line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); }
.plan__hour {
  position: absolute; top: 7px; transform: translateX(-50%);
  font-size: 11px; color: var(--text-muted); white-space: nowrap;
}
.plan__closed { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(
  135deg, #f4f4f4, #f4f4f4 6px, #ebebf1 6px, #ebebf1 12px); }

.plan__bk {
  position: absolute; top: 5px; bottom: 5px;
  border: 1px solid var(--fusion-blue);
  background: var(--fusion-blue); color: #fff;
  font: 600 12px/1 var(--font);
  padding: 0 7px; text-align: left; cursor: pointer;
  display: flex; align-items: center; overflow: hidden;
}
.plan__bk:hover { background: var(--vamed-blue); border-color: var(--vamed-blue); }
.plan__bk--mine { background: var(--wwh-blue); border-color: var(--wwh-blue); }
.plan__bk--mine:hover { background: #1f86ba; border-color: #1f86ba; }
.plan__bktext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Die Linie "jetzt" steht nur am heutigen Tag */
.plan__now {
  position: absolute; top: 28px; bottom: 0; width: 2px;
  background: var(--deep-orange); pointer-events: none; z-index: 1;
}

.planlegend {
  display: inline-block; width: 11px; height: 11px; vertical-align: -1px;
  background: var(--fusion-blue); margin-right: 5px;
}
.planlegend--mine { background: var(--wwh-blue); }

.featchip {
  background: var(--light-grey); color: var(--text-muted);
  font-size: 11px; font-weight: 600; padding: 2px 6px;
}
.featurerow { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 14px; }
.featurerow label {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--text); cursor: pointer;
}
.featurerow input { width: auto; margin: 0; }

.bklist { display: flex; flex-direction: column; }
.bkrow {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px;
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid var(--border);
  padding: 12px 16px; font: inherit; color: var(--text);
}
.bkrow:last-child { border-bottom: 0; }
.bkrow:hover { background: var(--light-grey); }
.bkrow__when,
.bkrow__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bkrow__what strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bkslot {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px;
  padding: 8px 10px; border-left: 3px solid var(--fusion-blue);
  background: var(--light-grey); margin-bottom: 6px; font-size: 14px;
}
.bkslot--mine { border-left-color: var(--wwh-blue); }

.bkactions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

@media (max-width: 720px) {
  .formgrid--3, .formgrid--4 { grid-template-columns: 1fr 1fr; }
  .plan { --plan-name: 130px; }
  .bkrow { grid-template-columns: 1fr; }
}

/* ---------- Räume: Grundriss ---------- */
/* Das SVG rechnet in Metern: eine Einheit im viewBox ist ein Meter.
   Darum stehen hier Strichstärken wie 0.06 – das sind 6 Zentimeter. */
.floorwrap { padding: 14px; background: var(--surface); overflow-x: auto; }
.floorplan { display: block; width: 100%; height: auto; max-height: 70vh; }
.floorplan--edit { cursor: grab; }

.floor__shell { fill: #fbfbfd; stroke: var(--vamed-blue); stroke-width: 0.12; }
.floor__grid  { stroke: #e9eaf1; stroke-width: 0.02; }

.floorarea rect {
  fill: repeating-linear-gradient(0deg, #eee, #eee);
  fill: #eceef4; stroke: #d7dbe6; stroke-width: 0.06;
}
.floorarea__text {
  fill: #9aa0b4; font-family: var(--font); font-weight: 700;
  text-anchor: middle; dominant-baseline: middle;
  text-transform: uppercase; letter-spacing: 0.04em;
  pointer-events: none;
}

.floorroom { cursor: pointer; }
.floorroom__box { stroke-width: 0.1; }
.floorroom--free .floorroom__box { fill: #ffffff; stroke: var(--wwh-blue); }
.floorroom--busy .floorroom__box { fill: var(--fusion-blue); stroke: var(--vamed-blue); }
.floorroom--mine .floorroom__box { fill: var(--wwh-blue); stroke: #1f86ba; }

.floorroom__name { font-family: var(--font); font-weight: 700; pointer-events: none; }
.floorroom__sub  { font-family: var(--font); font-weight: 400; pointer-events: none; }
.floorroom--free .floorroom__name { fill: var(--vamed-blue); }
.floorroom--free .floorroom__sub  { fill: var(--text-muted); }
.floorroom--busy .floorroom__name,
.floorroom--busy .floorroom__sub,
.floorroom--mine .floorroom__name,
.floorroom--mine .floorroom__sub { fill: #ffffff; }

.floorroom:hover .floorroom__box { stroke: var(--deep-orange); stroke-width: 0.16; }
.floorroom:focus-visible { outline: none; }
.floorroom:focus-visible .floorroom__box { stroke: var(--deep-orange); stroke-width: 0.2; }

.floorroom--edit { cursor: move; }
.floorroom__griff { fill: var(--deep-orange); cursor: nwse-resize; }

.planlegend--free { background: #fff; box-shadow: inset 0 0 0 2px var(--wwh-blue); }

@media (max-width: 720px) {
  .floorplan { max-height: none; min-width: 420px; }
}

/* ---------- Texte und Folien ---------- */

/* Keine Rechnung mit einer vermuteten Kopfhoehe: Der Rahmen ist so
   hoch wie das Fenster, der Kopf nimmt sich seinen Teil, der Rest
   bleibt uebrig. Ein falsch geratener Wert schoebe sonst den unteren
   Rand aus dem Bild oder liesse einen Streifen frei. */
.layout:has(.main--full) { height: 100vh; display: flex; flex-direction: column; }
.layout:has(.main--full) .header { flex: 0 0 auto; }
/* Selbst ein Flex-Behaelter: Sonst verpufft das flex:1 der Kinder,
   und der Arbeitsbereich ist nur so hoch wie sein Inhalt. */
.main--full { max-width: none; padding: 0; flex: 1; min-height: 0;
  display: flex; flex-direction: column; }

.office { display: grid; grid-template-columns: 268px 1fr; height: 100%; min-height: 0; }

.office__side {
  border-right: 1px solid var(--line); background: var(--surface-2);
  display: flex; flex-direction: column; min-height: 0;
}
.office__sidehead { padding: 14px; border-bottom: 1px solid var(--line); }
.office__tabs { display: flex; gap: 2px; margin-top: 10px; flex-wrap: wrap; }
.office__tab {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: 12.5px; color: var(--text-muted); padding: 5px 8px;
  border-bottom: 2px solid transparent;
}
.office__tab[aria-current="true"] { color: var(--vamed-blue); border-bottom-color: var(--wwh-blue); font-weight: 500; }

.doclist { overflow: auto; flex: 1; min-height: 0; }
.doclist__item {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  cursor: pointer; font: inherit; padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.doclist__item:hover { background: var(--surface); }
.doclist__item.is-open { background: var(--surface); box-shadow: inset 3px 0 0 var(--wwh-blue); }
.doclist__title { display: block; font-weight: 500; color: var(--vamed-blue);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doclist__meta { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }

.office__main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.office__empty { display: grid; place-content: center; justify-items: center;
  text-align: center; height: 100%; gap: 10px; padding: 24px; }

/* Der Arbeitsbereich muss die Hoehe weiterreichen, sonst bekommen die
   Buehne der Folien und das Blatt der Texte null Pixel zugeteilt:
   Ein gewoehnliches div in einem Flex-Behaelter waechst nicht mit. */
.office__pane { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.office__pane[hidden] { display: none; }

.office__head {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.office__title {
  border: 0; background: transparent; font: 600 19px/1.3 Roboto, sans-serif;
  color: var(--vamed-blue); flex: 1; min-width: 160px; padding: 4px 6px;
}
.office__title:focus { outline: 2px solid var(--wwh-blue); outline-offset: 1px; }
.office__state { white-space: nowrap; }
.office__headact { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Blatt */
.office__paper { flex: 1; overflow: auto; background: #e9eaee; padding: 24px 16px 60px; }
.sheet {
  width: 21cm; margin: 0 auto; background: #fff; min-height: 29.7cm;
  box-shadow: 0 2px 14px rgba(0,0,0,.16); padding: 25mm;
  /* Als Flex-Spalte, damit das Schreibfeld das Blatt ausfuellt.
     Vorher stand dort min-height: 100% - und 100% einer Hoehe, die
     selbst nur eine Mindesthoehe ist, sind null. Das Feld war dann
     eine Zeile hoch, und ein Klick in die Seitenmitte traf das Blatt
     statt den Editor: Man konnte schlicht nicht tippen. */
  display: flex; flex-direction: column;
}
.sheet__ed { outline: none; flex: 1 1 auto; color: #181842;
  font: 16px/1.6 Roboto, system-ui, sans-serif; }
.sheet__ed.is-readonly { cursor: default; }
.sheet__ed:focus { outline: none; }
.sheet__ed h1 { font-size: 28px; margin: .6em 0 .35em; color: var(--vamed-blue); }
.sheet__ed h2 { font-size: 23px; margin: .6em 0 .35em; color: var(--vamed-blue); }
.sheet__ed h3 { font-size: 19px; margin: .6em 0 .3em; color: var(--fusion-blue); }
.sheet__ed h4 { font-size: 17px; margin: .6em 0 .3em; color: var(--fusion-blue); }
.sheet__ed p { margin: 0 0 .7em; }
.sheet__ed table { border-collapse: collapse; margin: .6em 0; }
.sheet__ed td, .sheet__ed th { border: 1px solid #bfbfbf; padding: 5px 9px; min-width: 2em; }
.sheet__ed th { background: #f2f2f2; }
.sheet__ed blockquote { border-left: 4px solid var(--wwh-blue); margin: .7em 0;
  padding: 2px 0 2px 14px; color: #555; font-style: italic; }
.sheet__ed pre { background: #f5f5f5; padding: 10px 12px; font: 13px/1.5 Consolas, monospace;
  white-space: pre-wrap; overflow-x: auto; }
.sheet__ed img { max-width: 100%; height: auto; }
.sheet__ed a { color: #0563C1; }

/* Schubladen */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 94vw);
  background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: -8px 0 28px rgba(0,0,0,.14); z-index: 60;
  display: flex; flex-direction: column;
}
.drawer__head { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer__body { padding: 16px; overflow: auto; }
.drawer__act { display: flex; gap: 8px; margin-top: 12px; }
.verrow { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.verrow__act { display: flex; gap: 6px; align-items: center; }
.office__found { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.switch { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }

/* ---------- Folien ---------- */

.deck { flex: 1; display: grid; grid-template-columns: 170px 1fr 268px; min-height: 0; }

.deck__strip { overflow: auto; border-right: 1px solid var(--line);
  background: var(--surface-2); padding: 10px; display: grid; gap: 9px;
  align-content: start; }
.slidethumb { cursor: pointer; }
.slidethumb__nr { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.slidethumb__box {
  position: relative; aspect-ratio: 16/9; border: 2px solid var(--line);
  overflow: hidden; background: #fff;
}
.slidethumb.is-current .slidethumb__box { border-color: var(--wwh-blue); }
.minibit { position: absolute; overflow: hidden; }
.minibit--text { font-size: 5px; line-height: 1.15; overflow: hidden; }

.deck__mid { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.deck__stagewrap { position: relative; flex: 1; background: #e9eaee; overflow: hidden; }
.stage {
  position: absolute; width: 1280px; height: 720px; transform-origin: 0 0;
  background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,.2);
}
.deck__notes { display: block; padding: 8px 12px; border-top: 1px solid var(--line); }
.deck__notes textarea { width: 100%; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-size: 13px; padding: 6px 8px;
  border-radius: var(--radius); resize: vertical; }

.selem { position: absolute; box-sizing: border-box; cursor: move; }
.selem__txt { width: 100%; height: 100%; display: flex; flex-direction: column;
  justify-content: flex-start; padding: 6px 8px; box-sizing: border-box;
  overflow: hidden; white-space: pre-wrap; word-break: break-word; line-height: 1.25; }
.selem.is-sel { outline: 2px solid var(--wwh-blue); outline-offset: 1px; }
.sgriff { position: absolute; width: 11px; height: 11px; background: #fff;
  border: 2px solid var(--wwh-blue); border-radius: 50%; }
.sgriff--nw { left: -6px; top: -6px; cursor: nwse-resize; }
.sgriff--ne { right: -6px; top: -6px; cursor: nesw-resize; }
.sgriff--sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.sgriff--se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.sgriff--rot { left: 50%; top: -26px; margin-left: -6px; cursor: grab;
  background: var(--wwh-blue); }

.deck__props { border-left: 1px solid var(--line); background: var(--surface-2);
  padding: 14px; overflow: auto; }
.prop__row { display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 8px; }
.field--eng { max-width: 82px; }
.deck__props textarea { width: 100%; font: inherit; font-size: 13px; padding: 6px 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: var(--radius); resize: vertical; }

/* Vorführen */
.show { position: fixed; inset: 0; background: #0b0b14; z-index: 200; }
.show__stage { box-shadow: none; }
.show__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: rgba(0,0,0,.6); color: #fff; }
.show__bar .meta { color: rgba(255,255,255,.75); }
.show__notes { flex: 1; font-size: 13px; color: rgba(255,255,255,.75);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media print {
  .header, .office__side, .tb, .office__head, .drawer, .toast { display: none !important; }
  .office { display: block; }
  .office__paper { background: #fff; padding: 0; overflow: visible; }
  .sheet { box-shadow: none; width: auto; min-height: 0; margin: 0; }
}

@media (max-width: 1100px) {
  .deck { grid-template-columns: 120px 1fr; }
  .deck__props { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  /* Die linke Spalte nicht ausblenden: Darin steht der einzige Knopf,
     um ueberhaupt etwas anzulegen. Stattdessen legt sie sich quer
     ueber die Arbeitsflaeche. */
  .office { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .office__side { border-right: 0; border-bottom: 1px solid var(--line);
    max-height: 42vh; }
  .office__tabs { flex-wrap: nowrap; overflow-x: auto; }
  .sheet { width: auto !important; padding: 16px !important; }
}

/* ---------- Menuband im Office-Stil ---------- */

.office__pane { --off: #2B579A; --off-hell: #EAF0F8; }
.office__pane--ppt { --off: #B7472A; --off-hell: #FBEDE9; }

.rb { background: #fff; border-bottom: 1px solid #d4d4d4; flex: 0 0 auto; }

.rb__tabs {
  display: flex; align-items: stretch; gap: 0;
  background: var(--off); padding: 0 6px; min-height: 34px;
}
.rb__tab {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: 13.5px; color: rgba(255,255,255,.88); padding: 0 16px;
  border-radius: 0; white-space: nowrap;
}
.rb__tab:hover { background: rgba(255,255,255,.14); }
.rb__tab[aria-selected="true"] { background: #fff; color: var(--off); font-weight: 500; }
.rb__tabfill { flex: 1; }
.rb__status { color: rgba(255,255,255,.85); align-self: center; padding: 0 12px;
  font-size: 12px; white-space: nowrap; }

.rb__panel { display: flex; align-items: stretch; gap: 0; padding: 5px 4px 2px;
  overflow-x: auto; background: #fff; }
.rb__panel[hidden] { display: none; }

.rb__grp {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 0 10px; border-right: 1px solid #e3e3e3; min-width: 0;
}
.rb__grp:last-child { border-right: 0; }
.rb__row { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.rb__row + .rb__row { margin-top: 3px; }
.rb__label {
  font-size: 10.5px; color: #8a8886; text-align: center; margin-top: 4px;
  padding-top: 2px; white-space: nowrap;
}

/* kleine Schaltflaeche */
.rb__b {
  min-width: 26px; height: 26px; padding: 0 5px; border: 1px solid transparent;
  background: transparent; cursor: pointer; font: inherit; font-size: 13.5px;
  color: #201f1e; border-radius: 2px; line-height: 1; white-space: nowrap;
}
.rb__b:hover:not(:disabled) { background: var(--off-hell); border-color: #c7d4e6; }
.rb__b.is-on { background: var(--off-hell); border-color: var(--off); }
.rb__b:disabled { opacity: .4; cursor: not-allowed; }

/* grosse Schaltflaeche mit Beschriftung */
.rb__big {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-width: 56px; padding: 4px 8px; border: 1px solid transparent;
  background: transparent; cursor: pointer; font: inherit; font-size: 11px;
  color: #201f1e; border-radius: 2px; line-height: 1.15;
}
.rb__big:hover:not(:disabled) { background: var(--off-hell); border-color: #c7d4e6; }
.rb__big:disabled { opacity: .4; cursor: not-allowed; }
.rb__ico { font-size: 17px; line-height: 1; }

.rb__sel, .rb .rb__sel {
  height: 24px; font-size: 12.5px; border: 1px solid #c8c6c4;
  background: #fff; color: #201f1e; border-radius: 2px; padding: 0 4px;
}
.rb__sel--breit { min-width: 128px; }
.rb__sel--schmal { width: 58px; }
.rb__feld { display: flex; flex-direction: column; gap: 2px; font-size: 10.5px; color: #605e5c; }

.rb__farbe {
  position: relative; display: inline-grid; place-items: center;
  min-width: 26px; height: 26px; cursor: pointer; border-radius: 2px;
  border: 1px solid transparent; font-size: 13px;
}
.rb__farbe:hover { background: var(--off-hell); border-color: #c7d4e6; }
.rb__farbe input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rb__farbe--a { font-weight: 700; }
.rb__colorbreit { width: 72px; height: 24px; border: 1px solid #c8c6c4; padding: 1px; }

.rb__row--themen { gap: 4px; }
.rb__thema { width: 26px; height: 26px; border: 1px solid #c8c6c4; cursor: pointer;
  border-radius: 2px; padding: 0; }
.rb__thema:hover { outline: 2px solid var(--off); outline-offset: 1px; }

/* ---------- Kopfzeile des Dokuments ---------- */

.office__pane .office__head {
  background: var(--off); border-bottom: 0; padding: 6px 12px; min-height: 40px;
}
.office__pane .office__title { color: #fff; font-size: 15px; font-weight: 400; }
.office__pane .office__title::placeholder { color: rgba(255,255,255,.6); }
.office__pane .office__title:focus { outline: 2px solid rgba(255,255,255,.65); background: rgba(0,0,0,.14); }
.office__pane .office__state { color: rgba(255,255,255,.82); font-size: 12px; }
.office__pane .office__headact .btn {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff;
}
.office__pane .office__headact .btn:hover { background: rgba(255,255,255,.26); }

/* ---------- Arbeitsflaeche ---------- */

.office__paper { background: #868686; }
.sheet { box-shadow: 0 1px 6px rgba(0,0,0,.35); }
.deck__stagewrap { background: #868686; }

.office__side { background: #f3f2f1; border-right-color: #d4d4d4; }
.office__sidehead { border-bottom-color: #d4d4d4; }
.doclist__item { border-bottom-color: #e6e6e6; }
.doclist__item.is-open { box-shadow: inset 3px 0 0 #2B579A; }
.deck__strip { background: #f3f2f1; border-right-color: #d4d4d4; }
.deck__props { background: #f3f2f1; border-left-color: #d4d4d4; }
.deck__notes { border-top-color: #d4d4d4; }

.slidethumb.is-current .slidethumb__box { border-color: #B7472A; }
.selem.is-sel { outline-color: #B7472A; }
.sgriff { border-color: #B7472A; }
.sgriff--rot { background: #B7472A; }

@media (max-width: 980px) {
  .rb__label { display: none; }
  .rb__grp { padding: 0 6px; }
}

/* Die Knoepfe des Portals sind gross, dunkelblau und in Versalien - das
   ist die Handschrift des Hauses und steht hier quer. In Word und
   PowerPoint sind sie klein, grau und normal geschrieben. */
.office__pane .btn,
.drawer .btn {
  text-transform: none; letter-spacing: 0; font-weight: 400;
  font-size: 12.5px; border-radius: 2px;
}
.office__pane .office__headact .btn {
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.34);
  color: #fff; padding: 4px 11px;
}
.office__pane .office__headact .btn:hover { background: rgba(255,255,255,.3); }
.office__pane .office__headact .btn--accent {
  background: #fff; border-color: #fff; color: var(--off); font-weight: 500;
}
.office__pane .office__headact .btn--accent:hover { background: #f0f0f0; }

.deck__props .btn, .drawer .btn {
  background: #fff; border: 1px solid #c8c6c4; color: #201f1e;
}
.deck__props .btn:hover, .drawer .btn:hover { background: #f3f2f1; }
.deck__props .btn--danger, .drawer .btn--danger { color: #a4262c; border-color: #e0b4b6; }
.deck__props .btn--danger:hover, .drawer .btn--danger:hover { background: #fdf3f4; }
.drawer .btn--accent { background: #2B579A; border-color: #2B579A; color: #fff; }

/* Das Menue "Herausgeben" ebenso */
.office__pane .menu { border-radius: 2px; }
.office__pane .menu__item { text-transform: none; font-size: 13px; }

/* Die Seitenleiste links ist Datei-Liste, nicht Portal-Navigation */
.office__side .btn--primary {
  text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500;
  border-radius: 2px;
}
.office__tab { font-size: 12px; }
.office__tab[aria-current="true"] { color: #2B579A; border-bottom-color: #2B579A; }
.office__pane--ppt ~ * .office__tab[aria-current="true"] { color: #B7472A; }

/* ---------- Post ---------- */

.office__pane--post { --off: #0F6CBD; --off-hell: #E8F1FB; }

.mail { flex: 1; display: grid; grid-template-columns: 230px 360px 1fr; min-height: 0; }

.mail__folders { background: #f3f2f1; border-right: 1px solid #d4d4d4;
  overflow: auto; padding: 8px; }
.mail__suche { position: relative; display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #c8c6c4; border-radius: 2px;
  padding: 0 8px; height: 28px; margin-bottom: 10px; color: #605e5c; }
.mail__suche input { border: 0; background: transparent; font: inherit; font-size: 13px;
  flex: 1; color: #201f1e; outline: none; }

.mfolder { display: flex; align-items: center; gap: 7px; width: 100%; border: 0;
  background: transparent; cursor: pointer; font: inherit; font-size: 13.5px;
  color: #201f1e; padding: 6px 8px; border-radius: 2px; text-align: left; }
.mfolder:hover { background: #eaeaea; }
.mfolder.is-on { background: var(--off-hell); font-weight: 500; }
.mfolder__ico { width: 18px; text-align: center; }
.mfolder__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfolder__zahl { background: var(--off); color: #fff; font-size: 11px; font-weight: 600;
  border-radius: 9px; padding: 1px 6px; min-width: 18px; text-align: center; }
.mfolder__zahl--still { background: #c8c6c4; color: #201f1e; font-weight: 400; }
.mfolder__weg { opacity: 0; color: #a4262c; font-size: 15px; padding: 0 2px; }
.mfolder:hover .mfolder__weg { opacity: 1; }

.mail__list { border-right: 1px solid #d4d4d4; display: flex; flex-direction: column;
  min-height: 0; background: #fff; }
.mail__bulk { display: flex; align-items: center; gap: 10px; padding: 7px 12px;
  background: var(--off-hell); border-bottom: 1px solid #d4d4d4; font-size: 12.5px; }
.mlist { overflow: auto; flex: 1; }

.mrow { display: flex; gap: 8px; padding: 9px 12px 9px 6px; cursor: pointer;
  border-bottom: 1px solid #ededed; align-items: flex-start; }
.mrow:hover { background: #f5f5f5; }
.mrow.is-offen { background: var(--off-hell); box-shadow: inset 3px 0 0 var(--off); }
.mrow.is-neu .mrow__von, .mrow.is-neu .mrow__betreff { font-weight: 700; color: #201f1e; }
.mrow.is-neu { box-shadow: inset 3px 0 0 var(--off); }
.mrow__wahl { padding-top: 2px; }
.mrow__av { width: 30px; height: 30px; border-radius: 50%; background: var(--off);
  color: #fff; display: grid; place-items: center; font-size: 11.5px; font-weight: 600;
  flex: 0 0 auto; }
.mrow__txt { flex: 1; min-width: 0; }
.mrow__kopf { display: flex; justify-content: space-between; gap: 8px; }
.mrow__von { font-size: 13.5px; color: #201f1e; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.mrow__zeit { font-size: 11.5px; color: #605e5c; white-space: nowrap; }
.mrow__betreff { font-size: 13px; color: #201f1e; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.mrow__vor { font-size: 12px; color: #605e5c; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.mrow__zeichen { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mflag { border: 0; background: transparent; cursor: pointer; color: #c8c6c4;
  font-size: 15px; padding: 0; line-height: 1; }
.mflag.is-on { color: #F4511E; }
.mprio { color: #a4262c; font-weight: 700; margin-right: 3px; }
.mentwurf { color: #a4262c; font-size: 11.5px; margin-right: 5px; }

.mail__read { overflow: auto; background: #fff; }
.mail__leer { display: grid; place-content: center; height: 100%; }
.mread { padding: 18px 24px; }
.mread__kopf { display: flex; justify-content: space-between; gap: 14px;
  align-items: flex-start; flex-wrap: wrap; }
.mread__betreff { font-size: 20px; margin: 0 0 8px; color: #201f1e; font-weight: 600; }
.mread__act { display: flex; gap: 6px; flex-wrap: wrap; }
.mread__von { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0;
  border-bottom: 1px solid #ededed; }
.mread__datum { margin-left: auto; white-space: nowrap; }
.mread__text { padding: 16px 0; color: #201f1e; line-height: 1.6; }
.mread__text blockquote { border-left: 3px solid #c8c6c4; margin: 1em 0;
  padding-left: 12px; color: #605e5c; }
.mread__text img { max-width: 100%; height: auto; }

.manhaenge { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 0;
  border-bottom: 1px solid #ededed; }
.manhang { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #c8c6c4;
  border-radius: 2px; padding: 4px 9px; font-size: 12.5px; color: #201f1e;
  text-decoration: none; background: #fafafa; }
.manhang:hover { background: var(--off-hell); border-color: var(--off); }
.manhang__weg { border: 0; background: transparent; color: #a4262c; cursor: pointer;
  font-size: 14px; padding: 0 0 0 3px; }

/* Verfassen */
.compose { position: fixed; right: 20px; bottom: 0; width: min(640px, 94vw);
  max-height: 86vh; background: #fff; border: 1px solid #c8c6c4;
  border-bottom: 0; box-shadow: 0 -2px 20px rgba(0,0,0,.22); z-index: 70;
  display: flex; flex-direction: column; }
.compose__kopf { display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: #0F6CBD; color: #fff; }
.compose__kopf .meta { color: rgba(255,255,255,.8); }
.compose__kopf .btn { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3);
  color: #fff; text-transform: none; letter-spacing: 0; font-weight: 400; }
.compose__kopf .iconbtn { color: #fff; }
.compose__felder { padding: 8px 12px 4px; }
.compose__zeile { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #ededed; }
.compose__zeile span { width: 72px; font-size: 12.5px; color: #605e5c; flex: 0 0 auto; }
.compose__zeile input { flex: 1; border: 0; font: inherit; font-size: 13.5px;
  padding: 7px 0; outline: none; color: #201f1e; background: transparent; }
.compose__knoepfe { display: flex; gap: 6px; padding: 6px 0; align-items: center; }
.compose__tb { display: flex; align-items: center; gap: 3px; padding: 5px 12px;
  border-top: 1px solid #ededed; border-bottom: 1px solid #ededed; }
.compose__body { flex: 1; min-height: 180px; overflow: auto; padding: 12px;
  outline: none; font: 14px/1.6 Roboto, system-ui, sans-serif; color: #201f1e; }
.compose__body--klein { min-height: 90px; border: 1px solid #c8c6c4; }
.compose__files { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; }
.compose__files:not(:empty) { padding: 8px 12px; border-top: 1px solid #ededed; }
.compose__fuss { display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-top: 1px solid #ededed; }

.mvorschlaege { position: fixed; z-index: 80; background: #fff; border: 1px solid #c8c6c4;
  box-shadow: 0 6px 20px rgba(0,0,0,.18); max-height: 240px; overflow: auto; }
.mvorschlag { display: flex; flex-direction: column; gap: 1px; width: 100%; border: 0;
  background: transparent; cursor: pointer; font: inherit; text-align: left;
  padding: 7px 10px; font-size: 13px; }
.mvorschlag:hover { background: var(--off-hell); }

@media (max-width: 1150px) {
  .mail { grid-template-columns: 190px 1fr; }
  .mail__read { grid-column: 1 / -1; border-top: 1px solid #d4d4d4; }
}
@media (max-width: 760px) {
  .mail { grid-template-columns: 1fr; }
  .mail__folders { max-height: 32vh; }
  .compose { right: 0; left: 0; width: auto; max-height: 94vh; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .header { padding: 0 16px; gap: 10px; }
  .header__logo img { height: 52px; }
  .header__search { display: none; }
  .main { padding: 20px 16px 48px; }
}

/* Schmale Ansicht: Überschrift und Filter untereinander */
@media (max-width: 720px) {
  .card__head { flex-wrap: wrap; row-gap: 10px; }
  .card__head .h2 { flex: 1 0 100%; }
  .filters { width: 100%; }
  .appsbtn span { display: none; }
  .appsbtn { padding: 11px 12px; }
  .launcher { padding: 12px; }
  .launcher__panel { max-width: none; }
  .launcher__head { flex-wrap: wrap; row-gap: 12px; }
  .launcher__search { max-width: none; flex: 1 0 100%; margin-left: 0; order: 3; }
  .launchgrid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}

/* Sehr schmal: Zeit ohne Beschriftung, damit die Kopfzeile nicht umbricht */
@media (max-width: 560px) {
  .header__logo img { height: 44px; }
  .clockchip__label { display: none; }
  .clockchip { padding: 6px 8px 6px 11px; }
  .launchgrid { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login__brand { display: none; }
}
