/*
Theme Name:  Limbus Publisher Theme
Theme URI:   https://github.com/limbus-publisher
Description: Maßgeschneidertes Theme für den Limbus Publisher Core. Typografie-fokussiert, minimalistisch. Inspiriert von Penguin Random House und Suhrkamp. Kein Parent-Theme.
Version:     1.0.0
Author:      Limbus Publisher
Text Domain: limbus-theme
Tags:        custom, minimalist, books, publishing
*/

/* ============================================================
   GLOBAL RESETS & BASE STYLES
   (Tailwind Preflight übernimmt den Rest via CDN)
   ============================================================ */

*,
*::before,
*::after {
      box-sizing: border-box;
}

html {
      scroll-behavior: smooth;
      -webkit-text-size-adjust: 100%;
}

/* ============================================================
   TYPOGRAFIE SYSTEM
   Google Fonts werden via functions.php per wp_enqueue geladen.
   - Inter:          UI, Navigation, Labels
   - Playfair Display: Headlines, Zitate, Klappentexte
   ============================================================ */

:root {
      --lpt-serif: 'Playfair Display', Georgia, serif;
      --lpt-sans: 'Inter', system-ui, -apple-system, sans-serif;

      /* =====================================================
         FARBPALETTE – Hell & Natürlich (Wasser / Salbei)
         Inspiriert vom Cover "Schatten über Velaran"
         ===================================================== */

      /* Hauptfarben */
      --lpt-black: #1e2c2f;
      /* Weiches Dunkelgrau-Türkis statt hartem Schwarz */
      --lpt-white: #f0f6f5;
      /* Zartes kühles Wasserblau-Grün statt reinem Weiß */

      /* Graustufen (jetzt alle mit sanftem Grün/Blau-Stich) */
      --lpt-gray-100: #e3efed;
      /* Sehr heller Salbei-Hintergrund für Karten etc. */
      --lpt-gray-200: #bcd4cf;
      /* Dezente Trennlinien, Borders */
      --lpt-gray-400: #6e9e97;
      /* Sekundärer Text, Labels, Meta-Infos */
      --lpt-gray-700: #2e5c58;
      /* Dunkler Fließtext (z.B. Subheadlines) */

      /* Primäre Akzentfarbe: Tiefes Ozean-Blaugrün */
      --lpt-accent: #1a4a5c;
      /* Für Buttons, Links, Hover-Effekte */

      /* Spacing (unverändert) */
      --lpt-nav-h: 72px;
      --lpt-max-w: 1280px;
      --lpt-content-w: 760px;

      /* Dynamic color from cover (JS sets this) */
      --lpt-cover-color: rgba(26, 74, 92, 0.06);
}

body {
      font-family: var(--lpt-sans);
      color: var(--lpt-black);
      background: var(--lpt-white);
      font-size: 16px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
}

/* ============================================================
   SHARED UTILITIES
   ============================================================ */

.lpt-container {
      width: 100%;
      max-width: var(--lpt-max-w);
      margin-inline: auto;
      padding-inline: clamp(1rem, 4vw, 3rem);
}

.lpt-serif {
      font-family: var(--lpt-serif);
}

.lpt-sans {
      font-family: var(--lpt-sans);
}

/* BUTTONS */
.lpt-btn {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      padding: .7rem 1.5rem;
      border-radius: 6px;
      font-family: var(--lpt-sans);
      font-size: .875rem;
      font-weight: 500;
      letter-spacing: .02em;
      text-decoration: none;
      cursor: pointer;
      transition: all .2s ease;
      border: none;
}

.lpt-btn-primary {
      background: var(--lpt-accent);
      color: #fff;
}

.lpt-btn-primary:hover {
      opacity: .88;
      transform: translateY(-1px);
}

.lpt-btn-secondary {
      background: transparent;
      color: var(--lpt-accent);
      border: 1.5px solid var(--lpt-gray-200);
}

.lpt-btn-secondary:hover {
      border-color: var(--lpt-accent);
      background: var(--lpt-gray-100);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.lpt-nav {
      position: sticky;
      top: 0;
      z-index: 100;
      height: var(--lpt-nav-h);
      background: rgba(250, 250, 249, .96);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--lpt-gray-200);
      display: flex;
      align-items: center;
}

.lpt-nav__inner {
      width: 100%;
      max-width: var(--lpt-max-w);
      margin-inline: auto;
      padding-inline: clamp(1rem, 4vw, 3rem);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
}

.lpt-nav__logo {
      font-family: var(--lpt-serif);
      font-size: 1.25rem;
      font-weight: 400;
      color: var(--lpt-black);
      text-decoration: none;
      letter-spacing: -.01em;
}

.lpt-nav__menu {
      display: flex;
      align-items: center;
      gap: 2rem;
      list-style: none;
      margin: 0;
      padding: 0;
}

.lpt-nav__menu a {
      font-size: .875rem;
      font-weight: 450;
      color: var(--lpt-gray-700);
      text-decoration: none;
      letter-spacing: .03em;
      text-transform: uppercase;
      transition: color .15s;
}

.lpt-nav__menu a:hover,
.lpt-nav__menu .current-menu-item a {
      color: var(--lpt-black);
}

.lpt-nav__search-btn {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--lpt-gray-700);
      padding: .4rem;
      display: flex;
      align-items: center;
      transition: color .15s;
}

.lpt-nav__search-btn:hover {
      color: var(--lpt-black);
}

@media (max-width: 768px) {
      .lpt-nav__menu {
            display: none;
      }
}

/* ============================================================
   BOOK CARDS (Katalog-Grid)
   ============================================================ */

.lpt-books-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 2.5rem 2rem;
}

.lpt-book-card {
      display: flex;
      flex-direction: column;
      gap: .75rem;
      text-decoration: none;
      color: inherit;
      group: true;
}

.lpt-book-card__cover {
      aspect-ratio: 2 / 3;
      border-radius: 4px;
      overflow: hidden;
      background: var(--lpt-gray-200);
      position: relative;
      box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
      transition: box-shadow .25s, transform .25s;
}

.lpt-book-card:hover .lpt-book-card__cover {
      box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
      transform: translateY(-4px);
}

.lpt-book-card__cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
}

.lpt-book-card__author {
      font-size: .75rem;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--lpt-gray-400);
}

.lpt-book-card__title {
      font-family: var(--lpt-serif);
      font-size: 1rem;
      font-weight: 400;
      line-height: 1.35;
      color: var(--lpt-black);
      margin: 0;
}

/* ============================================================
   SINGLE BOOK – HERO
   ============================================================ */

.lpt-book-hero {
      background: var(--lpt-cover-color);
      padding-block: 5rem;
      transition: background .6s ease;
}

.lpt-book-hero__inner {
      display: grid;
      grid-template-columns: 320px 1fr;
      gap: 4rem;
      align-items: start;
      max-width: var(--lpt-max-w);
      margin-inline: auto;
      padding-inline: clamp(1rem, 4vw, 3rem);
}

@media (max-width: 860px) {
      .lpt-book-hero__inner {
            grid-template-columns: 1fr;
            gap: 2rem;
      }

      .lpt-book-hero__cover {
            max-width: 240px;
            margin: 0 auto;
      }
}

.lpt-book-hero__cover {
      position: sticky;
      top: calc(var(--lpt-nav-h) + 2rem);
}

.lpt-book-hero__cover img {
      width: 100%;
      border-radius: 6px;
      box-shadow: 0 24px 64px rgba(0, 0, 0, .18);
}

.lpt-book-hero__label {
      font-size: .75rem;
      text-transform: uppercase;
      letter-spacing: .12em;
      color: var(--lpt-gray-400);
      margin-bottom: .5rem;
      display: block;
}

.lpt-book-hero__title {
      font-family: var(--lpt-serif);
      font-size: clamp(2rem, 4vw, 3.5rem);
      line-height: 1.1;
      font-weight: 400;
      margin: 0 0 .5rem;
}

.lpt-book-hero__subtitle {
      font-size: 1.125rem;
      color: var(--lpt-gray-700);
      margin: 0 0 1.5rem;
}

.lpt-book-hero__meta {
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
      margin-bottom: 2rem;
      padding-bottom: 2rem;
      border-bottom: 1px solid var(--lpt-gray-200);
}

.lpt-book-hero__meta-item {
      display: flex;
      flex-direction: column;
      gap: .15rem;
}

.lpt-book-hero__meta-label {
      font-size: .7rem;
      text-transform: uppercase;
      letter-spacing: .1em;
      color: var(--lpt-gray-400);
}

.lpt-book-hero__meta-value {
      font-size: .95rem;
      font-weight: 500;
}

.lpt-book-hero__ctas {
      display: flex;
      flex-wrap: wrap;
      gap: .75rem;
      margin-bottom: 2rem;
}

/* Klappentext */
.lpt-book-synopsis {
      font-family: var(--lpt-serif);
      font-size: 1.125rem;
      line-height: 1.8;
      color: var(--lpt-gray-700);
      margin-bottom: 2.5rem;
}

/* ============================================================
   STICKY COMMERCE BAR (erscheint nach Hero-Scroll)
   ============================================================ */

.lpt-sticky-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 90;
      background: rgba(15, 15, 15, .95);
      backdrop-filter: blur(16px);
      color: #fff;
      padding: .875rem clamp(1rem, 4vw, 3rem);
      display: flex;
      align-items: center;
      gap: 1.5rem;
      transform: translateY(100%);
      transition: transform .3s cubic-bezier(.4, 0, .2, 1);
      border-top: 1px solid rgba(255, 255, 255, .08);
}

.lpt-sticky-bar.lpt-sticky-bar--visible {
      transform: translateY(0);
}

.lpt-sticky-bar__cover {
      width: 36px;
      height: 52px;
      border-radius: 3px;
      object-fit: cover;
      flex-shrink: 0;
      opacity: .9;
}

.lpt-sticky-bar__info {
      flex: 1;
      min-width: 0;
}

.lpt-sticky-bar__title {
      font-family: var(--lpt-serif);
      font-size: .95rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
}

.lpt-sticky-bar__author {
      font-size: .75rem;
      opacity: .6;
}

.lpt-sticky-bar__links {
      display: flex;
      flex-wrap: wrap;
      gap: .5rem;
}

.lpt-sticky-bar__link {
      display: inline-flex;
      align-items: center;
      gap: .35rem;
      padding: .5rem 1rem;
      border-radius: 5px;
      font-size: .8rem;
      font-weight: 500;
      text-decoration: none;
      background: rgba(255, 255, 255, .12);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, .2);
      transition: background .15s;
}

.lpt-sticky-bar__link:hover {
      background: rgba(255, 255, 255, .22);
}

.lpt-sticky-bar__link--primary {
      background: #fff;
      color: #0f0f0f;
      border-color: #fff;
}

.lpt-sticky-bar__link--primary:hover {
      background: #f0ede8;
}

.lpt-sticky-bar__close {
      background: none;
      border: none;
      color: rgba(255, 255, 255, .5);
      cursor: pointer;
      padding: .25rem;
      font-size: 1.25rem;
      flex-shrink: 0;
      transition: color .15s;
}

.lpt-sticky-bar__close:hover {
      color: #fff;
}

/* ============================================================
   SOUNDTRACK SECTION
   ============================================================ */

.lpt-soundtrack-section {
      background: var(--lpt-accent);
      color: #fff;
      padding: 3rem clamp(1rem, 4vw, 3rem);
      margin-block: 3rem;
}

.lpt-soundtrack-section h3 {
      font-family: var(--lpt-serif);
      font-size: 1.25rem;
      font-weight: 400;
      margin: 0 0 1.25rem;
      opacity: .8;
      letter-spacing: .02em;
}

.lpt-soundtrack-section iframe {
      width: 100%;
      border: none;
      border-radius: 6px;
}

/* ============================================================
   REZENSIONS-ENGINE
   ============================================================ */

.lpt-reviews-section {
      padding-block: 4rem;
      border-top: 1px solid var(--lpt-gray-200);
}

.lpt-reviews-section h2 {
      font-family: var(--lpt-serif);
      font-size: 1.5rem;
      font-weight: 400;
      margin: 0 0 2.5rem;
}

/* ============================================================
   AUTHOR HERO
   ============================================================ */

.lpt-author-hero {
      position: relative;
      min-height: 60vh;
      display: flex;
      align-items: flex-end;
      overflow: hidden;
      background: var(--lpt-accent);
}

.lpt-author-hero__bg {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center top;
      opacity: .35;
}

.lpt-author-hero__content {
      position: relative;
      z-index: 1;
      color: #fff;
      padding: 5rem clamp(1rem, 4vw, 3rem) 3rem;
      max-width: var(--lpt-max-w);
      margin-inline: auto;
      width: 100%;
}

.lpt-author-hero__name {
      font-family: var(--lpt-serif);
      font-size: clamp(2.5rem, 6vw, 5rem);
      font-weight: 400;
      line-height: 1.05;
      margin: 0 0 1rem;
}

.lpt-author-hero__quote {
      font-family: var(--lpt-serif);
      font-size: clamp(1rem, 2vw, 1.375rem);
      font-style: italic;
      opacity: .75;
      max-width: 640px;
      line-height: 1.6;
      margin: 0;
}

/* ============================================================
   SEARCH (Meilisearch Wrapper)
   ============================================================ */

.lpt-search-bar {
      position: relative;
      max-width: 640px;
}

.lpt-search-bar input[type="search"] {
      width: 100%;
      padding: .875rem 3rem .875rem 1.25rem;
      border: 1.5px solid var(--lpt-gray-200);
      border-radius: 8px;
      font-family: var(--lpt-sans);
      font-size: 1rem;
      background: #fff;
      color: var(--lpt-black);
      outline: none;
      transition: border-color .2s;
}

.lpt-search-bar input:focus {
      border-color: var(--lpt-accent);
}

.lpt-search-bar__icon {
      position: absolute;
      right: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--lpt-gray-400);
      pointer-events: none;
}

/* Filter Pills */
.lpt-filter-pills {
      display: flex;
      flex-wrap: wrap;
      gap: .5rem;
}

.lpt-filter-pill {
      padding: .35rem .9rem;
      border-radius: 20px;
      font-size: .8rem;
      font-weight: 500;
      border: 1.5px solid var(--lpt-gray-200);
      background: transparent;
      color: var(--lpt-gray-700);
      cursor: pointer;
      transition: all .15s;
      text-decoration: none;
}

.lpt-filter-pill:hover,
.lpt-filter-pill.lpt-filter-pill--active {
      border-color: var(--lpt-accent);
      background: var(--lpt-accent);
      color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */

.lpt-footer {
      background: var(--lpt-black);
      color: rgba(255, 255, 255, .55);
      padding-block: 3rem;
      margin-top: 6rem;
}

.lpt-footer__inner {
      max-width: var(--lpt-max-w);
      margin-inline: auto;
      padding-inline: clamp(1rem, 4vw, 3rem);
      display: grid;
      grid-template-columns: 1.5fr repeat(3, 1fr);
      gap: 2.5rem;
}

@media (max-width: 768px) {
      .lpt-footer__inner {
            grid-template-columns: 1fr 1fr;
      }
}

.lpt-footer__logo {
      font-family: var(--lpt-serif);
      font-size: 1.25rem;
      color: #fff;
      text-decoration: none;
      display: block;
      margin-bottom: .5rem;
}

.lpt-footer__tagline {
      font-size: .8rem;
      line-height: 1.6;
}

.lpt-footer__col h4 {
      font-size: .7rem;
      text-transform: uppercase;
      letter-spacing: .12em;
      color: rgba(255, 255, 255, .35);
      margin: 0 0 1rem;
}

.lpt-footer__col ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: .5rem;
}

.lpt-footer__col ul a {
      color: rgba(255, 255, 255, .80);
      text-decoration: none;
      font-size: .875rem;
      transition: color .15s;
}

.lpt-footer__col ul a:hover {
      color: #fff;
}

.lpt-footer__bottom {
      margin-top: 3rem;
      padding-top: 1.5rem;
      border-top: 1px solid rgba(255, 255, 255, .08);
      text-align: center;
      font-size: .75rem;
}

/* ============================================================
   ANIMATIONS & TRANSITIONS
   ============================================================ */

@keyframes lpt-fade-up {
      from {
            opacity: 0;
            transform: translateY(24px);
      }

      to {
            opacity: 1;
            transform: translateY(0);
      }
}

.lpt-animate-fade-up {
      animation: lpt-fade-up .6s ease both;
}

/* ============================================================
   PRINT STYLES (für Sales Kit / Pressematppe)
   ============================================================ */
@media print {

      .lpt-nav,
      .lpt-sticky-bar,
      .lpt-footer {
            display: none !important;
      }
}