/* ============================================================================
   PaperOffice Portal – Clean Minimal Design
   Angelehnt an das PaperOffice App-Design: flach, viel Luft, subtile Farben
   ============================================================================ */
:root {
  --po-primary: #5B9BD5;
  --po-primary-dark: #4178BE;
  --po-primary-light: rgba(91, 155, 213, 0.07);
  --po-accent: #5B9BD5;
  --docs-accent: var(--po-primary);
  --docs-accent-hover: var(--po-primary-dark);
  --docs-accent-light: var(--po-primary-light);
  --docs-accent-ultra-light: rgba(91, 155, 213, 0.06);
  --po-bg: #f0f2f6;
  --po-card: #ffffff;
  --po-sidebar: #1a1f2e;
  --po-sidebar-text: #8b95a8;
  --po-sidebar-active: #ffffff;
  --po-text: #1a1f36;
  --po-muted: #6b7385;
  --po-border: #e6e9ef;
  --po-danger: #ef4444;
  --po-warning: #f59e0b;
  --po-success: #10b981;
  --po-radius: 12px;
  --po-radius-sm: 6px;
  --po-radius-lg: 18px;
  --po-shadow-sm: 0 1px 3px rgba(15, 23, 42, .05);
  --po-shadow: 0 2px 8px rgba(15, 23, 42, .06);
  --po-shadow-md: 0 6px 20px rgba(15, 23, 42, .08);
  --po-shadow-lg: 0 12px 32px rgba(91, 155, 213, .12);
  --po-font-family: 'DM Sans', 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans Devanagari', 'Noto Sans Thai', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --po-dark: #1a1f2e;
  --po-transition: .15s ease;
  --po-sidebar-w: 240px;
  --po-content-max: min(100%, 1520px);
  --po-content-pad: clamp(1.25rem, 3vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: var(--po-font-family);
  background: var(--po-bg);
  color: var(--po-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--po-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
img { max-width: 100%; }

/* Loading / Fullscreen Center */
.portal-fullscreen-center { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; gap: 1rem; color: var(--po-muted); }
.portal-spinner { width: 32px; height: 32px; border: 2.5px solid var(--po-border); border-top-color: var(--po-primary); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 404 / Error */
.portal-error-page { text-align: center; padding: 4rem 1.5rem; }
.portal-error-page h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: .5rem; }
.portal-error-page p { color: var(--po-muted); font-size: 1rem; }

/* ============================================================================
   Login Page (Standalone)
   ============================================================================ */
.portal-login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1.5rem; background: var(--po-bg); }
.portal-login-card { background: var(--po-card); border-radius: var(--po-radius); border: 1px solid var(--po-border); box-shadow: var(--po-shadow-lg); padding: 2.5rem; width: 100%; max-width: 420px; text-align: center; }
.portal-login-card .portal-logo { height: 44px; margin-bottom: 1.5rem; object-fit: contain; }
.portal-login-card h1 { font-size: 1.35rem; font-weight: 600; margin-bottom: .5rem; }
.portal-login-card .portal-login-subtitle { color: var(--po-muted); margin-bottom: 2rem; font-size: .9rem; }
.portal-login-card .portal-input-group { margin-bottom: 1.25rem; text-align: left; }
.portal-login-card label { display: block; font-size: .82rem; font-weight: 500; margin-bottom: .35rem; color: var(--po-muted); }
.portal-login-card input[type="email"] { width: 100%; padding: .65rem .85rem; border: 1px solid var(--po-border); border-radius: var(--po-radius-sm); font-size: .95rem; transition: border var(--po-transition); }
.portal-login-card input[type="email"]:focus { outline: none; border-color: var(--po-primary); box-shadow: 0 0 0 3px rgba(3,102,214,.1); }
.portal-login-success { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: var(--po-radius-sm); padding: 1rem; margin-top: 1rem; color: #065f46; }
.portal-login-success i { color: var(--po-success); margin-right: .5rem; }

/* ============================================================================
   Layout: Sidebar + Main (eingeloggter Bereich)
   ============================================================================ */
.portal-layout { display: flex; min-height: 100vh; }
.portal-sidebar {
  width: var(--po-sidebar-w); background: var(--po-sidebar); color: var(--po-sidebar-text);
  display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  transition: transform var(--po-transition);
}
.portal-sidebar-header { padding: 1.25rem 1.25rem .75rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.portal-sidebar-header img { height: 30px; max-width: 180px; object-fit: contain; object-position: left center; }
.portal-sidebar-header .portal-sidebar-logo { height: 30px; max-width: 180px; object-fit: contain; }
.portal-sidebar-header .portal-tenant-name { font-size: .82rem; font-weight: 600; color: var(--po-sidebar-active); margin-top: .5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-sidebar-nav { flex: 1; padding: .75rem 0; overflow-y: auto; }
.portal-sidebar-nav a {
  display: flex; align-items: center; gap: .75rem; padding: .6rem 1.25rem;
  color: var(--po-sidebar-text); font-size: .88rem; font-weight: 500;
  transition: all var(--po-transition); border-left: 3px solid transparent;
}
.portal-sidebar-nav a:hover { color: var(--po-sidebar-active); background: rgba(255,255,255,.05); text-decoration: none; }
.portal-sidebar-nav a.active { color: var(--po-sidebar-active); background: rgba(255,255,255,.08); border-left-color: var(--po-primary); }
.portal-sidebar-nav a i { width: 20px; text-align: center; font-size: .9rem; }
.portal-sidebar-nav .nav-badge { margin-left: auto; background: var(--po-danger); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.portal-sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.06); font-size: .8rem; }
.portal-sidebar-footer .portal-user-info { display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .4rem 0; }
.portal-sidebar-footer .portal-user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--po-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; }
.portal-sidebar-footer .portal-user-name { color: var(--po-sidebar-active); font-weight: 500; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.portal-sidebar-footer .portal-user-email { color: var(--po-sidebar-text); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }

.portal-main { flex: 1; margin-left: var(--po-sidebar-w); }
.portal-topbar {
  background: var(--po-card); border-bottom: 1px solid var(--po-border);
  padding: .65rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.portal-topbar h2 { font-size: 1.05rem; font-weight: 600; }
.portal-topbar-actions { display: flex; align-items: center; gap: .75rem; }
.portal-hamburger { display: none; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--po-text); }
.portal-content { padding: 1.5rem var(--po-content-pad); max-width: var(--po-content-max); width: 100%; margin: 0 auto; }

/* Mobile sidebar */
.portal-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; }
@media (max-width: 768px) {
  .portal-sidebar { transform: translateX(-100%); }
  .portal-sidebar.open { transform: translateX(0); }
  .portal-sidebar-overlay.open { display: block; }
  .portal-main { margin-left: 0; }
  .portal-hamburger { display: block; }
}

/* ============================================================================
   Components
   ============================================================================ */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .55rem 1.1rem; border-radius: var(--po-radius-sm); font-weight: 500;
  font-size: .88rem; border: none; cursor: pointer; transition: all var(--po-transition); text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--po-primary); color: #fff; }
.btn-primary:hover { background: #0256B9; }
.btn-secondary { background: var(--po-card); color: var(--po-text); border: 1px solid var(--po-border); }
.btn-secondary:hover { background: var(--po-bg); border-color: #d1d5de; }
.btn-danger { background: var(--po-danger); color: #fff; }
.btn-success { background: var(--po-success); color: #fff; }
.btn-sm { padding: .35rem .7rem; font-size: .8rem; }
.btn-lg { padding: .7rem 1.4rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Cards */
.card { background: var(--po-card); border-radius: var(--po-radius); border: 1px solid var(--po-border); padding: 1.25rem; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.card-header h3 { font-size: .95rem; font-weight: 600; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--po-card); border-radius: var(--po-radius); border: 1px solid var(--po-border); padding: 1.15rem; display: flex; align-items: center; gap: 1rem; }
.stat-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.stat-icon.blue { background: #eff6ff; color: #2563eb; }
.stat-icon.green { background: #ecfdf5; color: #059669; }
.stat-icon.amber { background: #fffbeb; color: #d97706; }
.stat-icon.purple { background: #eff6ff; color: #2563eb; }
.stat-value { font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: .78rem; color: var(--po-muted); }

/* Status badges */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 99px; font-size: .72rem; font-weight: 600; }
.badge-open { background: #dbeafe; color: #1d4ed8; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-resolved { background: #d1fae5; color: #065f46; }
.badge-closed { background: #f3f4f6; color: #6b7280; }
.badge-confirmed { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-low { background: #f3f4f6; color: #6b7280; }
.badge-normal { background: #dbeafe; color: #1d4ed8; }
.badge-high { background: #fef3c7; color: #92400e; }
.badge-urgent { background: #fee2e2; color: #991b1b; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }

/* Tables / Lists */
.data-list { list-style: none; }
.data-list-item { display: flex; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--po-border); transition: background var(--po-transition); cursor: pointer; gap: 1rem; }
.data-list-item:last-child { border-bottom: none; }
.data-list-item:hover { background: var(--po-bg); }
.data-list-item .item-main { flex: 1; min-width: 0; }
.data-list-item .item-title { font-weight: 500; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-list-item .item-sub { font-size: .78rem; color: var(--po-muted); margin-top: 2px; }
.data-list-item .item-meta { text-align: right; flex-shrink: 0; }
.data-list-item .item-date { font-size: .72rem; color: var(--po-muted); }
.data-list-empty { padding: 2.5rem 1rem; text-align: center; color: var(--po-muted); }
.data-list-empty i { font-size: 2rem; margin-bottom: .6rem; display: block; opacity: .3; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 500; margin-bottom: .35rem; color: var(--po-muted); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .6rem .85rem; border: 1px solid var(--po-border);
  border-radius: var(--po-radius-sm); font-size: .92rem; transition: border var(--po-transition); background: #fff;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--po-primary); box-shadow: 0 0 0 3px rgba(3,102,214,.08); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* Messages thread */
.message-thread { max-height: 500px; overflow-y: auto; padding: .5rem 0; }
.message-bubble { max-width: 80%; margin-bottom: .75rem; padding: .7rem 1rem; border-radius: var(--po-radius); font-size: .88rem; line-height: 1.5; }
.message-bubble.enduser { background: var(--po-primary); color: #fff; margin-left: auto; border-bottom-right-radius: 3px; }
.message-bubble.agent { background: var(--po-bg); color: var(--po-text); border-bottom-left-radius: 3px; }
.message-bubble.system { background: #fef3c7; color: #92400e; text-align: center; max-width: 90%; margin: .5rem auto; font-size: .78rem; }
.message-meta { font-size: .68rem; margin-top: .25rem; opacity: .7; }
.message-bubble.enduser .message-meta { text-align: right; }

/* Service cards (eingeloggt) */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.service-card { background: var(--po-card); border-radius: var(--po-radius); border: 1px solid var(--po-border); overflow: hidden; transition: all var(--po-transition); cursor: pointer; }
.service-card:hover { border-color: var(--po-primary); box-shadow: 0 2px 8px rgba(3,102,214,.08); }
.service-card-body { padding: 1.25rem; }
.service-card-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: .3rem; }
.service-card-body p { font-size: .82rem; color: var(--po-muted); margin-bottom: .75rem; line-height: 1.5; }
.service-card-footer { display: flex; align-items: center; justify-content: space-between; }
.service-price { font-size: 1.1rem; font-weight: 600; color: var(--po-primary); }
.service-price .price-free { color: var(--po-success); }
.service-duration { font-size: .78rem; color: var(--po-muted); }
.service-duration i { margin-right: .25rem; }

/* Slot picker */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .5rem; margin-top: .75rem; }
.slot-btn { padding: .5rem; border: 1px solid var(--po-border); border-radius: var(--po-radius-sm); background: #fff; cursor: pointer; font-size: .82rem; font-weight: 500; text-align: center; transition: all var(--po-transition); }
.slot-btn:hover { border-color: var(--po-primary); color: var(--po-primary); }
.slot-btn.selected { background: var(--po-primary); color: #fff; border-color: var(--po-primary); }

/* ═══════════════════════════════════════════════════════════════
   BOOKING REDESIGN – Card-basiertes Service-Detail
   ═══════════════════════════════════════════════════════════════ */

.bk-header { background: var(--po-card); border-radius: var(--po-radius); border: 1px solid var(--po-border); overflow: hidden; margin-bottom: 1.25rem; }
.bk-header-color { height: 4px; }
.bk-header-body { padding: 1.25rem 1.5rem; }
.bk-header-body h1 { font-size: 1.3rem; font-weight: 600; margin: 0 0 .35rem; color: var(--po-text); }
.bk-desc { color: var(--po-muted); font-size: .88rem; line-height: 1.5; margin-bottom: .75rem; }
.bk-meta { display: flex; flex-wrap: wrap; gap: 1rem; }
.bk-meta span { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--po-text); font-weight: 500; }
.bk-meta i { color: var(--po-primary); font-size: .78rem; }
.bk-free { color: var(--po-success); font-weight: 600; }

.bk-section { background: var(--po-card); border-radius: var(--po-radius); border: 1px solid var(--po-border); padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.bk-section-header { font-size: 1rem; font-weight: 600; color: var(--po-text); margin-bottom: .4rem; display: flex; align-items: center; gap: .45rem; }
.bk-section-header i { color: var(--po-primary); }
.bk-section-hint { font-size: .8rem; color: var(--po-muted); margin-bottom: 1rem; display: flex; align-items: center; gap: .35rem; }
.bk-section-hint i { flex-shrink: 0; }
.bk-suggested .bk-section-hint i { color: var(--po-success); }
.bk-manual .bk-section-hint i { color: var(--po-primary); }

.bk-suggested-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: .6rem; }
.bk-suggest-card {
  background: var(--po-bg); border: 1.5px solid var(--po-border); border-radius: var(--po-radius);
  padding: .85rem 1rem; cursor: pointer; transition: all .15s ease; text-align: left; position: relative;
}
.bk-suggest-card:hover { border-color: var(--po-primary); box-shadow: 0 2px 8px rgba(3,102,214,.1); }
.bk-suggest-card.active { border-color: var(--po-primary); background: var(--po-primary-light); box-shadow: 0 0 0 3px rgba(3,102,214,.12); }
.bk-sgc-badge { font-size: .68rem; font-weight: 600; color: var(--po-success); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .4rem; display: flex; align-items: center; gap: .25rem; }
.bk-sgc-badge i { font-size: .62rem; }
.bk-sgc-date { font-size: .88rem; font-weight: 500; color: var(--po-text); margin-bottom: .1rem; }
.bk-sgc-time { font-size: 1.05rem; font-weight: 700; color: var(--po-primary); margin-bottom: .25rem; }
.bk-sgc-dur { font-size: .75rem; color: var(--po-muted); display: flex; align-items: center; gap: .25rem; }

.bk-date-strip { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.bk-date-card {
  flex: 0 0 auto; width: 64px; padding: .5rem .25rem; border: 1.5px solid var(--po-border);
  border-radius: var(--po-radius); background: var(--po-card); cursor: pointer; text-align: center;
  transition: all .15s ease; display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.bk-date-card:hover { border-color: var(--po-primary); background: var(--po-primary-light); }
.bk-date-card.active { border-color: var(--po-primary); background: var(--po-primary); color: #fff; }
.bk-date-card.active .bk-dc-day, .bk-date-card.active .bk-dc-month { color: rgba(255,255,255,.8); }
.bk-date-card.active .bk-dc-num { color: #fff; }
.bk-dc-day { font-size: .68rem; font-weight: 600; color: var(--po-muted); text-transform: uppercase; }
.bk-dc-num { font-size: 1.2rem; font-weight: 700; color: var(--po-text); line-height: 1.2; }
.bk-dc-month { font-size: .68rem; font-weight: 500; color: var(--po-muted); }

.bk-slots-label { font-size: .82rem; font-weight: 600; color: var(--po-text); margin-bottom: .5rem; }
.bk-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: .4rem; }
.bk-slot-chip { padding: .5rem .4rem; border: 1.5px solid var(--po-border); border-radius: var(--po-radius-sm); background: var(--po-card); cursor: pointer; text-align: center; transition: all .15s ease; }
.bk-slot-chip:hover { border-color: var(--po-primary); }
.bk-slot-chip.active { border-color: var(--po-primary); background: var(--po-primary); color: #fff; }
.bk-slot-chip.active .bk-sc-end { color: rgba(255,255,255,.8); }
.bk-sc-time { font-size: .9rem; font-weight: 600; display: block; }
.bk-sc-end { font-size: .7rem; color: var(--po-muted); display: block; }

.bk-loading { text-align: center; padding: 1.5rem 1rem; color: var(--po-muted); font-size: .85rem; display: flex; align-items: center; justify-content: center; gap: .5rem; }
.bk-empty-slots { text-align: center; padding: 1.25rem; color: var(--po-muted); font-size: .85rem; }
.bk-empty-slots i { margin-right: .35rem; }

.bk-lang-select { margin-top: .75rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.bk-lang-select label { font-size: .82rem; color: var(--po-muted); display: flex; align-items: center; gap: .35rem; white-space: nowrap; }
.bk-lang-select select { padding: .3rem .55rem; border-radius: var(--po-radius-sm); border: 1px solid var(--po-border); font-size: .82rem; background: var(--po-card); }

.bk-confirm-bar {
  background: var(--po-card); border-radius: var(--po-radius); border: 1.5px solid var(--po-primary);
  box-shadow: 0 -2px 16px rgba(0,0,0,.06); padding: 1rem 1.5rem; position: sticky; bottom: 1rem; z-index: 10;
}
.bk-confirm-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.bk-ci-service { font-size: .8rem; color: var(--po-muted); display: flex; align-items: center; gap: .35rem; margin-bottom: .15rem; }
.bk-ci-datetime { font-size: .95rem; color: var(--po-text); }
.pub-confirm-info { font-size: .95rem; color: var(--po-text); line-height: 1.5; }
.pub-confirm-bar { margin-top: 1.5rem; }

/* Checkout-Formular */
.bk-guest-form { margin-top: .5rem; }
.pub-guest-summary { margin-bottom: 1.25rem; }
.pub-guest-selected {
  background: var(--po-primary-light); border: 1px solid var(--po-primary); border-radius: var(--po-radius);
  padding: .75rem 1rem; font-size: .92rem; color: var(--po-text); line-height: 1.5;
}
.pub-guest-selected i { color: var(--po-primary); margin-right: .35rem; }
.pub-checkout-fields { display: flex; flex-direction: column; gap: 1rem; }
.pub-checkout-group {
  background: var(--po-bg-card); border: 1px solid var(--po-border); border-radius: var(--po-radius);
  padding: 1.25rem; margin-bottom: .25rem;
}
.pub-checkout-group-title {
  font-size: .88rem; font-weight: 700; color: var(--po-text); margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.pub-checkout-group-title i { color: var(--po-primary); font-size: .85rem; }
.pub-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: .75rem; }
.pub-field-row:last-child { margin-bottom: 0; }
.pub-field-row.pub-field-single { grid-template-columns: 1fr; }
.pub-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--po-text); margin-bottom: .35rem; }
.pub-field .pub-input { width: 100%; }
.pub-field-sm { flex: 0 0 35%; max-width: 35%; }
.pub-textarea { resize: vertical; min-height: 50px; font-family: inherit; }

/* Bestelluebersicht */
.pub-order-summary {
  background: var(--po-bg-card); border: 1px solid var(--po-border); border-radius: var(--po-radius);
  padding: 1.25rem; margin-top: .25rem;
}
.pub-order-title {
  font-size: .88rem; font-weight: 700; color: var(--po-text); margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.pub-order-title i { color: var(--po-primary); font-size: .85rem; }
.pub-order-row { display: flex; justify-content: space-between; align-items: baseline; padding: .35rem 0; font-size: .9rem; color: var(--po-text); }
.pub-order-row.pub-order-tax { color: var(--po-muted); font-size: .85rem; }
.pub-order-row.pub-order-total { font-size: 1.05rem; font-weight: 700; }
.pub-order-divider { border-top: 1px solid var(--po-border); margin: .5rem 0; }
.pub-order-note { font-size: .78rem; color: var(--po-muted); font-style: italic; padding: .2rem 0; }

/* AGB-Checkbox */
.pub-agb-row { margin: .5rem 0; }
.pub-checkbox { display: flex; align-items: flex-start; gap: .5rem; font-size: .85rem; color: var(--po-text); cursor: pointer; line-height: 1.4; }
.pub-checkbox input[type="checkbox"] { margin-top: .2rem; accent-color: var(--po-primary); min-width: 16px; }
.pub-checkbox a { color: var(--po-primary); text-decoration: underline; }

.pub-guest-hint { font-size: .8rem; color: var(--po-muted); text-align: center; margin-top: .25rem; }
.pub-guest-hint i { color: var(--po-success); margin-right: .25rem; }
.bk-result-booking { font-size: 1.05rem; color: var(--po-text); margin-bottom: .75rem; }
.bk-result-email { font-size: .88rem; color: var(--po-muted); margin-bottom: 1rem; }
.bk-result-email i { margin-right: .35rem; }

/* Invoice-Card auf Success-Page */
.pub-invoice-card {
  background: var(--po-bg-card); border: 1px solid var(--po-border); border-radius: var(--po-radius);
  padding: 1.25rem; margin: 1.25rem 0; text-align: left; max-width: 420px; margin-left: auto; margin-right: auto;
}
.pub-invoice-header { font-size: .9rem; font-weight: 700; color: var(--po-text); margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.pub-invoice-header i { color: var(--po-primary); }
.pub-invoice-number { font-size: .85rem; color: var(--po-muted); margin-bottom: .75rem; }
.pub-invoice-details { margin-top: .5rem; }
.pub-invoice-row { display: flex; justify-content: space-between; padding: .3rem 0; font-size: .88rem; color: var(--po-text); }
.pub-invoice-row.pub-invoice-tax { color: var(--po-muted); font-size: .82rem; }
.pub-invoice-row.pub-invoice-total { font-size: 1rem; font-weight: 700; }
.pub-invoice-divider { border-top: 1px solid var(--po-border); margin: .4rem 0; }
.pub-invoice-email-hint { font-size: .78rem; color: var(--po-muted); margin-top: .75rem; text-align: center; }
.pub-invoice-email-hint i { color: var(--po-primary); margin-right: .25rem; }

@media (max-width: 640px) {
  .bk-suggested-grid { grid-template-columns: 1fr; }
  .bk-confirm-inner { flex-direction: column; text-align: center; }
  .bk-header-body { padding: 1rem; }
  .bk-section { padding: 1rem; }
  .bk-slot-grid { grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); }
  .pub-field-row { grid-template-columns: 1fr; }
  .pub-field-sm { flex: initial; max-width: 100%; }
  .pub-checkout-group { padding: 1rem; }
  .pub-order-summary { padding: 1rem; }
  .pub-invoice-card { max-width: 100%; }
}

/* KB (eingeloggt) */
.kb-search-wrap { position: relative; margin-bottom: 1.5rem; }
.kb-search-wrap input { padding-left: 2.5rem; font-size: 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.kb-search-wrap i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--po-muted); }
.kb-article { line-height: 1.8; }
.kb-article h1, .kb-article h2, .kb-article h3 { margin: 1.5rem 0 .75rem; }
.kb-article p { margin-bottom: 1rem; }
.kb-article pre { background: var(--po-bg); padding: 1rem; border-radius: var(--po-radius-sm); overflow-x: auto; font-size: .82rem; border: 1px solid var(--po-border); }

/* Account / Balance */
.balance-card { background: var(--po-primary); color: #fff; border-radius: var(--po-radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.balance-card .balance-amount { font-size: 1.75rem; font-weight: 700; }
.balance-card .balance-label { opacity: .8; font-size: .85rem; }

/* Toast */
.portal-toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--po-dark); color: #fff; padding: .65rem 1.15rem; border-radius: var(--po-radius-sm); font-size: .88rem; z-index: 999; box-shadow: var(--po-shadow-lg); animation: toast-in .2s ease; }
.portal-toast.success { background: var(--po-success); }
.portal-toast.error { background: var(--po-danger); }
.portal-toast.info { background: var(--po-primary); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Back link */
.back-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--po-muted); font-size: .82rem; margin-bottom: 1rem; }
.back-link:hover { color: var(--po-primary); text-decoration: none; }

/* Page header */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: .75rem; }
.page-header h2 { font-size: 1.15rem; font-weight: 600; }

/* Filter tabs */
.filter-tabs { display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filter-tab { padding: .35rem .8rem; border-radius: 99px; font-size: .78rem; font-weight: 500; background: var(--po-card); color: var(--po-muted); cursor: pointer; border: 1px solid var(--po-border); transition: all var(--po-transition); }
.filter-tab.active { background: var(--po-primary); color: #fff; border-color: var(--po-primary); }
.filter-tab:hover:not(.active) { border-color: #d1d5de; }

/* Section title */
.section-title { font-size: .82rem; font-weight: 600; color: var(--po-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .75rem; }

/* Powered by */
.portal-powered { text-align: center; padding: 2rem 0 1rem; font-size: .72rem; color: var(--po-muted); }
.portal-powered a { color: var(--po-muted); font-weight: 500; }
.portal-powered a:hover { color: var(--po-primary); }
.portal-powered-legal a { font-weight: 400; }

/* ============================================================================
   Oeffentliche Seiten (Public Shell)
   ============================================================================ */

.pub-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
.pub-header { background: #fff; border-bottom: 1px solid var(--po-border); position: sticky; top: 0; z-index: 200; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.pub-header-inner { max-width: var(--po-content-max); width: 100%; margin: 0 auto; padding: .65rem var(--po-content-pad); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pub-header-brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.pub-header-home-link { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none !important; cursor: pointer; }
.pub-logo { height: 36px; max-width: 220px; object-fit: contain; object-position: left center; }
.pub-logo-text { font-size: 1.05rem; font-weight: 600; color: var(--po-text); }
.pub-nav { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.pub-nav a {
  display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem;
  border-radius: var(--po-radius-sm); font-size: .85rem; font-weight: 500;
  color: var(--po-muted); transition: all var(--po-transition);
}
.pub-nav a:hover { color: var(--po-text); background: var(--po-bg); text-decoration: none; }
.pub-nav a.active { color: var(--po-primary); background: var(--po-primary-light); }
.pub-nav a i { font-size: .8rem; }
.pub-login-btn {
  display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .9rem;
  border-radius: var(--po-radius-sm); background: var(--po-primary); color: #fff !important;
  font-size: .85rem; font-weight: 500; transition: all var(--po-transition); flex-shrink: 0;
}
.pub-login-btn:hover { background: #0256B9; text-decoration: none !important; }

@media (max-width: 768px) {
  .pub-header-inner { flex-wrap: wrap; }
  .pub-nav { order: 3; width: 100%; justify-content: center; padding-top: .5rem; border-top: 1px solid var(--po-border); }
}

/* Footer */
.pub-footer { background: #fff; border-top: 1px solid var(--po-border); padding: 1.25rem; font-size: .75rem; color: var(--po-muted); margin-top: auto; }
.pub-footer a { color: var(--po-muted); font-weight: 500; }
.pub-footer a:hover { color: var(--po-primary); }
.pub-footer-inner { display: flex; justify-content: space-between; align-items: center; }
.pub-footer-legal { display: flex; gap: 1rem; }
.pub-footer-legal a { color: var(--po-muted); font-weight: 400; }
.pub-footer-legal a:hover { color: var(--po-primary); }
@media (max-width: 600px) { .pub-footer-inner { flex-direction: column; gap: .5rem; text-align: center; } }

/* Container */
.pub-container { max-width: var(--po-content-max); width: 100%; margin: 0 auto; padding: 0 var(--po-content-pad); }
.pub-section { padding: 2.5rem 0; }
.pub-section-alt { background: var(--po-bg); }

/* Loading + Empty */
.pub-loading { text-align: center; padding: 2.5rem; }
.pub-empty { text-align: center; padding: 2.5rem 1rem; color: var(--po-muted); }
.pub-empty i { display: block; font-size: 2rem; margin-bottom: .6rem; opacity: .3; }

/* ============================================================================
   Hero – Clean & Minimal (kein Gradient!)
   ============================================================================ */
.pub-hero {
  background: #fff;
  padding: 3rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--po-border);
}
.pub-hero h1 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--po-text);
  letter-spacing: -.01em;
}
.pub-hero p {
  font-size: .95rem;
  color: var(--po-muted);
  max-width: 520px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}
.pub-hero-search {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: var(--po-bg);
  border-radius: var(--po-radius);
  border: 1px solid var(--po-border);
  overflow: hidden;
  transition: border-color var(--po-transition), box-shadow var(--po-transition);
}
.pub-hero-search:focus-within {
  border-color: var(--po-primary);
  box-shadow: 0 0 0 3px rgba(3,102,214,.08);
}
.pub-hero-search i { padding: 0 .2rem 0 1rem; color: var(--po-muted); font-size: .9rem; }
.pub-hero-search input {
  flex: 1; border: none; padding: .75rem .65rem; font-size: .95rem;
  background: transparent; outline: none; color: var(--po-text);
}
.pub-hero-search button {
  background: var(--po-primary); color: #fff; border: none;
  padding: .75rem 1.25rem; font-size: .88rem; font-weight: 500;
  cursor: pointer; transition: background var(--po-transition);
}
.pub-hero-search button:hover { background: #0256B9; }

/* ============================================================================
   Quick Action Cards – Flach & Clean
   ============================================================================ */
.pub-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.pub-action-card {
  background: #fff;
  border-radius: var(--po-radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--po-transition);
  border: 1px solid var(--po-border);
}
.pub-action-card:hover {
  border-color: var(--po-primary);
  box-shadow: 0 2px 8px rgba(3,102,214,.08);
}
.pub-action-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: .75rem;
  background: var(--po-primary-light) !important;
  color: var(--po-primary) !important;
}
.pub-action-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: .25rem; color: var(--po-text); }
.pub-action-card p { font-size: .82rem; color: var(--po-muted); line-height: 1.5; }
a.pub-action-card { text-decoration: none; display: block; }
a.pub-action-card:hover { text-decoration: none; }
.pub-action-icon-support { background: rgba(3,102,214,.08) !important; }
.pub-action-ext-badge {
  display: inline-block; margin-top: .6rem; font-size: .7rem; font-weight: 500;
  color: var(--po-primary); opacity: .7;
}
.pub-action-ext-badge i { font-size: .6rem; margin-right: .15rem; }

/* KB Article Grid */
.pub-article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; }
.pub-article-card {
  background: #fff; border-radius: var(--po-radius); border: 1px solid var(--po-border);
  padding: 1.15rem; cursor: pointer; transition: all var(--po-transition);
}
.pub-article-card:hover { border-color: var(--po-primary); box-shadow: 0 2px 8px rgba(3,102,214,.08); }
.pub-article-cat { font-size: .75rem; font-weight: 600; color: var(--po-primary); margin-bottom: .4rem; display: flex; align-items: center; gap: .3rem; }
.pub-article-card h3 { font-size: .9rem; font-weight: 600; margin-bottom: .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pub-article-card p { font-size: .8rem; color: var(--po-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pub-article-views { display: flex; align-items: center; gap: .25rem; font-size: .72rem; color: var(--po-muted); margin-top: .4rem; }

/* KB Category Tabs */
.pub-cat-tabs { display: flex; gap: .4rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.pub-cat-tab {
  padding: .4rem .85rem; border-radius: 99px; font-size: .82rem; font-weight: 500;
  background: #fff; color: var(--po-muted); cursor: pointer;
  border: 1px solid var(--po-border); transition: all var(--po-transition);
}
.pub-cat-tab:hover { border-color: var(--po-primary); color: var(--po-primary); }
.pub-cat-tab.active { background: var(--po-primary); color: #fff; border-color: var(--po-primary); }
.pub-cat-tab i { margin-right: .25rem; }

/* KB Search (public) */
.pub-kb-search { position: relative; margin-bottom: 1.75rem; }
.pub-kb-search input {
  width: 100%; padding: .75rem 1rem .75rem 2.5rem; border: 1px solid var(--po-border);
  border-radius: var(--po-radius); font-size: 1rem; transition: border var(--po-transition); background: #fff;
}
.pub-kb-search input:focus { outline: none; border-color: var(--po-primary); box-shadow: 0 0 0 3px rgba(3,102,214,.08); }
.pub-kb-search i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--po-muted); font-size: .95rem; }

/* KB Article Detail */
.pub-article-detail { max-width: 780px; }
.pub-back { display: inline-flex; align-items: center; gap: .35rem; color: var(--po-muted); font-size: .85rem; margin-bottom: 1.25rem; }
.pub-back:hover { color: var(--po-primary); text-decoration: none; }
.pub-article-content { background: #fff; border-radius: var(--po-radius); border: 1px solid var(--po-border); padding: 2rem; }
.pub-article-content h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; line-height: 1.3; }
.pub-article-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; color: var(--po-muted); font-size: .82rem; margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--po-border); }
.pub-article-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.pub-article-body { font-size: .95rem; line-height: 1.8; }
.pub-article-body h2 { font-size: 1.2rem; margin: 1.75rem 0 .65rem; font-weight: 600; }
.pub-article-body h3 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; font-weight: 600; }
.pub-article-body p { margin-bottom: 1rem; }
.pub-article-body ul, .pub-article-body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.pub-article-body pre { background: var(--po-bg); padding: 1rem; border-radius: var(--po-radius-sm); overflow-x: auto; font-size: .82rem; margin-bottom: 1rem; border: 1px solid var(--po-border); }
.pub-article-body img { border-radius: var(--po-radius-sm); margin: 1rem 0; }
.pub-article-body a { color: var(--po-primary); text-decoration: underline; }

/* Service Gruppen */
.pub-service-group { margin-bottom: 2rem; }
.pub-service-group-title {
  font-size: 1.05rem; font-weight: 600; color: var(--po-text); margin-bottom: 1rem;
  padding-bottom: .4rem; border-bottom: 1px solid var(--po-border);
  display: flex; align-items: center; gap: .5rem;
}
.pub-service-group-title span { background: var(--po-primary); color: #fff; padding: .2rem .7rem; border-radius: 16px; font-size: .82rem; font-weight: 500; }

/* Service Grid (public) */
.pub-service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.pub-service-grid-lg { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.pub-service-card { background: #fff; border-radius: var(--po-radius); border: 1px solid var(--po-border); transition: all var(--po-transition); overflow: hidden; }
.pub-service-card-lg { display: flex; flex-direction: column; }
.pub-service-card-lg .pub-service-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.pub-service-card:hover { border-color: var(--po-primary); box-shadow: 0 2px 8px rgba(3,102,214,.08); }
.pub-service-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; }
.pub-service-card p { font-size: .85rem; color: var(--po-muted); line-height: 1.5; margin-bottom: 1rem; flex: 1; }
.pub-service-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; flex-wrap: wrap; gap: .4rem; }
.pub-service-price { font-size: 1.1rem; font-weight: 600; color: var(--po-primary); }
.pub-service-book { margin-top: auto; }

/* Service Grid (eingeloggt) – groessere Cards */
.service-grid-lg { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.service-card-lg { overflow: hidden; }
.service-card-lg .service-card-body { padding: 1.5rem; }
.service-card-lg .service-card-desc { min-height: 0; }

/* Locale Selectors (Language + Currency) */
.pub-header-actions { display: flex; align-items: center; gap: .5rem; }
.po-locale-wrap { position: relative; }
.po-locale-btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .65rem;
  background: var(--po-card); border: 1px solid var(--po-border); border-radius: 99px;
  font-size: .82rem; font-weight: 500; color: var(--po-text); cursor: pointer;
  transition: all var(--po-transition); white-space: nowrap; line-height: 1.3;
}
.po-locale-btn:hover { border-color: #c5c9d4; background: var(--po-bg); }
.po-locale-btn .fa-globe { color: var(--po-muted); font-size: .8rem; }
.po-locale-chev { font-size: .55rem; color: var(--po-muted); margin-left: .1rem; transition: transform .15s; }
.po-locale-popover.open ~ .po-locale-btn .po-locale-chev,
.po-locale-wrap:has(.po-locale-popover.open) .po-locale-chev { transform: rotate(180deg); }
.po-locale-flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; vertical-align: middle; flex-shrink: 0; }
.po-locale-popover {
  display: none; position: absolute; top: calc(100% + 12px); right: 0; z-index: 200;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.15); padding: 16px;
}
.po-locale-popover::before {
  content: ''; position: absolute; top: -8px; right: 24px;
  width: 16px; height: 16px; background: #fff;
  border-left: 1px solid #e2e8f0; border-top: 1px solid #e2e8f0;
  transform: rotate(45deg); z-index: 1;
}
.po-locale-popover.open { display: block; animation: po-pop-in .12s ease; }
@keyframes po-pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
/* Language Popover – 5-Spalten wie Marketing-Seite */
.po-lang-popover-wide { width: 720px; min-width: 720px; }
.po-lang-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.po-locale-opt {
  background: #f8fafc; border: 1px solid transparent; border-radius: 6px;
  padding: 8px 12px; font-size: 13px; color: #475569; cursor: pointer;
  text-align: left; transition: all .15s; white-space: nowrap;
}
.po-locale-opt:hover { background: #e0f2fe; border-color: #bae6fd; color: #0369a1; }
.po-locale-opt.active { background: #0ea5e9; color: #fff; border-color: #0ea5e9; font-weight: 600; }
/* Currency Popover – exakt wie Marketing-Seite */
/* Currency Popover Overrides */
.po-curr-popover-wide { width: 540px; min-width: 540px; }
.po-curr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.po-curr-opt {
  display: flex; justify-content: space-between; align-items: center;
  background: #f8fafc; border: 1px solid transparent; border-radius: 6px;
  padding: 8px 12px; font-size: 13px; color: #475569; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.po-curr-opt:hover { background: #e0f2fe; border-color: #bae6fd; color: #0369a1; }
.po-curr-opt.active { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }
.po-curr-code { font-weight: 600; }
.po-curr-rate { font-size: 11px; opacity: .7; font-weight: 400; font-variant-numeric: tabular-nums; }
.po-curr-opt.active .po-curr-rate { opacity: .9; }
@media (max-width: 768px) {
  .po-locale-btn span { display: none; }
  .po-locale-chev { display: none; }
  .po-locale-btn { padding: .35rem .5rem; }
  .po-locale-wrap { position: static; }
  .po-locale-popover, .po-lang-popover-wide, .po-curr-popover-wide { position: fixed; top: auto; left: 1rem; right: 1rem; width: auto !important; min-width: 0 !important; max-height: 50vh; overflow-y: auto; z-index: 300; }
  .po-locale-popover::before { display: none; }
  .po-locale-popover.open { animation: none; }
  .po-lang-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .po-curr-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
}

/* Contact Form (public) */
.pub-contact-wrap { max-width: 680px; }
.pub-subtitle { color: var(--po-muted); font-size: .95rem; margin-bottom: 1.75rem; }
.pub-contact-form { background: #fff; border-radius: var(--po-radius); border: 1px solid var(--po-border); padding: 1.75rem; }
.pub-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .pub-form-row { grid-template-columns: 1fr; } }
.pub-form-group { margin-bottom: 1rem; }
.pub-form-group label { display: block; font-size: .82rem; font-weight: 500; margin-bottom: .35rem; color: var(--po-muted); }
.pub-input, .pub-textarea {
  width: 100%; padding: .6rem .85rem; border: 1px solid var(--po-border);
  border-radius: var(--po-radius-sm); font-size: .92rem; transition: border var(--po-transition); background: #fff;
}
.pub-input:focus, .pub-textarea:focus { outline: none; border-color: var(--po-primary); box-shadow: 0 0 0 3px rgba(3,102,214,.08); }
.pub-input-lg { padding: .75rem .95rem; font-size: 1rem; }
.pub-textarea { min-height: 130px; resize: vertical; }

/* Success Message */
.pub-success-msg { text-align: center; padding: 1.75rem; }
.pub-success-msg i { font-size: 2.5rem; color: var(--po-success); display: block; margin-bottom: .75rem; }
.pub-success-msg h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: .65rem; }
.pub-success-msg p { color: var(--po-muted); font-size: .9rem; line-height: 1.6; margin-bottom: .4rem; }

/* Login Card (public) */
.pub-login-container { max-width: 420px; }
.pub-login-card { background: #fff; border-radius: var(--po-radius); border: 1px solid var(--po-border); box-shadow: var(--po-shadow); padding: 2.25rem; text-align: center; }
.pub-login-logo { height: 44px; margin-bottom: 1.5rem; object-fit: contain; }
.pub-login-card h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: .4rem; }
.pub-login-card p { color: var(--po-muted); margin-bottom: 1.5rem; font-size: .88rem; }

/* Support-Choice Cards (Zwischenschritt) */
.pub-choice-container { max-width: 740px; text-align: center; }
.pub-choice-title { font-size: 1.5rem; font-weight: 700; margin-bottom: .35rem; }
.pub-choice-subtitle { color: var(--po-muted); font-size: .95rem; margin-bottom: 2rem; }
.pub-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pub-choice-grid-basis { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin: 0 auto; }
.pub-choice-card {
  position: relative; background: #fff; border-radius: var(--po-radius);
  border: 2px solid var(--po-border); padding: 2rem 1.5rem 1.75rem;
  text-align: center; cursor: pointer; transition: all .2s ease;
}
.pub-choice-card:hover { border-color: var(--po-primary); box-shadow: 0 4px 24px rgba(3,102,214,.12); transform: translateY(-2px); }
.pub-choice-yes:hover { border-color: var(--po-primary); }
.pub-choice-no:hover { border-color: #94a3b8; }
.pub-choice-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  padding: .3rem .7rem; border-radius: 99px; margin-bottom: 1.25rem;
}
.pub-choice-badge-green { background: #ecfdf5; color: #059669; }
.pub-choice-badge-blue { background: #eff6ff; color: #2563eb; }
.pub-choice-badge-gray { background: #f1f5f9; color: #64748b; }
.pub-choice-icon {
  width: 56px; height: 56px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 1rem;
}
.pub-choice-icon-yes { background: rgba(3,102,214,.08); color: var(--po-primary); }
.pub-choice-icon-portal { background: rgba(37,99,235,.08); color: #2563eb; }
.pub-choice-icon-no { background: #f1f5f9; color: #64748b; }
.pub-choice-portal:hover { border-color: #2563eb; }
.pub-choice-card h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.pub-choice-card p { font-size: .82rem; color: var(--po-muted); line-height: 1.55; margin-bottom: 1.25rem; min-height: 2.5rem; }
a.pub-choice-card { text-decoration: none; color: inherit; display: block; }
a.pub-choice-card:hover { text-decoration: none; }
.pub-choice-hint { font-size: .75rem; color: var(--po-muted); margin-top: .75rem; line-height: 1.4; }
.pub-choice-hint a { color: var(--po-primary); font-weight: 500; }
@media (max-width: 600px) {
  .pub-choice-grid { grid-template-columns: 1fr; }
  .pub-choice-card p { min-height: auto; }
}

/* SSO-Hinweis (Login + Register + Ticket-Formular) */
.pub-sso-box {
  display: flex; align-items: flex-start; gap: .75rem;
  background: rgba(3,102,214,.05); border: 1px solid rgba(3,102,214,.15);
  border-radius: var(--po-radius); padding: .85rem 1rem; margin-bottom: 1.25rem; text-align: left;
}
.pub-sso-box-warn {
  background: #fffbeb; border-color: #fde68a;
}
.pub-sso-box-warn .pub-sso-icon { color: #d97706; }
.pub-sso-icon { font-size: 1.15rem; color: var(--po-primary); margin-top: 2px; flex-shrink: 0; }
.pub-sso-text { font-size: .82rem; line-height: 1.5; color: var(--po-text); }
.pub-sso-text strong { font-weight: 600; display: block; margin-bottom: 2px; }
.pub-sso-text span { color: var(--po-muted); }
.pub-sso-text a { color: var(--po-primary); font-weight: 600; }
.pub-sso-text a:hover { text-decoration: underline; }
.pub-sso-inline {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(3,102,214,.05); border: 1px solid rgba(3,102,214,.15); border-radius: var(--po-radius-sm);
  padding: .6rem .85rem; margin-bottom: 1rem; font-size: .8rem; color: var(--po-text);
}
.pub-sso-inline i { color: var(--po-primary); flex-shrink: 0; }
.pub-sso-inline a { color: var(--po-primary); font-weight: 600; text-decoration: none; }
.pub-sso-inline a:hover { text-decoration: underline; }

/* KB-Deflection */
.pub-deflection { background: #fff; border-radius: var(--po-radius); border: 1px solid var(--po-border); padding: 1.25rem; margin-bottom: 1.25rem; }
.pub-deflection-search { display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 500; color: var(--po-dark); margin-bottom: .6rem; }
.pub-deflection-search i { color: #f59e0b; }
.pub-deflection-input-wrap { position: relative; }
.pub-deflection-hint { font-size: .8rem; color: var(--po-muted); padding: .4rem 0; display: flex; align-items: center; gap: .4rem; }
.pub-deflection-hint i { font-size: .72rem; }
.pub-deflection-item {
  display: block; padding: .5rem .65rem; margin: .2rem 0; border-radius: var(--po-radius-sm);
  font-size: .85rem; color: var(--po-primary); text-decoration: none; transition: background var(--po-transition);
}
.pub-deflection-item:hover { background: var(--po-primary-light); }
.pub-deflection-item i { margin-right: .3rem; font-size: .78rem; color: var(--po-muted); }

/* Attachment Dropzone + Liste */
.att-dropzone { border: 1.5px dashed var(--po-border); border-radius: var(--po-radius); padding: 1.25rem; text-align: center; cursor: pointer; transition: all .15s; background: var(--po-bg); }
.att-dropzone:hover, .att-dropzone.att-dragover { border-color: var(--po-primary); background: var(--po-primary-light); }
.att-item { display: flex; align-items: center; gap: .5rem; padding: .45rem .65rem; background: var(--po-bg); border-radius: var(--po-radius-sm); margin-top: .4rem; font-size: .82rem; }
.att-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.att-size { color: var(--po-muted); font-size: .72rem; flex-shrink: 0; }
.att-remove { background: none; border: none; color: var(--po-danger); cursor: pointer; padding: 2px 6px; border-radius: 4px; font-size: .82rem; }
.att-remove:hover { background: rgba(239,68,68,.08); }
.att-download { color: var(--po-primary); padding: 2px 6px; border-radius: 4px; font-size: .82rem; text-decoration: none; }
.att-download:hover { background: var(--po-primary-light); }

/* Ticket-Upload (Detail-Antwort) */
.ticket-upload-zone { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: .75rem 0; padding: 1rem; border: 1.5px dashed var(--po-border); border-radius: var(--po-radius); background: var(--po-bg); transition: border-color .15s, background .15s; }
.ticket-upload-zone.is-dragover { border-color: var(--po-primary); background: var(--po-primary-light); }
.ticket-upload-zone > .fa-cloud-arrow-up { color: var(--po-primary); font-size: 1.1rem; }
.ticket-upload-label { font-size: .85rem; color: var(--po-muted); }
.ticket-upload-hint { width: 100%; font-size: .72rem; color: var(--po-muted); }
.ticket-pending-atts { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .75rem; }
.ticket-pending-att { display: flex; align-items: center; gap: .5rem; padding: .45rem .65rem; background: var(--po-bg); border-radius: var(--po-radius-sm); font-size: .82rem; border: 1px solid var(--po-border); }
.ticket-pending-att.is-uploading { opacity: .85; }
.ticket-pending-att.is-error { border-color: var(--po-danger); background: rgba(239,68,68,.04); }
.ticket-pending-att-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ticket-pending-att-size, .ticket-pending-att-error { font-size: .72rem; color: var(--po-muted); flex-shrink: 0; }
.ticket-pending-att.is-error .ticket-pending-att-error { color: var(--po-danger); }
.ticket-pending-att-remove { background: none; border: none; color: var(--po-muted); cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.ticket-pending-att-remove:hover { color: var(--po-danger); background: rgba(239,68,68,.08); }
.msg-attachments { display: flex; flex-direction: column; gap: .35rem; margin-top: .5rem; }
.msg-attachment-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--po-primary); text-decoration: none; padding: .25rem .45rem; border-radius: var(--po-radius-sm); background: rgba(255,255,255,.6); border: 1px solid var(--po-border); max-width: 100%; }
.message-bubble.enduser .msg-attachment-link { background: rgba(255,255,255,.35); }
.msg-attachment-link:hover { background: var(--po-primary-light); }
.msg-attachment-size { color: var(--po-muted); font-size: .7rem; }

/* Service Card Color-Bar */
.pub-service-color, .service-card-color { height: 3px; border-radius: var(--po-radius) var(--po-radius) 0 0; }
.service-location, .service-price, .pub-service-meta span { display: inline-flex; align-items: center; gap: .25rem; font-size: .82rem; color: var(--po-muted); }

/* Preis-Badges */
.bk-free { color: #16a34a; font-weight: 600; }
.bk-price { color: var(--po-primary); font-weight: 600; font-size: .92em; }
.bk-meta .bk-price { font-size: 1em; }

/* Booking Success / Cancel */
.bk-result-page { text-align: center; padding: 2.5rem 1.5rem; max-width: 500px; margin: 2rem auto; background: var(--po-card); border-radius: var(--po-radius); border: 1px solid var(--po-border); }
.bk-result-icon { font-size: 3rem; margin-bottom: .75rem; }
.bk-result-success .bk-result-icon { color: #16a34a; }
.bk-result-cancel .bk-result-icon { color: #ef4444; }
.bk-result-page h1 { font-size: 1.35rem; font-weight: 600; margin-bottom: .5rem; }
.bk-result-page p { color: var(--po-muted); font-size: .9rem; margin-bottom: .4rem; }
.bk-result-detail { font-size: .85rem; }
.bk-result-id { font-size: .82rem; color: var(--po-text); margin-top: .75rem; }
.bk-result-actions { display: flex; gap: .6rem; justify-content: center; margin-top: 1.25rem; flex-wrap: wrap; }

/* Termine / Appointments */
.appt-list { display: flex; flex-direction: column; gap: .6rem; padding: .4rem 0; }
.appt-card {
  display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem;
  background: var(--po-bg); border-radius: var(--po-radius); border: 1px solid var(--po-border);
  transition: border-color .15s;
}
.appt-card:hover { border-color: #d1d5de; }
.appt-card-date { min-width: 120px; text-align: center; padding: .45rem .65rem; background: var(--po-card); border-radius: var(--po-radius); border: 1px solid var(--po-border); }
.appt-card-day { font-weight: 500; font-size: .9rem; color: var(--po-text); }
.appt-card-time { font-size: .82rem; color: var(--po-muted); margin-top: .1rem; }
.appt-card-info { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.appt-card-service { font-weight: 500; font-size: .9rem; }
@media (max-width: 600px) {
  .appt-card { flex-direction: column; align-items: flex-start; }
  .appt-card-date { min-width: auto; text-align: left; }
  .appt-card-info { width: 100%; }
}

/* Auth Switch (Login <-> Register) */
.pub-auth-switch { margin-top: 1.25rem; font-size: .85rem; color: var(--po-muted); }
.pub-auth-switch a { color: var(--po-primary); font-weight: 500; }
.pub-auth-switch a:hover { text-decoration: underline; }

/* ============================================================================
   DOCS SECTION – Docusaurus-inspiriertes Layout
   ============================================================================ */
:root {
  --docs-sidebar-bg: #ffffff;
  --docs-sidebar-border: #e6e9ef;
  --docs-code-bg: #f6f8fa;
  --docs-toc-border: #e6e9ef;
  --docs-hover: rgba(3,102,214,.05);
  --docs-breadcrumb-text: #6b7385;
  --docs-card-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* Docs 3-Spalten Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr 220px;
  min-height: calc(100vh - 120px);
  max-width: 1440px;
  margin: 0 auto;
  gap: 0;
}

/* Sidebar */
.docs-sidebar {
  position: sticky; top: 60px; height: calc(100vh - 60px);
  overflow-y: auto; padding: 1.25rem 0;
  border-right: 1px solid var(--docs-sidebar-border);
  background: var(--docs-sidebar-bg);
  scrollbar-width: thin;
  scrollbar-color: var(--po-border) transparent;
}
.docs-sidebar-inner { padding: 0 .75rem; }

.docs-sidebar-search {
  position: relative; margin-bottom: 1rem; padding: 0 .25rem;
}
.docs-sidebar-search i {
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  color: var(--po-muted); font-size: .8rem; pointer-events: none;
}
.docs-sidebar-search input {
  width: 100%; padding: .5rem .65rem .5rem 2rem;
  border: 1px solid var(--po-border); border-radius: 6px;
  background: var(--po-bg); color: var(--po-text);
  font-size: .82rem; outline: none; transition: border-color .2s;
}
.docs-sidebar-search input:focus { border-color: var(--po-primary); }

/* Sidebar Kategorie-Gruppen */
.docs-cat { margin-bottom: .2rem; }
.docs-cat-toggle {
  display: flex; align-items: center; gap: .4rem;
  width: 100%; padding: .45rem .5rem;
  background: none; border: none; cursor: pointer;
  font-size: .85rem; font-weight: 600; color: var(--po-text);
  border-radius: 6px; transition: background .15s;
  text-align: left;
}
.docs-cat-toggle:hover { background: var(--docs-hover); }
.docs-cat-arrow { font-size: .65rem; transition: transform .2s; color: var(--po-muted); width: 12px; text-align: center; }
.docs-cat-open .docs-cat-arrow { transform: rotate(90deg); }
.docs-cat-count { margin-left: auto; font-size: .7rem; color: var(--po-muted); font-weight: 400; background: var(--po-bg); padding: .1rem .4rem; border-radius: 10px; }

.docs-cat-list {
  list-style: none; margin: 0; padding: 0 0 0 1.15rem;
  max-height: 0; overflow: hidden; transition: max-height .25s ease-out;
}
.docs-cat-open .docs-cat-list { max-height: 2000px; transition: max-height .4s ease-in; }

.docs-cat-list li { margin: 0; }
.docs-cat-list a {
  display: block; padding: .35rem .6rem; margin: .05rem 0;
  font-size: .82rem; color: var(--po-muted);
  text-decoration: none; border-radius: 4px;
  border-left: 2px solid transparent;
  transition: all .15s;
}
.docs-cat-list a:hover { color: var(--po-text); background: var(--docs-hover); }
.docs-cat-list li.active a {
  color: var(--po-primary); font-weight: 600;
  border-left-color: var(--po-primary); background: var(--po-primary-light);
}

/* Hauptinhalt */
.docs-main {
  padding: 1.5rem 2rem 3rem;
  min-width: 0;
  max-width: 100%;
}

/* TOC Spalte */
.docs-toc-col {
  position: sticky; top: 60px; height: calc(100vh - 60px);
  overflow-y: auto; padding: 1.25rem .75rem;
  border-left: 1px solid var(--docs-toc-border);
  scrollbar-width: thin;
}
.docs-toc { font-size: .8rem; }
.docs-toc-title { font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--po-text); margin-bottom: .65rem; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; }
.docs-toc li { margin: .15rem 0; }
.docs-toc li.docs-toc-sub { padding-left: .85rem; }
.docs-toc a {
  display: block; padding: .25rem .5rem;
  color: var(--po-muted); text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 3px 3px 0;
  transition: all .15s; font-size: .78rem;
}
.docs-toc a:hover { color: var(--po-text); }
.docs-toc a.active { color: var(--po-primary); border-left-color: var(--po-primary); font-weight: 500; }

/* Breadcrumbs */
.docs-breadcrumbs {
  display: flex; align-items: center; gap: .35rem;
  font-size: .82rem; color: var(--docs-breadcrumb-text);
  margin-bottom: 1rem; flex-wrap: wrap;
}
.docs-bc-link { color: var(--po-primary); text-decoration: none; font-weight: 500; }
.docs-bc-link:hover { text-decoration: underline; }
.docs-bc-sep { font-size: .55rem; color: var(--po-muted); }
.docs-bc-current { color: var(--po-text); font-weight: 500; }

/* Artikel */
.docs-article { margin-bottom: 2rem; }
.docs-article-title { font-size: 2rem; font-weight: 700; color: var(--po-text); margin: 0 0 .75rem; line-height: 1.25; }
.docs-article-meta {
  display: flex; gap: 1.25rem; font-size: .8rem; color: var(--po-muted);
  margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--po-border);
}
.docs-article-meta i { margin-right: .25rem; }

.docs-article-body {
  font-size: .95rem; line-height: 1.75; color: var(--po-text);
}
.docs-article-body h2 {
  font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem;
  padding-bottom: .35rem; border-bottom: 1px solid var(--po-border);
}
.docs-article-body h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
.docs-article-body h4 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 .5rem; }
.docs-article-body p { margin: 0 0 1rem; }
.docs-article-body ul, .docs-article-body ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.docs-article-body li { margin-bottom: .35rem; }
.docs-article-body a { color: var(--po-primary); text-decoration: none; }
.docs-article-body a:hover { text-decoration: underline; }
.docs-article-body img { max-width: 100%; height: auto; border-radius: 6px; margin: .5rem 0; }
.docs-article-body blockquote {
  margin: 1rem 0; padding: .75rem 1rem;
  border-left: 4px solid var(--po-primary);
  background: var(--po-primary-light);
  border-radius: 0 6px 6px 0;
  color: var(--po-text);
}
.docs-article-body table {
  width: 100%; border-collapse: collapse; margin: 1rem 0;
  font-size: .88rem;
}
.docs-article-body th, .docs-article-body td {
  padding: .6rem .75rem; text-align: left;
  border: 1px solid var(--po-border);
}
.docs-article-body th { background: var(--po-bg); font-weight: 600; }
.docs-article-body code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: .85em; padding: .15em .35em;
  background: var(--docs-code-bg);
  border-radius: 4px; color: var(--po-text);
}
.docs-article-body pre {
  margin: 1rem 0; padding: 1rem 1.25rem;
  background: #2d2d2d; color: #ccc;
  border-radius: 8px; overflow-x: auto;
  font-size: .85rem; line-height: 1.6;
}
.docs-article-body pre code {
  background: none; padding: 0; border-radius: 0;
  color: inherit; font-size: inherit;
}

/* Admonition Styles (Tip, Warning, Note, Danger) */
.docs-article-body .admonition,
.docs-article-body .alert {
  margin: 1rem 0; padding: .85rem 1rem;
  border-radius: 8px; border-left: 4px solid;
}
.docs-article-body .admonition-tip, .docs-article-body .alert-success { border-color: var(--po-success); background: rgba(16,185,129,.08); }
.docs-article-body .admonition-warning, .docs-article-body .alert-warning { border-color: var(--po-warning); background: rgba(245,158,11,.08); }
.docs-article-body .admonition-danger, .docs-article-body .alert-danger { border-color: var(--po-danger); background: rgba(239,68,68,.08); }
.docs-article-body .admonition-note, .docs-article-body .alert-info { border-color: var(--po-primary); background: var(--po-primary-light); }

/* Prev / Next Navigation */
.docs-prev-next {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--po-border);
}
.docs-pn-link {
  display: flex; flex-direction: column; padding: 1rem;
  border: 1px solid var(--po-border); border-radius: 8px;
  text-decoration: none; transition: all .2s;
  background: var(--po-card);
}
.docs-pn-link:hover { border-color: var(--po-primary); box-shadow: var(--docs-card-shadow); }
.docs-pn-prev { text-align: left; }
.docs-pn-next { text-align: right; }
.docs-pn-label { font-size: .75rem; color: var(--po-muted); margin-bottom: .25rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
.docs-pn-title { font-size: .9rem; color: var(--po-primary); font-weight: 600; }

/* Feedback Widget */
.docs-feedback {
  display: flex; align-items: center; gap: .75rem;
  margin-top: 1.5rem; padding: .85rem 1rem;
  background: var(--po-bg); border-radius: 8px;
  border: 1px solid var(--po-border);
  font-size: .85rem;
}
.docs-feedback-label { color: var(--po-muted); font-weight: 500; }
.docs-fb-btn {
  padding: .3rem .75rem; border-radius: 6px;
  border: 1px solid var(--po-border); background: var(--po-card);
  color: var(--po-text); cursor: pointer; font-size: .8rem;
  transition: all .2s;
}
.docs-fb-btn:hover { border-color: var(--po-primary); color: var(--po-primary); }
.docs-fb-yes:hover { border-color: var(--po-success); color: var(--po-success); }
.docs-fb-no:hover { border-color: var(--po-danger); color: var(--po-danger); }
.docs-fb-thanks { color: var(--po-success); font-weight: 500; }

/* Docs Welcome / Landing */
.docs-welcome { padding: 1rem 0; }
.docs-welcome h1 { font-size: 2rem; font-weight: 700; margin-bottom: .5rem; }
.docs-welcome-desc { font-size: 1.05rem; color: var(--po-muted); margin-bottom: 2rem; }

.docs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.docs-grid-card {
  padding: 1.25rem; border: 1px solid var(--po-border);
  border-radius: 10px; background: var(--po-card);
  cursor: pointer; transition: all .2s;
}
.docs-grid-card:hover { border-color: var(--po-primary); box-shadow: var(--docs-card-shadow); transform: translateY(-1px); }
.docs-grid-icon { font-size: 1.4rem; color: var(--po-primary); margin-bottom: .65rem; }
.docs-grid-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .35rem; }
.docs-grid-card p { font-size: .8rem; color: var(--po-muted); margin: 0; }

.docs-empty { text-align: center; padding: 3rem 1rem; color: var(--po-muted); }
.docs-empty i { font-size: 2.5rem; margin-bottom: 1rem; display: block; }

/* Mobile Sidebar Toggle */
.docs-sidebar-toggle {
  display: none; position: fixed; bottom: 1.25rem; left: 1.25rem;
  z-index: 1000; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--po-border);
  background: var(--po-card); color: var(--po-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer;
  font-size: 1.1rem;
  align-items: center; justify-content: center;
}

/* Mobile Sidebar Overlay */
.docs-sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.4); z-index: 998;
  opacity: 0; transition: opacity .3s;
}
.docs-sidebar-overlay.docs-overlay-visible { display: block; opacity: 1; }

/* ============================================================================
   DOCS LANDING – Docusaurus-Startseite
   ============================================================================ */

.docs-landing { max-width: 100%; overflow-x: hidden; }

/* Hero */
.docs-hero-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--po-content-pad) clamp(2rem, 4vw, 3.5rem);
}
.docs-hero-inner {
  max-width: var(--po-content-max); width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.docs-hero-badge {
  display: inline-block; padding: .3rem .85rem;
  background: var(--docs-accent-light); color: var(--docs-accent);
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  border-radius: 20px; margin-bottom: 1.25rem; text-transform: uppercase;
}
.docs-hero-title {
  font-size: 3rem; font-weight: 800; color: var(--po-text);
  margin: 0 0 .75rem; line-height: 1.1; letter-spacing: -.02em;
}
.docs-hero-subtitle {
  font-size: 1.1rem; color: var(--po-muted); margin: 0 0 2rem;
  line-height: 1.6; max-width: min(100%, 680px);
}
.docs-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.docs-hero-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.25rem; border-radius: 8px;
  font-size: .88rem; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: all .2s; border: 1.5px solid transparent;
}
.docs-btn-primary {
  background: var(--docs-accent); color: #fff; border-color: var(--docs-accent);
}
.docs-btn-primary:hover { background: var(--docs-accent-hover); border-color: var(--docs-accent-hover); }
.docs-btn-accent-outline {
  background: transparent; color: var(--docs-accent); border-color: var(--docs-accent);
}
.docs-btn-accent-outline:hover { background: var(--docs-accent-light); }
.docs-btn-outline {
  background: var(--po-card); color: var(--po-text); border-color: var(--po-border);
}
.docs-btn-outline:hover { border-color: var(--docs-accent); color: var(--docs-accent); }

/* Feature Card */
.docs-feature-card {
  background: var(--po-card); border: 1px solid var(--po-border);
  border-radius: 14px; padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.docs-feature-card h3 {
  font-size: 1.15rem; font-weight: 700; margin: 0 0 .75rem; color: var(--po-text);
}
.docs-feature-card p {
  font-size: .88rem; color: var(--po-muted); line-height: 1.6; margin: 0 0 1rem;
}
.docs-feature-card ul { list-style: disc; margin: 0; padding-left: 1.25rem; }
.docs-feature-card li {
  font-size: .85rem; color: var(--po-text); line-height: 1.6; margin-bottom: .25rem;
}

/* Hero-Suche */
.docs-hero-search {
  position: relative; max-width: min(100%, 680px); display: flex;
  margin-bottom: 1.5rem; border-radius: 10px; overflow: hidden;
  border: 1.5px solid var(--po-border); background: var(--po-card);
  transition: border-color .2s;
}
.docs-hero-search:focus-within { border-color: var(--docs-accent); }
.docs-search-icon {
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  color: var(--po-muted); font-size: .9rem; pointer-events: none;
}
.docs-hero-search input {
  flex: 1; padding: .65rem 1rem .65rem 2.5rem; border: none;
  background: transparent; font-size: .95rem; color: var(--po-text); outline: none;
}
.docs-hero-search input::placeholder { color: var(--po-muted); }
.docs-hero-search button {
  padding: .65rem 1.25rem; background: var(--docs-accent); color: #fff;
  border: none; font-weight: 600; font-size: .88rem; cursor: pointer;
  transition: background .2s;
}
.docs-hero-search button:hover { background: var(--docs-accent-hover); }

/* Externe Resource-Cards (a-Tags) */
a.docs-resource-card { text-decoration: none; color: inherit; display: block; }

/* Drei Info-Karten */
.docs-cards-section {
  padding: 0 var(--po-content-pad) 3rem;
  background: var(--po-bg);
}
.docs-cards-inner {
  max-width: var(--po-content-max); width: 100%; margin: -1rem auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem;
}
.docs-cards-inner.docs-cards-2 { grid-template-columns: repeat(2, 1fr); }
.docs-info-card {
  background: var(--po-card); border: 1px solid var(--po-border);
  border-radius: 12px; padding: 1.5rem; cursor: pointer;
  transition: all .2s; display: flex; flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.docs-info-card:hover {
  border-color: var(--docs-accent);
  box-shadow: 0 4px 16px rgba(8,145,178,.1);
  transform: translateY(-2px);
}
.docs-info-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 .5rem; color: var(--po-text); }
.docs-info-card p { font-size: .88rem; color: var(--po-muted); line-height: 1.6; margin: 0 0 1rem; flex: 1; }
.docs-card-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .85rem; font-weight: 600; color: var(--docs-accent);
  transition: gap .2s;
}
.docs-info-card:hover .docs-card-link,
.docs-resource-card:hover .docs-card-link { gap: .6rem; }
a.docs-info-card, a.docs-resource-card { text-decoration: none; color: inherit; display: block; }
a.docs-info-card:hover, a.docs-resource-card:hover { text-decoration: none; }

/* Ressourcen-Row (2. Card-Reihe auf Homepage) */
.docs-resources-row { padding-top: 0; }
.docs-resources-row .docs-info-card { display: flex; flex-direction: column; }
.docs-resources-row .docs-info-card p { flex: 1; }

/* YouTube-Icon Farbe */
.docs-shortlink-youtube { color: #FF0000 !important; background: rgba(255,0,0,.07) !important; }

/* PaperOffice Upselling (Enterprise Enduser Portal) */
.docs-upsell-section {
  padding: 0 var(--po-content-pad) 3.5rem;
  background: var(--po-bg);
}
.docs-upsell-inner {
  max-width: var(--po-content-max); width: 100%; margin: 0 auto;
  background: linear-gradient(135deg, rgba(3,102,214,.06) 0%, rgba(16,185,129,.05) 100%);
  border: 1px solid var(--po-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--po-shadow-lg);
}
.docs-upsell-header { margin-bottom: 1.5rem; max-width: 820px; }
.docs-upsell-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; color: var(--po-text);
  margin: .75rem 0 .5rem; line-height: 1.15; letter-spacing: -.02em;
}
.docs-upsell-subtitle { color: var(--po-muted); font-size: 1rem; line-height: 1.6; margin: 0; max-width: min(100%, 720px); }
.docs-upsell-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem;
}
.docs-upsell-card {
  background: var(--po-card); border: 1px solid var(--po-border); border-radius: 12px;
  padding: 1.35rem; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: all .2s ease; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.docs-upsell-card:hover {
  border-color: var(--docs-accent, var(--po-primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(3,102,214,.1);
  text-decoration: none;
}
.docs-upsell-card-accent { border-color: rgba(3,102,214,.25); background: linear-gradient(180deg, #fff 0%, #f8fbff 100%); }
.docs-upsell-card h3 { font-size: 1.05rem; font-weight: 700; margin: .75rem 0 .35rem; color: var(--po-text); }
.docs-upsell-card p { font-size: .88rem; color: var(--po-muted); line-height: 1.55; margin: 0 0 1rem; flex: 1; }
.docs-trust-row {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--po-border); color: var(--po-muted); font-size: .85rem;
}
.docs-trust-row span { display: inline-flex; align-items: center; gap: .45rem; }
.docs-trust-row i { color: var(--po-primary); }

/* Entwickler-Ressourcen */
.docs-resources-section { padding: 3rem 2rem 3.5rem; background: var(--po-bg); }
.docs-resources-inner { max-width: var(--po-content-max); width: 100%; margin: 0 auto; padding: 0 var(--po-content-pad); }
.docs-resources-inner > h2 {
  font-size: 1.75rem; font-weight: 700; color: var(--po-text);
  margin: 0 0 1.5rem; text-align: center;
}
.docs-resources-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.docs-resource-card {
  background: var(--po-card); border: 1px solid var(--po-border);
  border-radius: 12px; padding: 1.5rem; cursor: pointer; transition: all .2s;
}
.docs-resource-card:hover {
  border-color: var(--docs-accent);
  box-shadow: 0 4px 16px rgba(8,145,178,.1);
}
.docs-resource-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--docs-accent-light); color: var(--docs-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: .85rem;
}
.docs-resource-card h4 { font-size: 1rem; font-weight: 700; margin: 0 0 .4rem; color: var(--po-text); }
.docs-resource-card p { font-size: .85rem; color: var(--po-muted); line-height: 1.55; margin: 0 0 .85rem; }

/* Docs Footer */
.docs-landing-footer {
  background: #f8fafc; border-top: 1px solid var(--po-border);
  padding: 2.5rem 2rem 1.5rem;
}
.docs-footer-inner {
  max-width: var(--po-content-max); width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.docs-footer-col h4 {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--po-text); margin: 0 0 .85rem;
}
.docs-footer-col a {
  display: block; font-size: .88rem; color: var(--po-muted);
  text-decoration: none; padding: .2rem 0; transition: color .15s;
}
.docs-footer-col a:hover { color: var(--docs-accent); }
.docs-footer-bottom {
  max-width: var(--po-content-max); width: 100%; margin: 1.5rem auto 0; padding-top: 1rem;
  border-top: 1px solid var(--po-border);
  font-size: .78rem; color: var(--po-muted); text-align: center;
}

/* Kompakter Hero für Unterseiten */
.docs-hero-compact { padding: 2.5rem 2rem 2rem; }
.docs-hero-single { grid-template-columns: 1fr; }
.docs-hero-compact .docs-hero-title { font-size: 2.2rem; }
.docs-hero-compact .docs-hero-subtitle { font-size: 1rem; max-width: 600px; }

/* Content-Section für dynamische Inhalte unterhalb Hero */
.docs-content-section { padding: 2rem 2rem 2.5rem; }
.docs-content-inner { max-width: var(--po-content-max); width: 100%; margin: 0 auto; padding: 0 var(--po-content-pad); }

/* Shortlink-Icon in Action-Cards */
.docs-shortlink-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--docs-accent-ultra-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--docs-accent);
  margin-bottom: .75rem;
}

/* KB Kategorie-Cards */
.kb-cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.kb-cat-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 1.25rem; cursor: pointer; transition: all .2s;
}
.kb-cat-card:hover { border-color: var(--docs-accent); box-shadow: 0 4px 16px rgba(0,0,0,.06); transform: translateY(-2px); }
.kb-cat-card.kb-cat-active { border-color: var(--docs-accent); background: var(--docs-accent-ultra-light); }
.kb-cat-card h3 { font-size: .95rem; font-weight: 600; margin: 0 0 .35rem; color: #1e293b; }
.kb-cat-card p { font-size: .82rem; color: #64748b; margin: 0; line-height: 1.45; }
.kb-cat-card .docs-shortlink-icon { width: 40px; height: 40px; font-size: 1rem; margin-bottom: .6rem; }

/* Landing Responsive: Tablet */
@media (max-width: 1100px) {
  .docs-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .docs-hero-right { max-width: 420px; }
  .docs-cards-inner { grid-template-columns: repeat(2, 1fr); }
  .docs-resources-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Landing Responsive: Mobile */
@media (max-width: 768px) {
  .docs-hero-section { padding: 2.5rem 1.25rem 2rem; }
  .docs-hero-compact { padding: 2rem 1.25rem 1.5rem; }
  .docs-hero-title { font-size: 2.2rem; }
  .docs-hero-compact .docs-hero-title { font-size: 1.8rem; }
  .docs-hero-subtitle { font-size: 1rem; }
  .docs-hero-actions { gap: .5rem; }
  .docs-hero-btn { padding: .5rem 1rem; font-size: .82rem; }
  .docs-hero-search { max-width: 100%; }
  .docs-cards-section { padding: 0 1.25rem 2rem; }
  .docs-cards-inner { grid-template-columns: 1fr; }
  .docs-content-section { padding: 1.5rem 1.25rem 2rem; }
  .docs-resources-section { padding: 2rem 1.25rem; }
  .docs-resources-grid { grid-template-columns: 1fr; }
  .docs-resources-inner > h2 { font-size: 1.4rem; }
  .docs-landing-footer { padding: 2rem 1.25rem 1rem; }
  .docs-footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}/* Header & Navigation */

/* Footer */

/* Hero Section */

/* Action Cards (Home) */

/* Wissensdatenbank (KB) */

/* Services */

/* Sections */

/* Buttons */

/* Alle weiss-hinterlegten Elemente */

/* Formulare (Login, Register, Contact, Tickets) */

/* SSO-Box (Login-Hinweis) */

/* Choice Cards (Support) */

/* Locale Selectors + Dropdowns */

/* Choice-Card Icons + Badges */

/* SSO-Inline */

/* Allgemein */

/* Slots & Booking */

/* Appointments */

/* Tickets */

/* Toasts */

/* Status-Badges */

/* Responsive: Tablet */
@media (max-width: 1100px) {
  .docs-layout { grid-template-columns: 250px 1fr; }
  .docs-toc-col { display: none; }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar {
    position: fixed; top: 0; left: -300px; width: 280px;
    height: 100vh; z-index: 999;
    transition: left .3s ease; box-shadow: none;
    border-right: 1px solid var(--docs-sidebar-border);
    background: var(--docs-sidebar-bg);
  }
  .docs-sidebar.docs-sidebar-visible {
    left: 0; box-shadow: 4px 0 24px rgba(0,0,0,.2);
  }
  .docs-sidebar-toggle { display: flex; }
  .docs-toc-col { display: none; }
  .docs-main { padding: 1rem; }
  .docs-article-title { font-size: 1.5rem; }
  .docs-prev-next { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-feedback { flex-direction: column; align-items: flex-start; }
  .docs-breadcrumbs { font-size: .75rem; }
}

/* ============================================================================
   Portal Support Hub (Startseite — Enterprise, App-Dashboard-Dichte)
   ============================================================================ */
.portal-hub {
  max-width: var(--po-content-max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.25rem, 2.5vw, 2rem) var(--po-content-pad) 2.5rem;
}
.portal-hub-hero { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.portal-hub-title {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  color: var(--po-text);
  letter-spacing: -.03em;
  margin: 0 0 .55rem;
  line-height: 1.15;
}
.portal-hub-lead {
  font-size: clamp(.98rem, 1.4vw, 1.08rem);
  color: var(--po-muted);
  line-height: 1.65;
  margin: 0 0 1.35rem;
  max-width: min(100%, 52rem);
}
.portal-hub-search {
  max-width: min(100%, 720px);
  margin-bottom: 0;
}
.portal-hub-search.docs-hero-search {
  padding: .35rem .35rem .35rem 1rem;
  min-height: 3.25rem;
  box-shadow: 0 4px 18px rgba(91, 155, 213, .12);
}
.portal-hub-search input { font-size: 1rem; }
.portal-hub-search button {
  padding: .75rem 1.35rem;
  font-size: .95rem;
  font-weight: 600;
}
.portal-hub-section { margin-bottom: clamp(1.5rem, 2.5vw, 2rem); }
.portal-hub-section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--po-muted);
  margin: 0 0 .85rem;
}
.portal-hub-card-grid {
  display: grid;
  gap: 1.15rem;
}
.portal-hub-card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.portal-hub-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.portal-hub-card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.portal-hub-card {
  background: var(--po-card);
  border: 1px solid var(--po-border);
  border-radius: 16px;
  padding: clamp(1.15rem, 2vw, 1.5rem);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--po-shadow);
  transition: border-color var(--po-transition), box-shadow var(--po-transition), transform var(--po-transition);
}
.portal-hub-card:hover {
  border-color: var(--po-primary);
  box-shadow: var(--po-shadow-lg);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}
.portal-hub-card-featured {
  border-color: rgba(91, 155, 213, .35);
  background: linear-gradient(180deg, #fff 0%, rgba(91, 155, 213, .06) 100%);
}
.portal-hub-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--po-primary-light);
  color: var(--po-primary);
  font-size: 1.15rem;
  margin-bottom: .85rem;
  flex-shrink: 0;
}
.portal-hub-card-icon-youtube {
  color: #ff0000 !important;
  background: rgba(255, 0, 0, .08) !important;
}
.portal-hub-card h3 {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  font-weight: 700;
  margin: 0 0 .45rem;
  color: var(--po-text);
  line-height: 1.3;
}
.portal-hub-card p {
  font-size: .92rem;
  color: var(--po-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
  flex: 1;
}
.portal-hub-card-link {
  font-size: .88rem;
  font-weight: 650;
  color: var(--po-primary);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
}
.portal-hub-card:hover .portal-hub-card-link { gap: .55rem; }
.portal-hub-suggested {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .85rem;
}
.portal-hub-suggested-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .95rem 1rem;
  background: var(--po-card);
  border: 1px solid var(--po-border);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--po-transition), box-shadow var(--po-transition);
}
.portal-hub-suggested-item:hover {
  border-color: var(--po-primary);
  box-shadow: 0 4px 14px rgba(91, 155, 213, .1);
  text-decoration: none;
  color: inherit;
}
.portal-hub-suggested-item i {
  color: var(--po-primary);
  margin-top: .15rem;
  font-size: .9rem;
}
.portal-hub-suggested-item h4 {
  font-size: .92rem;
  font-weight: 650;
  margin: 0 0 .2rem;
  line-height: 1.35;
}
.portal-hub-suggested-item span {
  font-size: .78rem;
  color: var(--po-muted);
}
.portal-hub-social {
  border-top: 1px solid var(--po-border);
  padding-top: 1.25rem;
  margin-top: .5rem;
}
.portal-hub-social-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--po-muted);
  margin: 0 0 .75rem;
}
.portal-hub-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
}
.portal-hub-social-links a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 550;
  color: var(--po-text);
  text-decoration: none;
  padding: .45rem .65rem;
  border-radius: 8px;
  border: 1px solid var(--po-border);
  background: var(--po-card);
  transition: border-color var(--po-transition), color var(--po-transition);
}
.portal-hub-social-links a:hover {
  border-color: var(--po-primary);
  color: var(--po-primary);
  text-decoration: none;
}
.portal-hub-social-links a i.fa-youtube { color: #ff0000; }

/* Legacy-Kompakt-Tiles (Support-Choice etc.) */
.portal-hub-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .65rem;
}
.portal-hub-action {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .95rem 1.05rem;
  background: var(--po-card);
  border: 1px solid var(--po-border);
  border-radius: var(--po-radius);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--po-transition), box-shadow var(--po-transition);
}
.portal-hub-action:hover {
  border-color: var(--po-primary);
  box-shadow: 0 2px 10px rgba(91, 155, 213, .12);
  text-decoration: none;
}
.portal-hub-action-primary {
  border-color: rgba(91, 155, 213, .35);
  background: linear-gradient(180deg, #fff 0%, rgba(91, 155, 213, .05) 100%);
}
.portal-hub-action-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--po-primary-light);
  color: var(--po-primary);
  font-size: 1rem;
}
.portal-hub-action-body { flex: 1; min-width: 0; }
.portal-hub-action-body h3 {
  font-size: .92rem; font-weight: 650; margin: 0 0 .2rem; color: var(--po-text);
}
.portal-hub-action-body p {
  font-size: .8rem; color: var(--po-muted); line-height: 1.45; margin: 0 0 .45rem;
}
.portal-hub-action-link {
  font-size: .78rem; font-weight: 600; color: var(--po-primary);
  display: inline-flex; align-items: center; gap: .3rem;
}

/* Support Portal — Identity Rail, Quick Tiles, Feed, Status */
.sp-elevated-section {
  background: var(--po-card);
  border: 1px solid var(--po-border);
  border-radius: var(--po-radius-lg);
  padding: clamp(1.15rem, 2vw, 1.65rem);
  box-shadow: var(--po-shadow-md);
}
.sp-identity-rail {
  background: var(--po-card);
  border: 1px solid var(--po-border);
  border-radius: var(--po-radius-lg);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: var(--po-shadow-lg);
}
.sp-identity-rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.sp-identity-rail-main {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  flex: 1;
  min-width: 0;
}
.sp-identity-rail-search {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--po-border);
}
.sp-identity-rail-search .portal-hub-search { max-width: none; margin: 0; }
.sp-identity-login-link {
  font-weight: 600;
  color: var(--po-primary);
  text-decoration: none;
  white-space: nowrap;
}
.sp-identity-login-link:hover { text-decoration: underline; }
.sp-hero-avatar {
  width: 100px;
  height: 100px;
  border-radius: 15%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--po-shadow-md);
}
.sp-hero-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--po-primary), var(--po-primary-dark));
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}
.sp-hero-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--po-bg);
  border: 2px dashed var(--po-border);
  color: var(--po-muted);
  font-size: 2.2rem;
}
.sp-hero-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--po-primary);
  margin: 0 0 .35rem;
}
.sp-hero-greeting-title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--po-text);
  letter-spacing: -.02em;
  margin: 0 0 .35rem;
  line-height: 1.2;
}
.sp-hero-greeting-sub {
  font-size: .92rem;
  color: var(--po-muted);
  margin: 0;
  line-height: 1.55;
  max-width: 42rem;
}
.sp-hero-clock {
  font-size: .88rem;
  font-weight: 600;
  color: var(--po-muted);
  text-align: right;
  white-space: nowrap;
  align-self: flex-start;
  padding-top: .35rem;
}

/* Quick Actions — 8 Action-Cards (4×2) */
.sp-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
}
.sp-action-card {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  min-height: 108px;
  padding: 1rem 1.05rem;
  background: var(--po-card);
  border: 1px solid var(--po-border);
  border-radius: 14px;
  box-shadow: var(--po-shadow-sm);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--po-transition), box-shadow var(--po-transition), transform var(--po-transition);
}
.sp-action-card:hover {
  border-color: var(--po-primary);
  box-shadow: var(--po-shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}
.sp-action-card-disabled {
  opacity: .62;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: var(--po-shadow-sm) !important;
  border-color: var(--po-border) !important;
  background: var(--po-bg);
}
.sp-action-card-disabled:hover {
  transform: none;
  border-color: var(--po-border);
  box-shadow: var(--po-shadow-sm);
}
.sp-action-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--po-primary-light);
  color: var(--po-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.sp-action-card-body {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
}
.sp-action-card-title {
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--po-text);
}
.sp-action-card-desc {
  font-size: .76rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--po-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sp-action-card-lock {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 500;
  color: var(--po-muted);
  margin-top: .15rem;
}
.sp-action-card-lock i { font-size: .62rem; opacity: .85; }

/* Aktuelles + System — 60/40 Grid */
.sp-activity-section { margin-top: .25rem; }
.sp-activity-system-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}
.sp-activity-feed-col,
.sp-activity-system-col {
  min-width: 0;
}
.sp-activity-feed-only {
  min-width: 0;
}
.sp-activity-feed-only .sp-feed-timeline {
  max-width: none;
}
.sp-activity-feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
}
.sp-activity-feed-head .portal-hub-section-label { margin: 0; }
.sp-feed-updated {
  font-size: .72rem;
  font-weight: 500;
  color: var(--po-muted);
  white-space: nowrap;
}

/* Unified Timeline-Feed */
.sp-feed-timeline {
  background: var(--po-bg);
  border: 1px solid var(--po-border);
  border-radius: 14px;
  padding: .35rem .85rem;
  box-shadow: var(--po-shadow-sm);
  min-height: 280px;
}
.sp-feed-timeline-list { list-style: none; margin: 0; padding: 0; }
.sp-feed-timeline-item { border-bottom: 1px solid var(--po-border); }
.sp-feed-timeline-item:last-child { border-bottom: 0; }
.sp-feed-timeline-item-latest {
  background: linear-gradient(90deg, rgba(91, 155, 213, .07) 0%, transparent 100%);
  margin: 0 -.85rem;
  padding: 0 .85rem;
  border-radius: 10px;
}
.sp-feed-timeline-link {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  padding: .75rem 0;
  text-decoration: none;
  color: inherit;
  transition: color var(--po-transition);
}
.sp-feed-timeline-link:hover { color: var(--po-primary); text-decoration: none; }
.sp-feed-recency {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  align-items: flex-start;
}
.sp-feed-badge {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .12rem .45rem;
  border-radius: 999px;
}
.sp-feed-badge-new {
  background: rgba(16, 185, 129, .14);
  color: #059669;
}
.sp-feed-recency-badge {
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
}
.sp-feed-recency-today { color: #059669; }
.sp-feed-recency-yesterday { color: var(--po-primary); }
.sp-feed-recency-recent { color: var(--po-text); }
.sp-feed-recency-old { color: var(--po-muted); font-weight: 600; }
.sp-feed-recency-time {
  font-size: .78rem;
  font-weight: 600;
  color: var(--po-muted);
}
.sp-feed-timeline-body {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
}
.sp-feed-type-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .1rem .4rem;
  border-radius: 6px;
  background: rgba(91, 155, 213, .12);
  color: var(--po-primary);
}
.sp-feed-type-faq { background: rgba(99, 102, 241, .12); color: #4f46e5; }
.sp-feed-timeline-title {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sp-feed-timeline-arrow {
  font-size: .72rem;
  color: var(--po-muted);
  opacity: .45;
  transition: opacity var(--po-transition), transform var(--po-transition);
}
.sp-feed-timeline-link:hover .sp-feed-timeline-arrow {
  opacity: 1;
  transform: translateX(2px);
  color: var(--po-primary);
}
.sp-feed-empty { font-size: .85rem; color: var(--po-muted); padding: 1.25rem .25rem; }

/* PaperOffice System — Sparkline-Panel */
.sp-system-panel {
  height: 100%;
  background: var(--po-card);
  border: 1px solid var(--po-border);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.05rem;
  box-shadow: var(--po-shadow-sm);
  display: flex;
  flex-direction: column;
}
.sp-system-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .95rem;
}
.sp-system-panel-title {
  margin: 0;
  font-size: .92rem;
  font-weight: 700;
  color: var(--po-text);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.sp-system-panel-title i { color: var(--po-primary); }
.sp-system-live {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--po-success);
}
.sp-system-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  flex: 1;
}
.sp-system-charts-stack {
  grid-template-columns: 1fr;
}
.sp-system-chart {
  background: var(--po-bg);
  border: 1px solid var(--po-border);
  border-radius: 12px;
  padding: .75rem .7rem .55rem;
  display: flex;
  flex-direction: column;
  min-height: 192px;
}
.sp-system-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem;
  margin-bottom: .35rem;
}
.sp-system-chart-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--po-muted);
}
.sp-system-chart-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--po-primary);
  font-variant-numeric: tabular-nums;
  transition: color .35s ease;
}
.sp-system-chart-value-ok { color: #059669; }
.sp-system-chart-svg {
  flex: 1;
  min-height: 132px;
  width: 100%;
  display: block;
}
.sp-system-chart-svg-inner {
  width: 100%;
  height: 132px;
  display: block;
  overflow: visible;
}
.sp-chart-axis-y,
.sp-chart-axis-x {
  font-family: var(--po-font-family, 'DM Sans', sans-serif);
  font-size: 9px;
  font-weight: 500;
}
.sp-chart-axis-x-today {
  fill: var(--po-primary);
  font-weight: 500;
}
.sp-chart-grid { opacity: .55; }
.sp-chart-dot { animation: sp-pulse 2s ease-in-out infinite; }
.sp-sparkline {
  width: 100%;
  height: 58px;
  display: block;
}
.sp-sparkline-area { opacity: .18; }
.sp-sparkline-dot { animation: sp-pulse 2s ease-in-out infinite; }
.sp-system-updated {
  margin: .7rem 0 0;
  font-size: .68rem;
  color: var(--po-muted);
  text-align: right;
}

/* Legacy Feed-Grid (Docs/KB intern) */
.sp-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}
.sp-feed-col {
  background: var(--po-bg);
  border: 1px solid var(--po-border);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  box-shadow: var(--po-shadow-sm);
}
.sp-feed-col-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--po-text);
  margin: 0 0 .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sp-feed-col-title i { color: var(--po-primary); }
.sp-feed-list { list-style: none; margin: 0; padding: 0; }
.sp-feed-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--po-border);
  text-decoration: none;
  color: inherit;
  transition: color var(--po-transition);
}
.sp-feed-item:last-child { border-bottom: 0; padding-bottom: 0; }
.sp-feed-item:hover { color: var(--po-primary); text-decoration: none; }
.sp-feed-item-title { font-size: .88rem; font-weight: 600; line-height: 1.4; }
.sp-feed-item-date { font-size: .72rem; color: var(--po-muted); }

.sp-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--po-success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .2);
  flex-shrink: 0;
}
@keyframes sp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .65; }
}
.sp-system-live .sp-status-dot { animation: sp-pulse 2s ease-in-out infinite; }
.sp-footer-band {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--po-border);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.sp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  margin-top: .5rem;
}
.sp-footer-links a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--po-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.sp-footer-links a:hover { color: var(--po-primary); text-decoration: none; }
.sp-footer-social { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.sp-footer-social-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--po-muted);
}
.sp-footer-social-links { display: flex; gap: .5rem; }
.sp-footer-social-links a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--po-border);
  background: var(--po-card);
  color: var(--po-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color var(--po-transition), border-color var(--po-transition);
}
.sp-footer-social-links a:hover { color: var(--po-primary); border-color: var(--po-primary); }
.sp-footer-social-links a .fa-youtube { color: #ff0000; }

.sp-overview-section { margin-top: .5rem; }
.sp-overview-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }

/* Support-Home V2 — max. font-weight 500 */
.portal-hub-v2 .portal-hub-section-label,
.portal-hub-v2 .sp-hero-eyebrow,
.portal-hub-v2 .sp-hero-greeting-title,
.portal-hub-v2 .sp-hero-greeting-sub,
.portal-hub-v2 .sp-hero-clock,
.portal-hub-v2 .sp-action-card-title,
.portal-hub-v2 .sp-action-card-desc,
.portal-hub-v2 .sp-action-card-lock,
.portal-hub-v2 .sp-feed-recency-badge,
.portal-hub-v2 .sp-feed-recency-time,
.portal-hub-v2 .sp-feed-timeline-title,
.portal-hub-v2 .sp-feed-type-badge,
.portal-hub-v2 .sp-feed-badge,
.portal-hub-v2 .sp-feed-updated,
.portal-hub-v2 .sp-system-panel-title,
.portal-hub-v2 .sp-system-chart-label,
.portal-hub-v2 .sp-system-chart-value,
.portal-hub-v2 .sp-system-live,
.portal-hub-v2 .sp-system-updated,
.portal-hub-v2 .sp-footer-social-label {
  font-weight: 500;
}
.portal-hub-v2 .sp-feed-empty,
.portal-hub-v2 .sp-action-card-desc {
  font-weight: 400;
}
.sp-footer-band-social-only {
  justify-content: flex-end;
  border-top: 1px solid var(--po-border);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

@media (max-width: 1024px) {
  .portal-hub-card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .portal-hub-card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sp-activity-system-grid { grid-template-columns: 1fr; }
  .sp-action-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .portal-hub-card-grid-2,
  .portal-hub-card-grid-3,
  .portal-hub-card-grid-4 { grid-template-columns: 1fr; }
  .portal-hub-search.docs-hero-search { min-height: auto; }
  .sp-feed-grid { grid-template-columns: 1fr; }
  .sp-feed-timeline-link { grid-template-columns: 88px minmax(0, 1fr) auto; gap: .55rem; }
  .sp-system-charts { grid-template-columns: 1fr; }
  .sp-identity-rail-top { flex-direction: column; align-items: flex-start; }
  .sp-hero-clock { text-align: left; white-space: normal; align-self: stretch; }
  .sp-footer-band { flex-direction: column; }
  .sp-footer-social { align-items: flex-start; }
  .sp-action-grid { grid-template-columns: 1fr; }
}
