/**
 * Kaninchenbau - Theme Pages Stylesheet
 * Für alle Unterseiten (digitale-identitaet.html, smart-city.html, etc.)
 */

/* ===================================
   Theme Page Wrapper
   =================================== */
.theme-page-wrapper {
  display: flex;
  min-height: 100vh;
  padding-top: 60px;
}

/* ===================================
   Mini-Bubbles Sidebar
   =================================== */
.mini-bubbles-sidebar {
  width: 80px;
  background: rgba(10, 10, 15, 0.95);
  border-right: 1px solid rgba(184, 134, 79, 0.2);
  padding: 2rem 0.5rem 1rem 0.5rem;
  position: fixed;
  left: 0;
  top: 60px;
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 100;
  overflow-y: auto;
  transition: top 0.3s ease, height 0.3s ease;
}

/* Wenn Header ausgeblendet ist */
.mini-bubbles-sidebar.header-hidden {
  top: 0;
  height: 100vh;
}

/* Mini-Bubble Wrapper für Bubble + Label */
.mini-bubble-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.mini-bubble {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(184, 134, 79, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

.mini-bubble:hover {
  border-color: #b8864f;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(184, 134, 79, 0.4);
}

.mini-bubble.active {
  border-color: #b8864f;
  box-shadow: 0 0 20px rgba(184, 134, 79, 0.6);
}

.mini-bubble img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* Sichtbare Beschriftung unter der Bubble */
.mini-bubble-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  color: #b8864f;
  text-align: center;
  max-width: 70px;
  line-height: 1.2;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.2px;
}

/* Mission Bubble Link Styling */
.mission-bubble-link {
  text-decoration: none;
}

.mission-bubble-link .mini-bubble {
  position: relative;
}

/* Mission Bubble Overlay - gleiche Verdunklung wie auf main */
.mission-bubble-link .mini-bubble::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: linear-gradient(to top, rgba(42, 24, 16, 0.95), transparent);
  pointer-events: none;
}

/* Tooltip bei Hover - jetzt versteckt da Label sichtbar */
.mini-bubble-tooltip {
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 20, 30, 0.95);
  border: 1px solid #b8864f;
  color: #e8d5b5;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
  display: none; /* Versteckt da Label sichtbar */
}

.mini-bubble:hover .mini-bubble-tooltip {
  opacity: 1;
}

/* ===================================
   Expanded Bubble Menu (Untermenü)
   =================================== */
.mini-bubble-expanded {
  position: fixed;
  left: 90px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 15, 25, 0.98);
  border: 1px solid rgba(184, 134, 79, 0.4);
  border-radius: 10px;
  padding: 1rem;
  width: 250px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  z-index: 10001;
  display: none;
  visibility: hidden;
  opacity: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.mini-bubble-expanded.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  animation: bubbleMenuFadeIn 0.25s ease-out forwards;
}

@keyframes bubbleMenuFadeIn {
  from { 
    opacity: 0;
  }
  to { 
    opacity: 1;
  }
}

.mini-bubble-expanded h3 {
  color: #b8864f;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-family: 'Cinzel', serif;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(184, 134, 79, 0.2);
}

.mini-bubble-expanded a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  color: #e8d5b5;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.mini-bubble-expanded a:hover {
  background: rgba(184, 134, 79, 0.2);
  color: #b8864f;
}

.mini-bubble-expanded a.current-page {
  background: rgba(184, 134, 79, 0.3);
  color: #b8864f;
  font-weight: 600;
}

.mini-bubble-expanded a.disabled {
  color: #666;
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  font-style: italic;
}

.mini-bubble-expanded a.disabled:hover {
  background: transparent;
  color: #666;
}

/* ===================================
   Hauptinhalt
   =================================== */
.theme-content {
  flex: 1;
  margin-left: 80px;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.theme-content-inner {
  width: 100%;
  max-width: 1100px;
}

/* Header mit Breadcrumb */
.theme-header {
  width: 100%;
  max-width: 1100px;
  margin-bottom: 0.75rem;
  padding-bottom: 0;
  border-bottom: none;
}

.theme-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
  opacity: 0.7;
}

.theme-breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.theme-breadcrumb a:hover {
  color: #b8864f;
}

.theme-breadcrumb span {
  color: #555;
}

.theme-breadcrumb span:last-child {
  color: #888;
}

.theme-title {
  font-size: 1.8rem;
  color: #b8864f;
  font-family: 'Cinzel', serif;
  margin-bottom: 0.25rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.theme-subtitle {
  color: #888;
  font-size: 0.9rem;
  font-style: normal;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.theme-intro {
  color: #777;
  font-size: 0.85rem;
  margin: 0.5rem 0 0 0;
  padding: 0;
  text-align: center;
  width: 100%;
}

/* Portal Intro Text - direkt über der Card */
.portal-intro {
  color: #888;
  font-size: 0.85rem;
  margin: 0;
  padding: 0;
}

/* ===================================
   Content Box (Artikelinhalt)
   =================================== */
.theme-content .content-box {
  width: 100%;
  max-width: 1100px;
  background: rgba(20, 20, 30, 0.6);
  border: 1px solid rgba(184, 134, 79, 0.2);
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.theme-content .content-box h2 {
  color: #b8864f;
  font-family: 'Cinzel', serif;
  font-size: 1.7rem;
  margin: 2.5rem 0 1.2rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(184, 134, 79, 0.2);
}

.theme-content .content-box h2:first-child {
  margin-top: 0;
}

.theme-content .content-box p {
  color: #d0d0d0;
  line-height: 1.9;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.theme-content .content-box ul {
  margin-left: 2rem;
  line-height: 2;
  color: #d0d0d0;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.theme-content .content-box li {
  margin-bottom: 0.6rem;
}

.theme-content .content-box strong {
  color: #e8d5b5;
}

/* ===================================
   Navigation zwischen Themen
   =================================== */
.theme-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(184, 134, 79, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.theme-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #b8864f, #8b6914);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.theme-nav-btn:hover {
  background: linear-gradient(135deg, #d4a55a, #b8864f);
  transform: translateX(5px);
}

.theme-nav-btn.prev:hover {
  transform: translateX(-5px);
}

.theme-nav-btn.prev {
  background: transparent;
  border: 1px solid #b8864f;
  color: #b8864f;
}

.theme-nav-btn.prev:hover {
  background: rgba(184, 134, 79, 0.1);
}

/* ===================================
   Zurück-Button (zentral)
   =================================== */
.theme-back-center {
  text-align: center;
  margin-top: 2rem;
}

.theme-back-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: transparent;
  border: 1px solid #b8864f;
  color: #b8864f;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.theme-back-btn:hover {
  background: #b8864f;
  color: #0a0a0f;
}

/* ===================================
   Theme Header Row mit Buttons
   =================================== */
.theme-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 1rem;
  width: 100%;
}

.theme-header-row .theme-title {
  margin: 0;
  flex-shrink: 0;
}

.theme-header-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

/* ===================================
   Mobile Responsive
   =================================== */

/* Mobile Performance: Animationen reduzieren */
@media (max-width: 768px) {
  /* Hardware-Beschleunigung für alle wichtigen Container */
  .theme-page-wrapper,
  .theme-content,
  .mini-bubbles-sidebar,
  .main-nav {
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  /* Transitions auf Mobile kürzer/deaktivieren */
  .mini-bubble {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  
  .mini-bubble:hover {
    transform: none; /* Kein Scale auf Mobile */
  }
  
  /* PERFORMANCE FIX: Backdrop-filter deaktivieren */
  * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  /* PERFORMANCE FIX: Infinite Animationen stoppen */
  .pulse, [class*="pulse"] {
    animation: none !important;
  }
}

/* ===== TABLET/MOBILE (< 1024px) - Dynamisches Layout für Theme Pages ===== */
@media (max-width: 1023px) {
  .theme-content {
    padding: 1.5rem 2rem;
  }
  
  .theme-content .content-box {
    padding: 2rem;
  }
  
  .theme-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  /* Navigation - IMMER klickbar */
  .main-nav {
    z-index: 1000 !important;
    position: fixed !important;
  }
  
  .nav-container {
    position: relative;
    z-index: 1001;
  }
  
  /* Nav Menu Items - ALLE klickbar */
  .nav-menu {
    position: relative;
    z-index: 1001;
    pointer-events: auto !important;
  }
  
  .nav-menu li {
    pointer-events: auto !important;
  }
  
  /* Blogbeiträge und Anmelden Buttons - GLEICHE GRÖSSE wie Meine Mission */
  .nav-blog-btn,
  .nav-login-btn {
    font-size: 0.55rem !important;
    padding: 0.35rem 0.5rem !important;
    height: auto !important;
    min-height: unset !important;
    line-height: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1001;
  }
  
  .blog-dropdown-container {
    height: auto !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 1001;
  }
  
  /* Blog Dropdown - hoher z-index für Theme Pages */
  .blog-dropdown {
    z-index: 10000 !important;
    pointer-events: auto !important;
  }
  
  .blog-dropdown.active {
    pointer-events: auto !important;
  }
  
  /* Music Button für Theme Pages - gleiche Größe wie main.html responsive */
  .music-control {
    position: fixed !important;
    left: 8px !important;
    top: 12px !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  
  .music-toggle {
    width: 30px !important;
    height: 30px !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    background: transparent !important;
    border: 2px solid var(--color-accent) !important;
    touch-action: manipulation !important;
  }
  
  .music-toggle svg {
    width: 15px;
    height: 15px;
    pointer-events: none;
  }
  
  .volume-slider {
    display: none !important;
  }

  /* Theme Page Wrapper - Sidebar oben statt links */
  .theme-page-wrapper {
    flex-direction: column;
    padding-top: 50px;
    align-items: center;
  }

  /* Mini-Bubbles Sidebar - scrollt mit Content */
  .mini-bubbles-sidebar {
    width: auto !important;
    max-width: calc(100% - 2rem);
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0.3rem 0.5rem;
    gap: 0.3rem;
    border: 1px solid rgba(184, 134, 79, 0.3);
    border-radius: 20px;
    background: rgba(10, 10, 15, 0.98);
    z-index: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    overflow: visible !important;
    margin: 0.5rem 0 0.5rem 0.5rem;
    pointer-events: auto !important;
  }
  
  /* Mini-Bubble Wrapper auf Mobile - nur Bubble ohne Label */
  .mini-bubble-wrapper {
    flex-direction: row;
    gap: 0;
  }
  
  /* Labels auf Mobile verstecken - kein Platz horizontal */
  .mini-bubble-label {
    display: none !important;
  }
  
  .mini-bubble {
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(184, 134, 79, 0.3);
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    position: relative;
    z-index: 501;
  }
  
  .mini-bubble img {
    pointer-events: none;
  }

  .mini-bubble-tooltip {
    display: none;
  }

  /* Expanded Menü - Overlay zentriert */
  .mini-bubble-expanded {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    width: 85vw !important;
    max-width: 300px !important;
    padding: 1rem !important;
    z-index: 99999 !important;
    pointer-events: none !important;
    background: rgba(15, 15, 25, 0.98) !important;
    border: 1px solid rgba(184, 134, 79, 0.4) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
    display: none;
    opacity: 0;
  }
  
  .mini-bubble-expanded.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) scale(1) !important;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out !important;
  }
  
  @keyframes bubbleMenuFadeInMobile {
    from { 
      opacity: 0; 
      transform: translate(-50%, -50%) scale(0.9);
    }
    to { 
      opacity: 1; 
      transform: translate(-50%, -50%) scale(1);
    }
  }

  .mini-bubble-expanded h3 {
    font-size: 0.9rem;
  }

  .mini-bubble-expanded a {
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  /* Theme Content - volle Breite */
  .theme-content {
    margin-left: 0;
    padding: 1rem;
    width: 100%;
  }

  .theme-content .content-box {
    padding: 1.2rem;
    border-radius: 10px;
  }

  .theme-header {
    max-width: 100%;
    margin-bottom: 0.5rem;
  }

  .theme-breadcrumb {
    font-size: 0.7rem;
    gap: 0.3rem;
    margin-bottom: 0.4rem;
  }

  .theme-title {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
  }

  .theme-subtitle {
    font-size: 0.85rem;
  }

  .portal-intro {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  /* News Portal */
  .news-portal {
    border-radius: 10px;
    margin: 0.5rem 0 1.5rem 0;
  }

  .portal-tabs {
    flex-wrap: wrap;
  }

  .portal-tab {
    flex: 1 1 auto;
    min-width: 80px;
    padding: 0.6rem 0.4rem;
    font-size: 0.7rem;
    gap: 0.3rem;
  }

  .portal-tab svg {
    width: 14px;
    height: 14px;
  }

  .portal-tab-divider {
    display: none;
  }

  /* Portal Content */
  .portal-content {
    padding: 0.8rem;
  }

  /* Navigation Buttons */
  .theme-navigation {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
  }

  .theme-nav-btn {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
  }

  /* Footer */
  .footer {
    padding: 1.5rem 1rem;
  }

  .footer-text {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .footer-disclaimer {
    font-size: 0.7rem;
  }

  .footer-copyright {
    font-size: 0.7rem;
  }

  .footer-links {
    font-size: 0.75rem;
  }
  
  /* ===================================
     Mission Page - Mobile Spezifisch
     =================================== */
  
  /* Header mit Titel und Buttons - EINE ZEILE */
  .theme-header-row {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
  }
  
  .theme-header-row .theme-title {
    font-size: 1.2rem;
    flex-shrink: 1;
    min-width: 0;
  }
  
.theme-header-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.3rem !important;
  justify-content: flex-end !important;
  flex-shrink: 0;
  align-items: stretch;
}

/* Gallery und Video Buttons kompakter - GLEICHE HÖHE */
.gallery-btn,
.video-btn-subtle {
  padding: 0.35rem 0.5rem !important;
  font-size: 0.6rem !important;
  white-space: nowrap;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 28px !important;
  box-sizing: border-box !important;
}

.video-btn-subtle {
  gap: 3px !important;
}

.video-btn-subtle svg {
  width: 10px !important;
  height: 10px !important;
}  /* Content Box - Blocksatz */
  .content-box p,
  .content-box li {
    text-align: justify;
    -ms-hyphens: auto;
        hyphens: auto;
    -webkit-hyphens: auto;
  }
  
  .content-box h2 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
  }
  
  .content-box ul {
    padding-left: 1.2rem;
    margin: 0.8rem 0;
  }
  
  .content-box li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* Plato Quote kompakter */
  .plato-quote {
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (max-width: 576px) {
  /* Navigation Buttons - gleiche Größe wie Mission */
  .nav-blog-btn,
  .nav-login-btn {
    font-size: 0.5rem !important;
    padding: 0.25rem 0.5rem !important;
    height: auto !important;
    line-height: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 100;
  }
  
  /* Musik Button - gleiche Größe wie main.html 576px */
  .music-control {
    left: 5px !important;
    top: 10px !important;
  }
  
  .music-toggle {
    width: 26px !important;
    height: 26px !important;
  }
  
  .music-toggle svg {
    width: 13px;
    height: 13px;
  }
  
  .theme-page-wrapper {
    padding-top: 45px;
  }

  .mini-bubbles-sidebar {
    padding: 0.35rem 0.6rem;
    gap: 0.35rem;
    border-radius: 20px;
  }

  .mini-bubble {
    width: 36px;
    height: 36px;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
  
  .mini-bubble img {
    pointer-events: none;
  }

  .mini-bubble-expanded {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    width: 90vw;
    max-width: 280px;
    padding: 0.8rem;
    z-index: 99999 !important;
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .mini-bubble-expanded.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) scale(1) !important;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out !important;
  }

  .mini-bubble-expanded h3 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .mini-bubble-expanded a {
    padding: 0.4rem;
    font-size: 0.75rem;
  }

  .theme-content {
    padding: 0.8rem;
  }

  .theme-content .content-box {
    padding: 1rem;
  }

  .theme-breadcrumb {
    font-size: 0.65rem;
  }

  .theme-title {
    font-size: 1.2rem;
  }

  .theme-subtitle {
    font-size: 0.8rem;
  }

  .portal-intro {
    font-size: 0.7rem;
  }

  .portal-tab {
    padding: 0.5rem 0.3rem;
    font-size: 0.65rem;
  }

  .portal-tab svg {
    width: 12px;
    height: 12px;
  }

  .portal-content {
    padding: 0.6rem;
  }

  .theme-nav-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
  }

  .footer-text {
    font-size: 0.8rem;
  }

  .footer-disclaimer,
  .footer-copyright {
    font-size: 0.65rem;
  }
  
  /* Mission Page - 576px */
  .theme-header-row .theme-title {
    font-size: 1rem;
  }
  
  .gallery-btn,
  .video-btn-subtle {
    padding: 0.25rem 0.35rem !important;
    font-size: 0.5rem !important;
    height: 24px !important;
  }
  
  .video-btn-subtle svg {
    width: 8px !important;
    height: 8px !important;
  }
  
  .content-box h2 {
    font-size: 1.1rem;
  }
  
  .content-box li {
    font-size: 0.85rem;
  }
  
  .plato-quote {
    padding: 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  /* Musik Button - gleiche Größe wie main.html 380px */
  .music-control {
    left: 3px !important;
    top: 8px !important;
  }
  
  .music-toggle {
    width: 22px !important;
    height: 22px !important;
  }
  
  .music-toggle svg {
    width: 11px;
    height: 11px;
  }
  
  .theme-page-wrapper {
    padding-top: 40px;
  }

  .mini-bubbles-sidebar {
    padding: 0.3rem 0.5rem;
    gap: 0.25rem;
    border-radius: 15px;
  }

  .mini-bubble {
    width: 32px;
    height: 32px;
    border-width: 1px;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
  
  .mini-bubble img {
    pointer-events: none;
  }

  .mini-bubble-expanded {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    width: 92vw;
    max-width: 260px;
    padding: 0.7rem;
    z-index: 99999 !important;
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .mini-bubble-expanded.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) scale(1) !important;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out !important;
  }

  .mini-bubble-expanded h3 {
    font-size: 0.8rem;
  }

  .mini-bubble-expanded a {
    padding: 0.35rem;
    font-size: 0.7rem;
  }

  .theme-content {
    padding: 0.6rem;
  }

  .theme-content .content-box {
    padding: 0.8rem;
    border-radius: 8px;
  }

  .theme-breadcrumb {
    font-size: 0.6rem;
  }

  .theme-title {
    font-size: 1.1rem;
  }

  .portal-intro {
    font-size: 0.65rem;
  }

  .portal-tab {
    padding: 0.4rem 0.25rem;
    font-size: 0.6rem;
  }

  .portal-tab svg {
    width: 11px;
    height: 11px;
  }

  .portal-content {
    padding: 0.5rem;
  }

  .theme-nav-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.7rem;
  }
  
  /* Mission Page - 380px */
  .theme-header-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .gallery-btn,
  .video-btn-subtle {
    width: 100%;
    justify-content: center;
  }
  
  .gallery-btn {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.6rem !important;
  }
  
  .video-btn-subtle {
    padding: 0.3rem 0.4rem !important;
    font-size: 0.55rem !important;
  }
  
  .content-box h2 {
    font-size: 1rem;
  }
  
  .content-box p,
  .content-box li {
    font-size: 0.8rem;
  }
  
  .plato-quote {
    padding: 0.6rem;
    font-size: 0.8rem;
  }
}

/* ===================================
   Scrollbar für Sidebar
   =================================== */
.mini-bubbles-sidebar::-webkit-scrollbar {
  width: 4px;
}

.mini-bubbles-sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.mini-bubbles-sidebar::-webkit-scrollbar-thumb {
  background: rgba(184, 134, 79, 0.5);
  border-radius: 2px;
}

.mini-bubbles-sidebar::-webkit-scrollbar-thumb:hover {
  background: #b8864f;
}

/* ===================================
   Link Collection (Klappbare Linksammlung)
   =================================== */
.link-collection {
  margin: 2rem 0;
  border: 1px solid rgba(184, 134, 79, 0.3);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(10, 10, 15, 0.5);
}

.link-collection-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(184, 134, 79, 0.1);
  border: none;
  color: #e8d5b5;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.link-collection-toggle:hover {
  background: rgba(184, 134, 79, 0.2);
}

.link-collection-toggle.open {
  border-bottom: 1px solid rgba(184, 134, 79, 0.2);
}

.link-collection-icon {
  display: flex;
  align-items: center;
  color: #b8864f;
}

.link-collection-arrow {
  margin-left: auto;
  color: #b8864f;
  transition: transform 0.3s ease;
}

.link-collection-toggle.open .link-collection-arrow {
  transform: rotate(180deg);
}

.link-collection-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}

.link-collection-content.open {
  max-height: 500px;
  padding: 1rem 1.25rem;
}

.link-category {
  margin-bottom: 1rem;
}

.link-category:last-child {
  margin-bottom: 0;
}

.link-category h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #b8864f;
  font-size: 0.9rem;
  font-family: 'Cinzel', serif;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(184, 134, 79, 0.15);
}

.link-category h4 svg {
  opacity: 0.8;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(184, 134, 79, 0.05);
  border: 1px solid rgba(184, 134, 79, 0.15);
  border-radius: 6px;
  color: #e8d5b5;
  text-decoration: none;
  transition: all 0.2s ease;
}

.link-item:hover {
  background: rgba(184, 134, 79, 0.15);
  border-color: rgba(184, 134, 79, 0.4);
  transform: translateX(5px);
}

.link-item:last-child {
  margin-bottom: 0;
}

.link-icon {
  font-size: 0.9rem;
  color: #b8864f;
  width: 20px;
  text-align: center;
}

.link-item.video-link .link-icon {
  color: #ff4444;
}

.link-text {
  flex: 1;
  font-size: 0.9rem;
}

.link-external {
  color: rgba(184, 134, 79, 0.6);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.link-item:hover .link-external {
  color: #b8864f;
}

/* Responsive für Linksammlung */
@media (max-width: 768px) {
  .link-collection-toggle {
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
  }
  
  .link-collection-content.open {
    padding: 0.85rem 1rem;
  }
  
  .link-item {
    padding: 0.55rem 0.65rem;
  }
  
  .link-text {
    font-size: 0.85rem;
  }
}

/* ===================================
   News Portal System
   =================================== */
.news-portal {
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(184, 134, 79, 0.3);
  border-radius: 12px;
  overflow: hidden;
  margin: 0.25rem 0 2rem 0;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
}

/* Portal Tabs */
.portal-tabs {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(184, 134, 79, 0.2);
}

.portal-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  color: #888;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.portal-tab-divider {
  width: 1px;
  height: 24px;
  background: rgba(184, 134, 79, 0.3);
  flex-shrink: 0;
}

.portal-tab:hover {
  background: rgba(184, 134, 79, 0.1);
  color: #e8d5b5;
}

.portal-tab.active {
  background: rgba(184, 134, 79, 0.15);
  color: #b8864f;
  border-bottom: 2px solid #b8864f;
}

.tab-count {
  background: rgba(184, 134, 79, 0.3);
  color: #b8864f;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-family: sans-serif;
}

.portal-tab.active .tab-count {
  background: #b8864f;
  color: #0a0a0f;
}

/* Portal Tab Content */
.portal-tab-content {
  display: none;
}

.portal-tab-content.active {
  display: block;
}

/* Portal Sub-Tabs (für "Mehr" Tab) */
.portal-sub-tabs {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(184, 134, 79, 0.15);
  padding: 0.5rem 1rem;
  gap: 0.5rem;
}

.portal-sub-tab {
  padding: 0.6rem 1.2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(184, 134, 79, 0.2);
  border-radius: 6px;
  color: #888;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.portal-sub-tab:hover {
  background: rgba(184, 134, 79, 0.15);
  color: #e8d5b5;
  border-color: rgba(184, 134, 79, 0.4);
}

.portal-sub-tab.active {
  background: rgba(184, 134, 79, 0.2);
  color: #b8864f;
  border-color: #b8864f;
  font-weight: 600;
}

/* Portal Sub-Tab Content */
.portal-sub-tab-content {
  display: none;
}

.portal-sub-tab-content.active {
  display: block;
}

/* Master-Detail Layout */
.portal-master-detail {
  display: flex;
  gap: 1px;
  background: rgba(184, 134, 79, 0.2);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Linke Seite: Liste */
.portal-list {
  width: 250px;
  min-width: 200px;
  max-width: 250px;
  flex-shrink: 0;
  background: rgba(10, 10, 15, 0.95);
  display: flex;
  flex-direction: column;
  -ms-grid-row-align: stretch;
      align-self: stretch;
}

.portal-list-header {
  padding: 0.875rem 1rem;
  background: rgba(184, 134, 79, 0.1);
  border-bottom: 1px solid rgba(184, 134, 79, 0.2);
  color: #b8864f;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 42px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  line-height: 1;
}

.portal-list-items {
  flex: 1;
  overflow-y: auto;
}

.portal-list-item {
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid rgba(184, 134, 79, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  position: relative;
}

.portal-list-item:hover {
  background: rgba(184, 134, 79, 0.1);
}

.portal-list-item.active {
  background: rgba(184, 134, 79, 0.15);
  border-left: 3px solid #b8864f;
}

.list-item-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: sans-serif;
  flex-shrink: 0;
}

/* Artikel - Gold */
.list-item-icon.type-article {
  background: rgba(184, 134, 79, 0.3);
  color: #d4a55a;
}

/* Bild/Galerie - Türkis */
.list-item-icon.type-image {
  background: rgba(64, 224, 208, 0.25);
  color: #40e0d0;
}

/* Video - Rot */
.list-item-icon.type-video {
  background: rgba(255, 68, 68, 0.25);
  color: #ff6b6b;
}

/* Link - Blau */
.list-item-icon.type-link {
  background: rgba(66, 133, 244, 0.25);
  color: #64b5f6;
}

/* News/Info - Grün */
.list-item-icon.type-news {
  background: rgba(76, 175, 80, 0.25);
  color: #81c784;
}

.list-item-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.list-item-title {
  color: #888;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-list-item.active .list-item-title {
  color: #e8d5b5;
}

.list-item-meta {
  display: flex;
  gap: 0.75rem;
  color: #bbb;
  font-size: 0.6rem;
}

.list-item-meta span {
  display: inline-flex;
  align-items: center;
}

.list-item-badge {
  position: absolute;
  bottom: 0.4rem;
  right: 0.4rem;
  background: rgba(184, 134, 79, 0.3);
  color: #b8864f;
  font-size: 0.5rem;
  font-weight: 600;
  padding: 0.1rem 0.25rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Urgent/Dringender Artikel - Rötliche Hervorhebung */
.portal-list-item[data-article-id*="dringend"],
.portal-list-item[data-article-id*="urgent"] {
  background: rgba(220, 53, 69, 0.1);
  border-left: 3px solid #dc3545;
}

.portal-list-item[data-article-id*="dringend"]:hover,
.portal-list-item[data-article-id*="urgent"]:hover {
  background: rgba(220, 53, 69, 0.15);
}

.portal-list-item[data-article-id*="dringend"] .list-item-title,
.portal-list-item[data-article-id*="urgent"] .list-item-title {
  color: #ff6b6b;
  font-weight: 600;
}

.portal-list-item[data-article-id*="dringend"].active,
.portal-list-item[data-article-id*="urgent"].active {
  background: rgba(220, 53, 69, 0.2);
  border-left: 3px solid #ff6b6b;
}

.portal-list-item[data-article-id*="dringend"].active .list-item-title,
.portal-list-item[data-article-id*="urgent"].active .list-item-title {
  color: #ff8a8a;
}

.portal-list-item[data-article-id*="dringend"] .list-item-icon,
.portal-list-item[data-article-id*="urgent"] .list-item-icon {
  background: rgba(220, 53, 69, 0.3);
  color: #ff6b6b;
  animation: pulse-urgent 2s ease-in-out infinite;
}

@keyframes pulse-urgent {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Rechte Seite: Detail-Ansicht */
.portal-detail {
  flex: 1;
  min-width: 0;
  background: rgba(10, 10, 15, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.portal-detail-header {
  padding: 0.875rem 1rem;
  background: rgba(184, 134, 79, 0.1);
  border-bottom: 1px solid rgba(184, 134, 79, 0.2);
  flex-shrink: 0;
  min-height: 42px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.portal-detail-header h2 {
  color: #b8864f;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  padding: 0;
  line-height: 1;
  letter-spacing: inherit;
}

.portal-detail-meta {
  display: flex;
  gap: 1rem;
  color: #888;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.portal-detail-meta:empty,
.portal-detail-meta:not(:has(span:not(:empty))) {
  display: none;
}

.portal-detail-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  color: #c5c5c5;
  line-height: 1.7;
  font-size: 0.95rem;
}

.portal-detail-body h3 {
  color: #b8864f;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  margin: 1.25rem 0 0.6rem 0;
}

.portal-detail-body h3:first-child {
  margin-top: 0;
}

.portal-detail-body p {
  margin-bottom: 0.875rem;
}

.portal-detail-body ul,
.portal-detail-body ol {
  margin: 0.875rem 0;
  padding-left: 1.25rem;
}

.portal-detail-body li {
  margin-bottom: 0.4rem;
}

.portal-detail-body blockquote {
  border-left: 3px solid #b8864f;
  margin: 1.25rem 0;
  font-style: italic;
  color: #e8d5b5;
  background: rgba(184, 134, 79, 0.05);
  padding: 0.875rem 1rem;
  border-radius: 0 8px 8px 0;
}

.portal-detail-placeholder {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 2rem 1rem;
}

/* Intro Text Styling */
.intro-text {
  line-height: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem 0;
}

.intro-text .intro-lead {
  font-size: 1.3rem;
  color: #b8864f;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: 'Cinzel', serif;
}

.intro-text p {
  margin-bottom: 1.5rem;
  color: #d5d5d5;
}

.intro-text .intro-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(184, 134, 79, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(184, 134, 79, 0.15);
}

.intro-text .intro-highlight {
  color: #e8d5b5;
  font-size: 1.05rem;
  font-style: italic;
  padding: 1rem 1.5rem;
  border-left: 3px solid #b8864f;
  border-right: 3px solid #b8864f;
  margin: 1.5rem 0;
  background: rgba(184, 134, 79, 0.05);
}

.intro-text h3 {
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  color: #b8864f;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
}

.intro-text ul {
  margin: 1.25rem auto;
  text-align: left;
  display: inline-block;
  list-style: none;
  padding: 0;
}

.intro-text li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.intro-text li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #b8864f;
}

.intro-text .intro-appeal {
  margin-top: 2rem;
  font-size: 1rem;
  color: #c5c5c5;
}

.intro-text .intro-cta {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(184, 134, 79, 0.15), rgba(184, 134, 79, 0.05));
  border: 1px solid rgba(184, 134, 79, 0.3);
  border-radius: 12px;
  font-size: 1.1rem;
}

.intro-text .intro-cta strong {
  color: #b8864f;
  font-size: 1.2rem;
}

/* Grid View für Galerie, Videos, Links */
.portal-grid-view {
  padding: 1.25rem;
  background: rgba(10, 10, 15, 0.9);
}

.portal-grid-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(184, 134, 79, 0.2);
}

.portal-grid-header h2 {
  color: #b8864f;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  margin: 0;
}

.portal-grid {
  display: -ms-grid;
  display: grid;
  gap: 1rem;
}

/* Galerie Grid - Bilder */
.gallery-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem !important;
  justify-content: flex-start;
}

.gallery-card.grid-card {
  display: block !important;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(184, 134, 79, 0.2);
  transition: all 0.3s ease;
  width: 120px !important;
  flex-shrink: 0;
  padding: 0 !important;
  gap: 0 !important;
}

.gallery-card.grid-card:hover {
  transform: translateY(-3px) !important;
  border-color: #b8864f;
  box-shadow: 0 8px 25px rgba(184, 134, 79, 0.2);
}

.grid-card-image {
  aspect-ratio: 1/1;
  overflow: hidden;
}

.grid-card-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover .grid-card-image img {
  transform: scale(1.05);
}

.gallery-card .grid-card-content {
  padding: 0.5rem;
}

.gallery-card .grid-card-content h4 {
  color: #e8d5b5;
  font-size: 0.75rem;
  margin: 0 0 0.15rem 0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card .grid-card-content p {
  color: #888;
  font-size: 0.65rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Video & Link Grid - volle Breite */
.video-grid,
.link-grid {
  display: flex !important;
  flex-direction: column;
  gap: 0.75rem !important;
}

.grid-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(184, 134, 79, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.grid-card:hover {
  background: rgba(184, 134, 79, 0.1);
  border-color: #b8864f;
  transform: translateX(5px);
}

.grid-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.grid-card-content {
  flex: 1;
  min-width: 0;
}

.grid-card-content h4 {
  color: #e8d5b5;
  font-size: 0.95rem;
  margin: 0 0 0.35rem 0;
  font-weight: 500;
  line-height: 1.3;
}

.grid-card-meta {
  display: flex;
  gap: 1rem;
  color: #888;
  font-size: 0.75rem;
  margin: 0;
}

.grid-card-action {
  flex-shrink: 0;
  color: #b8864f;
  font-size: 1.5rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.grid-card:hover .grid-card-action {
  opacity: 1;
}

.play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(184, 134, 79, 0.2);
  border-radius: 50%;
  font-size: 1rem;
}

.link-arrow {
  font-size: 1.25rem;
}

/* Fullscreen Overlay */

/* Fullscreen Overlay */
.gallery-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: pointer;
}

.gallery-fullscreen-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  cursor: default;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.gallery-fullscreen-image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.gallery-fullscreen-content img {
  max-width: 70vw;
  max-height: 75vh;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 8px;
}

.gallery-fullscreen-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.2s;
}

.gallery-fullscreen-close:hover {
  color: #b8864f;
}

.gallery-fullscreen-nav {
  position: relative;
  top: auto;
  transform: none;
  background: rgba(184, 134, 79, 0.3);
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 1.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  z-index: 10;
  flex-shrink: 0;
}

.gallery-fullscreen-nav:hover {
  background: rgba(184, 134, 79, 0.6);
}

.gallery-fullscreen-nav.prev {
  /* Links neben dem Bild */
}

.gallery-fullscreen-nav.next {
  /* Rechts neben dem Bild */
}

.gallery-fullscreen-title {
  color: #e8d5b5;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 1rem;
  max-width: 80vw;
}

.gallery-fullscreen-title {
  color: #e8d5b5;
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
}

/* Video Play Button */
.video-preview {
  text-align: center;
  padding: 1.5rem;
}

.video-play-btn {
  background: linear-gradient(135deg, #b8864f, #8a6438);
  color: #fff;
  border: none;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.875rem;
}

.video-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(184, 134, 79, 0.4);
}

/* Empty State */
.portal-empty {
  color: #888;
  text-align: center;
  padding: 1.5rem;
  font-style: italic;
}

/* Responsive für Master-Detail */
@media (max-width: 768px) {
  .portal-master-detail {
    flex-direction: column;
    gap: 0;
    background: transparent;
  }
  
  .portal-list {
    width: 100%;
    max-width: 100%;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
  }
  
  .portal-list-items {
    max-height: 180px;
  }
  
  .portal-detail {
    margin-top: 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(184, 134, 79, 0.2);
  }
}

/* Article Preview Modal */
.article-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.article-preview-modal.active {
  opacity: 1;
  visibility: visible;
}

.article-preview-content {
  background: linear-gradient(135deg, #0f0f15, #1a1a25);
  border: 1px solid rgba(184, 134, 79, 0.4);
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.article-preview-modal.active .article-preview-content {
  transform: translateY(0);
}

.article-preview-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(184, 134, 79, 0.3);
  border-radius: 50%;
  color: #e8d5b5;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.article-preview-close:hover {
  background: rgba(184, 134, 79, 0.3);
  border-color: #b8864f;
}

.article-preview-header {
  background: rgba(184, 134, 79, 0.1);
  border-bottom: 1px solid rgba(184, 134, 79, 0.2);
  padding: 2rem;
  padding-right: 4rem;
}

.article-preview-header h2 {
  color: #b8864f;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  margin: 0 0 0.75rem 0;
}

.article-preview-meta {
  color: #888;
  font-size: 0.85rem;
  display: flex;
  gap: 0.5rem;
}

.article-preview-body {
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(85vh - 120px);
  color: #c5c5c5;
  line-height: 1.8;
}

.article-preview-body h2,
.article-preview-body h3 {
  color: #b8864f;
  font-family: 'Cinzel', serif;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.article-preview-body p {
  margin-bottom: 1rem;
}

.article-preview-body ul,
.article-preview-body ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.article-preview-body li {
  margin-bottom: 0.5rem;
}

.article-preview-body blockquote {
  border-left: 3px solid #b8864f;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #e8d5b5;
}

/* Portal Content */
.portal-content {
  padding: 1.5rem;
}

.portal-content.hidden {
  display: none;
}

/* Article Grid */
.article-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.article-card {
  background: rgba(184, 134, 79, 0.05);
  border: 1px solid rgba(184, 134, 79, 0.2);
  border-radius: 10px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.article-card:hover {
  background: rgba(184, 134, 79, 0.12);
  border-color: rgba(184, 134, 79, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.article-card.featured {
  -ms-grid-column-span: 2;
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(184, 134, 79, 0.15), rgba(184, 134, 79, 0.05));
  border-color: rgba(184, 134, 79, 0.4);
}

.article-card.new {
  border-color: rgba(76, 175, 80, 0.5);
}

.article-card.new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4CAF50, #81C784);
  border-radius: 10px 10px 0 0;
}

.article-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background: rgba(184, 134, 79, 0.2);
  color: #b8864f;
  margin-bottom: 0.75rem;
}

.article-badge.current {
  background: rgba(33, 150, 243, 0.2);
  color: #64B5F6;
}

.article-badge.new-badge {
  background: rgba(76, 175, 80, 0.2);
  color: #81C784;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.article-card .article-title {
  color: #e8d5b5;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: 'Cinzel', serif;
}

.article-excerpt {
  color: #a0a0a0;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-date {
  color: #888;
  font-size: 0.75rem;
}

.article-status {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
}

.article-status.reading {
  background: rgba(33, 150, 243, 0.2);
  color: #64B5F6;
}

.article-new-indicator {
  color: #81C784;
  font-size: 0.75rem;
}

/* Video Grid */
.video-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(184, 134, 79, 0.2);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-card:hover {
  border-color: rgba(255, 68, 68, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 68, 68, 0.2);
}

.video-card.new {
  border-color: rgba(76, 175, 80, 0.5);
}

.video-thumbnail {
  height: 140px;
  background: linear-gradient(135deg, #1a1a2e, #2d1f3d);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.play-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 68, 68, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  transition: transform 0.2s;
}

.video-card:hover .play-icon {
  transform: scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.video-info {
  padding: 1rem;
}

.video-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.video-title {
  color: #e8d5b5;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.video-desc {
  color: #888;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.video-date {
  color: #b8864f;
  font-size: 0.7rem;
}

/* Links List */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(184, 134, 79, 0.05);
  border: 1px solid rgba(184, 134, 79, 0.2);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.link-card:hover {
  background: rgba(184, 134, 79, 0.12);
  border-color: rgba(184, 134, 79, 0.5);
  transform: translateX(5px);
}

.link-card .link-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.link-card .link-icon.web { background: rgba(66, 133, 244, 0.2); }
.link-card .link-icon.doc { background: rgba(76, 175, 80, 0.2); }
.link-card .link-icon.news { background: rgba(255, 152, 0, 0.2); }
.link-card .link-icon.video { background: rgba(255, 68, 68, 0.2); }

.link-card .link-info {
  flex: 1;
}

.link-title {
  color: #e8d5b5;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.link-desc {
  color: #888;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.link-url {
  color: #b8864f;
  font-size: 0.7rem;
}

.link-card .link-external {
  color: #b8864f;
  font-size: 1.2rem;
}

/* Book Card - ähnlich wie Link Card */
.book-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(139, 69, 19, 0.08);
  border: 1px solid rgba(184, 134, 79, 0.2);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.book-card:hover {
  background: rgba(139, 69, 19, 0.15);
  border-color: rgba(184, 134, 79, 0.5);
  transform: translateX(5px);
}

.book-card .grid-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.book-card .grid-card-content {
  flex: 1;
}

.book-card .grid-card-author {
  color: #b8864f;
  font-size: 0.85rem;
  font-style: italic;
  margin: 0.25rem 0 0.4rem 0;
}

.book-card .grid-card-meta {
  color: #888;
  font-size: 0.8rem;
}

/* Audio Recommendation Card */
.audio-rec-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(138, 43, 226, 0.08);
  border: 1px solid rgba(184, 134, 79, 0.2);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.audio-rec-card:hover {
  background: rgba(138, 43, 226, 0.15);
  border-color: rgba(184, 134, 79, 0.5);
  transform: translateX(5px);
}

.audio-rec-card .grid-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.audio-rec-card .grid-card-content {
  flex: 1;
}

/* ===================================
   Book Dialog
   =================================== */
.book-dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  padding: 2rem;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.book-dialog.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-dialog-content {
  background: linear-gradient(135deg, #1a1a20 0%, #0f0f15 100%);
  border: 2px solid rgba(184, 134, 79, 0.3);
  border-radius: 15px;
  padding: 2rem;
  max-width: 800px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease;
}

.book-dialog-body {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.book-dialog-cover {
  flex-shrink: 0;
  width: 200px;
}

.book-dialog-cover img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(184, 134, 79, 0.3);
}

.book-dialog-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.book-dialog-title {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: #b8864f;
  margin: 0;
  line-height: 1.3;
}

.book-dialog-author {
  font-size: 1.1rem;
  color: #d4a574;
  font-style: italic;
  margin: 0;
}

.book-dialog-description {
  color: #ccc;
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
  text-align: justify;
}

.book-dialog-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(184, 134, 79, 0.2);
}

.book-meta-item {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.book-meta-label {
  color: #b8864f;
  font-weight: 600;
  min-width: 60px;
}

.book-meta-value {
  color: #ccc;
}

.book-amazon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #ff9900 0%, #ff7700 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.book-amazon-btn:hover {
  background: linear-gradient(135deg, #ff7700 0%, #ff5500 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.book-amazon-btn svg {
  flex-shrink: 0;
}

/* Responsive Book Dialog */
@media (max-width: 768px) {
  .book-dialog-content {
    padding: 1.5rem;
    max-width: 95%;
  }
  
  .book-dialog-body {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .book-dialog-cover {
    width: 150px;
    margin: 0 auto;
  }
  
  .book-dialog-title {
    font-size: 1.4rem;
  }
  
  .book-dialog-author {
    font-size: 1rem;
  }
  
  .book-dialog-description {
    font-size: 0.9rem;
  }
}

.audio-rec-card .grid-card-meta {
  color: #888;
  font-size: 0.8rem;
}

/* Article Preview Modal */
.article-preview {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  max-height: 70vh;
  background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
  border: 1px solid rgba(184, 134, 79, 0.4);
  border-radius: 15px;
  z-index: 1001;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.article-preview.active {
  display: block;
  animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.article-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(184, 134, 79, 0.1);
  border-bottom: 1px solid rgba(184, 134, 79, 0.2);
}

.article-preview-header h3 {
  color: #b8864f;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  margin: 0;
}

.preview-close {
  background: none;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.preview-close:hover {
  color: #ff4444;
}

.article-preview-content {
  padding: 1.5rem;
  max-height: calc(70vh - 140px);
  overflow-y: auto;
  color: #e8d5b5;
  line-height: 1.7;
  font-size: 0.95rem;
}

.article-preview-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.article-preview-content li {
  margin-bottom: 0.5rem;
}

.article-preview-content blockquote {
  border-left: 3px solid #b8864f;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #b8864f;
  font-style: italic;
}

.article-preview-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(184, 134, 79, 0.2);
}

.preview-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(184, 134, 79, 0.1);
  border: 1px solid rgba(184, 134, 79, 0.3);
  color: #e8d5b5;
}

.preview-btn:hover {
  background: rgba(184, 134, 79, 0.2);
}

.preview-btn.primary {
  background: #b8864f;
  border-color: #b8864f;
  color: #0a0a0f;
}

.preview-btn.primary:hover {
  background: #d4a84b;
}

/* Overlay */
.preview-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.preview-overlay.active {
  display: block;
}

/* Back to overview button */
.back-to-overview {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(184, 134, 79, 0.1);
  border: 1px solid rgba(184, 134, 79, 0.3);
  border-radius: 20px;
  color: #b8864f;
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: all 0.2s;
}

.back-to-overview:hover {
  background: rgba(184, 134, 79, 0.2);
  border-color: #b8864f;
}

/* Article Full View */
.article-full-view h2 {
  color: #b8864f;
  margin-bottom: 1.5rem;
}

/* Responsive für News Portal */
@media (max-width: 768px) {
  .article-card.featured {
    -ms-grid-column-span: 1;
    grid-column: span 1;
  }
  
  .portal-tab {
    font-size: 0.75rem;
    padding: 0.6rem 0.4rem;
    flex-direction: column;
    gap: 0.2rem;
  }
  
  .portal-content {
    padding: 0.8rem;
  }
  
  /* Portal Grid Header kompakter */
  .portal-grid-view {
    padding: 0.75rem;
  }
  
  .portal-grid-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
  }
  
  .portal-grid-header h2 {
    font-size: 0.9rem;
  }
  
  /* Gallery Cards kompakter */
  .gallery-card.grid-card {
    width: 85px !important;
  }
  
  .gallery-card .grid-card-content {
    padding: 0.3rem;
  }
  
  .gallery-card .grid-card-content h4 {
    font-size: 0.6rem;
  }
  
  .gallery-card .grid-card-content p {
    display: none;
  }
  
  /* Video Grid kompakter */
  .video-grid,
  .link-grid {
    gap: 0.5rem !important;
  }
  
  .grid-card {
    padding: 0.6rem;
    gap: 0.6rem;
  }
  
  .grid-card-content h4 {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
  }
  
  .grid-card-meta {
    font-size: 0.65rem;
    gap: 0.5rem;
  }
  
  .play-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  
  .grid-card-action {
    font-size: 1.2rem;
  }
  
  .video-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .video-card {
    padding: 0.8rem;
  }
  
  .video-title {
    font-size: 0.85rem;
  }
  
  .video-desc {
    font-size: 0.75rem;
  }
  
  .article-preview {
    width: 95%;
    max-height: 80vh;
  }
  
  .article-preview-header {
    padding: 0.8rem 1rem;
  }
  
  .article-preview-header h3 {
    font-size: 1rem;
  }
  
  .article-preview-content {
    padding: 1rem;
    font-size: 0.85rem;
  }
  
  .article-preview-footer {
    padding: 0.8rem 1rem;
  }
  
  .preview-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
  
  /* Article Cards */
  .articles-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .article-card {
    padding: 0.8rem;
  }
  
  .article-title {
    font-size: 0.9rem;
  }
  
  .article-excerpt {
    font-size: 0.75rem;
    line-height: 1.4;
  }
  
  .article-meta {
    font-size: 0.65rem;
  }
  
  /* Links */
  .links-list {
    gap: 0.5rem;
  }
  
  .link-card {
    padding: 0.8rem;
    gap: 0.8rem;
  }
  
  .link-card .link-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  
  .link-title {
    font-size: 0.85rem;
  }
  
  .link-desc {
    font-size: 0.7rem;
  }
  
  .link-url {
    font-size: 0.65rem;
  }
  
  /* Gallery */
  .gallery-grid {
    -ms-grid-columns: 1fr 0.5rem 1fr;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .gallery-item {
    border-radius: 8px;
  }
}

@media (max-width: 576px) {
  .portal-tab {
    font-size: 0.65rem;
    padding: 0.5rem 0.3rem;
  }
  
  .portal-content {
    padding: 0.6rem;
  }
  
  /* Gallery noch kompakter */
  .gallery-card.grid-card {
    width: 70px !important;
  }
  
  .gallery-card .grid-card-content {
    padding: 0.2rem;
  }
  
  .gallery-card .grid-card-content h4 {
    font-size: 0.55rem;
  }
  
  /* Video/Link Cards kompakter */
  .grid-card {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .grid-card-content h4 {
    font-size: 0.75rem;
  }
  
  .grid-card-meta {
    font-size: 0.6rem;
  }
  
  .play-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .video-card {
    padding: 0.6rem;
  }
  
  .video-title {
    font-size: 0.8rem;
  }
  
  .video-desc {
    font-size: 0.7rem;
    -webkit-line-clamp: 2;
  }
  
  .article-card {
    padding: 0.6rem;
  }
  
  .article-title {
    font-size: 0.85rem;
  }
  
  .article-excerpt {
    font-size: 0.7rem;
    -webkit-line-clamp: 2;
  }
  
  .link-card {
    padding: 0.6rem;
    gap: 0.6rem;
  }
  
  .link-card .link-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .link-title {
    font-size: 0.8rem;
  }
  
  .link-desc {
    font-size: 0.65rem;
  }
  
  .gallery-grid {
    -ms-grid-columns: 1fr 0.4rem 1fr;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  
  .article-preview {
    width: 95%;
    max-height: 85vh;
  }
  
  .article-preview-header {
    padding: 0.6rem 0.8rem;
  }
  
  .article-preview-header h3 {
    font-size: 0.9rem;
  }
  
  .article-preview-content {
    padding: 0.8rem;
    font-size: 0.8rem;
  }
  
  .preview-btn {
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 380px) {
  .portal-tab {
    font-size: 0.6rem;
    padding: 0.4rem 0.25rem;
  }
  
  .portal-tab svg {
    width: 10px;
    height: 10px;
  }
  
  .portal-content {
    padding: 0.5rem;
  }
  
  .video-card {
    padding: 0.5rem;
  }
  
  .video-title {
    font-size: 0.75rem;
  }
  
  .video-desc {
    font-size: 0.65rem;
  }
  
  .article-card {
    padding: 0.5rem;
  }
  
  .article-title {
    font-size: 0.8rem;
  }
  
  .article-excerpt {
    font-size: 0.65rem;
  }
  
  .link-card {
    padding: 0.5rem;
  }
  
  .link-card .link-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    border-radius: 6px;
  }
  
  .link-title {
    font-size: 0.75rem;
  }
  
  .link-desc {
    font-size: 0.6rem;
  }
  
  .gallery-grid {
    gap: 0.3rem;
  }
  
  .article-preview-content {
    padding: 0.6rem;
    font-size: 0.75rem;
  }
}
