/* ============================================================
   SERRUZ — Portal Design System Extension
   Editorial Magazine-Style Intranet
   Warm, spacious, premium — like a beautifully designed company magazine
   ============================================================ */

/* ----- 0. Font Import & Keyframes --------------------------- */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ----- 1. Portal Layout -------------------------------------- */

.portal-layout {
  display: flex;
  min-height: 100vh;
}

.portal-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 270px;
  height: 100vh;
  background: var(--accent, #004E2B);
  color: #ffffff;
  overflow-y: auto;
  z-index: 40;
  padding-top: 72px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base);
}

.portal-sidebar::-webkit-scrollbar {
  width: 4px;
}

.portal-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.portal-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}

.portal-sidebar .nav-brand {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-sidebar .nav-section-title {
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.35);
  padding: 0 24px;
  margin-top: 28px;
  margin-bottom: 8px;
  font-weight: 600;
}

.portal-sidebar .nav-item {
  display: flex;
  align-items: center;
  padding: 11px 24px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  gap: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-left: 3px solid transparent;
  border-radius: 0 12px 12px 0;
  margin-right: 10px;
}

.portal-sidebar .nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding-left: 28px;
}

.portal-sidebar .nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border-left-color: #ffffff;
  font-weight: 600;
}

.portal-sidebar .nav-item.active .nav-icon {
  opacity: 1;
}

.portal-sidebar .nav-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 16px 24px;
}

.portal-sidebar .nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.portal-sidebar .nav-item:hover .nav-icon {
  opacity: 1;
  transform: scale(1.05);
}

.portal-sidebar .nav-footer {
  margin-top: auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ----- Portal Main ------------------------------------------- */

.portal-main {
  margin-left: 270px;
  flex: 1;
  padding: 36px 48px;
  background: #faf9f7;
  min-height: 100vh;
  padding-top: 108px;
  animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  /* Subtle warm grain texture */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #faf9f7 0%, #f5f3ef 100%);
}

.portal-main > * {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.portal-main > .widget-grid,
.portal-main > .stats-grid,
.portal-main > .card-grid,
.portal-main > .magazine-grid,
.portal-main > .magazine-contact-grid,
.portal-main > .magazine-video-grid {
  max-width: 960px;
}

/* Serif headlines for editorial feel */
.portal-main h1,
.portal-main h2,
.portal-main h3 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  letter-spacing: -0.01em;
}

/* ----- Portal Header ----------------------------------------- */

.portal-header {
  position: fixed;
  top: 0;
  left: 270px;
  right: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.02);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}

.portal-header::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.03), transparent);
  pointer-events: none;
}

.portal-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ----- 2. Sidebar Mobile ------------------------------------- */

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 10, 0.6);
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sidebar-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  color: var(--text-primary);
  transition: background 0.25s ease;
}

.sidebar-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.sidebar-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1024px) {
  .portal-sidebar {
    transform: translateX(-270px);
  }

  .portal-sidebar.open {
    transform: translateX(0);
  }

  .portal-main {
    margin-left: 0;
    padding: 28px 24px;
    padding-top: 108px;
  }

  .portal-header {
    left: 0;
    padding: 0 24px;
  }

  .sidebar-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .portal-main {
    padding: 20px 16px;
    padding-top: 92px;
  }

  .portal-header {
    padding: 0 16px;
    height: 64px;
  }
}

/* ----- 3. Dashboard Widgets ---------------------------------- */

.widget-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.portal-widget {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.portal-widget:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 36px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.portal-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.portal-widget-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.portal-widget-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease, gap 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.portal-widget-link:hover {
  color: var(--accent-hover);
  gap: 6px;
}

.widget-stat {
  display: flex;
  align-items: center;
  gap: 20px;
}

.widget-stat-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
}

.widget-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.widget-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-light), rgba(var(--accent-rgb), 0.12));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.widget-stat-icon svg {
  width: 24px;
  height: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.stat-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
  padding: 24px 28px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 36px rgba(0, 0, 0, 0.04);
}

/* ----- 4. Status Badges -------------------------------------- */

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.status-eingereicht {
  background: #fef9c3;
  color: #854d0e;
}

.status-in_bearbeitung {
  background: #dbeafe;
  color: #1e40af;
}

.status-erledigt {
  background: #dcfce7;
  color: #166534;
}

.status-abgelehnt {
  background: #fee2e2;
  color: #991b1b;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  background: var(--cta, #e64215);
  color: #ffffff;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  animation: subtleFloat 3s ease-in-out infinite;
}

.badge-kategorie {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  color: #4a4540;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-weight: 500;
}

/* ----- 5. Progress Bar --------------------------------------- */

.progress-bar {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
  width: 100%;
}

.progress-fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  height: 100%;
  border-radius: 9999px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ----- 6. Notification Bell ---------------------------------- */

.notification-bell {
  position: relative;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  color: var(--text-primary);
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.notification-bell:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: scale(1.05);
}

.notification-bell svg {
  width: 22px;
  height: 22px;
}

.notification-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--cta, #e64215);
  color: #ffffff;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(var(--cta-rgb, 230, 66, 21), 0.35);
}

.notification-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 380px;
  background: #ffffff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  max-height: 420px;
  overflow-y: auto;
  z-index: 50;
  display: none;
  border: none;
}

.notification-dropdown.open {
  display: block;
  animation: fadeInUp 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.notification-dropdown-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-dropdown-header a {
  font-family: inherit;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.notification-item {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: background 0.2s ease;
  border-left: 3px solid transparent;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item:hover {
  background: #faf9f7;
}

.notification-item.unread {
  border-left-color: var(--cta, #e64215);
  background: rgba(var(--cta-rgb, 230, 66, 21), 0.04);
}

.notification-item.unread:hover {
  background: rgba(var(--cta-rgb, 230, 66, 21), 0.06);
}

.notification-item .notif-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.notification-item .notif-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-item .notif-time {
  font-size: 12px;
  color: var(--text-muted);
}

/* ----- 7. Forms ---------------------------------------------- */

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.form-label .required {
  color: var(--accent);
  margin-left: 3px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  background: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
  background: #fffffe;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  background: #f5f4f2;
  color: var(--text-muted);
  cursor: not-allowed;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.form-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

.form-error {
  font-size: 13px;
  color: #dc2626;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
}

.form-radio input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.form-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ----- 8. Buttons -------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.12);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 14px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ----- 9. Tables --------------------------------------------- */

.table-wrapper {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.data-table th {
  background: #faf9f7;
  text-align: left;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 14px;
  vertical-align: middle;
  color: var(--text-primary);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(250, 249, 247, 0.7);
}

.data-table .actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.table-footer {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 13px;
  color: var(--text-secondary);
}

/* ----- 10. Login Page ---------------------------------------- */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #003d22 0%, #004E2B 40%, #003d22 100%);
  padding: 24px;
}

.login-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 56px 48px;
  width: 440px;
  max-width: 92vw;
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo img {
  height: 48px;
  width: auto;
}

.login-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.2;
}

.login-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 36px;
  font-size: 15px;
  line-height: 1.6;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.login-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-muted);
}

.login-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.login-footer a:hover {
  color: var(--accent-hover);
}

/* ----- 11. FAQ Accordion ------------------------------------- */

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.accordion-item {
  background: #ffffff;
  border-radius: 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
  transition: background 0.25s ease, color 0.25s ease;
}

.accordion-trigger:hover {
  background: rgba(0, 0, 0, 0.02);
}

.accordion-trigger .chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
}

.accordion-item.open .accordion-trigger .chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.accordion-item.open .accordion-trigger {
  color: var(--accent);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.accordion-item.open .accordion-content {
  max-height: 600px;
  padding-bottom: 24px;
}

/* ----- 12. Category Tabs ------------------------------------- */

.category-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  border-radius: 12px 12px 0 0;
}

.category-tab:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.02);
}

.category-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* ----- 13. Calendar ------------------------------------------ */

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.calendar-nav-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
}

.calendar-nav-btn {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.calendar-nav-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.18);
  transform: scale(1.05);
}

.calendar-nav-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
}

.calendar-header-cell {
  background: #faf9f7;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.calendar-day {
  min-height: 84px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  background: #ffffff;
  vertical-align: top;
  transition: background 0.2s ease;
}

.calendar-day:hover {
  background: #faf9f7;
}

.calendar-day-number {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.calendar-day.today {
  background: rgba(var(--accent-rgb), 0.04);
}

.calendar-day.today .calendar-day-number {
  color: var(--accent);
  font-weight: 700;
  background: rgba(var(--accent-rgb), 0.1);
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day.other-month {
  opacity: 0.35;
  background: #faf9f7;
}

.calendar-event {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 6px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.4;
  transition: opacity 0.2s ease;
}

.calendar-event:hover {
  opacity: 0.8;
}

.calendar-event.schulung {
  background: #dbeafe;
  color: #1e40af;
}

.calendar-event.event {
  background: #dcfce7;
  color: #166534;
}

.calendar-event.frist {
  background: #fee2e2;
  color: #991b1b;
}

.calendar-event.sonstiges {
  background: rgba(0, 0, 0, 0.05);
  color: #4a4540;
}

/* ----- 14. Empty State --------------------------------------- */

.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 56px;
  margin-bottom: 20px;
  opacity: 0.25;
  display: block;
  line-height: 1;
}

.empty-state .empty-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.empty-state .empty-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- 15. Misc Utilities ------------------------------------ */

.page-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 640px;
}

.page-header {
  margin-bottom: 40px;
}

.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.2);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar.large {
  width: 68px;
  height: 68px;
  font-size: 22px;
}

.user-avatar.small {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.user-info-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ----- 16. Breadcrumb --------------------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: rgba(0, 0, 0, 0.15);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* ----- 17. Search ------------------------------------------- */

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
}

.search-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
  background: #ffffff;
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* ----- 18. Pagination --------------------------------------- */

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  font-family: inherit;
}

.pagination-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ----- 19. Alerts / Toast ----------------------------------- */

.alert {
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 4px solid transparent;
  margin-bottom: 20px;
}

.alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border-left-color: #3b82f6;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border-left-color: #22c55e;
}

.alert-warning {
  background: #fffbeb;
  color: #854d0e;
  border-left-color: #eab308;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border-left-color: #ef4444;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #1a1816;
  color: #ffffff;
  padding: 16px 22px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  max-width: 380px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.toast-success {
  border-left: 4px solid #22c55e;
}

.toast.toast-error {
  border-left: 4px solid #ef4444;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ----- 20. Modal -------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: 580px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 28px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  transform: scale(1.05);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-body {
  padding: 24px 28px;
}

.modal-footer {
  padding: 0 28px 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ----- 21. File Upload -------------------------------------- */

.file-upload-zone {
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.01);
}

.file-upload-zone:hover,
.file-upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.03);
  transform: scale(1.01);
}

.file-upload-zone .upload-icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
  opacity: 0.4;
}

.file-upload-zone .upload-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.file-upload-zone .upload-link {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.file-upload-zone .upload-link:hover {
  color: var(--accent-hover);
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #faf9f7;
  border-radius: 12px;
  font-size: 13px;
  transition: background 0.2s ease;
}

.file-item:hover {
  background: #f5f3ef;
}

.file-item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  font-weight: 500;
}

.file-item-size {
  color: var(--text-muted);
  flex-shrink: 0;
}

.file-item-remove {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.file-item-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* ============================================================
   22. Magazine-Style Content Sections (NEW)
   ============================================================ */

/* --- Magazine Section --- */
.magazine-section {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 44px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.03);
  animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.magazine-section + .magazine-section {
  animation-delay: 0.08s;
}

@media (max-width: 640px) {
  .magazine-section {
    padding: 28px 20px;
    border-radius: 20px;
  }
}

/* --- Magazine Hero --- */
.magazine-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 28px;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}

.magazine-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.magazine-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 12, 10, 0.75) 0%, rgba(15, 12, 10, 0.1) 60%, transparent 100%);
  pointer-events: none;
}

.magazine-hero > * {
  position: relative;
  z-index: 1;
}

.magazine-hero .magazine-hero-content {
  padding: 40px 44px;
  color: #ffffff;
  width: 100%;
}

.magazine-hero .magazine-hero-content h1,
.magazine-hero .magazine-hero-content h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 8px;
  line-height: 1.15;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.magazine-hero .magazine-hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .magazine-hero {
    min-height: 220px;
    border-radius: 20px;
  }
  .magazine-hero .magazine-hero-content {
    padding: 24px 20px;
  }
}

/* --- Magazine Header --- */
.magazine-header {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 14px;
}

.magazine-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 99px;
}

/* --- Magazine Grid (2-column image+text) --- */
.magazine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
}

.magazine-grid img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.magazine-grid > div {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .magazine-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- Magazine Card --- */
.magazine-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.magazine-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 16px 48px rgba(0, 0, 0, 0.04);
}

.magazine-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.magazine-card:hover img {
  transform: scale(1.03);
}

.magazine-card .magazine-card-body {
  padding: 24px 28px;
}

.magazine-card .magazine-card-body h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.25;
}

.magazine-card .magazine-card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.magazine-card .magazine-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

/* --- Magazine CTA --- */
.magazine-cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 40px 44px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.magazine-cta::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.magazine-cta h2,
.magazine-cta h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.magazine-cta p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 560px;
}

.magazine-cta .btn {
  background: #ffffff;
  color: var(--accent);
  border-color: #ffffff;
}

.magazine-cta .btn:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
  .magazine-cta {
    padding: 28px 20px;
  }
}

/* --- Magazine Download --- */
.magazine-download {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #faf9f7;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
  border: 1px solid transparent;
  margin-bottom: 10px;
}

.magazine-download:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transform: translateX(4px);
}

.magazine-download .download-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.magazine-download .download-icon svg {
  width: 20px;
  height: 20px;
}

.magazine-download .download-info {
  flex: 1;
  min-width: 0;
}

.magazine-download .download-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.magazine-download .download-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Magazine Video Grid --- */
.magazine-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.magazine-video-grid .video-wrapper {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1a1816;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.magazine-video-grid .video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Magazine Badge --- */
.magazine-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  gap: 6px;
}

.magazine-badge.green {
  background: #f0fdf4;
  color: #166534;
}

.magazine-badge.blue {
  background: #eff6ff;
  color: #1e40af;
}

.magazine-badge.yellow {
  background: #fffbeb;
  color: #854d0e;
}

.magazine-badge.gray {
  background: rgba(0, 0, 0, 0.05);
  color: #4a4540;
}

/* --- Magazine Quote --- */
.magazine-quote {
  position: relative;
  background: linear-gradient(135deg, #faf9f7 0%, #f5f3ef 100%);
  border-radius: 20px;
  padding: 32px 36px 32px 44px;
  margin-bottom: 24px;
  border-left: 4px solid var(--accent);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
}

.magazine-quote::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 36px;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  font-style: normal;
}

.magazine-quote cite,
.magazine-quote .quote-author {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  color: var(--text-primary);
}

/* --- Magazine Accordion (details/summary) --- */
.magazine-accordion details {
  background: #ffffff;
  border-radius: 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.magazine-accordion details:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.magazine-accordion details[open] {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.magazine-accordion details summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.25s ease, color 0.25s ease;
  user-select: none;
}

.magazine-accordion details summary::-webkit-details-marker {
  display: none;
}

.magazine-accordion details summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.35s ease, color 0.25s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.magazine-accordion details[open] summary::after {
  content: '\2212';
  color: var(--accent);
}

.magazine-accordion details[open] summary {
  color: var(--accent);
}

.magazine-accordion details summary:hover {
  background: rgba(0, 0, 0, 0.02);
}

.magazine-accordion details > div,
.magazine-accordion details > p {
  padding: 0 24px 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Magazine Contact Grid --- */
.magazine-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.magazine-contact-grid .contact-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.35s ease;
}

.magazine-contact-grid .contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.magazine-contact-grid .contact-card img {
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.magazine-contact-grid .contact-card h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.magazine-contact-grid .contact-card .contact-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.magazine-contact-grid .contact-card a {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.magazine-contact-grid .contact-card a:hover {
  color: var(--accent-hover);
}

/* ============================================================
   23. Print Styles
   ============================================================ */

@media print {
  .portal-sidebar,
  .portal-header,
  .sidebar-backdrop,
  .notification-bell,
  .notification-dropdown {
    display: none !important;
  }

  .portal-main {
    margin-left: 0 !important;
    padding: 20px !important;
    background: #ffffff !important;
  }
}
