/* assets/css/style.css */

@font-face {
  font-family: 'AWConqueror-Std-Didot-Light';
  src: url('../../Fonts/conqueror/AWConqueror-Std-Didot-Light.eot');
  src: url('../../Fonts/conqueror/AWConqueror-Std-Didot-Light.eot?#iefix') format('embedded-opentype'),
       url('../../Fonts/conqueror/AWConqueror-Std-Didot-Light.woff2') format('woff2'),
       url('../../Fonts/conqueror/AWConqueror-Std-Didot-Light.woff') format('woff'),
       url('../../Fonts/conqueror/AWConqueror-Std-Didot-Light.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
	font-display: swap;
}
@font-face {
  font-family: 'AWConqueror-Std-Didot';
  src: url('../../Fonts/conqueror/AWConqueror-Std-Didot.eot');
  src: url('../../Fonts/conqueror/AWConqueror-Std-Didot.eot?#iefix') format('embedded-opentype'),
       url('../../Fonts/conqueror/AWConqueror-Std-Didot.woff2') format('woff2'),
       url('../../Fonts/conqueror/AWConqueror-Std-Didot.woff') format('woff'),
       url('../../Fonts/conqueror/AWConqueror-Std-Didot.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
	font-display: swap;
}

/* Grundlayout */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6em;
  /* Helles, elegantes Syntera-Creme */
  background: linear-gradient(180deg, #f8f4ec 0%, #f4efe7 100%);
  color: #3e3933;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'AWConqueror-Std-Didot-Light', sans-serif;
  margin: 0 0 10px;
}

/* Elegante dunkle Titel wie im Syntera Archiv */
main h1, main h2 {
  color: #2f2a25;
  font-weight: normal;
  padding-bottom: 0.1em; 
  line-height: 1.2em;
  margin-bottom: 15px;
}
main h2 {
  font-size: 32px;
  border-bottom: 1px solid rgba(182, 132, 51, 0.2);
  padding-bottom: 10px;
  margin-bottom: 25px;
  display: inline-block;
}

/* Header / Branding */
header {
  /* Dunkler Glas-Effekt passend zum Syntera-Universum */
  background: rgba(28, 23, 19, 0.85); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(182, 132, 51, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.branding h1 {
  font-size: 30px;
  margin-bottom: 5px;
  color: #333;
}

.branding .tagline {
  font-size: 16px;
  color: #333;
}

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

.branding img {
  flex-shrink: 0;
}

.branding .tagline {
  font-size: 16px;
  color: #333;
  margin: 0;
		line-height: 1.3em;

}


/* Links */
a {
  text-decoration: none;
  color: #4b2e2e; 
}

/* Main / Layout */
main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  margin-bottom: 60px;
}

/* Line Tabs (Dark / Velvet) */
.archive-line-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(220, 210, 195, 0.35);
  border: 1px solid rgba(182, 132, 51, 0.15);
  box-shadow: inset 0 2px 6px rgba(46, 37, 23, 0.06);
}

.archive-line-tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 6px 24px 6px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.archive-line-tab:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(46, 37, 23, 0.05);
}

.archive-line-tab.is-active {
  background: linear-gradient(135deg, #2b241c 0%, #1a1510 100%);
  border: 1px solid #4a3e30;
  box-shadow: 0 10px 20px rgba(26, 21, 16, 0.25);
}

.archive-line-tab-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #8c7653;
  font-family: 'AWConqueror-Std-Didot-Light', 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.archive-line-tab.is-active .archive-line-tab-orb {
  background: linear-gradient(180deg, #ffe5a6 0%, #c9b077 52%, #937b48 100%);
  color: #1a1510;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 14px rgba(182,132,51,0.25);
}

.archive-line-tab-copy {
  display: grid;
  gap: 3px;
  text-align: left;
}

.archive-line-tab-copy strong {
  color: #5c554c;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: bold;
  transition: color 0.3s ease;
}
.archive-line-tab-copy span {
  color: #8a8177;
  font-size: 13px;
  line-height: 1.25;
  transition: color 0.3s ease;
}

.archive-line-tab.is-active .archive-line-tab-copy strong {
  color: #f5dda6;
}
.archive-line-tab.is-active .archive-line-tab-copy span {
  color: rgba(248, 243, 234, 0.65);
}

@media (max-width: 780px) {
  .archive-line-tabs {
    flex-direction: row;
    border-radius: 24px;
    width: 100%;
    box-sizing: border-box;
  }
  .archive-line-tab {
    flex: 1;
    width: auto;
    padding: 4px 8px 4px 4px;
    gap: 6px;
  }
  .archive-line-tab-orb {
    width: 32px;
    height: 32px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .archive-line-tab-copy strong {
    font-size: 12px;
  }
  .archive-line-tab-copy span {
    font-size: 10px;
  }
}

/* Book Grid + Carousel */
.book-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 30px;
}

.book-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 10px 30px 10px;
  margin: 0 -10px; /* Kompensiert das Padding für schönen Anschnitt */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.book-carousel::-webkit-scrollbar {
  display: none;
}

/* --- NEU: Desktop Carousel Navigation --- */
.carousel-wrapper {
  position: relative;
  display: block;
}

.carousel-nav {
  position: absolute;
  top: calc(50% - 20px);
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(182, 132, 51, 0.3);
  color: #4b2e2e;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s ease, background 0.2s ease;
  pointer-events: none;
}

.carousel-wrapper:hover .carousel-nav {
  opacity: 1;
  pointer-events: auto;
}

.carousel-nav:hover {
  background: #d6af67;
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav.prev {
  left: -15px;
}

.carousel-nav.next {
  right: -15px;
}

/* Nur auf Geräten ausführen, die "Hover" unterstützen (Web/Desktop). Auf Handy/Touch unsichtbar. */
@media (hover: none), (pointer: coarse) {
  .carousel-nav {
    display: none !important;
  }
}

/* --- Neu: Cover-Only Book Cards (Buchrücken-Effekt) --- */
.cover-only-card {
  flex: 0 0 auto;
  width: 140px;
  scroll-snap-align: start;
  cursor: pointer;
  border-radius: 4px 10px 10px 4px;
  position: relative;
  box-shadow: 4px 5px 10px rgba(27, 23, 18, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background-color: #eaddc7;
}
@media (min-width: 768px) {
  .cover-only-card {
    width: 180px;
  }
}
.cover-only-card:hover {
  transform: translateY(-4px);
  box-shadow: 4px 5px 10px rgba(27, 23, 18, 0.20);
}

.cover-only-card img {
  width: 100%;
  aspect-ratio: 1 / 1.5;
  object-fit: cover;
  border-radius: 4px 10px 10px 4px;
  display: block;
}

/* 3D Buch-Effekt (Buchrücken links, subtiler Glanz) */
.cover-only-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  border-radius: 4px 10px 10px 4px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.4) 2%,
    rgba(0, 0, 0, 0.15) 4%,
    rgba(0, 0, 0, 0.0) 6%,
    rgba(0, 0, 0, 0.0) 97%,
    rgba(0, 0, 0, 0.08) 100%
  );
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 3;
}

/* Dunkler Verlauf unten (nur wenn Fortschrittsbalken da ist, für besseren Kontrast) */
.cover-only-card.has-progress::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  border-radius: 0 0 10px 4px;
  z-index: 1;
  pointer-events: none;
}

/* Fortschrittsbalken in "Deine Bücher" */
.card-progress-container {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  z-index: 2;
}
.card-progress-bar {
  height: 100%;
  background: #d6af67; /* Syntera Gold */
  width: 0%;
  border-radius: 2px;
}
.card-progress-text {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 11px;
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
  z-index: 2;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}



.
d {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
/* --- Syntera Archive Book Cards --- */
.archive-book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 300px;
  max-width: 400px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(21, 21, 21, 0.04);
  box-shadow: 0 18px 36px rgba(27, 23, 18, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.archive-book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(27, 23, 18, 0.16);
  border-color: rgba(182, 132, 51, 0.18);
}
.archive-book-cover {
  position: relative;
  overflow: hidden;
}
.archive-book-cover img {
  width: 100%;
  aspect-ratio: 1.2 / 1.0;
  object-fit: cover;
  object-position: 50% -50px;
  transition: transform 0.32s ease;
  display: block;
}
.archive-book-card:hover .archive-book-cover img {
  transform: scale(1.04);
}
.archive-book-badge-row {
  position: absolute;
  left: 16px;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.archive-badge, .archive-result-pill {
  display: inline-block;
  vertical-align: middle;
  min-height: 22px;
  padding: 5px 8px 3px;
  border-radius: 999px;
  background: rgba(10, 15, 23, 0.78);
  border: 1px solid rgba(236, 212, 164, 0.26);
  color: #fff8eb;
  font-family: 'Open Sans', sans-serif;
  font-size: 9px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
	line-height: 2.5em;
}
.archive-result-pill {
  background: rgba(17, 23, 34, 0.08);
  border: 1px solid rgba(17, 23, 34, 0.08);
  color: #67563b;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.archive-book-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 22px 20px 20px;
}
.archive-book-title {
  margin: 0 0 10px;
  color: #2e2a26;
  font-family: 'AWConqueror-Std-Didot-Light', sans-serif;
  font-size: 26px;
  line-height: 1.16;
  font-weight: 400;
}
.archive-book-text {
  margin: 0 0 16px;
  color: #655d54;
  font-size: 16px;
  line-height: 1.58;
}
.archive-book-meta, .book-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.archive-book-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(182, 132, 51, 0.08);
  border: 1px solid rgba(182, 132, 51, 0.14);
  color: #6d5d44;
  font-size: 10px;
  font-weight: bold;
  line-height: 1.2;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.archive-book-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.archive-book-actions .btn {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  padding: 12px 10px;
}

/* --- Syntera Dossier Detail View --- */
.book-detail-view {
  display: grid;
  grid-template-columns: minmax(240px, 0.92fr) 1.08fr;
  gap: 32px;
  align-items: start;
  text-align: left;
}
.book-detail-cover {
  border-radius: 20px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.book-detail-cover img {
  width: 100%;
  display: block;
}
.book-detail-copy {
  display: grid;
  gap: 16px;
}
.book-detail-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.book-detail-kicker {
  margin: 0 0 8px;
  color: var(--theme-kicker, #a2752b);
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
#dossier-title {
  color: var(--theme-title, inherit);
}
#dossier-detailtext p {
  margin: 0 0 16px;
  color: var(--theme-text, #5d554d);
  font-size: 16px;
  line-height: 1.66;
}

/* --- Dossier Accordion --- */
.book-blurb-accordion {
  position: relative;
  margin: 8px 0 2px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--theme-accordion-bg, radial-gradient(circle at top left, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 38%), linear-gradient(180deg, rgba(255, 249, 240, 0.98) 0%, rgba(244, 234, 220, 0.98) 100%));
  border: 1px solid var(--theme-accordion-border, rgba(182, 132, 51, 0.18));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.15);
}
.book-blurb-accordion::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  pointer-events: none;
}
.book-blurb-summary {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.22s ease;
}
.book-blurb-summary::-webkit-details-marker { display: none; }
.book-blurb-summary:hover { background: rgba(182, 132, 51, 0.06); }
.book-blurb-summary-label {
  display: block;
  color: var(--theme-title, #2f2a25);
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.book-blurb-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--theme-close-bg, rgba(255, 255, 255, 0.78));
  border: 1px solid var(--theme-border, rgba(182, 132, 51, 0.18));
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.15);
  color: var(--theme-close-color, #6c5835);
}
.book-blurb-summary-icon svg {
  width: 20px;
  height: 20px;
  transition: transform 0.26s ease;
}
.book-blurb-accordion[open] .book-blurb-summary-icon svg {
  transform: rotate(180deg);
}
.book-blurb-content {
  position: relative;
  z-index: 1;
  padding: 0 20px 20px;
}
.book-blurb-content::before {
  content: '';
  display: block;
  height: 1px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--theme-border, rgba(182, 132, 51, 0.28)) 0%, transparent 100%);
}
.book-blurb-content p {
  margin: 0 0 12px;
  color: var(--theme-text, #5d554d);
  line-height: 1.66;
}

/* --- Schliessen-Button (Dossier) - Desktop --- */
#dossier-close {
  position: absolute !important;
  top: 24px !important;
  right: 24px !important;
  z-index: 1000 !important;
  background: var(--theme-close-bg, rgba(255, 255, 255, 0.9));
  color: var(--theme-close-color, #6c5835); 
  border: 1px solid var(--theme-border, rgba(182, 132, 51, 0.2));
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(46, 37, 23, 0.08);
  cursor: pointer;
  transition: all 0.25s ease;
}
#dossier-close:hover {
  background: var(--theme-close-hover-bg, #fff);
  color: var(--theme-close-hover-color, #1a1510);
  border-color: var(--theme-border-hover, rgba(182, 132, 51, 0.5));
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}
#dossier-close:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(46, 37, 23, 0.1);
}

@media (max-width: 780px) {
  .book-detail-view { grid-template-columns: 1fr; }
  .book-detail-cover { max-width: 190px; margin: 0 auto; } /* Cover etwas kleiner, damit der Button hochrutscht */
  
  /* Mobile: Dossier Modal Fullscreen wie eine eigene Seite */
  #dossier-modal {
    padding: 0 !important;
  }
  #dossier-modal .modal-content {
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    /* Mehr Platz nach unten für Browser-Leisten & Home-Balken */
    padding: 45px 20px calc(40px + env(safe-area-inset-bottom)) !important; 
    box-sizing: border-box !important; /* GANZ WICHTIG: Padding ändert jetzt nicht mehr die Gesamthöhe */
    border: none !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* X-Button fixiert am Screen-Rand auf Mobile */
  #dossier-close {
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  }
}
.book-card .buttons {
  display: flex;
  gap: 10px;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  background: linear-gradient(180deg, #ffe5a6 0%, #c9b077 52%, #937b48 100%);
  color: #fff8eb;
  border-radius: 12px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 700 !important;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.08em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  border: 1px solid rgba(135, 98, 35, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 22px rgba(124, 85, 21, 0.22);
  cursor: pointer;
  text-align: center;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 26px rgba(71, 56, 30, 0.35);
  filter: brightness(1.02);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(135, 98, 35, 0.22);
  color: #614f35;
  box-shadow: 0 12px 22px rgba(44, 35, 20, 0.08);
}
.btn.ghost:hover {
  background: #fff;
  color: #4d3d26;
  border-color: rgba(135, 98, 35, 0.4);
}

/* Footer */
footer {
  background: transparent;
  border-top: 1px solid rgba(182, 132, 51, 0.2);
  text-align: center;
  padding: 30px 20px;
  font-size: 15px;
  color: #655d54;
  margin-top: 40px;
}
footer a {
  color: #9d7128;
  transition: color 0.2s ease;
}
footer a:hover {
  color: #7b5a22;
}

/* --- PWA-Hinweis (Edles Redesign) --- */
#pwa-hint-outer {
  display: none; /* Wird per JS gesteuert */
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 340px;
  /* Dunkler, eleganter Glas-Effekt als Kontrast zum Cookie-Banner */
  background: rgba(28, 23, 19, 0.92);
  border: 1px solid rgba(182, 132, 51, 0.3);
  box-shadow: 0 16px 36px rgba(27, 23, 18, 0.25);
  border-radius: 16px;
  padding: 20px 24px;
  z-index: 9999;
  color: #f8f4ec;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

#pwa-hint-inner {
  position: relative;
  font-size: 14px;
  line-height: 1.5;
}

#pwa-hint-inner strong {
  color: #c9b077;
  font-family: 'AWConqueror-Std-Didot-Light', sans-serif;
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

#pwa-hint-inner em {
  color: #ffe5a6;
  font-style: normal;
  font-weight: 600;
}

#pwa-close-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(182, 132, 51, 0.2);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: #c9b077;
  cursor: pointer;
  transition: all 0.2s ease;
}

#pwa-close-btn:hover {
  background: #c9b077;
  color: #1c1713;
  transform: scale(1.1);
}

#pwa-note-android #pwa-install-btn {
  margin-top: 12px;
  width: 100%;
}

#pwa-note-desktop {
  display: none;
}

@media (min-width: 769px) {
  #pwa-note-desktop {
    display: block;
  }
}

/* Auf Mobile schieben wir den Hinweis nach oben, weg vom Cookie Banner */
@media (max-width: 600px) {
  #pwa-hint-outer {
    bottom: auto;
    top: 20px;
    right: 16px;
    left: 16px;
    max-width: none;
    animation: slideInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* =========================================
   NEU: Elegante Lese-Insights
   ========================================= */

/* --- Entfernt die gigantischen Desktop-Leerräume --- */
#my-library-section {
  margin-bottom: 0 !important;
}
#my-library-books {
  padding-bottom: 20px !important; /* Nur so viel, dass der Buch-Schatten beim Hovern nicht abgeschnitten wird */
}
#reading-insights-section {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}
/* --------------------------------------------------- */

.insights-container {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(250px, 1.5fr);
  gap: 24px;
  align-items: stretch;
}

.insight-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(182, 132, 51, 0.15);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(46, 37, 23, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(182, 132, 51, 0.08);
  border-color: rgba(182, 132, 51, 0.25);
}

/* Daily Goal Card */
.goal-card {
  align-items: center;
  text-align: center;
  justify-content: center;
}

.goal-card h3 {
  font-family: 'AWConqueror-Std-Didot-Light', serif;
  font-size: 22px;
  color: #2f2a25;
  margin: 0 0 4px 0;
}

.insight-subtitle {
  font-size: 13px;
  color: #8a8177;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 20px 0;
}

.goal-progress-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 15px auto;
}

.goal-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(182, 132, 51, 0.1);
  stroke-width: 2.5;
}

.ring-fill {
  fill: none;
  stroke: #d6af67;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease-out;
}

.goal-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'AWConqueror-Std-Didot-Light', serif;
  font-size: 36px;
  color: #2f2a25;
  line-height: 1;
}

.insight-status {
  font-size: 14px;
  color: #9d7128;
  font-weight: 600;
  margin: 0;
}

/* Stats Card (List) */
.stats-card {
  justify-content: center;
  gap: 20px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(182, 132, 51, 0.08);
  color: #9d7128;
}

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

.stat-text {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: 'AWConqueror-Std-Didot-Light', serif;
  font-size: 24px;
  color: #2f2a25;
  line-height: 1.1;
}

.stat-lbl {
  font-size: 12px;
  color: #8a8177;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

@media (max-width: 650px) {
  .insights-container {
    grid-template-columns: 1fr;
  }
  .goal-progress-wrapper {
    width: 90px;
    height: 90px;
  }
  .goal-center-text {
    font-size: 30px;
  }
}
/* --- Cookie Banner --- */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(182, 132, 51, 0.18);
  box-shadow: 0 16px 36px rgba(27, 23, 18, 0.15);
  border-radius: 16px;
  padding: 22px;
  z-index: 9998;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}

#cookie-banner p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #5d554d;
}

#cookie-banner a {
  color: #9d7128;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

#cookie-banner a:hover {
  color: #7b5a22;
}

#cookie-banner .cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#cookie-banner .btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 12px;
  border-radius: 10px;
  min-width: 120px;
}

@media (max-width: 600px) {
  #cookie-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
    padding: 18px;
  }
  
  #cookie-banner .cookie-buttons {
    flex-direction: column;
  }
}

/* =========================================================
   NEU: Autorenprofil (Daten von Syntera Realms)
========================================================= */
.theme-autor-light { 
  background: linear-gradient(180deg, #fcfaf7 0%, #f3eee5 100%); 
  border-color: #d6af67; 
  box-shadow: 0 32px 80px rgba(18, 14, 10, 0.3); 
}
.theme-autor-light .expose-display-title { color: #2c251f; font-family: 'AWConqueror-Std-Didot-Light', serif; letter-spacing: -0.02em; font-size: 32px; margin: 10px 0; }
.theme-autor-light .expose-lead { color: #5a4f44; font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
.theme-autor-light .expose-section-title { color: #362e27; font-size: 22px; margin: 0 0 10px; font-family: 'AWConqueror-Std-Didot-Light', serif; }
.theme-autor-light p { color: #5a4f44; font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
.theme-autor-light strong { color: #2c251f; }
.theme-autor-light .expose-kicker, .theme-autor-light .expose-section-kicker { color: #c49a4f; font-weight: bold; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 8px; }

.theme-autor-light .expose-hero-split { display: grid; grid-template-columns: 1fr 260px; gap: 20px; align-items: center; }
.theme-autor-light .expose-hero-split > div:first-child { background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(214, 175, 103, 0.3); box-shadow: 0 16px 28px rgba(33, 51, 43, 0.06); padding: 20px; border-radius: 16px; }

.theme-autor-light .expose-cover-polaroid { background: #fff; border: 8px solid #fff; border-bottom-width: 50px; border-radius: 4px; box-shadow: 0 16px 32px rgba(44, 37, 31, 0.15), inset 0 0 0 1px rgba(0,0,0,0.05); transform: rotate(2deg); transition: transform 0.4s ease, box-shadow 0.4s ease; margin: 10px; aspect-ratio: 3 / 4; position: relative; }
.theme-autor-light .expose-cover-polaroid:hover { transform: rotate(0deg) scale(1.02); box-shadow: 0 20px 40px rgba(44, 37, 31, 0.2); }
.theme-autor-light .expose-cover-polaroid img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; display: block; }
.theme-autor-light .expose-signature { position: absolute; bottom: -36px; left: 0; right: 0; text-align: center; font-family: 'Segoe Print', 'Caveat', 'Kalam', 'Bradley Hand', cursive; line-height: 0.85; font-size: 20px; color: #173482; opacity: 0.85; pointer-events: none; }
.theme-autor-light .expose-signature span { font-size: 12px; opacity: 0.8; }
.theme-autor-light .expose-signature .strike { text-decoration: line-through; }

.theme-autor-light .expose-signature-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.theme-autor-light .expose-fact-card, .theme-autor-light .expose-editorial-card { background: #fff; border: 1px solid rgba(214, 175, 103, 0.25); box-shadow: 0 8px 20px rgba(44, 37, 31, 0.05); border-radius: 12px; padding: 20px; }
.theme-autor-light .expose-fact-card { padding: 12px 0; border: none; border-top: 1px solid rgba(214, 175, 103, 0.2); border-radius: 0; box-shadow: none; background: transparent; }
.theme-autor-light .expose-fact-card strong { font-size: 18px; display: block; margin-bottom: 4px; }
.theme-autor-light .expose-fact-card span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: bold; color: #8a7a66; }

.theme-autor-light .autor-editorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }

.theme-autor-light .expose-divider { margin: 20px 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(214, 175, 103, 0.4), transparent); }

.theme-autor-light .expose-quote-band { position: relative; background: linear-gradient(135deg, #2c251f 0%, #1a1510 100%); border: 1px solid #4a4138; box-shadow: 0 16px 30px rgba(26, 21, 16, 0.25); color: #f4eee3; padding: 20px; border-radius: 12px; margin-top: 16px; }
.theme-autor-light .expose-quote-band h4 { color: #fff; }
.theme-autor-light .expose-quote-band p { color: #f4eee3 !important; }

@media (max-width: 1024px) {
  .theme-autor-light .expose-hero-split { grid-template-columns: 1fr 220px; }
}
@media (max-width: 780px) {
  .theme-autor-light .expose-hero-split, .theme-autor-light .autor-editorial-grid { grid-template-columns: 1fr; }
  .theme-autor-light .expose-cover-polaroid { max-width: 240px; margin: 20px auto; border-width: 6px; border-bottom-width: 45px; }
  .theme-autor-light .expose-signature { bottom: -34px; font-size: 20px; }
  .theme-autor-light .expose-signature-facts { grid-template-columns: 1fr; }
}