/* #EVENTS — Design System
   Pink-Identität behalten, aber moderner und ruhiger eingesetzt.
*/

:root {
  /* Brand pink — softer than the original #D6006C, calibrated for a11y */
  --accent: #D6006C;
  --accent-50: #FFF1F8;
  --accent-100: #FFE3F0;
  --accent-200: #FFC3DD;
  --accent-300: #FF8FBE;
  --accent-400: #EF4A99;
  --accent-500: #D6006C;
  --accent-600: #B00057;
  --accent-700: #8B0045;

  /* Dark navy from original (#1D3D9A ungefähr) */
  --ink-900: #0E1A3A;
  --ink-800: #1D2B55;
  --ink-700: #2B3B6B;
  --ink-600: #445181;
  --ink-500: #6B7399;
  --ink-400: #9AA0BB;
  --ink-300: #C2C6D9;
  --ink-200: #E0E2EC;
  --ink-100: #EFF0F5;
  --ink-50: #F7F8FB;

  /* Neutrals */
  --bg: #FAFAFB;
  --surface: #FFFFFF;
  --border: #E8E8EE;
  --border-strong: #D4D4DC;

  /* Semantics */
  --success: #06A77D;
  --warn: #EA580C;
  --danger: #DC2626;

  /* Tag tones */
  --tag-pink: #D6006C;
  --tag-violet: #7B2CBF;
  --tag-green: #06A77D;
  --tag-rose: #9D174D;
  --tag-blue: #1E40AF;
  --tag-orange: #EA580C;
  --tag-teal: #0F766E;

  /* Radii — tweakable */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Density — tweakable */
  --density: 1;          /* 0.8 = kompakt, 1 = standard, 1.15 = komfortabel */
  --row-h: calc(48px * var(--density));
  --pad: calc(16px * var(--density));

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(14, 26, 58, 0.05);
  --shadow: 0 4px 12px rgba(14, 26, 58, 0.06), 0 1px 3px rgba(14, 26, 58, 0.04);
  --shadow-lg: 0 12px 40px rgba(14, 26, 58, 0.10), 0 2px 8px rgba(14, 26, 58, 0.05);
  --shadow-accent: 0 8px 24px rgba(214, 0, 108, 0.18);

  /* Type */
  --font-sans: "Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.45;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; }

/* Scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 10px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }
*::-webkit-scrollbar-track { background: transparent; }

/* =============== App Shell =============== */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--bg);
}
.app-shell.no-sidebar {
  grid-template-columns: 1fr;
}


/* Sidebar (desktop) */
.sidebar {
  position: sticky; top: 0;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 24px 18px;
  gap: 18px;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 4px 14px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand-mark {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 20px;
  box-shadow: var(--shadow-accent);
}
.sidebar-brand-name {
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
}
.sidebar-brand-sub {
  font-size: 11px; color: var(--ink-500); margin-top: 2px; letter-spacing: 0.02em;
}

.sidebar-section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-500); font-weight: 600;
  padding: 0 8px 6px;
}

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--ink-700);
  cursor: pointer; transition: background .15s, color .15s;
  width: 100%; text-align: left;
}
.nav-item:hover { background: var(--ink-50); color: var(--ink-900); }
.nav-item.active { background: var(--accent-50); color: var(--accent-700); font-weight: 600; }
.nav-item.active .nav-icon { color: var(--accent); }
.nav-icon { width: 18px; height: 18px; color: var(--ink-500); flex-shrink: 0; }

.sidebar-user {
  margin-top: auto;
  padding: 12px; border-radius: var(--radius);
  background: var(--ink-50);
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-700));
  color: white; display: grid; place-items: center;
  font-weight: 600; font-size: 13px;
  flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.user-role { font-size: 11px; color: var(--ink-500); margin-top: 2px; }

/* Main */
.main {
  display: flex; flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.main-topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 30;
  flex-wrap: nowrap;
  min-width: 0;
}
.topbar-title-wrap { min-width: 0; }
.topbar-title {
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em;
  color: var(--ink-900);
}
.topbar-sub {
  font-size: 13px; color: var(--ink-500); margin-top: 2px;
}
.topbar-spacer { flex: 1; }

/* Search */
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink-50);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  width: 320px;
  transition: background .15s, border-color .15s;
}
.search:focus-within { background: white; border-color: var(--accent-300); box-shadow: 0 0 0 4px var(--accent-50); }
.search input { border: none; background: none; outline: none; flex: 1; font-size: 14px; }
.search input::placeholder { color: var(--ink-500); }
.search-icon { color: var(--ink-500); width: 16px; height: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px;
  transition: transform .08s, background .15s, box-shadow .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: white;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { background: var(--accent-600); }
.btn-secondary {
  background: var(--surface); color: var(--ink-800);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--ink-50); border-color: var(--ink-300); }
.btn-ghost { color: var(--ink-600); padding: 8px 12px; }
.btn-ghost:hover { background: var(--ink-50); color: var(--ink-900); }
.btn-icon {
  width: 36px; height: 36px; padding: 0;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  color: var(--ink-600);
}
.btn-icon:hover { background: var(--ink-50); color: var(--ink-900); }
.btn-icon.danger:hover { background: #FEE2E2; color: var(--danger); }

/* Content area */
.content {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.content > * { min-width: 0; }

/* App-Shell schützt vor horizontalem Overflow (z. B. in Teams-Tab) */
.app-shell { overflow-x: hidden; max-width: 100vw; }
.main { min-width: 0; overflow-x: hidden; }
.content > * { min-width: 0; }
.card { min-width: 0; max-width: 100%; }

/* Intermediate layout: stack day panel below calendar when narrow */
@media (max-width: 1200px) {
  .content { grid-template-columns: 1fr; }
  .day-panel { position: static; }
}
@media (max-width: 1100px) {
  .sidebar { width: 220px; }
  .app-shell { grid-template-columns: 220px 1fr; }
  .search { width: 220px; }
}
/* Sidebar ausblenden früher — Teams-Tab ist meist 700–1000px breit */
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .app-shell { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .search { width: 180px; min-width: 0; }
  .topbar-sub { display: none; }
  .btn-label-hide-md { display: none; }
  .btn-primary.compact-md { padding: 10px; width: 40px; }
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
}
.card-pad { padding: 24px; }

/* =============== Calendar =============== */
.cal-head {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 24px 16px;
}
.cal-title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400; letter-spacing: -0.02em;
  color: var(--ink-900);
  flex: 1;
}
.cal-title b { font-weight: 400; color: var(--accent); font-style: italic; }

.cal-nav { display: flex; gap: 4px; align-items: center; }
.cal-today-btn {
  font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: var(--radius-full);
  background: var(--ink-50); color: var(--ink-700);
  border: 1px solid var(--border);
  margin-right: 4px;
}
.cal-today-btn:hover { background: var(--ink-100); }

.view-switch {
  display: inline-flex; background: var(--ink-50);
  padding: 3px; border-radius: var(--radius-full);
  border: 1px solid var(--border);
}
.view-switch button {
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; color: var(--ink-600);
}
.view-switch button.active { background: white; color: var(--ink-900); box-shadow: var(--shadow-sm); }

/* Tag pills — eine Zeile, horizontal scrollbar */
.tag-pills {
  display: flex; flex-wrap: nowrap; gap: 5px;
  padding: 4px 24px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding: 24px;
  /* leichter Fade-out am rechten Rand → Hinweis auf scrollbares Panel */
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
}
.tag-pills::-webkit-scrollbar { height: 4px; }
.tag-pills::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 4px; }
.tag-pills > * { flex-shrink: 0; scroll-snap-align: start; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
  background: var(--ink-50); color: var(--ink-700);
  border: 1px solid var(--border);
  transition: all .15s;
  white-space: nowrap;
}
.tag-pill:hover { background: var(--ink-100); }
.tag-pill.active {
  background: var(--accent); color: white; border-color: var(--accent);
}
.tag-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .7;
}
.tag-pill.active .dot { background: white; opacity: 1; }

/* Calendar grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}
.cal-weekday {
  padding: 10px 8px;
  text-align: center;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 600;
  color: var(--ink-500);
  background: var(--ink-50);
  border-right: 1px solid var(--border);
}
.cal-weekday:last-child { border-right: none; }

.cal-day {
  min-height: calc(108px * var(--density));
  height: calc(148px * var(--density));
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px 4px 4px;
  background: var(--surface);
  cursor: pointer;
  transition: background .12s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  position: relative;
}
.cal-day:nth-child(7n) { border-right: none; }
.cal-day:hover { background: var(--ink-50); }
.cal-day.other-month { background: #FCFCFD; }
.cal-day.other-month .cal-day-num { color: var(--ink-400); }
.cal-day.selected { background: var(--accent-50); }
.cal-day.selected .cal-day-num { color: var(--accent); }
.cal-day.today .cal-day-num {
  background: var(--accent); color: white;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600;
}
.cal-day.weekend { background: var(--ink-50); }
.cal-day.weekend.other-month { background: #F5F5F8; }

.cal-day-num {
  font-size: 13px; font-weight: 600;
  color: var(--ink-800);
  line-height: 1;
  width: 100%;
  margin-bottom: 4px;
}

.cal-event {
  padding: 4px 6px 4px 8px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  width: 84%;
  max-width: 84%;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  position: relative;
  background: #FEFAE8 !important;
  background-image: none !important;
  filter: none !important;
  border-left: 3px solid var(--postit-accent, #888);
  box-shadow: 1px 2px 6px rgba(0,0,0,.13), 3px 5px 14px rgba(0,0,0,.07);
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
  margin-bottom: 0;
}
.cal-day { gap: 0 !important; }

/* Left Post-it */
.cal-event.postit-left {
  align-self: flex-start;
  margin-left: 2px;
  transform: rotate(-1.4deg);
}
/* Right Post-it */
.cal-event.postit-right {
  align-self: flex-end;
  margin-right: 2px;
  transform: rotate(1.6deg);
}
.cal-event:last-child { margin-bottom: 0 !important; }
.cal-event:hover {
  transform: rotate(0deg) translateY(-2px) scale(1.04);
  box-shadow: 2px 4px 12px rgba(0,0,0,.2), 5px 10px 24px rgba(0,0,0,.1);
  z-index: 10;
}
.cal-event::after { display: none; }
.cal-event::before { display: none; }
.cal-event-dot { display: none; }
.cal-event.more {
  background: transparent !important;
  background-image: none !important;
  color: var(--ink-500); font-weight: 600;
  font-size: 9px;
  border-left: none;
  border: none;
  box-shadow: none;
  transform: none;
  filter: none !important;
  height: auto; min-height: unset;
  padding: 0 6px;
  margin-top: 1px;
  cursor: pointer;
}
.cal-event.more::after { display: none; }
.cal-event.more::before { display: none; }

/* Postit-Kopf: Zeit + Tag */
.postit-head {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  margin-bottom: 1px;
}
.postit-time {
  font-size: 9px;
  color: #888;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.postit-tag {
  font-size: 7.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 9px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
  letter-spacing: 0.1px;
}
/* Kleinere Screens: Tag oben, Zeit darunter, beide klein */
@media (max-width: 900px) {
  .postit-head {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0;
  }
  .postit-tag {
    font-size: 7px;
    padding: 0 4px;
    border-radius: 7px;
    max-width: 100%;
  }
  .postit-time { font-size: 8px; }
}

/* Embed-Modus (Kalender als iframe in fremden Webseiten / Teams-Tab) */
.app-shell.embed-mode { background: transparent; }
.app-shell.embed-mode .main-topbar { padding: 10px 14px; }
.app-shell.embed-mode .content { padding: 0 14px 14px 14px; grid-template-columns: 1fr !important; }
.app-shell.embed-mode .day-panel { position: static !important; }
.app-shell.embed-mode .main { min-height: auto; }
/* Kompaktere Schriften und Abstände im Embed-Modus */
.app-shell.embed-mode .cal-title { font-size: 18px; }
.app-shell.embed-mode .cal-head { padding: 12px 16px 8px; }
.app-shell.embed-mode .tag-pills { padding: 4px 16px 8px; }
.app-shell.embed-mode .cal-weekday { padding: 6px 4px; font-size: 10px; }
.app-shell.embed-mode .cal-day { min-height: calc(58px * var(--density)); }
.app-shell.embed-mode .cal-day-num { font-size: 11px; }
.app-shell.embed-mode .cal-event { height: 50px; padding: 3px 5px; }
.app-shell.embed-mode .cal-event > div:nth-child(2) { font-size: 10px !important; }
.app-shell.embed-mode .day-panel-day { font-size: 24px; }
.app-shell.embed-mode .day-panel-head { padding: 12px 14px 8px; }
.app-shell.embed-mode .app-footer { padding: 8px 14px; font-size: 10.5px; margin-top: 10px; }

/* Hero-Block im Embed (Titel/Untertitel/Support) */
.embed-hero {
  margin-bottom: 14px;
  padding: 22px 26px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #1a1a1a));
  color: #fff;
}
.embed-hero-title {
  margin: 0 0 6px 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.embed-hero-sub {
  margin: 0 0 10px 0;
  font-size: 15px;
  opacity: 0.92;
  line-height: 1.4;
}
.embed-hero-support {
  margin: 0;
  font-size: 12px;
  opacity: 0.78;
  font-weight: 500;
  letter-spacing: 0.02em;
}
@media (max-width: 700px) {
  .embed-hero { padding: 16px 18px; }
  .embed-hero-title { font-size: 20px; }
  .embed-hero-sub { font-size: 13px; }
}

/* Footer (global) — eine Zeile mit KI-Hinweis */
.app-footer {
  margin-top: 24px;
  padding: 12px 22px 14px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--ink-500);
  line-height: 1.4;
}
.app-footer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}
.app-footer-line strong { color: var(--ink-800); font-weight: 700; }
.app-footer-ki {
  font-size: 10.5px;
  color: var(--ink-400);
  letter-spacing: 0.02em;
  opacity: 0.85;
  white-space: nowrap;
}
.app-shell.embed-mode .app-footer { padding: 8px 18px 10px; margin-top: 12px; font-size: 10.5px; }

/* Ankündigungs-Banner / Notfall-Streifen */
.announce {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  font-size: 13px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: relative;
}
.announce-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.announce-body { flex: 1; min-width: 0; }
.announce-title { font-weight: 700; font-size: 13.5px; }
.announce-msg { margin-top: 2px; opacity: 0.92; }
.announce-close {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.08);
  color: inherit;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s;
}
.announce-close:hover { background: rgba(0,0,0,.16); }

.announce-info {
  background: linear-gradient(90deg, #DBEAFE, #EFF6FF);
  color: #1E3A8A;
}
.announce-warning {
  background: linear-gradient(90deg, #FEF3C7, #FFFBEB);
  color: #78350F;
}
.announce-urgent {
  background: linear-gradient(90deg, #FEE2E2, #FECACA);
  color: #7F1D1D;
  border-left: 4px solid #DC2626;
  animation: announce-pulse 2s ease-in-out infinite;
}
@keyframes announce-pulse {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(220, 38, 38, 0); }
  50%      { box-shadow: inset 0 0 0 2px rgba(220, 38, 38, .35); }
}

/* Severity-Picker im Edit-Modal */
.severity-pick {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: all .15s;
}
.severity-pick:hover { border-color: var(--ink-400); }
.severity-pick.active.severity-pick-info    { border-color: #2563EB; background: #EFF6FF; color: #1E3A8A; }
.severity-pick.active.severity-pick-warning { border-color: #D97706; background: #FFFBEB; color: #78350F; }
.severity-pick.active.severity-pick-urgent  { border-color: #DC2626; background: #FEE2E2; color: #7F1D1D; }

/* =============== Day panel (right) =============== */
.day-panel {
  position: sticky; top: 100px;
}
.day-panel-head {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.day-panel-date {
  font-size: 13px; color: var(--ink-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.day-panel-day {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 400; letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 4px;
  color: var(--ink-900);
}
.day-panel-weekday {
  color: var(--accent); font-style: italic;
}
.day-panel-list {
  padding: 12px 12px 16px;
  max-height: 520px; overflow-y: auto;
}
.day-event {
  padding: 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .12s, transform .08s;
  display: flex; gap: 12px;
  align-items: stretch;
}
.day-event:hover { background: var(--ink-50); }
.day-event:active { transform: scale(.99); }
.day-event-stripe {
  width: 3px; border-radius: 3px; flex-shrink: 0;
  background: var(--accent);
}
.day-event-time {
  font-size: 13px; font-weight: 700; color: var(--ink-800); font-variant-numeric: tabular-nums;
}
.day-event-title {
  font-size: 14px; font-weight: 600; color: var(--ink-900);
  margin-top: 2px;
  line-height: 1.3;
}
.day-event-meta {
  font-size: 12px; color: var(--ink-500);
  margin-top: 6px;
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.day-event-tag {
  font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: var(--radius-full);
  background: var(--accent-50); color: var(--accent-700);
}
.day-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-500);
  font-size: 13px;
}
.day-empty-icon {
  width: 48px; height: 48px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--ink-50);
  display: grid; place-items: center;
  color: var(--ink-400);
}

/* =============== Mini-cal (sidebar in mobile?) =============== */

/* =============== List view =============== */
.list-head {
  padding: 20px 24px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.list-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 180px 120px 40px;
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
}
.list-row:hover { background: var(--ink-50); }
.list-row:last-child { border-bottom: none; }
.list-date-box {
  text-align: center;
  padding: 10px 0;
  background: var(--ink-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.list-date-month { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--accent); }
.list-date-day { font-family: var(--font-display); font-size: 26px; line-height: 1; margin: 2px 0; font-weight: 400; }
.list-date-weekday { font-size: 10px; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.08em; }

.list-title { font-size: 15px; font-weight: 600; color: var(--ink-900); }
.list-desc { font-size: 13px; color: var(--ink-500); margin-top: 4px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.list-tags { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.list-time { font-size: 13px; color: var(--ink-700); font-variant-numeric: tabular-nums; font-weight: 500;}
.list-venue { font-size: 12px; color: var(--ink-500); margin-top: 2px;}
.list-capacity {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
}
.cap-bar {
  width: 100%; height: 5px; background: var(--ink-100);
  border-radius: 3px; overflow: hidden;
}
.cap-fill { height: 100%; background: var(--accent); border-radius: 3px; }
.cap-fill.full { background: var(--warn); }
.cap-label { font-size: 11px; color: var(--ink-500); font-weight: 500; font-variant-numeric: tabular-nums; }

.list-group-header {
  padding: 24px 24px 8px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; color: var(--ink-500);
  background: var(--ink-50);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}

/* =============== Tag chip (colored) =============== */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600;
  color: white;
  white-space: nowrap;
}
.chip.outline {
  background: transparent;
  border: 1px solid currentColor;
  color: var(--tag-pink);
}

/* =============== Modal =============== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(14, 26, 58, 0.45);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn .18s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; }}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); }}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 720px; width: 100%;
  max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideUp .22s ease-out;
}
.modal-hero {
  padding: 28px 32px 24px;
  background: linear-gradient(135deg, var(--accent-50), white);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%; background: white;
  display: grid; place-items: center;
  color: var(--ink-600);
  border: 1px solid var(--border);
  transition: all .15s;
}
.modal-close:hover { color: var(--ink-900); transform: rotate(90deg); }
.modal-body {
  padding: 24px 32px 32px;
  overflow-y: auto;
  flex: 1;
}
.modal-foot {
  padding: 16px 32px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
  background: var(--ink-50);
}

/* Form controls */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 12px; font-weight: 600; color: var(--ink-700);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.field-label .req { color: var(--accent); margin-left: 3px; }
.input, .textarea, .select {
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 14px; color: var(--ink-900);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-50);
}
.textarea { resize: vertical; min-height: 96px; font-family: inherit; line-height: 1.5; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 3px;
  background: var(--ink-100);
  border-radius: var(--radius-full);
  width: 42px; height: 22px;
  position: relative;
  cursor: pointer;
  transition: background .18s;
}
.toggle-knob {
  width: 16px; height: 16px; border-radius: 50%;
  background: white;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.toggle.on { background: var(--accent); }
.toggle.on .toggle-knob { transform: translateX(20px); }

.switch-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.switch-field-label { font-size: 13px; font-weight: 500; color: var(--ink-800); }

/* =============== Event detail (inside modal) =============== */
.detail-title {
  font-family: var(--font-display);
  font-size: 32px; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--ink-900); font-weight: 400;
  margin-bottom: 10px;
}
.detail-meta-row {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
}
.detail-where {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 20px;
  margin-bottom: 18px;
}
.detail-where dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--ink-500); align-self: center;}
.detail-where dd { margin: 0; font-size: 14px; color: var(--ink-900); font-weight: 500; }
.detail-desc {
  font-size: 14px; line-height: 1.6; color: var(--ink-700);
  margin-top: 8px;
}
.detail-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.detail-section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600; color: var(--ink-500);
  margin-bottom: 10px;
}
.detail-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--ink-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  color: var(--ink-800);
  text-decoration: none;
  transition: all .15s;
  margin-right: 6px; margin-bottom: 6px;
}
.detail-link:hover { background: var(--accent-50); border-color: var(--accent-300); color: var(--accent-700); }

.rsvp-card {
  margin-top: 20px;
  padding: 16px;
  background: var(--ink-50);
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 16px;
}
.rsvp-card-progress { flex: 1; }
.rsvp-progress-label {
  font-size: 12px; color: var(--ink-500); font-weight: 600;
  margin-bottom: 6px; display: flex; justify-content: space-between;
}

/* =============== Feedback =============== */
.stars { display: inline-flex; gap: 3px; }
.star {
  width: 28px; height: 28px;
  cursor: pointer;
  color: var(--ink-200);
  transition: color .12s, transform .12s;
}
.star.filled { color: var(--accent); }
.star:hover { transform: scale(1.15); color: var(--accent); }
.star.readonly { cursor: default; width: 16px; height: 16px; }
.star.readonly:hover { transform: none; color: var(--ink-200); }
.star.readonly.filled { color: var(--accent); }
.star.readonly.filled:hover { color: var(--accent); }

.feedback-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.feedback-row:last-child { border-bottom: none; }
.feedback-rating-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.feedback-text { font-size: 13px; color: var(--ink-700); line-height: 1.5; }
.feedback-anon { font-size: 11px; color: var(--ink-500); }

/* =============== Tweaks panel =============== */
.tweaks-panel {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 320px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 200;
  overflow: hidden;
  animation: slideUp .25s ease-out;
}
.tweaks-head {
  padding: 14px 18px;
  background: var(--ink-900);
  color: white;
  display: flex; align-items: center; justify-content: space-between;
}
.tweaks-title { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.tweaks-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; max-height: 60vh; overflow-y: auto; }
.tweak-group-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--ink-500); }
.tweak-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.tweak-swatches { display: flex; gap: 6px; }
.tweak-swatch {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid white; box-shadow: 0 0 0 1px var(--border);
  cursor: pointer; transition: transform .12s;
}
.tweak-swatch.active { box-shadow: 0 0 0 2px var(--ink-900); transform: scale(1.12); }
.segmented {
  display: inline-flex; background: var(--ink-50);
  padding: 2px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 12px;
}
.segmented button {
  padding: 5px 10px; border-radius: 5px; font-weight: 600; color: var(--ink-600);
}
.segmented button.active { background: white; color: var(--ink-900); box-shadow: var(--shadow-sm); }

/* =============== Empty/placeholder helpers =============== */
.kbd {
  font-family: ui-monospace, monospace;
  font-size: 11px; padding: 2px 6px;
  background: var(--ink-100);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--ink-700);
}

/* =============== Password-Lock-Widget (unten rechts) =============== */
.pwlock-widget {
  position: fixed; bottom: 14px; right: 14px; z-index: 250;
  display: flex; align-items: center; gap: 8px;
}
.pwlock-label { font-size: 11px; font-weight: 600; }
.pwlock-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); color: var(--ink-500);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-strong);
  cursor: pointer; transition: all .15s, opacity .2s;
  flex-shrink: 0;
  opacity: 0.55;
}
.pwlock-btn:hover { opacity: 1; }
.pwlock-btn-open { background: var(--ink-800); color: white; opacity: 1; }
.pwlock-active .pwlock-btn { opacity: 1; box-shadow: var(--shadow-accent); }
.pwlock-input-wrap {
  display: flex; align-items: center; gap: 6px;
  background: white; border: 1px solid var(--border-strong);
  border-radius: var(--radius-full); padding: 4px 6px 4px 14px;
  box-shadow: var(--shadow);
  animation: slideUp .2s ease-out;
  transition: border-color .15s;
}
.pwlock-input {
  border: none; outline: none; background: transparent;
  font-size: 13px; width: 120px; font-family: var(--font-sans);
}
.pwlock-go {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: white;
  display: grid; place-items: center;
  border: none; flex-shrink: 0;
}
@media (max-width: 600px) {
  .pwlock-widget { bottom: 10px; right: 10px; gap: 6px; }
  .pwlock-btn { width: 30px; height: 30px; opacity: 0.4; }
  .pwlock-btn:active { opacity: 1; }
  .pwlock-label { display: none; }
  .pwlock-input { width: 90px; font-size: 12px; }
  .pwlock-input-wrap { padding: 3px 5px 3px 10px; }
  .pwlock-go { width: 26px; height: 26px; }
}

/* =============== Mobile (Tablet & schmaler Desktop) =============== */
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .card { border-radius: 0; border-left: none; border-right: none; }
  .main-topbar { padding: 14px 16px; gap: 8px; }
  .topbar-title { font-size: 18px; }
  .search { width: auto; flex: 1; padding: 7px 14px; min-width: 0; }
  .search input { font-size: 13px; }
  .topbar-sub { display: none; }
  .day-panel { position: static; }
  .cal-head { padding: 16px 16px 12px; flex-wrap: wrap; }
  .cal-title { font-size: 22px; flex: 1 0 100%; order: -1; }
  .tag-pills { padding: 6px 16px 14px; }
  .cal-day { min-height: calc(64px * var(--density)); padding: 4px 3px; }
  .cal-day-num { font-size: 11px; }
  .cal-event { font-size: 9px; padding: 2px 4px; }
  .cal-weekday { padding: 8px 2px; font-size: 10px; }
  .list-row { grid-template-columns: 64px 1fr 40px; row-gap: 6px; padding: 12px 16px; }
  .list-row > .list-time-col, .list-row > .list-cap-col { display: none; }
  .day-panel-head { padding: 14px 16px 10px;}
  .day-panel-day { font-size: 28px; }
  .tweaks-panel { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .modal { max-height: 100vh; border-radius: 0; }
  .row-2 { grid-template-columns: 1fr; }
  .row-3 { grid-template-columns: 1fr; }
  .detail-where { grid-template-columns: 1fr; gap: 4px 0; }
  .detail-where dt { padding-top: 10px; }
}

/* =============== Phone (kleine Screens) =============== */
@media (max-width: 600px) {
  /* Topbar minimal */
  .main-topbar { padding: 10px 12px; gap: 6px; flex-wrap: wrap; }
  .main-topbar .sidebar-brand-mark { width: 30px !important; height: 30px !important; }
  .main-topbar > div:first-child > div:last-child > div:first-child { font-size: 13px !important; } /* #EVENTS */
  .main-topbar > div:first-child > div:last-child > div:last-child { font-size: 10px !important; } /* brand.name */
  .topbar-spacer { display: none; }
  .search { order: 99; width: 100% !important; flex: 1 1 100% !important; padding: 6px 12px !important; }
  .search input { font-size: 13px; }
  .btn.compact-md { padding: 8px !important; min-width: 36px; }
  .btn-label-hide-md { display: none !important; }

  /* Calendar: kompakte Tage und sehr kompakter Kopf */
  .cal-head { padding: 8px 12px 6px; gap: 6px; }
  .cal-title { font-size: 16px; }
  .cal-today-btn { padding: 4px 9px; font-size: 11px; }
  .view-switch button { padding: 4px 9px; font-size: 11px; }
  .tag-pills {
    padding: 2px 12px 6px;
    gap: 4px;
    scroll-padding: 12px;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent 100%);
  }
  .tag-pill { padding: 3px 8px; font-size: 10.5px; gap: 4px; }
  .tag-pill .dot { width: 5px; height: 5px; }

  .cal-day { min-height: calc(96px * var(--density)); padding: 2px 2px; }
  .cal-day-num { font-size: 10px; }
  .cal-event { padding: 4px 6px; height: 76px !important; }
  .cal-event { transform: rotate(0) !important; margin: 0 0 3px !important; width: 96% !important; max-width: 96% !important; }
  .cal-event:hover { transform: scale(1.04) !important; }
  .cal-weekday { padding: 6px 2px; font-size: 9px; }

  /* Postit innerhalb Calendar — bis 3 Zeilen Titel für mehr Lesbarkeit */
  .cal-event > div:nth-child(2) { font-size: 11px !important; -webkit-line-clamp: 3 !important; line-height: 1.3 !important; }

  /* DayPanel */
  .day-panel-head { padding: 12px 12px 8px; }
  .day-panel-day { font-size: 22px; }
  .day-panel-date { font-size: 11px; }
  .day-event { padding: 10px 12px; }
  .day-event-title { font-size: 13px; }
  .day-event-time { font-size: 11px; }

  /* Modals: fullscreen-ähnlich, mit echter dynamischer Viewport-Höhe (iOS-safe) */
  .modal-backdrop { padding: 0; align-items: stretch !important; }
  .modal {
    max-width: 100% !important; width: 100% !important;
    max-height: 100vh; height: 100vh;
    /* dvh = dynamic viewport height, berücksichtigt iOS-URL-Bar */
    max-height: 100dvh; height: 100dvh;
    border-radius: 0;
    display: flex; flex-direction: column;
  }
  .modal-hero { padding: 18px 18px 14px; flex-shrink: 0; }
  .modal-body {
    padding: 16px !important;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0; /* damit flex:1 wirklich scrollen kann */
  }
  .modal-foot {
    padding: 12px 16px;
    background: white;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 6px;
    /* Sicherheits-Padding für iOS Safari Home-Indicator */
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .modal-foot .btn { flex: 1 1 auto; min-height: 44px; }
  .detail-title { font-size: 22px !important; }
  .field-label { font-size: 12px; }

  /* Selbsterklärungs-Vorschau auf Mobile: skalierter A4-Thumbnail */
  .cert-body { padding: 8px !important; }
  .cert-controls { padding: 12px !important; }
  .cert-controls > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  /* Cert wird auf Phone wie ein Mini-A4 angezeigt (zoom = scaling) */
  .cert-sheet {
    /* Trick: width fix auf 720, dann zoom skaliert auf 50% → 360px sichtbar */
    width: 720px !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    zoom: 0.50;
    /* Firefox-Fallback (Firefox < 126 unterstützt zoom nicht) */
    -moz-transform: scale(0.50);
    -moz-transform-origin: top left;
  }

  /* Stats-Grid einspaltig */
  .stat-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 28px; margin: 6px 0 2px; }
  .bar-chart { height: 120px; }
  .tag-bar-row { grid-template-columns: 100px 1fr 32px; gap: 6px; font-size: 11px; }

  /* Footer kompakter */
  .app-footer { padding: 10px 14px; font-size: 10.5px; }
  .app-footer-line { gap: 3px 8px; }

  /* Embed-Hero kleiner */
  .embed-hero { padding: 14px 16px; }
  .embed-hero-title { font-size: 18px; }
  .embed-hero-sub { font-size: 12px; }

  /* Ankündigungs-Banner kompakter */
  .announce { padding: 8px 14px; font-size: 12px; gap: 8px; }
  .announce-title { font-size: 12.5px; }

  /* FAB nicht überlappt vom PW-Widget */
  .fab { width: 50px; height: 50px; bottom: 60px; right: 12px; }
}

/* Sehr kleine Phones (<400px) — nochmal etwas kleiner */
@media (max-width: 400px) {
  .cal-day { min-height: calc(78px * var(--density)); }
  .cal-event { height: 62px !important; padding: 3px 5px; }
  .cal-event > div:nth-child(2) { font-size: 10px !important; -webkit-line-clamp: 2 !important; }
  .postit-tag { font-size: 7px !important; }
  .postit-time { font-size: 8px !important; }
  /* Cert-Mini-Vorschau noch kleiner damit's reinpasst */
  .cert-sheet { zoom: 0.42; -moz-transform: scale(0.42); }
}

/* =============== Stats =============== */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat-card {
  padding: 20px;
  border-radius: var(--radius);
  background: white; border: 1px solid var(--border);
}
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-500); font-weight: 600; }
.stat-value { font-family: var(--font-display); font-size: 38px; line-height: 1; margin: 10px 0 4px; color: var(--ink-900); }
.stat-hint { font-size: 12px; color: var(--success); font-weight: 500; }

.bar-chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px; align-items: end;
  height: 180px;
}
.bar {
  background: var(--accent-100);
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: background .15s;
  cursor: pointer;
}
.bar:hover { background: var(--accent-300); }
.bar.current { background: var(--accent); }
.bar-month { text-align: center; font-size: 10px; color: var(--ink-500); font-weight: 600; margin-top: 6px; text-transform: uppercase; }
.bar-value { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 600; color: var(--ink-700); }

.tag-bar-row {
  display: grid; grid-template-columns: 160px 1fr 40px; gap: 10px; align-items: center;
  padding: 8px 0;
}
.tag-bar-track { height: 8px; background: var(--ink-100); border-radius: 4px; overflow: hidden; }
.tag-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.tag-bar-count { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Confetti-ish details */
.pill-counter {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-50); color: var(--accent-700);
  padding: 3px 9px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700;
}

/* floating action button for mobile */
.fab {
  position: fixed; bottom: 20px; right: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: grid; place-items: center;
  box-shadow: var(--shadow-accent), var(--shadow-lg);
  z-index: 50;
  display: none;
}
@media (max-width: 900px) {
  .fab { display: grid; }
}

/* week view */
.week-grid {
  display: grid;
  grid-template-columns: 60px repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}
.week-hour-col { border-right: 1px solid var(--border); }
.week-hour {
  height: 56px; font-size: 11px; color: var(--ink-500); padding: 2px 6px; text-align: right; font-variant-numeric: tabular-nums;
}
.week-day-col { border-right: 1px solid var(--border); position: relative; }
.week-day-col:last-child { border-right: none; }
.week-day-head {
  padding: 10px; text-align: center; border-bottom: 1px solid var(--border);
  background: var(--ink-50);
}
.week-day-weekday { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); font-weight: 600;}
.week-day-num { font-size: 20px; font-weight: 600; margin-top: 2px; font-family: var(--font-display); }
.week-day.today .week-day-num { color: var(--accent); }
.week-hour-row { height: 56px; border-bottom: 1px solid var(--border); }
.week-event {
  position: absolute; left: 4px; right: 4px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(214,0,108,.2);
}
.week-event-time { font-size: 10px; opacity: .9; font-weight: 500; margin-top: 2px; }

/* =============== BOOKING / MAIL / ATTENDEES ================ */

.badge-dot {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--accent); color: white;
  font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid white;
}

.input-error { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: 12px; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.field-hint { color: var(--ink-500); font-size: 12px; margin-top: 6px; }

.booking-status {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--accent-50);
  border: 1px solid var(--accent-200);
  border-radius: var(--radius-sm);
}
.booking-status.full { background: var(--ink-50); border-color: var(--border); color: var(--ink-700); }
.booking-status-num { font-size: 28px; font-weight: 700; color: var(--accent); font-family: var(--font-display); }
.booking-closed { display: flex; gap: 14px; padding: 16px; background: var(--ink-50); border-radius: var(--radius-sm); color: var(--ink-700); }
.booking-success { display: flex; gap: 14px; padding: 6px 0 14px; }
.booking-success-icon { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: white; flex-shrink: 0; }
.booking-mail-hint { margin-top: 10px; padding: 10px 12px; background: var(--ink-50); border-radius: 8px; font-size: 12px; color: var(--ink-600); display: flex; align-items: center; gap: 6px; }
.booking-deadline { margin-top: 10px; font-size: 12px; color: var(--ink-600); display: flex; align-items: center; gap: 6px; }
.booking-privacy { margin-top: 14px; font-size: 11px; color: var(--ink-500); line-height: 1.5; }

/* Mail inbox */
.mail-inbox { display: grid; grid-template-columns: 280px 1fr; min-height: 420px; max-height: 60vh; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mail-list { border-right: 1px solid var(--border); overflow-y: auto; background: var(--ink-50); }
.mail-item { display: block; width: 100%; text-align: left; padding: 12px 14px; border: none; background: transparent; border-bottom: 1px solid var(--border); cursor: pointer; }
.mail-item:hover { background: white; }
.mail-item.active { background: white; box-shadow: inset 3px 0 0 var(--accent); }
.mail-item-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.mail-item-time { font-size: 10px; color: var(--ink-500); }
.mail-item-to { font-size: 12px; font-weight: 500; color: var(--ink-800); margin-bottom: 2px; }
.mail-item-sub { font-size: 11px; color: var(--ink-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-type { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.mail-type-confirmation { background: #DCFCE7; color: #166534; }
.mail-type-waitlist { background: #FEF3C7; color: #92400E; }
.mail-type-promoted { background: #DBEAFE; color: #1E40AF; }
.mail-type-cancelledByAdmin { background: #FEE2E2; color: #991B1B; }
.mail-type-selfCancelled { background: #E5E7EB; color: #374151; }
.mail-type-broadcast { background: var(--accent-100); color: var(--accent-700); }
.mail-body-pane { padding: 16px 18px; overflow-y: auto; }
.mail-headers { padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 14px; font-size: 12px; color: var(--ink-700); display: flex; flex-direction: column; gap: 4px; }
.mail-header-label { color: var(--ink-500); display: inline-block; width: 60px; }
.mail-body-text { font-family: ui-monospace, monospace; font-size: 12px; line-height: 1.6; color: var(--ink-800); white-space: pre-wrap; margin: 0; }
.mail-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 20px; color: var(--ink-500); text-align: center; }

/* Attendees v2 */
.attendee-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 0 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.attendee-section { margin-bottom: 22px; }
.attendee-section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; gap: 16px; }
.attendee-section-title { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.attendee-section-count { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.capacity-bar { width: 120px; height: 6px; background: var(--ink-100); border-radius: 999px; overflow: hidden; }
.capacity-fill { height: 100%; background: var(--accent); border-radius: 999px; }
.attendee-empty { padding: 18px; text-align: center; color: var(--ink-500); font-size: 13px; background: var(--ink-50); border-radius: 8px; font-style: italic; }
.attendee-list { display: flex; flex-direction: column; }
.attendee-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px; background: white; transition: background .15s; }
.attendee-row:hover { background: var(--ink-50); }
.attendee-row.dragging { opacity: 0.4; }
.attendee-row.waitlist { background: #FFFAF0; border-color: #FED7AA; }
.attendee-num { width: 24px; height: 24px; background: var(--accent); color: white; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.attendee-num.waitlist { background: #D97706; }
.attendee-drag { cursor: grab; color: var(--ink-400); display: grid; place-items: center; }
.attendee-drag:active { cursor: grabbing; }
.attendee-main { flex: 1; min-width: 0; }
.attendee-email { font-size: 13px; font-weight: 500; color: var(--ink-800); }
.attendee-meta { font-size: 11px; color: var(--ink-500); margin-top: 2px; }
.attendee-tools { display: flex; gap: 4px; }
.btn-icon.danger:hover { background: #FEE2E2; color: var(--danger); }
.seat-full { color: var(--danger); font-weight: 600; }

.recipient-seg { display: flex; gap: 6px; }
.recipient-seg button { padding: 8px 14px; border: 1px solid var(--border); background: white; border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; color: var(--ink-700); }
.recipient-seg button.active { background: var(--accent); color: white; border-color: var(--accent); }
.recipient-seg button:disabled { opacity: 0.4; cursor: not-allowed; }


/* -------- CERTIFICATE / SELBSTERKLÄRUNG -------- */
.cert-body { padding: 24px !important; background: var(--ink-50); }
.cert-controls { margin-bottom: 20px; padding: 16px 18px; background: white; border: 1px solid var(--border); border-radius: var(--radius); }

.cert-sheet {
  background: white;
  box-shadow: 0 30px 60px rgba(15, 23, 42, .12), 0 4px 12px rgba(15, 23, 42, .06);
  border-radius: 6px;
  aspect-ratio: 1 / 1.414;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.cert-border {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1.5px solid #D6006C;
  padding: 28px 38px 36px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cert-border::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(214, 0, 108, .2);
  pointer-events: none;
}
.cert-corner {
  position: absolute;
  width: 16px; height: 16px;
  background: #D6006C;
  z-index: 0;
  pointer-events: none;
}
.cert-corner.tl { top: -1px; left: -1px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.cert-corner.tr { top: -1px; right: -1px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.cert-corner.bl { bottom: -1px; left: -1px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.cert-corner.br { bottom: -1px; right: -1px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
/* Inhalte über den Ecken-Verzierungen */
.cert-border > *:not(.cert-corner) { position: relative; z-index: 1; }

.cert-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.cert-logo img {
  width: 88px;
  height: auto;
  display: block;
}
.cert-logo-fallback {
  width: 72px; height: 72px;
  background: #D6006C; color: white;
  display: grid; place-items: center;
  font-family: 'Instrument Serif', serif;
  font-size: 36px; font-weight: 700;
  border-radius: 2px;
}
.cert-head-meta {
  text-align: right;
  font-size: 10.5px;
  color: var(--ink-600);
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.cert-head-strong {
  font-weight: 700;
  color: #1b1b1b;
  font-size: 13px;
  margin-top: 2px;
  letter-spacing: 0.01em;
}

.cert-kicker {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #D6006C;
  font-weight: 600;
  margin-bottom: 6px;
}
.cert-title {
  text-align: center;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 44px;
  margin: 0;
  color: #1b1b1b;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.cert-rule {
  width: 64px;
  height: 2px;
  background: #D6006C;
  margin: 14px auto 22px;
}

.cert-intro {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-600);
  line-height: 1.6;
}
.cert-intro-wide { max-width: 420px; margin: 14px auto 6px; }
.cert-email { color: var(--ink-700); }
.cert-sep { margin: 0 8px; color: var(--ink-400); }

.cert-name {
  text-align: center;
  font-family: 'Instrument Serif', serif;
  font-size: 34px;
  color: #1b1b1b;
  margin: 8px 0 4px;
  letter-spacing: 0.005em;
}

.cert-hours {
  text-align: center;
  margin: 18px 0 10px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}
.cert-hours-num {
  font-family: 'Instrument Serif', serif;
  font-size: 64px;
  line-height: 1;
  color: #D6006C;
  font-weight: 400;
}
.cert-hours-unit {
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-700);
  font-weight: 600;
}

.cert-event-card {
  margin: 24px 0 20px;
  padding: 18px 22px;
  background: #fafafa;
  border-left: 3px solid #D6006C;
  border-radius: 0 4px 4px 0;
}
.cert-event-title {
  font-weight: 700;
  font-size: 15px;
  color: #1b1b1b;
  margin-bottom: 10px;
  line-height: 1.35;
}
.cert-event-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 4px 14px;
  font-size: 11.5px;
  margin: 0;
}
.cert-event-grid dt {
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 10px;
  padding-top: 2px;
}
.cert-event-grid dd { margin: 0; color: var(--ink-800); }

.cert-teams-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(214, 0, 108, .25);
}
.cert-team-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  color: var(--ink-800);
}
.cert-team-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--tc, var(--accent));
}

.cert-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-end;
  gap: 24px;
  margin-top: auto;
  padding-top: 24px;
}
.cert-sig { text-align: center; }
.cert-sig-line {
  height: 1px;
  background: #1b1b1b;
  margin-bottom: 8px;
}
.cert-sig-label {
  font-size: 12px;
  font-weight: 600;
  color: #1b1b1b;
}
.cert-sig-sub {
  font-size: 10px;
  color: var(--ink-500);
  margin-top: 2px;
}

.cert-stamp {
  display: grid;
  place-items: center;
  padding-bottom: 10px;
}
.cert-stamp-ring {
  width: 94px; height: 94px;
  border-radius: 999px;
  border: 2px solid #D6006C;
  outline: 1px solid #D6006C;
  outline-offset: 3px;
  display: grid; place-items: center;
  transform: rotate(-6deg);
  color: #D6006C;
  background: rgba(214, 0, 108, 0.03);
}
.cert-stamp-inner { text-align: center; line-height: 1.1; }
.cert-stamp-small {
  font-size: 8px;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
}
.cert-stamp-big {
  font-family: 'Instrument Serif', serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  margin: 2px 0;
}

.cert-certno {
  text-align: center;
  margin-top: 14px;
  font-size: 9.5px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}

/* info-mode CTA card */
.info-cta-card {
  margin-top: 20px;
  padding: 16px 18px;
  display: flex;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, rgba(214, 0, 108, .06), rgba(214, 0, 108, .02));
  border: 1px solid rgba(214, 0, 108, .22);
  border-radius: var(--radius);
}
.info-cta-text { flex: 1; min-width: 0; }
.info-cta-kicker {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}
.info-cta-title { font-size: 15px; font-weight: 600; color: var(--ink-900); }
.info-cta-sub { font-size: 12px; color: var(--ink-600); margin-top: 2px; line-height: 1.45; }

/* -------- PRINT -------- */
@media print {
  @page { size: A4 portrait; margin: 0; }
  body * { visibility: hidden; }
  #cert-print-target, #cert-print-target * { visibility: visible; }
  #cert-print-target {
    position: fixed !important;
    inset: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    max-width: none !important;
    aspect-ratio: unset !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: white;
  }
  .no-print { display: none !important; }
  .modal-backdrop { background: white !important; }
  .modal { box-shadow: none !important; border: none !important; }
}


.cert-selbst-note {
  margin: 0 auto 18px;
  max-width: 520px;
  padding: 10px 14px;
  background: rgba(214, 0, 108, 0.06);
  border: 1px solid rgba(214, 0, 108, 0.2);
  border-radius: 4px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-700);
  text-align: center;
}
.cert-selbst-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #D6006C;
  color: white;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: 1px;
}
.cert-collab-note {
  margin: 4px auto 0;
  padding: 5px 14px 2px;
  font-size: 8px;
  line-height: 1.35;
  color: var(--ink-500);
  text-align: center;
  font-style: italic;
  border-top: 1px dashed rgba(214, 0, 108, 0.25);
  word-break: normal;
  flex-shrink: 0;
  max-width: 88%;
  background: #fff;
  position: relative;
}

/* Spacer im Zertifikat: drueckt cert-certno + cert-collab-note immer ans Seitenende */
.cert-spacer {
  flex: 1 1 auto;
  min-height: 0;
}

/* Wochenansicht: Postit-Optik wie Monatsansicht, an Zeitraster gepinnt */
.week-postit {
  position: absolute;
  left: 4%;
  width: 92%;
  padding: 4px 6px 4px 8px;
  border-radius: 3px;
  overflow: hidden;
  background: #FEFAE8;
  border-left: 3px solid var(--postit-accent, #888);
  box-shadow: 1px 2px 6px rgba(0,0,0,.13), 3px 5px 14px rgba(0,0,0,.07);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1px;
  transition: transform .15s ease, box-shadow .15s ease;
  z-index: 1;
}
.week-postit:hover {
  transform: scale(1.025);
  box-shadow: 2px 4px 12px rgba(0,0,0,.2), 5px 10px 24px rgba(0,0,0,.1);
  z-index: 10;
}
.week-postit .postit-tag { font-size: 7px; padding: 1px 4px; }
.week-postit .postit-time { font-size: 9px; }

/* Pin als eigenständiges Element — sitzt EXAKT auf der Tagessäulen-Mitte
   am Start-Zeitpunkt, unabhängig davon wohin der Postit-Body verschoben ist. */
.week-pin {
  position: absolute;
  left: 50%;
  margin-left: -7px;
  margin-top: -7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff5a73 0%, var(--postit-accent, #d6006c) 60%, #8a0244 100%);
  box-shadow:
    0 2px 4px rgba(0,0,0,.45),
    inset -1px -1px 2px rgba(0,0,0,.25),
    inset 1px 1px 1px rgba(255,255,255,.45);
  z-index: 5;
  cursor: pointer;
  transition: transform .15s;
  display: none;
}
.week-pin:hover, .week-pin:active { transform: scale(1.2); z-index: 60; }

/* Mobile: Pin sichtbar, Postits seitlich versetzt mit Verbindungsstrich */
@media (max-width: 700px) {
  /* Container-Overflow auf allen Ebenen erlauben, damit Postits sichtbar bleiben */
  .week-grid { overflow: visible; }
  .card:has(.week-grid) { overflow: visible !important; }
  .week-day-col { overflow: visible !important; }
  .week-day-col > div:nth-child(2) { overflow: visible !important; }

  .week-pin { display: block; }

  .week-postit {
    width: 140px;
    overflow: visible;
    padding: 5px 8px;
    z-index: 2;
  }
  /* Postit hängt rechts vom Pin */
  .week-postit.wp-side-right {
    left: 50% !important;
    margin-left: 12px;
  }
  /* Postit hängt links vom Pin */
  .week-postit.wp-side-left {
    left: 50% !important;
    margin-left: -152px; /* -140 (Breite) - 12 (Abstand) */
  }
  /* Verbindungsstrich vom Postit zum Pin */
  .week-postit::before {
    content: '';
    position: absolute;
    top: 8px;
    width: 14px; height: 2px;
    background: linear-gradient(90deg, var(--postit-accent, #d6006c), transparent);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
  }
  .week-postit.wp-side-right::before { left: -14px; }
  .week-postit.wp-side-left::before {
    right: -14px; left: auto;
    background: linear-gradient(270deg, var(--postit-accent, #d6006c), transparent);
  }

  .week-postit:active, .week-postit:hover {
    z-index: 50;
    transform: scale(1.04);
  }
  .week-postit .postit-time { font-size: 10px; font-weight: 700; }
  .week-postit .postit-tag { font-size: 7.5px; }
  .week-postit > div:last-child { font-size: 11px !important; -webkit-line-clamp: 3 !important; }
}

/* Vergangene Listen-Einträge etwas gedämpfter */
.list-row-past { opacity: 0.7; }
.list-row-past .list-title { color: var(--ink-700); font-weight: 500; }
.list-row-past:hover { opacity: 0.95; }

/* Banner-Bild des Events im Zertifikat */
.cert-event-banner {
  margin: -14px -16px 10px;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  max-height: 90px;
}
.cert-event-banner img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}
.cert-sheet.pdf-mode .cert-event-banner { max-height: 80px; margin: -10px -14px 8px; }
.cert-sheet.pdf-mode .cert-event-banner img { height: 80px; }

/* Slider-Arrows links/rechts vom Range-Input */
.slider-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink-50);
  border: 1px solid var(--border);
  color: var(--ink-700);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
}
.slider-arrow:hover { background: var(--ink-100); }
.slider-arrow:active { transform: scale(0.92); }

/* Signaturen-Block am Ende des Zertifikats */
.cert-signature {
  display: flex;
  gap: 28px;
  margin: 20px auto 12px;
  max-width: 540px;
  justify-content: space-between;
}
.cert-sig-block {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.cert-sig-line {
  font-family: 'Instrument Serif', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-800);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink-300);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-sig-caption {
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 600;
}
.cert-sig-email {
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--ink-600);
  font-family: 'Instrument Sans', sans-serif;
  word-break: break-all;
}

/* PDF-Print-Layout: 794×1123 px = A4 @ 96 dpi, alles auf einer Seite, Footer mit Luft */
.cert-sheet.pdf-mode {
  aspect-ratio: unset !important;
  width: 794px !important;
  height: 1123px !important;
  max-width: 794px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  background: #fff !important;
  margin: 0 !important;
}
.cert-sheet.pdf-mode .cert-border {
  width: 100% !important;
  height: 100% !important;
  padding: 40px 54px 44px !important;
  box-sizing: border-box !important;
}
.cert-sheet.pdf-mode .cert-collab-note {
  font-size: 8.5px !important;
  line-height: 1.35 !important;
  padding: 5px 18px 2px !important;
  margin-top: 4px !important;
  flex-shrink: 0 !important;
  max-width: 84% !important;
}
.cert-sheet.pdf-mode .cert-certno {
  margin-top: 10px !important;
  font-size: 9.5px !important;
  flex-shrink: 0 !important;
}
.cert-sheet.pdf-mode .cert-selbst-note {
  margin: 0 auto 10px !important;
  padding: 7px 14px !important;
  font-size: 10px !important;
}
.cert-sheet.pdf-mode .cert-event-card { padding: 10px 14px !important; }
.cert-sheet.pdf-mode .cert-hours      { margin: 6px 0 !important; }
.cert-sheet.pdf-mode .cert-title      { margin: 2px 0 !important; }

/* Accent-Color-Picker im Brand-Editor */
.accent-pick {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 3px solid transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  transition: transform .12s, border-color .12s;
}
.accent-pick:hover { transform: scale(1.05); }
.accent-pick.active { border-color: rgba(0,0,0,.35); box-shadow: 0 0 0 2px #fff inset; }
