:root { --navy:#14213d; --indigo:#2b3a8c; --violet:#5b2a86; --gold:#fca311; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color:#2a2f3a; }
.serif { font-family: Georgia, 'Times New Roman', serif; }
section[id], header[id] { scroll-margin-top: 64px; }
.py-6 { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.bg-soft { background:#f5f6fb; }

/* Navigation */
#mainNav { transition: background .3s, box-shadow .3s; background: transparent; }
#mainNav.scrolled { background: rgba(20,33,61,.97); box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.brand { font-family: Georgia, 'Times New Roman', serif; font-weight:700; }

/* Hero */
.hero { position:relative; min-height:100vh; display:flex; align-items:center; padding:110px 0 90px; overflow:hidden;
  background: radial-gradient(circle at 80% 20%, rgba(91,42,134,.55), transparent 55%),
              linear-gradient(135deg, var(--navy) 0%, var(--indigo) 100%); }
.hero.has-bg::before { content:""; position:absolute; inset:0; background: var(--hero-bg) center/cover no-repeat; }
.hero.has-bg::after  { content:""; position:absolute; inset:0; background: linear-gradient(135deg, rgba(20,33,61,.88), rgba(43,58,140,.78)); }
.hero > .container { z-index:1; }
.hero-badge { background: rgba(252,163,17,.18); color: var(--gold); border:1px solid rgba(252,163,17,.5);
  font-weight:500; letter-spacing:.06em; text-transform:uppercase; padding:.55rem 1rem; border-radius:50rem; }
.stars { color: var(--gold); letter-spacing:2px; }
.book-cover { max-height:520px; border-radius:.4rem .8rem .8rem .4rem;
  box-shadow: -8px 0 0 rgba(0,0,0,.25) inset, 0 30px 60px rgba(0,0,0,.5);
  transform: perspective(1200px) rotateY(-14deg); transition: transform .5s; }
.book-cover:hover { transform: perspective(1200px) rotateY(0deg) scale(1.03); }
.book-placeholder { display:inline-flex; flex-direction:column; align-items:center; justify-content:center;
  width:270px; height:400px; border:2px dashed rgba(255,255,255,.55); border-radius:.6rem; color:#fff; text-align:center; }
.scroll-down { position:absolute; bottom:24px; left:50%; transform:translateX(-50%); color:#fff; opacity:.7; font-size:1.4rem;
  animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform:translate(-50%,0);} 50% { transform:translate(-50%,8px);} }

/* Fakten */
.facts { padding:2.5rem 0; background:#fff; box-shadow: 0 6px 24px rgba(20,33,61,.08); position:relative; z-index:2; }
.fact-value { font-family: Georgia, 'Times New Roman', serif; font-size:2.4rem; font-weight:700; color: var(--indigo); line-height:1.1; }

/* Texte */
.kicker { color: var(--violet); text-transform:uppercase; letter-spacing:.14em; font-weight:700; font-size:.8rem; margin-bottom:.6rem; }

/* Highlights */
.icon-circle { width:72px; height:72px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:1.6rem; color:#fff; background: linear-gradient(135deg, var(--indigo), var(--violet)); }
.hover-lift { transition: transform .25s, box-shadow .25s; }
.hover-lift:hover { transform: translateY(-6px); }

/* Akkordeon */
.accordion-button:not(.collapsed) { color: var(--indigo); background:#eef0fb; box-shadow:none; }
.accordion-button { font-weight:500; }

/* Stimmen */
.bg-dark-grad { background: linear-gradient(135deg, var(--navy), #2a1b4d); }
.testimonial { background: rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14); border-radius:1rem; padding:2rem; }
.testimonial .fa-quote-left { color: var(--gold); font-size:1.6rem; }
.testimonial blockquote { font-size:1.1rem; font-weight:300; }

/* Autor */
.author-photo { width:260px; height:260px; border-radius:50%; object-fit:cover; max-width:100%; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--violet), var(--indigo)); }

@media (max-width: 991px) {
  #mainNav { background: rgba(20,33,61,.97); }
  .book-cover { transform:none; max-height:380px; }
  .hero { text-align:center; }
  .hero .d-flex { justify-content:center; }
}
@media (prefers-reduced-motion: reduce) { .scroll-down { animation:none; } html { scroll-behavior:auto; } }

.login-bg { background: linear-gradient(135deg, var(--navy), var(--indigo)); }

/* Bildformate fest, damit nichts verzerrt */
.about-img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.book-cover { aspect-ratio:3/4; object-fit:cover; }
.slot-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  border:2px dashed #aab; color:#778; background:#f1f2f8; }
.author-photo.slot-empty { border-radius:50%; }

/* Bearbeitungsmodus */
.pre-line { white-space: pre-line; }
.hero.has-bg::before { background-position: var(--hero-bg-pos, center); }
.edit-btn { position:absolute; top:8px; right:8px; z-index:60; height:30px; min-width:30px; padding:0 8px; border:0; border-radius:50rem;
  background:var(--gold); color:#14213d; font-size:.75rem; box-shadow:0 2px 8px rgba(0,0,0,.35); cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem; opacity:.9; transition: transform .15s, opacity .15s; }
.edit-btn:hover { transform: scale(1.12); opacity:1; }
.edit-btn span { font-weight:600; }
.edit-btn.out { top:-12px; right:-12px; }
.edit-btn.pill-top { top:84px; right:16px; height:34px; }
.edit-btn.in-accordion { top:12px; right:56px; }
.is-admin .editable:hover, .is-admin .editable.editing { outline:2px dashed rgba(252,163,17,.9); outline-offset:4px; border-radius:.5rem; }
.is-admin [data-live]:empty { display:inline-block; min-width:4ch; min-height:1.1em; background:rgba(252,163,17,.25); border-radius:.25rem; }
.admin-bar { position:fixed; left:50%; bottom:16px; transform:translateX(-50%); z-index:1100; background:#14213d; color:#fff;
  padding:.6rem 1.2rem; border-radius:50rem; box-shadow:0 6px 20px rgba(0,0,0,.4); font-size:.9rem; white-space:nowrap; }
.admin-bar a { color:var(--gold); text-decoration:underline; }

/* Baukasten: Inline-Bearbeitung */
body { transition: none; }
.edit-btn { height:26px; min-width:26px; padding:0 7px; font-size:.7rem; top:4px; right:4px; }
.edit-btn.out { top:-11px; right:-11px; }
.is-editing .edit-btn:not([style*="hidden"]) { opacity:.45; }
.inline-edit { outline:2px solid var(--gold); outline-offset:3px; border-radius:.25rem; background:rgba(252,163,17,.14); cursor:text; white-space:pre-wrap; min-width:3ch; }
.text-white .inline-edit, .cta .inline-edit, .bg-dark-grad .inline-edit { background:rgba(255,255,255,.14); }
.edit-pop { position:fixed; z-index:1300; width:min(92vw, 360px); max-height:70vh; overflow:auto; background:#fff; color:#2a2f3a;
  border-radius:.9rem; box-shadow:0 10px 40px rgba(0,0,0,.35); border:1px solid #e3e6f0; padding:.8rem .9rem; font-size:.9rem; }
.edit-pop-title { font-weight:700; font-size:.85rem; color:var(--indigo); margin-bottom:.4rem; }
.edit-pop-fields:not(:has(*)) , .edit-pop-fields form:empty { display:none; }
.edit-pop-fields .mb-4 { margin-bottom:.7rem !important; }
.edit-pop-fields .form-label { font-size:.8rem; margin-bottom:.15rem; }
.edit-pop-actions { display:flex; gap:.5rem; margin-top:.6rem; }
.save-toast { position:fixed; left:50%; bottom:24px; transform:translate(-50%,20px); opacity:0; pointer-events:none; z-index:1400;
  background:#1a7f4b; color:#fff; padding:.7rem 1.4rem; border-radius:50rem; box-shadow:0 6px 20px rgba(0,0,0,.3); transition: all .25s; }
.save-toast.show { opacity:1; transform:translate(-50%,0); }
