/* /assets/truemagazin.css */

/* ==========================================================================
   01. FARBPALETTE & BASIS-VARIABLEN
   ========================================================================== */
:root {
  --primary-blue: #00334e;
  --primary-gold: #d4af37;
  --bg-color: #f9f7f1;
  --text-color: #2c3e50;

  /* Flächen & Schatten aus truepublish */
  --surface-1: rgba(255, 255, 255, 0.82);
  --surface-2: rgba(248, 250, 252, 0.78);
  --surface-3: rgba(240, 246, 250, 0.70);
  --stroke: rgba(0, 51, 78, 0.10);
  --stroke-strong: rgba(0, 51, 78, 0.18);
  --shadow-sm: 0 8px 22px rgba(10, 40, 60, 0.08);
  --shadow-md: 0 14px 34px rgba(10, 40, 60, 0.10);
}

/* ==========================================================================
   02. GLOBALE RESETS & GRUNDLAYOUT
   ========================================================================== */
html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-tap-highlight-color: transparent;
}

* {
  box-sizing: border-box; 
  -webkit-tap-highlight-color: transparent;
}

*:focus:not(:focus-visible) {
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none; 
}

/* Wortumbruch für Texte */
.author-name, .book-item div, .suggestion-item, .author-link, .rect-card {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

#modalTitle {
  padding-right: 35px; 
  word-break: normal; 
  overflow-wrap: break-word;
}

body {
  margin: 0;
  padding: 20px;
  font-family: 'Acme', cursive;
  background-color: var(--bg-color);
  background-image:
    radial-gradient(1200px 600px at 10% 0%, rgba(212, 175, 55, 0.10), rgba(0, 0, 0, 0) 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(0, 51, 78, 0.10), rgba(0, 0, 0, 0) 60%),
    linear-gradient(rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.50)),
    url('/data/background.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-color);
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  position: relative;
  scroll-behavior: smooth;
  padding-top: 70px; /* Abstand für Top-Nav */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  margin-top: 30px;
}

.magazin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
  flex: 1;
  overflow-x: hidden;
}

/* ==========================================================================
   03. KARTEN & COMPONENTS (Base)
   ========================================================================== */
.card-style {
  background: linear-gradient(135deg, rgba(224, 234, 240, 0.92) 0%, rgba(251, 246, 232, 0.92) 100%);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 25px;
  margin-bottom: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.3s ease;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); 
}

@media (hover: hover) {
  .card-style:hover {
    border-color: var(--stroke-strong);
    box-shadow: var(--shadow-md);
  }
}

.slogan-card {
  padding: 15px 40px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: 5px solid var(--primary-gold);
  background: linear-gradient(135deg, rgba(224, 234, 240, 0.95) 0%, rgba(251, 246, 232, 0.95) 100%);
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 26px rgba(10, 40, 60, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.slogan-text { font-size: 1.5rem; text-align: center; margin: 0; }
.slogan-text .blue { color: var(--primary-blue); font-weight: bold; }
.slogan-text .gold { color: var(--primary-gold); font-weight: bold; }

.header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding: 0 40px;
  border-bottom: 3px solid var(--primary-gold);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.70));
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 28px rgba(10, 40, 60, 0.10);
  position: relative;
  z-index: 10;
  overflow: visible;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.logo-wrapper {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-logo {
  height: 420px;
  width: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-top: -10px;
  margin-left: -50px;
  margin-bottom: 0;
  object-fit: contain;
  filter: drop-shadow(5px 10px 10px rgba(0, 0, 0, 0.15));
  position: relative;
  z-index: 20;
}
@media (hover: hover) {
  .brand-logo:hover { transform: scale(1.02); }
}

.nav-buttons {
  display: flex;
  gap: 15px;
  margin-left: auto;
  z-index: 50;
}

.nav-btn {
  font-family: 'Acme', cursive;
  font-size: 1.05rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 248, 250, 0.70));
  border: 1px solid rgba(0, 51, 78, 0.35);
  color: rgba(0, 51, 78, 0.95);
  padding: 8px 18px;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  cursor: pointer;
  user-select: none; 
  -webkit-user-select: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(10, 40, 60, 0.10);
  filter: saturate(0.88);
}
@media (hover: hover) {
  .nav-btn:hover {
    background: rgba(212, 175, 55, 0.28);
    border-color: rgba(212, 175, 55, 0.65);
    color: rgba(0, 51, 78, 0.98);
    transform: translateY(-1px);
  }
}

/* ==========================================================================
   04. TOP NAVIGATION (DESKTOP)
   ========================================================================== */
.global-top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; 
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 250, 0.95));
  border-bottom: 2px solid var(--primary-gold);
  box-shadow: 0 4px 15px rgba(0, 51, 78, 0.08);
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
}

.top-nav-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.top-nav-brand {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: var(--primary-gold);
  font-weight: normal;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.top-nav-links { display: flex; gap: 8px; }
.top-nav-links button {
  background: transparent;
  border: none;
  font-family: 'Acme', cursive;
  font-size: 1.15rem;
  color: var(--primary-blue);
  cursor: pointer;
  transition: all 0.2s;
  padding: 5px 12px;
  border-radius: 8px;
}
.top-nav-links button:hover {
  color: var(--primary-gold);
  background: rgba(0, 51, 78, 0.05);
}

.top-nav-actions { display: flex; align-items: center; gap: 15px; }
.theme-toggle-top {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.theme-toggle-top:hover { transform: scale(1.1); }

.auth-btn-top {
  background: var(--primary-blue);
  color: white;
  border: none;
  font-family: 'Acme', cursive;
  font-size: 1.05rem;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.auth-btn-top:hover { 
  background: var(--primary-gold); 
  color: var(--primary-blue); 
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .global-top-nav { display: none !important; }
}

/* ==========================================================================
   05. MAGAZIN SPEZIFISCH
   ========================================================================== */
.magazin-main-title { 
    color: #ffffff; 
    font-family: 'Great Vibes', cursive; 
    font-size: 4.5rem; 
    margin-top: 30px; 
    margin-bottom: 0; 
    font-weight: normal; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4); 
    text-align: center; 
}
.magazin-section-title {
  color: #ffffff; text-align: center; margin-bottom: 30px; font-family: 'Great Vibes', cursive; font-size: 3.2rem; font-weight: normal; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); 
}
.mag-subtitle {
  color: #ffffff; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); opacity: 0.9; font-size: 1.2rem; margin-top: -5px; 
}

.top-mag-grid { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 20px; margin-bottom: 50px; }
.mag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; grid-auto-flow: dense; margin-bottom: 50px; }
.mag-card.large { grid-column: span 2; grid-row: span 2; align-self: start; }

.rect-card {
  background: linear-gradient(135deg, rgba(224, 234, 240, 0.92) 0%, rgba(251, 246, 232, 0.92) 100%);
  border: 1px solid var(--stroke);
  border-radius: 6px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
@media (hover: hover) {
  .rect-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-gold); }
}

.mag-img { width: 100%; height: 220px; object-fit: cover; border-radius: 4px; margin-bottom: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.mag-card.large .mag-img { height: 380px; }

.mag-category { font-size: 0.8rem; text-transform: uppercase; background: var(--primary-gold); color: var(--primary-blue); padding: 4px 10px; border-radius: 4px; font-weight: bold; align-self: flex-start; margin-bottom: 10px; }

.interview-img { width:100%; height:200px; object-fit:cover; border-radius:4px; margin-bottom:15px; border:2px solid var(--primary-gold); }
.interview-title { margin:0 0 10px 0; color:var(--primary-blue); font-size: 1.3rem; text-align:center; }
.interview-text { margin:0; font-size:0.95rem; color:var(--text-color); opacity:0.9; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

.pinned-badge { position:absolute; top:-10px; left:50%; transform:translateX(-50%); background:var(--primary-blue); color:var(--primary-gold); padding:2px 15px; border-radius:20px; font-size:0.8rem; font-weight:bold; text-transform:uppercase; letter-spacing:1px; border:1px solid var(--primary-gold); }
.pinned-title { margin:15px 0 15px 0; color:var(--primary-blue); font-size: 1.8rem; text-align:center; line-height:1.2; }
.pinned-img { width:100%; aspect-ratio: 16/9; height:auto; object-fit:cover; border-radius:4px; margin-bottom:15px; }
.pinned-text { margin:0; font-size:1.05rem; color:var(--text-color); opacity:0.9; line-height:1.6; text-align:center; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* Status, Meta & Teilen */
.card-footer-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(0,0,0,0.05); }
.view-info { display: flex; align-items: center; gap: 10px; }
.view-count { font-size: 0.85rem; color: var(--text-color); opacity: 0.8; display: flex; align-items: center; gap: 5px; }
.status-badge { font-size: 0.75rem; padding: 3px 8px; border-radius: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
.status-badge.neu { background: #e0f2fe; color: #0284c7; }
.status-badge.lesenswert { background: #fef08a; color: #854d0e; }
.status-badge.highlight { background: #fee2e2; color: #b91c1c; }

.share-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--primary-gold); transition: transform 0.2s; padding: 5px; }
@media (hover: hover) { .share-btn:hover { transform: scale(1.15); } }

/* Artikel Modal Text Formatting */
.article-content-body { text-align: justify; hyphens: auto; word-wrap: break-word; }
.article-meta { font-size: 0.95rem; color: var(--text-color); opacity: 0.7; margin-top: 10px; margin-bottom: 25px; font-style: italic; }
.inline-img { width: 40%; max-width: 300px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.inline-left { float: left; margin: 5px 20px 10px 0; shape-outside: margin-box; }
.inline-right { float: right; margin: 5px 0 10px 20px; shape-outside: margin-box; }

/* ==========================================================================
   06. BESTSELLER & FEED REVIEWS
   ========================================================================== */
.bestseller-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.bestseller-card { background: rgba(255,255,255,0.95); border: 2px solid var(--primary-gold); border-radius: 12px; padding: 15px; display: flex; flex-direction: column; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease; cursor: pointer; }
@media (hover: hover) { .bestseller-card:hover { transform: translateY(-3px); } }
.review-header { display:flex; gap:10px; align-items:center; margin-bottom:15px; border-bottom:1px solid var(--stroke); padding-bottom:10px; }
.review-avatar { width:45px; height:45px; border-radius:50%; object-fit:cover; border:2px solid var(--primary-gold); }
.review-author { font-weight:bold; color:var(--primary-blue); font-size:0.95rem; }
.review-date { font-size:0.8rem; color:var(--text-color); opacity:0.7; }
.review-book { font-weight:bold; color:var(--primary-blue); margin-bottom:5px; font-size:1.05rem; }
.review-stars { margin-bottom:10px; font-size:0.9rem; letter-spacing:2px; }
.review-snippet { font-size:0.95rem; color:var(--text-color); opacity:0.9; line-height:1.5; margin-bottom:15px; }

/* ==========================================================================
   07. PROMO KARTEN (Blog, Webdesign, Davina)
   ========================================================================== */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-bottom: 40px; }

.promo-card { 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
  text-align: center; 
  padding: 30px 20px; 
  height: 100%; 
  border-radius: 6px; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
  transition: transform 0.2s ease, box-shadow 0.2s ease; 
}
@media (hover: hover) { .promo-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); } }

.promo-blog { background: linear-gradient(135deg, rgba(0,51,78,0.85), rgba(212,175,55,0.6)); border: 1px solid var(--primary-gold); }
.promo-webdesign { background: linear-gradient(135deg, var(--primary-blue), #001f30); border: 2px solid var(--primary-gold); position: relative; overflow: hidden; }

/* Davina Promo angeglichen an truepublish.css */
.promo-davina { 
  background: linear-gradient(135deg, rgba(0,51,78,0.03), rgba(212,175,55,0.08)); 
  border: 1px dashed var(--primary-gold); 
  cursor: pointer; 
  transition: filter 0.3s;
}
@media (hover: hover) { .promo-davina:hover { filter: brightness(0.95); } }
.magazin-davina-logo { max-width: 140px; margin-bottom: 15px; mix-blend-mode: multiply; }

/* ==========================================================================
   08. TICKER, BUTTONS, FORMS & TOAST
   ========================================================================== */
.news-ticker-container { background-color: var(--primary-blue); color: #fff; padding: 8px 0; overflow: hidden; position: relative; white-space: nowrap; display: flex; align-items: center; border-bottom: 2px solid var(--primary-gold); margin-bottom: 20px; border-radius: 8px; z-index: 50 !important; }
.news-badge { background-color: var(--primary-gold); color: var(--primary-blue); font-weight: bold; padding: 2px 10px; border-radius: 4px; margin-left: 10px; margin-right: 15px; z-index: 2; position: relative; box-shadow: 2px 0 5px rgba(0,51,78,0.5); }
.ticker-text { display: inline-block; padding-left: 100%; animation: ticker 220s linear infinite; font-size: 1.05rem; letter-spacing: 0.5px; }
.news-ticker-container:hover .ticker-text { animation-play-state: paused; }
.ticker-link-btn { background-color: var(--primary-gold); color: var(--primary-blue); padding: 2px 10px; border-radius: 6px; text-decoration: none; font-weight: bold; font-size: 0.9rem; margin: 0 8px; transition: filter 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
@media (hover: hover) { .ticker-link-btn:hover { filter: brightness(1.1); } }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

.form-group { margin-bottom: 15px; position: relative; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: var(--primary-blue); }
.form-input, .form-textarea { width: 100%; max-width: 100%; box-sizing: border-box; padding: 10px; font-family: 'Acme', cursive; font-size: 1.1rem; border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; outline: none; transition: all 0.25s ease; background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 248, 250, 0.78)); }
.form-input:focus, .form-textarea:focus { border-color: rgba(0, 51, 78, 0.55); box-shadow: 0 0 0 3px rgba(0, 51, 78, 0.12); }
.form-textarea { height: 120px; resize: vertical; }

.submit-btn, .action-btn { background-color: rgba(0, 51, 78, 0.90); color: rgba(255, 255, 255, 0.95); border: 1px solid rgba(0, 0, 0, 0.08); padding: 9px 16px; font-family: 'Acme', cursive; font-size: 1.15rem; border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; cursor: pointer; margin-top: 10px; transition: all 0.25s ease; text-align: center; display: inline-block; box-shadow: 0 10px 22px rgba(10, 40, 60, 0.12); filter: saturate(0.88); user-select: none; -webkit-tap-highlight-color: transparent;}
@media (hover: hover) { .submit-btn:hover, .action-btn:hover { background-color: rgba(212, 175, 55, 0.82); transform: translateY(-1px); color: #12181b;} }
.secondary-btn { background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(245, 248, 250, 0.68)); border: 1px solid rgba(0, 51, 78, 0.30); color: rgba(0, 51, 78, 0.95); }
@media (hover: hover) { .secondary-btn:hover { background: rgba(0, 51, 78, 0.10); } }
.btn-small { width: auto; font-size: 1rem; padding: 5px 15px; display: inline-block; }
.switch-link { margin-top: 15px; text-align: center; font-size: 1rem; color: #5b6670; }
.switch-link span { color: var(--primary-blue); text-decoration: underline; cursor: pointer; font-weight: bold; }

.toast-msg { position: fixed; top: 30px; left: 50%; transform: translateX(-50%) translateY(-30px); background: linear-gradient(135deg, rgba(250, 252, 255, 0.95) 0%, rgba(253, 250, 245, 0.95) 100%); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; padding: 12px 24px; font-family: 'Acme', cursive; font-size: 1.15rem; z-index: 9999; box-shadow: 0 12px 30px rgba(10, 40, 60, 0.15); border: 1px solid var(--stroke); opacity: 0; transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; }
.toast-msg.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-msg.error-toast { color: #c0392b; border-left: 4px solid #c0392b; }
.toast-msg.success-toast { color: #27ae60; border-left: 4px solid #27ae60; }

.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--primary-gold); color: var(--primary-blue); border: 2px solid white; border-radius: 50%; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); opacity: 0; pointer-events: none; transform: translateY(20px); transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); z-index: 1000; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
@media (hover: hover) { .back-to-top:hover { background: var(--primary-blue); color: var(--primary-gold); transform: translateY(-3px) scale(1.05); } }

/* ==========================================================================
   09. MODALS
   ========================================================================== */
.modal-overlay { position: fixed; inset: 0; background: rgba(10, 40, 60, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; justify-content: center; align-items: center; z-index: 9999 !important; padding: 20px; -webkit-overflow-scrolling: touch; padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important; }
.info-card { border: 1px solid rgba(212, 175, 55, 0.55); position: relative; width: min(900px, 100%); max-height: calc(100vh - 130px - env(safe-area-inset-bottom)) !important; overflow-y: auto; margin: auto; background: linear-gradient(135deg, rgba(235, 244, 250, 0.98) 0%, rgba(253, 245, 225, 0.96) 100%); padding: 30px; border-radius: 8px; animation: popUp 0.3s ease-out; box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25); }
@keyframes popUp { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close-modal { position: sticky; top: 0; float: right; margin-top: -10px; margin-right: -10px; font-size: 2rem; cursor: pointer; background: none; border: none; font-family: 'Acme', cursive; color: var(--primary-blue); z-index: 100; padding: 5px 15px; }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
footer { text-align: center; padding: 28px 0 40px 0; color: var(--text-color); background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 248, 250, 0.70)); border-top: 1px solid rgba(0, 51, 78, 0.12); border-radius: 16px; margin-top: 50px; box-shadow: 0 10px 26px rgba(10, 40, 60, 0.10); margin-bottom: 0;}
.footer-links { margin-top: 15px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.footer-btn { font-family: 'Acme', cursive; font-size: 1.05rem; background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 248, 250, 0.70)); border: 1px solid rgba(0, 51, 78, 0.35); color: rgba(0, 51, 78, 0.95); padding: 8px 18px; border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; cursor: pointer; transition: all 0.25s ease; white-space: nowrap; box-shadow: 0 8px 16px rgba(10, 40, 60, 0.10); filter: saturate(0.88); text-decoration: none; user-select: none; -webkit-user-select: none;}
@media (hover: hover) { .footer-btn:hover { background: rgba(212, 175, 55, 0.28); border-color: rgba(212, 175, 55, 0.65); color: rgba(0, 51, 78, 0.98); transform: translateY(-1px); } }
.footer-header { display: flex; justify-content: center; align-items: center; gap: 10px; }
.footer-chevron { display: none; color: var(--primary-gold); font-size: 1.2rem; transition: transform 0.3s ease; }
.footer-chevron.rotated { transform: rotate(180deg); }

/* ==========================================================================
   11. NATIVE APP HEADER & MOBILE NAVIGATION
   ========================================================================== */
.mobile-bottom-bar, 
.mobile-sidebar, 
.mobile-sidebar-overlay, 
.mobile-top-bar { 
    display: none; 
}

/* Sidebar-Buttons */
.sidebar-header-mobile { 
    display: flex; justify-content: space-between; align-items: center; 
    border-bottom: 2px dashed var(--stroke-strong); padding-bottom: 10px; margin-bottom: 20px; 
}
.sidebar-btn { 
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 248, 250, 0.8)); 
    border: 1px solid rgba(0, 51, 78, 0.2); color: var(--primary-blue); 
    font-family: 'Acme', cursive; font-size: 1.15rem; padding: 12px 15px; 
    border-radius: 12px; cursor: pointer; text-align: left; display: flex; 
    align-items: center; gap: 10px; transition: all 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.05); width: 100%; 
}
@media (hover: hover) { .sidebar-btn:hover { background: var(--primary-gold); color: #12181b; border-color: var(--primary-gold); transform: translateY(-2px); } }

@media (max-width: 900px) {
    /* Main Layout Shifts */
    body { padding-top: 75px !important; padding-bottom: 80px !important; padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important; padding-left: 0 !important; padding-right: 0 !important;}
    .magazin-container, .container { padding: 0 !important; margin-top: 0 !important; width: 100% !important; max-width: 100% !important;}
    .global-top-nav, .header-card { display: none !important; }

    /* Top Bar */
    .mobile-top-bar {
        display: flex; justify-content: space-between; align-items: center;
        position: fixed; top: 0; left: 0; width: 100%; height: 60px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 250, 0.98));
        border-bottom: 2px solid var(--primary-gold);
        z-index: 1000; padding: 0 15px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    }
    .mtb-left { display: flex; align-items: center; gap: 10px; cursor: pointer; }
    .mtb-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; border: 2px solid var(--primary-gold); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
    .mtb-brand { font-family: 'Great Vibes', cursive; font-size: 1.6rem; color: var(--primary-blue); line-height: 1; padding-top: 4px; }
    .mtb-right { display: flex; align-items: center; gap: 12px; }
    .mtb-time { font-size: 0.85rem; color: #888; font-family: monospace; font-weight: bold; min-width: 80px; text-align: right; margin-right: 2px; display: none; }
    @media (min-width: 390px) { .mtb-time { display: block; } }
    .mtb-btn { font-family: 'Acme', cursive; font-size: 1rem; padding: 4px 14px; border-radius: 20px; border: none; font-weight: bold; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.15); }
    .mtb-login { background: var(--primary-blue); color: white; }
    .mtb-logout { background: #c0392b; color: white; }

    /* Bottom Bar */
    .mobile-bottom-bar {
        display: flex !important; justify-content: space-between !important; align-items: center !important;
        position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 250, 0.98)) !important;
        border-top: 2px solid var(--primary-gold) !important;
        padding: 10px 15px !important; padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
        min-height: 60px !important; box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1) !important;
        z-index: 999999 !important; backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important;
    }
    .mobile-bottom-bar button { background: transparent !important; border: none !important; font-size: 1.4rem !important; color: var(--primary-blue) !important; cursor: pointer !important; padding: 5px !important; transition: transform 0.2s !important; display: flex !important; align-items: center !important; justify-content: center !important; }

    /* Sidebar */
    .mobile-sidebar {
        display: block; position: fixed; top: 0; left: -320px; width: 280px; height: 100vh;
        background: var(--bg-color); z-index: 2002; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 20px rgba(0,0,0,0.15); overflow-y: auto; border-right: 2px solid var(--primary-gold); padding: 20px;
        padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
    }
    .mobile-sidebar.open { left: 0; }
    .mobile-sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 51, 78, 0.6); z-index: 2001; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
    .mobile-sidebar-overlay.show { display: block; }

    /* Bestseller horizontal Scroll */
    .bestseller-wrapper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 15px; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; }
    .bestseller-wrapper::-webkit-scrollbar { display: none; }
    .bestseller-card { min-width: 85%; flex-direction: column; align-items: center; text-align: center; scroll-snap-align: center; }

    /* Footer Mobile */
    .footer-header { cursor: pointer; padding: 5px 0; }
    .footer-chevron { display: inline-block; }
    .footer-links { display: none; flex-direction: column; gap: 8px; margin-top: 15px; }
    .footer-links.show { display: flex; }
    .back-to-top { bottom: 90px; right: 20px; width: 45px; height: 45px; font-size: 1.1rem; }
    
    .card-style { padding: 15px !important; margin-bottom: 12px !important; border-radius: 12px !important; box-shadow: 0 4px 10px rgba(0,0,0,0.06) !important; }
}

@media (max-width: 1000px) {
    .top-mag-grid { grid-template-columns: 1fr; display: flex; flex-direction: column; }
    .pinned-mobile-first { order: -1; }
}

@media (max-width: 768px) {
    .magazin-main-title { font-size: 3rem !important; }
    .magazin-section-title { font-size: 2.2rem !important; }
    .mag-subtitle { font-size: 1rem !important; margin-top: 5px !important; }
    .mag-card.large { grid-column: span 1; grid-row: span 1; }
    .mag-card.large .mag-img { height: 220px; }
    .promo-grid { grid-template-columns: 1fr; }
    #infoCard { padding: 20px !important; margin: 10px !important; width: calc(100% - 20px) !important; max-height: 90vh !important; }
}

@media (max-width: 600px) {
    .card-style { padding: 12px !important; border-radius: 10px !important; }
    .brand-logo { margin-top: -80px !important; }
}

/* ==========================================================================
   12. DUNKELMODUS (DARK MODE) OVERRIDES
   ========================================================================== */
body.dark-mode {
  --primary-blue: #005a8a; 
  --bg-color: #12181b; 
  --text-color: #e0e6ed;
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-strong: rgba(255, 255, 255, 0.25);
  
  background-color: var(--bg-color);
  background-image:
    radial-gradient(1200px 600px at 10% 0%, rgba(212, 175, 55, 0.05), rgba(0, 0, 0, 0) 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(138, 180, 248, 0.05), rgba(0, 0, 0, 0) 60%),
    linear-gradient(rgba(18, 24, 27, 0.85), rgba(18, 24, 27, 0.95)),
    url('/data/background.webp');
}

/* KARTEN & FLÄCHEN */
body.dark-mode .card-style, 
body.dark-mode .rect-card, 
body.dark-mode .header-card,
body.dark-mode footer { 
  background: linear-gradient(135deg, rgba(30, 40, 50, 0.85) 0%, rgba(20, 25, 30, 0.90) 100%); 
  border-color: var(--stroke); 
  color: var(--text-color); 
}

body.dark-mode .bestseller-card { 
  background: rgba(30, 40, 50, 0.95) !important; 
  border: 1px solid rgba(255, 255, 255, 0.1) !important; 
}

/* LOGOS WECHSELN IM DARK MODE */
body.dark-mode #mainBrandLogo,
body.dark-mode .brand-logo {
  content: url('/data/truedark.webp') !important; 
}

body.dark-mode .magazin-davina-logo {
  mix-blend-mode: normal !important; 
  content: url('/data/davina_logo_white.webp') !important;
}

/* TEXTE & TYPOGRAFIE */
body.dark-mode h2, 
body.dark-mode h3,
body.dark-mode .author-name,
body.dark-mode .slogan-text .blue,
body.dark-mode .interview-title, 
body.dark-mode .pinned-title,
body.dark-mode .form-group label { 
  color: var(--primary-gold); 
}

body.dark-mode .review-book, 
body.dark-mode .review-author { 
  color: var(--primary-gold); 
}

body.dark-mode p,
body.dark-mode .bestseller-card .bs-text {
  color: #b0c4de !important;
}

/* NAVIGATION DESKTOP */
body.dark-mode .global-top-nav { 
  background: linear-gradient(180deg, rgba(20, 25, 30, 0.98), rgba(30, 40, 50, 0.95)) !important; 
  border-bottom-color: rgba(212, 175, 55, 0.4) !important; 
}
body.dark-mode .top-nav-links button { color: #e0e6ed !important; }
body.dark-mode .top-nav-links button:hover {
  color: var(--primary-gold) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
body.dark-mode .auth-btn-top {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #e0e6ed !important;
}
body.dark-mode .auth-btn-top:hover {
  background: var(--primary-gold) !important;
  color: #12181b !important;
}

/* BUTTONS & INPUTS */
body.dark-mode .nav-btn, 
body.dark-mode .footer-btn, 
body.dark-mode .form-input, 
body.dark-mode .form-textarea { 
  background: rgba(255, 255, 255, 0.05); 
  color: var(--text-color); 
  border: 1px solid rgba(255, 255, 255, 0.2); 
}
body.dark-mode .nav-btn:hover, 
body.dark-mode .footer-btn:hover { 
  background: rgba(212, 175, 55, 0.2); 
  border-color: var(--primary-gold); 
  color: var(--primary-gold); 
}
body.dark-mode .action-btn { 
  background: rgba(255, 255, 255, 0.1) !important; 
  color: #e0e6ed !important; 
  border: 1px solid rgba(255, 255, 255, 0.2) !important; 
}
body.dark-mode .action-btn:hover { 
  background: var(--primary-gold) !important; 
  color: #12181b !important; 
}
body.dark-mode .secondary-btn { 
  background: rgba(255, 255, 255, 0.1) !important; 
  color: #e0e6ed !important; 
  border-color: rgba(255, 255, 255, 0.2) !important; 
}
body.dark-mode .form-input::placeholder,
body.dark-mode .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}
body.dark-mode .back-to-top {
  background: rgba(30, 40, 50, 0.9);
  color: var(--primary-gold);
  border-color: rgba(255, 255, 255, 0.2);
}
body.dark-mode .back-to-top:hover {
  background: var(--primary-gold);
  color: #12181b;
}

/* MODALS & TEXTS */
body.dark-mode .modal-overlay { background: rgba(0, 0, 0, 0.8); }
body.dark-mode .close-modal { color: var(--primary-gold); }
body.dark-mode .info-card { 
  background: linear-gradient(135deg, rgba(25, 35, 45, 0.98) 0%, rgba(18, 24, 27, 0.98) 100%) !important; 
  border: 1px solid rgba(212, 175, 55, 0.3) !important; 
}
body.dark-mode #modalContent p, 
body.dark-mode #modalContent div, 
body.dark-mode #modalContent span { 
  color: #b0c4de !important; 
}
body.dark-mode .card-footer-meta {
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* STATUS BADGES */
body.dark-mode .status-badge.neu { background: #0c4a6e; color: #7dd3fc; }
body.dark-mode .status-badge.lesenswert { background: #422006; color: #fde047; }
body.dark-mode .status-badge.highlight { background: #450a0a; color: #fca5a5; }

/* TRANSPARENZ-FIXES & MOBILE BARS */
@media (max-width: 900px) {
  body:not(.dark-mode) .card-style[style*="rgba(192, 57, 43, 0.1)"] { background: #fdf2f2 !important; }
  body:not(.dark-mode) .card-style[style*="rgba(212,175,55,0.1)"],
  body:not(.dark-mode) .card-style[style*="rgba(212, 175, 55, 0.1)"] { background: #fdfbf4 !important; }
  body:not(.dark-mode) .card-style[style*="rgba(0, 51, 78, 0.05)"] { background: #f2f6f9 !important; }

  body.dark-mode .card-style[style*="rgba(255,255,255,0.85)"],
  body.dark-mode .card-style[style*="rgba(255,255,255,0.7)"] {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  body.dark-mode .mobile-bottom-bar { 
    background: linear-gradient(180deg, rgba(30, 40, 50, 0.95), rgba(20, 25, 30, 0.98)) !important; 
    border-top-color: var(--stroke-strong) !important; 
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5) !important; 
  }
  body.dark-mode .mobile-bottom-bar button { color: var(--primary-gold) !important; }
  body.dark-mode .mobile-bottom-bar button:hover { color: #fff !important; }
  
  body.dark-mode .mobile-top-bar { 
    background: linear-gradient(180deg, rgba(20, 25, 30, 0.95), rgba(30, 40, 50, 0.98)); 
    border-bottom-color: var(--stroke-strong); 
  }
  body.dark-mode .mtb-brand { color: var(--primary-gold); }
  body.dark-mode .mtb-time { color: #aaa; }
  body.dark-mode .mtb-login { background: var(--primary-gold); color: #12181b; }
  
  body.dark-mode .sidebar { 
    background: var(--bg-color) !important; 
    border-right: 2px solid var(--stroke-strong) !important; 
    box-shadow: 4px 0 15px rgba(0,0,0,0.5) !important; 
  }
  body.dark-mode .sidebar-header-mobile { border-bottom-color: rgba(212, 175, 55, 0.3) !important; }
  body.dark-mode .sidebar-btn { 
      background: rgba(255, 255, 255, 0.05) !important; 
      color: #e0e6ed !important; 
      border-color: rgba(255, 255, 255, 0.1) !important; 
  }
  body.dark-mode .sidebar-btn:hover { 
      background: rgba(212, 175, 55, 0.2) !important; 
      color: var(--primary-gold) !important; 
      border-color: var(--primary-gold) !important; 
  }
}

/* ==========================================================================
   13. LOKALE SCHRIFTARTEN
   ========================================================================== */
@font-face {
  font-family: 'Acme'; font-style: normal; font-weight: 400; font-display: swap; 
  src: url('/assets/fonts/acme-v27-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/great-vibes-v21-latin-regular.woff2') format('woff2');
}
body.alt-font { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif !important; }
body.alt-font .nav-btn, body.alt-font .footer-btn, body.alt-font .action-btn, body.alt-font .form-input, body.alt-font .form-textarea,
body.alt-font .sidebar-btn, body.alt-font .close-modal, body.alt-font .toast-msg, body.alt-font .top-nav-links button, 
body.alt-font .auth-btn-top, body.alt-font .mtb-btn { font-family: inherit !important; }

/* ==========================================================================
   PROFIL-MODAL INHALTE (Autoren & Blogger Karten Layout)
   ========================================================================== */
.info-card.wide-modal { max-width: 900px; }
@media (min-width: 901px) {
  .info-card.wide-modal { max-width: 1100px; }
}

.author-profile-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-top: 20px;
  position: relative;
}

.author-profile-img,
.author-img-placeholder {
  width: 100%;
  height: 350px;
  background: linear-gradient(180deg, rgba(230, 242, 248, 0.95), rgba(240, 246, 250, 0.85));
  border-radius: 12px;
  margin-bottom: 15px;
  display: block;
  color: var(--primary-blue);
  font-size: 1.5rem;
  opacity: 0.98;
  object-fit: cover;
  border: 1px solid rgba(0, 51, 78, 0.08);
}
.author-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons-container {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}
.social-icon {
  width: 38px;
  height: 38px;
  background: rgba(0, 51, 78, 0.90);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.25s ease;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}
.social-icon svg { width: 20px; height: 20px; fill: rgba(255, 255, 255, 0.95); }
@media (hover: hover) {
  .social-icon:hover {
    background: rgba(212, 175, 55, 0.88);
    transform: translateY(-1px);
  }
}

.book-preview-list { display: flex; gap: 14px; flex-wrap: wrap; }
.book-item { width: 120px; cursor: pointer; text-align: center; }
.book-cover-small {
  width: 120px;
  height: 170px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(240, 240, 240, 0.95);
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.10);
  margin-bottom: 6px;
}

.author-link {
  display: block;
  background-color: rgba(0, 51, 78, 0.90);
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 10px 18px rgba(10, 40, 60, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
@media (hover: hover) {
  .author-link:hover { background-color: rgba(212, 175, 55, 0.82); }
}

.book-detail-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}
.book-detail-cover {
  width: 260px;
  height: 360px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(240, 240, 240, 0.95);
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.book-detail-covers-row {
  display: flex;
  gap: 15px;
  justify-content: center;
  width: 100%;
}

/* Mobile Anpassungen für die Profilkarte */
@media (max-width: 600px) {
  .author-profile-container { grid-template-columns: 1fr; padding-bottom: 55px; }
  .author-profile-img,
  .author-img-placeholder {
    width: 100%;
    max-width: 200px;
    height: 280px;
    margin: 0 auto 15px auto;
  }
  .book-detail-container { grid-template-columns: 1fr; }
  .book-detail-cover {
    width: 100%;
    max-width: 260px;
    height: 360px;
    margin: 0 auto;
  }
  .book-detail-covers-row {
    flex-direction: column;
    align-items: center;
  }
}

/* Stellt sicher, dass die Bilder genau so groß sind wie vorher die Emojis */
.nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain; /* Verhindert, dass die Bilder verzerrt werden */
    vertical-align: middle; /* Richtet das Bild schön mittig im Button aus */
}

/* LIGHT MODE (Standard): Hamburger-Menü ist dunkel (passend zu den schwarzen PNGs) */
.mobile-bottom-bar .js-toggle-sidebar span {
    color: #111; /* Deine normale Textfarbe im hellen Modus */
    transition: color 0.3s ease;
}

.nav-icon {
    /* Weicher Übergang beim Wechseln des Modus */
    transition: filter 0.3s ease; 
}

/* ========================================= */
/* DARK MODE ANPASSUNGEN                     */
/* ========================================= */

/* 1. Hamburger-Menü wird gold/gelb */
body.dark-mode .mobile-bottom-bar .js-toggle-sidebar span {
    color: var(--primary-gold, #D4AF37); /* Nutzt dein TruePublishing-Gold */
}

/* 2. Die schwarzen PNG-Icons werden per Filter exakt in dieses Gold umgefärbt */
body.dark-mode .nav-icon {
    /* Diese magische Filter-Kombination wandelt reines Schwarz in ~ #D4AF37 (Gold) um */
    filter: invert(73%) sepia(34%) saturate(834%) hue-rotate(359deg) brightness(91%) contrast(89%);
}

/* Styling für echte Profilbilder in der Navigation */
.nav-profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;           /* Macht das Bild perfekt rund */
    object-fit: cover;            /* Verhindert, dass das Gesicht verzerrt wird */
    border: 1px solid var(--primary-gold, #D4AF37); /* Ein schicker goldener Rand */
    transition: transform 0.2s;
}

/* WICHTIG: Kein Filter für das Profilbild im Dark Mode! */
body.dark-mode .nav-profile-img {
    filter: none; 
}