/* RESET & BASICS ----------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}


/* === Globaler Hintergrund ohne sichtbare Kanten === */
/* === SMOOTH BACKGROUND – NO CUT LINES ANYWHERE === */
body {
  background: linear-gradient(
    180deg,
    rgba(10,20,40,1) 0%,        /* top: leicht blauer Ton */
    rgba(5,10,25,1) 40%,        /* smooth dark center */
    rgba(5,10,25,1) 60%,        /* extended center for stability */
    rgba(25,8,8,1) 100%         /* bottom: leichter warmer Ton */
  );
  background-attachment: fixed;
  color: #e2e8f0;
}



/* Standard-Links neutralisieren, wir stylen gezielt selbst */
a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 1rem;
}

/* COLOR VARIABLES ----------------------------------------------------------- */

:root {
  --bg-dark: #020617;
  --bg-card: #0f172a;
  --bg-glass: rgba(15, 23, 42, 0.55);
  --border-glow: rgba(148, 163, 184, 0.25);

  --blue-1: #3b82f6;
  --blue-2: #0ea5e9;
  --blue-3: #38bdf8;

  --accent-purple: #a855f7;
  --accent-orange: #f97316;

  --text-muted: #94a3b8;
  --text-light: #e2e8f0;
}

/* TOP BANNER --------------------------------------------------------------- */

.prebanner {
  width: 100%;
  background: linear-gradient(90deg, #f97316, #ef4444);
  color: #fff;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  letter-spacing: 0.3px;
}

/* HERO --------------------------------------------------------------------- */

.hero {
  margin-top: 1.5rem;
  padding: 2.5rem;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: radial-gradient(circle at 15% 10%, #1e1b4b 0%, #020617 60%);
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: radial-gradient(circle at 90% 10%, rgba(249,115,22,0.5), transparent 60%),
              radial-gradient(circle at 40% 0%, rgba(139,92,246,0.5), transparent 50%);
  z-index: 1;
  filter: blur(40px) brightness(1.2);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 3rem;
  justify-content: space-between;
  align-items: flex-start;
}

/* ILLUSION BUBBLE ----------------------------------------------------------- */

.illusion-bubble {
  position: absolute;
  top: 0.3rem;
  right: 1.6rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #a855f7);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  text-align: right;
}

.illusion-label {
  font-size: 0.85rem;
  text-transform: uppercase;
}
.illusion-sub {
  font-size: 0.7rem;
  opacity: 0.9;
}

/* AVATAR ------------------------------------------------------------------- */

.charly-avatar {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 18px rgba(0,0,0,0.55);
}

.charly-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Alte Reste entfernen (Emoji/Badges) */
.charly-avatar::before,
.charly-avatar::after,
.charly-badge,
.charly-avatar-badge,
.charly-avatar-label,
.charly-emoji {
  display: none !important;
  content: none !important;
}

/* HERO TEXT-BLOCK ---------------------------------------------------------- */

.logo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-title-block h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
}

.hero-subline {
  font-size: 1rem;
  color: var(--accent-orange);
  margin-top: 0.1rem;
}

.hero-lead {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: #cbd5e1;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
}

/* BUTTONS ------------------------------------------------------------------ */

.btn {
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, #a855f7, #3b82f6);
  color: #fff;
  border: none;
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  background: transparent;
}

/* META TAGS ---------------------------------------------------------------- */

.hero-meta {
  margin-top: 1.3rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-meta span {
  background: rgba(255,255,255,0.08);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.06);
}

/* RIGHT HERO CARD ---------------------------------------------------------- */

.charly-card {
  border-radius: 20px;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1.2rem;
  width: 345px;               /* etwas breiter für Footer-Text */
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  margin-top: 2.6rem !important; /* Abstand zur Bubble */
}

.hero-grid > div:last-child {
  margin-left: 0.4rem !important;
}

.charly-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.charly-chip {
  background: var(--accent-orange);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.charly-dialog {
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent-purple);
  padding-left: 0.8rem;
}

.charly-dialog-line {
  padding: 0.25rem 0;
}

.charly-dialog-line.muted {
  opacity: 0.7;
}

/* FOOTER IN DER CARD: MODUS + HINWEIS ------------------------------------- */

.charly-card-footer {
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  white-space: nowrap;
  gap: 1.4rem;
}

/* "Modus: Frech" optisch in eine Linie bringen */
.charly-card-footer span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #cbd5e1;
}

.charly-mode-badge {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  color: #f9fafb;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,0.8);
}

/* BRANDS ------------------------------------------------------------------- */

.section {
  margin-top: 4rem;
}

.section h2 {
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
}

.section-lead {
  color: var(--text-muted);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.brand-card {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(148,163,184,0.25);
  padding: 1.5rem;
  border-radius: 20px;
  text-decoration: none;
  color: #e2e8f0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.55);
  border-color: rgba(148,163,184,0.55);
  background: rgba(15,23,42,0.9);
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.brand-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.brand-card p {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.brand-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--blue-3);
  font-size: 0.9rem;
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: underline;
}

/* ABOUT -------------------------------------------------------------------- */

.about-grid {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.about-box {
  background: rgba(15,23,42,0.55);
  padding: 1.4rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}

.about-box h3 {
  margin-bottom: 0.6rem;
}

.about-box ul {
  list-style: none;
}

.about-box li + li {
  margin-top: 0.3rem;
}

/* FOOTER ------------------------------------------------------------------- */

.footer {
  width: 100%;
  max-width: 1120px;
  margin: 3rem auto 2rem;
  padding: 1rem 0.4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  gap: 1.2rem;
}

.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-right a:hover {
  color: #fff;
}

/* IMPRESSUM / DATENSCHUTZ LINKS ------------------------------------------- */

.legal-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 20px 80px;
  color: #e2e8f0;
}

/* Header oben */
.legal-header {
  text-align: left;
  margin-bottom: 32px;
}

.legal-back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #60a5fa;
  text-decoration: none;
  font-size: 0.95rem;
}

.legal-back-link:hover {
  text-decoration: underline;
}

.legal-header h1 {
  font-size: 2.4rem;
  margin: 0 0 6px;
  color: #f8fafc;
}

.legal-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
}

/* Inhalt in „Card“ legen */
.legal-content {
  background: radial-gradient(circle at top left, rgba(37,99,235,0.18), rgba(15,23,42,0.98));
  border-radius: 18px;
  padding: 28px 28px 32px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  border: 1px solid rgba(148,163,184,0.25);
}

/* Typo im Inhalt */
.legal-content h2 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1.3rem;
  color: #e5e7eb;
}

.legal-content h3 {
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: #cbd5e1;
}

.legal-content p,
.legal-content li {
  color: #e2e8f0;
  font-size: 0.98rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

/* MOBILE ------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid {
    flex-direction: column;
  }
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ====================================================================== */
/* CHAT PAGE – CHARLYGPT BETA                                            */
/* ====================================================================== */

body.chat-page {
  background: #020617;
}

/* Header-Card */

.chat-header-card {
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
  border-radius: 24px;
  background: radial-gradient(circle at 10% 0%, #1e293b 0%, #020617 55%);
  border: 1px solid rgba(148,163,184,0.35);
}

.chat-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.charly-avatar-small {
  width: 56px;
  height: 56px;
}

.chat-header-card h1 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.chat-header-sub {
  font-size: 0.95rem;
  color: #cbd5e1;
}

.chat-mode-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  color: white;
  border: none;
}

.chat-back-btn {
  font-size: 0.9rem;
}

/* Chat-Layout */

.chat-main {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.chat-card {
  background: rgba(15,23,42,0.9);
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,0.35);
  padding: 1.5rem 1.5rem 1.2rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.65);
}

/* Header oben in der Chat-Card */

.chat-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.chat-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,0.9);
}

.chat-status-text {
  font-weight: 500;
}

.chat-status-badge {
  margin-left: auto;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(248,250,252,0.35);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e5e7eb;
}

/* Nachrichtenbereich */

.chat-messages {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.4rem;
  margin-bottom: 1rem;
}

.chat-message-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

/* Charly-Nachrichten (links) */

.chat-message-charly .chat-avatar-bubble {
  flex-shrink: 0;
}

.chat-avatar-bubble {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.4);
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15), transparent 60%);
}

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

/* Bubbles */

.chat-bubble {
  background: #020617;
  border-radius: 16px;
  padding: 0.7rem 0.9rem;
  max-width: 70%;
  border: 1px solid rgba(148,163,184,0.4);
  font-size: 0.92rem;
}

.chat-bubble p + p {
  margin-top: 0.3rem;
}

.chat-bubble-meta {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* User-Nachrichten (rechts) */

.chat-message-user {
  justify-content: flex-end;
}

.chat-message-user .chat-bubble {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  border-color: transparent;
  color: #f9fafb;
  margin-left: 4rem; /* etwas Abstand zur linken Seite */
}

.chat-message-user .chat-bubble-meta {
  color: rgba(226,232,240,0.9);
}

/* Hinweis unter den Nachrichten */

.chat-hint {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.6rem;
}

/* Eingabezeile */

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.chat-input-field {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  font-size: 0.95rem;
}

.chat-input-field:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56,189,248,0.6);
}

/* Datei-Anhängen-Button (optisch) */

.chat-input-attach {
  border: none;
  background: rgba(15,23,42,0.9);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed; /* bewusst: noch keine Funktion */
  font-size: 1.1rem;
  color: #9ca3af;
}

.chat-input-attach:hover {
  background: rgba(31,41,55,0.9);
}

/* Senden-Button in der Chat-Zeile */

.chat-send-btn {
  padding-inline: 1.3rem;
}

/* Mobile */

@media (max-width: 800px) {
  .chat-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-header-card {
    padding: 1.2rem 1.2rem;
  }

  .chat-card {
    padding: 1.2rem 1.1rem 1rem;
  }

  .chat-bubble {
    max-width: 82%;
  }
}

@media (max-width: 600px) {
  .brand-grid {
    grid-template-columns: 1fr;
  }
}
/* Illusion-Bubble leicht lebendig machen */
.illusion-bubble {
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  transform-origin: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.hero:hover .illusion-bubble {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.65);
  filter: brightness(1.05);
}
.charly-avatar {
  position: relative;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12), transparent 60%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero:hover .charly-avatar {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(56,189,248,0.6);
}
.section a {
  color: var(--blue-3);
  text-decoration: underline;
}

.section a:hover {
  color: #fff;
}
/* Delivery Pet — kleiner Hintergrundbereich, damit Charly sichtbar ist */
.delivery-card,
#delivery,
.section-delivery,
.delivery-section {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: right center !important;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}
/* Interner Kasten "Späteres Setup" – für Besucher ausblenden */
.dev-only {
  display: none;
}
/* Box-Rahmen wie bei AI & FUN und BOOK & META */
.feature-box {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 24px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(4px);
  transition: all .25s ease;
}
.universe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 1.25rem;
}

.universe-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem 1.6rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(148, 163, 253, 0.12), transparent 55%),
              rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 253, 0.2);
  text-decoration: none;
  color: #e5e7eb;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.65);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.universe-card:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.9);
}

.card-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #93c5fd;
}

.universe-card h3 {
  font-size: 1.25rem;
  margin: 0;
  color: #e5e7eb;
}

.universe-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #cbd5f5;
}

.card-tag {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #a5b4fc;
}

.feature-box:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-3px);
}
.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 1.25rem 2rem;
  border-top: 1px solid rgba(148, 163, 253, 0.25);
  font-size: 0.85rem;
  color: #9ca3af;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;  /* Mitte */
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: #a5b4fc;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}
/* User-Bubble rechts ausrichten (optional) */
.chat-message-user .chat-bubble {
  margin-left: auto;
}

/* Tipp-Animation */
.typing-bubble {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}
/* ---- CLEAN LEGAL PAGES (IMPRESSUM + DATENSCHUTZ) ---- */
.legal-body {
  background: #0a0f1a !important;
  background-image: none !important;
  color: #e5e7eb;
}

.legal-page {
  max-width: 800px;
  margin: 60px auto;
  padding: 20px;
  line-height: 1.6;
  font-size: 1rem;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #9cc5ff;
}

.legal-page a {
  color: #60a5fa;
  text-decoration: none;
}

.legal-backlink {
  margin-bottom: 30px;
  display: inline-block;
  color: #60a5fa;
  text-decoration: none;
  font-size: 1rem;
}
/* === FIX für Impressum & Datenschutz: Kein Monster-Charly === */
body.legal-body,
body.legal-body .page,
body.legal-body .page::before,
body.legal-body::before {
  background: #020617 !important;
  background-image: none !important;
  box-shadow: none !important;
}
/* ========================================
   FOOTER – Version A (zentriert, clean)
======================================== */

.site-footer {
  width: 100%;
  padding: 28px 0 38px;
  margin-top: 80px;

  background: rgba(15, 23, 42, 0.4); /* smoother als vorher */
  backdrop-filter: blur(8px);

  border-top: 1px solid rgba(148,163,184,0.15);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-copy {
  font-size: 0.92rem;
  color: #94a3b8;
  text-align: center;
}

.footer-nav {
  display: flex;
  gap: 22px;
}

.footer-nav a {
  color: #60a5fa;
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  color: #93c5fd;
}
/* Hero-Karte mobil immer vollständig sichtbar */
.hero-card,
.live-card,
.status-card {
  max-width: 100%;
  box-sizing: border-box;
}

/* Sicherheitshalber: Text darf umbrechen */
.hero-card p,
.live-card p,
.status-card p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* Auf sehr kleinen Screens etwas Innenabstand, damit nichts an den Rand klebt */
@media (max-width: 480px) {
  .hero-card,
  .live-card,
  .status-card {
    margin-inline: 16px;
  }
}
/* Generell: X-Overflow im Chat killen */
.chat-page,
.chat-page .page,
.chat-main,
.chat-card {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Input-Zeile sauber in der Breite begrenzen */
.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

/* Textfeld darf schrumpfen und bricht nicht aus dem Viewport */
.chat-input-field {
  flex: 1;
  min-width: 0;
}

/* Button bleibt kompakt */
.chat-send-btn {
  flex-shrink: 0;
}
/* Hero-Karte: auf kleinen Screens nie breiter als der Viewport */
@media (max-width: 480px) {
  .hero-card {
    /* evtl. vorhandene feste Breite aushebeln */
    width: auto;
    max-width: 100%;
    margin: 0 16px;          /* etwas Rand links/rechts */
    box-sizing: border-box;
  }

  /* falls du eine innere Wrapper-Div hast, gerne mit abdecken */
  .hero-card-inner {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Text soll normal umbrechen, nichts clippen */
  .hero-card p {
    white-space: normal;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}
/* Mobile-Fix: Statuszeile "Charly ist gerade: frech" darf umbrechen */
@media (max-width: 480px) {
  /* Name anpassen, falls anders: hero-status-row / hero-status / live-status etc. */
  .hero-status-row,
  .hero-status {
    display: flex;
    flex-wrap: wrap;      /* erlaubt Umbruch */
    align-items: center;
    gap: 4px;
    max-width: 100%;
  }

  /* Innerer Text: NICHT in eine Zeile pressen, nichts abschneiden */
  .hero-status-row *,
  .hero-status * {
    white-space: normal;  /* statt nowrap */
    overflow: visible;
  }
}
/* --- Fix: Statuszeile in der Live-Card soll NICHT abgeschnitten werden --- */
.hero-card-header,
.hero-card-header * {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  max-width: 100% !important;
}

/* Wenn der Header ein Flex-Container ist: brechen erlauben */
.hero-card-header {
  display: flex;
  flex-wrap: wrap;        /* ← ERLAUBT UMBRUCH */
  align-items: center;
  gap: 6px;
}
/* === Fix für abgeschnittenen Text: "Charly ist gerade: frech" === */

/* Karte selbst darf nichts abschneiden */
.hero-card {
  overflow: visible !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Header in der Karte */
.hero-card-header {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap !important;          /* Zeilenumbruch erlauben */
  max-width: 100% !important;
  overflow: visible !important;
}

/* Alle Texte im Header dürfen umbrechen und werden nicht gekürzt */
.hero-card-header span,
.hero-status-text,
.hero-status-mode {
  display: inline-block;
  white-space: normal !important;      /* Bricht bei Bedarf um */
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: 100% !important;
}

/* Nur für den Modus-Text (frech / neutral / sachlich …) */
.hero-status-mode {
  font-weight: 600;
}
/* === Hardcore-Fix: Statuszeile "Charly ist gerade: frech" nicht mehr abschneiden === */

/* Karte: nichts beschneiden, volle Breite erlauben */
.hero-card {
  max-width: 100% !important;
  overflow: visible !important;
  box-sizing: border-box;
}

/* Header der Karte */
.hero-card-header {
  max-width: 100% !important;
  overflow: visible !important;
  display: flex !important;
  flex-wrap: wrap !important;        /* Zeilenumbruch erlauben */
  align-items: center;
}

/* Alles im Header darf umbrechen und nichts abschneiden */
.hero-card-header,
.hero-card-header * {
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;    /* KEIN nowrap mehr */
}

/* Modus-Label (frech / neutral / sachlich …) darf etwas betont sein */
.hero-status-mode {
  font-weight: 600;
}
/* =========================================
   Charly-Card Statuszeile — BUGFIX
   Kein Abschneiden mehr auf iPhone
   ========================================= */

.charly-card-header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;          /* erlaubt Umbruch */
  gap: 8px;
  align-items: center;
  width: 100%;
}

.charly-status {
  display: flex;
  flex-wrap: wrap;          /* erlaubt Zeilenumbruch */
  gap: 4px;
  align-items: baseline;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.charly-status-label,
.charly-status-mode {
  white-space: normal !important;
  overflow: visible !important;
}

/* iPhone Fix: Status automatisch untereinander */
@media (max-width: 600px) {
  .charly-status-label {
    flex-basis: 100%;       /* bricht in eigene Zeile */
  }
}
/* === Mobile-Fix für Charly-Card & Dialog-Text === */

@media (max-width: 600px) {
  .hero-side {
    width: 100%;
  }

  .charly-card {
    width: auto !important;
    max-width: calc(100% - 32px) !important; /* links + rechts 16px Luft */
    margin: 24px 16px 0 16px !important;
    box-sizing: border-box;
    overflow: visible !important;
  }

  .charly-dialog {
    max-width: 100% !important;
  }

  .charly-dialog-line {
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}
/* Chat-Seite: Hauptbereich zentrieren */
.chat-page .chat-main {
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.5rem 4rem;
}

/* Chatkarte: nicht bildschirmfüllend, sondern schön zentriert */
.chat-page .chat-card {
  width: 100%;
  max-width: 1100px;   /* kannst du auf 900 / 1000px anpassen, wenn dir schmaler lieber ist */
  border-radius: 18px;
  background: #020617;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.75);
}
/* =========================
   CHAT-LAYOUT
   ========================= */

/* Header + Chat-Karte: gleiche Breite, zentriert */
.chat-page .chat-header-card,
.chat-page .chat-card {
  width: 100%;
  max-width: 1100px;       /* ggf. 1000 / 900 anpassen, wenn du es schmaler willst */
  margin: 1.5rem auto 0 auto;
}

/* Header als hübsche Card */
.chat-page .chat-header-card {
  border-radius: 18px;
  background: radial-gradient(circle at top left, #111827, #020617 55%);
  padding: 1.2rem 1.6rem;
}

/* Chat-Main: kein Flex mehr, nur Abstand */
.chat-page .chat-main {
  padding: 0 1.5rem 4rem;
}

/* Chat-Karte: mittig, eigen Schatten */
.chat-page .chat-card {
  margin-top: 1.5rem;
  border-radius: 18px;
  background: #020617;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.75);
}
/* =========================
   FOOTER GLOBAL
   ========================= */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

.footer-right {
  display: flex;
  gap: 1.5rem;
}

.footer a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Mobile: Footer hübsch untereinander */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
/* =========================
   FINALE FOOTER-VARIANTE A
   ========================= */

.footer {
  width: 100%;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #9ca3af;
  box-sizing: border-box;
}

.footer-left,
.footer-right {
  margin: 0;
  padding: 0;
}

.footer-right {
  display: flex;
  gap: 1.5rem;
}

.footer a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Mobile: alles untereinander */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-right {
    justify-content: center;
  }
}
<footer class="footer">
  <div class="footer-left">
    © 2025 Illusion von Allem – Captain & Charly auf der Brücke
  </div>
  <div class="footer-right">
    <a href="impressum.html">Impressum</a>
    <a href="datenschutz.html">Datenschutz</a>
  </div>
</footer>
/* --- Footer-Override nur für die Chat-Seite --- */

.chat-page .footer {
  width: 100%;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #9ca3af;
  box-sizing: border-box;

  /* WICHTIG: Kein brauner Hintergrund 🤎 */
  background: #020617;   /* identisch zum Body */
}

.chat-page .footer-right {
  display: flex;
  gap: 1.5rem;
}

.chat-page .footer a {
  color: #e5e7eb;
  text-decoration: none;
}

.chat-page .footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .chat-page .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .chat-page .footer-right {
    justify-content: center;
  }
}
/* === UNIVERSALER FOOTER – ersetzt alle alten .footer Styles === */

footer,
.footer,
.site-footer {
  background: #020617 !important;
  border-top: 1px solid rgba(148,163,184,0.35);
  padding: 1.5rem 1.75rem;
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #94a3b8;
  width: 100%;
  flex-shrink: 0;
}

footer a,
.site-footer a,
.footer a {
  color: #94a3b8 !important;
  text-decoration: none;
}

footer a:hover,
.site-footer a:hover,
.footer a:hover {
  color: #e5e7eb !important;
}

footer .footer-right,
.site-footer .site-footer-links {
  display: flex;
  gap: 1.5rem;
}
.chat-input-avatar {
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}

.chat-avatar-du {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a4cff, #6a6aff);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 0.85rem;
}
/* DU soll RECHTS neben dem Eingabefeld stehen */
.chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
}

/* Inputfeld nimmt den Platz ein */
.chat-input-field {
  flex: 1;
}

/* Avatar DU nach rechts schieben */
.chat-input-avatar {
  order: 2;              /* DU an zweite Stelle */
  display: flex;
  align-items: center;
}

/* Senden-Button an dritte Stelle */
.chat-send-btn {
  order: 3;
}

/* Optional: Optik DU-Avatar */
.chat-avatar-du {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #6d4aff;
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ===== UPGRADE-MENÜ CARD ===== */
.chat-upgrade-menu {
  background: rgba(255, 255, 255, 0.04);
  padding: 18px 22px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

/* ===== LABELS ===== */
.chat-upgrade-label {
  font-size: 14px;
  font-weight: 600;
  color: #e8e8e8;
  margin-right: 8px;
}

/* ===== MODE BUTTONS ===== */
.mode-btn {
  padding: 6px 14px;
  margin-right: 6px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid #3b3b3b;
  background: #1a1a1a;
  color: #d0d0d0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mode-btn:hover {
  background: #2d2d2d;
  border-color: #5f5f5f;
  transform: translateY(-1px);
}

.mode-active {
  background: linear-gradient(135deg, #3a8bff, #6aa6ff);
  border-color: #6aa6ff;
  color: white;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(52, 130, 255, 0.6);
  transform: translateY(-1px);
}

/* ===== SWITCHES / TOGGLES ===== */
.upgrade-toggle {
  display: inline-flex;
  align-items: center;
  margin-right: 18px;
  font-size: 13px;
  color: #cfcfcf;
  cursor: pointer;
}

.upgrade-toggle input {
  margin-right: 6px;
  accent-color: #3a8bff;
}

/* Schönes Blau für aktiven Giesing-Schalter */
#giesing-mode-toggle:checked {
  accent-color: #00c853 !important; /* grünes Giesing-Grün */
}
/* ======================================================
   NEON GLOW – CHARLYVERSUM CONTROL PANEL
   ====================================================== */

.chat-upgrade-menu {
  background: rgba(20, 25, 40, 0.45);
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid rgba(70, 110, 255, 0.3);
  box-shadow: 0 0 25px rgba(60, 100, 255, 0.25);
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
  position: relative;
}

/* Charlyversum-Label */
.chat-upgrade-menu::before {
  content: "Charlyversum – Control Panel";
  position: absolute;
  top: -12px;
  left: 16px;
  padding: 2px 10px;
  font-size: 12px;
  color: #8fb7ff;
  background: rgba(15, 20, 35, 0.85);
  border-radius: 12px;
  border: 1px solid rgba(90, 130, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ROW SPACING */
.chat-upgrade-row {
  margin-bottom: 14px;
}

/* ======================================================
   NEON BUTTONS
   ====================================================== */
.mode-btn {
  padding: 8px 16px;
  margin-right: 8px;
  border-radius: 18px;
  font-size: 13px;
  border: 1px solid rgba(90, 130, 255, 0.35);
  background: rgba(25, 35, 60, 0.7);
  color: #cdd8ff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mode-btn:hover {
  box-shadow: 0 0 10px rgba(120, 160, 255, 0.45);
  transform: translateY(-2px);
  border-color: rgba(140, 180, 255, 0.8);
}

.mode-active {
  background: linear-gradient(135deg, #3a8bff, #6aa6ff);
  border-color: rgba(150, 190, 255, 0.9);
  color: white;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(80, 140, 255, 0.9),
              0 0 25px rgba(60, 110, 255, 0.4);
  transform: translateY(-2px) scale(1.02);
}

/* ======================================================
   TOGGLES
   ====================================================== */
.upgrade-toggle {
  display: inline-flex;
  align-items: center;
  margin-right: 22px;
  font-size: 13px;
  color: #d0d8ff;
  cursor: pointer;
  transition: 0.2s ease;
}

.upgrade-toggle:hover {
  color: white;
  text-shadow: 0 0 6px rgba(140, 180, 255, 0.7);
}

.upgrade-toggle input {
  margin-right: 6px;
  accent-color: #6aa6ff;
}

#giesing-mode-toggle:checked {
  accent-color: #00e676 !important; /* Giesing-Neon-Grün */
}

/* ======================================================
   BADGE GLOW
   ====================================================== */
.chat-bubble {
  position: relative;
}

.chat-bubble::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 12px;
  background: radial-gradient(
    rgba(70, 110, 255, 0.25),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.chat-message-charly .chat-bubble:hover::before {
  opacity: 1;
}
.charlyversum-tag {
  position: fixed;
  right: 16px;
  bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fb4ff;
  opacity: 0.6;
  pointer-events: none;
  z-index: 50;
}

.charlyversum-tag::before {
  content: "Powered by ";
  opacity: 0.8;
}
/* ============================
   CHARYLVERUM — Hintergrund Mood
   ============================ */

/* Bayern = Rotglow */
body.charly-mood-bayern .chat-card {
  background: linear-gradient(135deg, rgba(180, 20, 20, 0.30), rgba(60, 10, 10, 0.25));
  box-shadow: 0 0 30px rgba(255, 60, 60, 0.35);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* 1860 = Blauglow */
body.charly-mood-1860 .chat-card {
  background: linear-gradient(135deg, rgba(20, 70, 160, 0.30), rgba(10, 30, 70, 0.25));
  box-shadow: 0 0 30px rgba(80, 120, 255, 0.35);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Neutral */
body.charly-mood-neutral .chat-card {
  background: rgba(20, 25, 40, 0.45);
  box-shadow: 0 0 25px rgba(60, 100, 255, 0.25);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.project-placeholder .big-question {
  font-size: 3.5rem;
  line-height: 1;
  color: #ff9e42; /* dein Orange – bei Bedarf anpassen */
}
.universe-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.big-question {
  font-size: 6rem;          /* RICHTIG groß */
  font-weight: 700;
  line-height: 1;
  color: #ff9e42;           /* dein Orange */
  text-shadow:
      0 0 12px rgba(255, 158, 66, 0.7),
      0 0 24px rgba(255, 158, 66, 0.5),
      0 0 36px rgba(255, 158, 66, 0.3),
      4px 4px 12px rgba(0, 0, 0, 0.4);  /* leichter Schatten */
}

/* === Hintergrund auch für den Chat aktivieren === */
body.chat-page {
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.16), transparent 55%),
    #020617 !important;
}
/* === Universe Cards: gleiche Höhe + Button unten === */
.universe-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 60px; /* Platz für Button */
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 70%);
    border-radius: 12px;
}

/* Card-Tag fix am unteren Rand */
.universe-card .card-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Schönes Hover – leicht heller */
.universe-card:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 75%);
    transform: translateY(-3px);
    transition: 0.25s ease;
}
/* === Footer ohne Kasten / transparent === */
footer,
.footer,
.site-footer {
  background: transparent !important;
  backdrop-filter: none !important;
  border-top: 1px solid rgba(148,163,184,0.25); /* feine Linie behalten */
}
/* =====================================
   BOOK SECTION – GLASMORPHISMUS STYLE
===================================== */

.books-section {
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.book-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.55);
}

.book-bubble {
  position: absolute;
  top: -14px;
  left: 16px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-cover {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.book-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  color: #e5e7eb;
}

.book-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.55;
}

.book-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.book-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
/* =====================================
   BOOK CARDS – button always bottom
===================================== */

.book-card {
  position: relative;
  padding-bottom: 70px; /* Platz für Button */
  display: flex;
  flex-direction: column;
}

.book-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  margin: 0; /* kein Extra-Spacing */
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.book-card p {
  margin-bottom: 0.8rem;
}
.books-section .section-lead {
  margin-bottom: 1.4rem; /* oder 2rem, wenn du es luftiger willst */
}
.btn-hero {
  background: linear-gradient(90deg, #8c4bff, #3f8cff);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.15s ease-in-out;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(140, 75, 255, 0.3);
}
.hero-lead,
.section-intro-text,
.books-section h2,
.books-section p {
  color: #ffffff !important;
}
.why-this .container {
  max-width: 950px;
  margin: 0 auto;
}

.why-this h2,
.why-this p {
  color: white;
}
/* Zweite Bubble blau machen */
.hero-actions .btn.btn-ghost {
  background: linear-gradient(90deg, #a855f7, #3b82f6);
  color: #fff !important;
  border: none;
}
.section-centered {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.section-centered .section-body {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-top: 1.2rem;
}

.section-centered h2 {
  text-align: center;
}

#why-this h2 {
  margin-top: 3rem;
  margin-bottom: 1.2rem;
}

/* === ABSOLUTER MODE-FIX === */
.mode-btn.active,
.mode-btn.mode-active {
  background: linear-gradient(135deg, #3a8bff, #6aa6ff) !important;
  border-color: #6aa6ff !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow:
    0 0 12px rgba(80,140,255,0.9),
    0 0 28px rgba(60,110,255,0.5) !important;
}
/* =========================
   BOOK COVERS – einheitliche Größe
   ========================= */
.book-cover{
  width: 100%;
  height: 480px;           /* ggf. 400–460 nach Geschmack */
  object-fit: cover;       /* wichtig: füllt Fläche, “zoomt” weiße Ränder weg */
  object-position: center; 
  border-radius: 18px;     /* passend zum Card-Look */
  display: block;
}

