/* =========================
   BASE.CSS – GLOBAL STYLES
   ========================= */

/* Reset & Grundsetup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  background: linear-gradient(135deg, #1a1a1a, #222);
  min-height: 100%;
}



/* Links & Buttons */
a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font: inherit;
  padding: 0.5em 1em;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}


/* Falls du auch den ganzen Bereich raus haben willst */
#filter-section {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
}



button:hover {
  opacity: 0.9;
}

/* Allgemeine Container */
main {
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

/* Load More Button */
#load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem auto;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(90deg, #ff66cc, #33cccc);
  color: #fff;
  border-radius: 50px;
  font-weight: bold;
}

#load-more img {
  width: 20px;
  height: 20px;
}




.article-thumb {
  position: relative; /* NEU: Container für das Bild */
  z-index: 1;
}




/* ======================================================= */
/* Gemeinsamer Artikel-Card-Style                          */
/* ======================================================= */




/* ================================================================= */
/*                             MODAL                                 */
/* ================================================================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}
.modal.hidden { display: none; }

#modal-body {
  overflow-wrap: break-word;       /* moderne Variante */
  word-break: break-word;          /* Fallback */
  hyphens: auto;                   /* automatische Silbentrennung (mit lang=de) */
}


.modal-content {
  position: relative;
  background: #2c2c3e;
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

/* Schließen / Favoriten Bereich – nebeneinander */
.modal .modal-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  
  align-items: center;
  gap: 0.4rem;
  z-index: 5;
}

/* Close-Button */
.close-button {
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  border-radius: 50%;
  background-color: #2b3040;
  background-image: url("assets/icons/close_pink.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.4rem;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}


.close-button:hover {
  background-color: #394259;
  transform: scale(1.08);
  
}



/* Herzbutton – links vom X */
/* Herzbutton – Bildbasiert */
.fav-toggle {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: url('assets/icons/fav_herz_grey.png') center/1.3rem no-repeat;
  background-size: 1.7rem;
  transition: transform .15s ease, background-color .2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.fav-toggle:hover {
  transform: scale(1.08);
  background-color: #394259;
}
.fav-toggle.is-fav {
  background: url('assets/icons/fav_herz_red.png') center/1.3rem no-repeat;
  background-size: 1.7rem;
}

/* kleines Pulse-Feedback beim Toggle */
.fav-toggle.pulse {
  animation: favPulse .35s ease;
}
@keyframes favPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}


.modal-content h2 {
  color: #ff69b4;
  margin-bottom: 0.5rem;
}

/* Shared section style */
.modal-section {
  background: #1f1f2b;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.modal-section > strong {
  display: inline-block;
  background: #ff69b4;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 0.4rem;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* Pastell-Boxen */
.category-section { background: #E0BBE4; color: #1e1e2f; }
.rating-section  { background: #F3C4FB; color: #1e1e2f; }
.description-section { background: #B5EAD7; color: #1e1e2f; }

/* Full-width labels */
.rating-section,
.description-section {
  width: 100%;
}
.rating-section > strong,
.description-section > strong {
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

/* Stars */
#modal-rating {
  display: flex !important;
  justify-content: center;
}
.star-icon {
  width: 40px; height: 40px;
  margin-right: 0.25rem;
  vertical-align: middle;
}

/* Modal image */
#modal-image {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 0.5rem;
  margin: 1rem auto;
  border: 5px solid #F3C4FB;
}

/* „Zum Produkt“-Button */
.modal-links {
  text-align: center;
}
.modal-links a {
  display: inline-block;
  background: #40e0d0;
  color: #1e1e2f;
  padding: 0.6rem 1.2rem;
  border-radius: 0.4rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s;
}
.modal-links a:hover {
  background: #30bfbf;
}

/* Carousel */
.carousel-container { position: relative; overflow: hidden; margin-bottom: 1rem;  border-radius: 0.75rem;
  border: 5px solid #F3C4FB;}
.caro-track { display: flex; transition: transform 0.3s ease; }
.caro-img { width: 100%; flex-shrink: 0; object-fit: contain; }
.caro-prev, .caro-next {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff; border: none;
  font-size: 1.5rem; padding: 0.5rem;
  border-radius: 50%; cursor: pointer;
 z-index: 1300;
}
.caro-prev { left: 1rem; }
.caro-next { right: 1rem; }

/* Video icons */
.video-section { 
text-align: center; 
background: #E0BBE4; 
color: #1e1e2f; 
width: 100%;
max-width: none;
display: flex;
flex-direction: column;
}

.video-icons-container {
  display: flex; 
  gap: 1rem; 
  justify-content: center; 
  flex-wrap: wrap;
}
.video-link { 
display: inline-block; 
}

.video-icon {
  width: 40px; height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
  transition: transform 0.1s;
}
.video-icon:hover { transform: scale(1.05); }


/* Produktlinks – wie Produktvideos zentrieren */
.produktlink-section { 
text-align: center; 
background: #E0BBE4; 
color: #1e1e2f; 
width: 100%;
max-width: none;
display: flex;
flex-direction: column;
}

.product-links-grid img { width:40px; height:40px; padding-right:4px; object-fit: contain;}
.product-links-grid span { font-weight:600; line-height:1; }

.product-links-grid {
  display: flex;
  justify-content: center;   /* zentriert */
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Links selbst mittig ausrichten */
.product-links-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  padding: .2rem .4rem;        
  border-radius: .6rem;
  transition: background .2s ease, transform .08s ease;
}


/* Hover-Feeling  */
.product-links-grid a:hover {
  transform: translateY(-1px);
}

/* Affiliate Hinweis  */
.tb-affiliate-card {
  background: linear-gradient(135deg, rgba(20, 10, 40, 0.85), rgba(50, 20, 80, 0.8));
  border: 1px solid rgba(169,124,242,0.5);
  border-radius: 16px;
  padding: 14px 18px;
  margin-top: 22px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #EDE8FA;
  box-shadow: 0 0 16px rgba(169,124,242,0.25);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(10px);
}

.tb-affiliate-card.fade-in {
  animation: tbAffIn 0.6s ease forwards;
}

@keyframes tbAffIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tb-affiliate-icon {
  font-size: 1.5rem;
  color: #FFD35A;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255,211,90,0.7));
}

.tb-affiliate-text strong {
  color: #FFD35A;
  font-weight: 700;
}

.tb-affiliate-text em {
  color: #A97CF2;
  font-style: normal;
  font-weight: 600;
}

.tb-affiliate-text b {
  color: #24B8D4;
}

.tb-affiliate-text u {
  text-decoration-color: #FF4DA6;
  color: #EDE8FA;
}

.tb-affiliate-text {
  color: #EDE8FA;
  text-shadow: 0 0 6px rgba(0,0,0,0.3);
}






/* ================================================================= */
/*                        PAGE-CONTENT FULL-WIDTH                     */
/* ================================================================= */
#article-container > .page-content {
  grid-column: 1 / -1;
  padding: 2rem;
}
#article-container > .page-content .ql-editor {
  max-width: 800px;
  margin: 0 auto;
  color: #f0f0f0;
}



/* Responsiv über die vom JS gesetzten Variablen */
@media (max-width: 1400px) {
  #article-container {
    grid-template-columns: repeat(var(--grid-lg, 4), minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  #article-container {
    grid-template-columns: repeat(var(--grid-sm, 2), minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  #article-container {
    grid-template-columns: repeat(var(--grid-xs, 2), minmax(0, 1fr));
  }
}

.share-native{
  display:inline-flex; align-items:center; gap:.5rem;
  background:#243042; color:#eaf0ff;
  padding:.5rem .8rem; border-radius:.6rem;
  border:1px solid rgba(255,255,255,.08);
  cursor:pointer; font-size:.95rem;
  transition:background .2s ease, transform .04s ease;
  margin-top:.75rem;
}
.share-native:hover{ background:#2b3a50; }
.share-native:active{ transform:translateY(1px); }
.share-native svg{ display:block; }


.tb-banner{
  display:flex; align-items:center; gap:.5rem;
  padding:.6rem .8rem; background:#1f2937; color:#e5e7eb;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.tb-banner.hidden{ display:none; }


.chip{ border:1px solid rgba(255,255,255,.15); background:#1e2430; color:#eaf0ff;
  padding:.35rem .6rem; border-radius:999px; cursor:pointer; font-size:.9rem; }
.chip.active{ background:#334155; border-color:#6b7280; }
.chip.hidden{ display:none; }
.chip-fav::before{ content:'❤️'; margin-right:.35rem; opacity:.9; }


.tb-toast {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  background: rgba(31,41,55,.98);
  color: #e5e7eb;
  padding: .6rem .9rem;
  border-radius: .6rem;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.tb-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}



