/* Startseite „Bücherregal“ – Impressum und Datenschutz nutzen weiter style.css */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-500-normal.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-800-normal.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root { --green: #1f5e5b; --green-d: #174a48; --deep: #0f2e2d; --niche: #123b39; --gold: #f2b632; --cream: #fff6e6;
  --mint: #b8d3cf; --birch: #efe2c8; --birch-d: #cdb48c; --ch: 205px; --gap: 28px; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { color: var(--cream); font: 600 15px/1.55 Nunito, system-ui, sans-serif; overflow-x: hidden; background-color: var(--deep);
  background-image: radial-gradient(ellipse 80% 40% at 50% 0, rgba(242,182,50,.10), transparent 70%),
    linear-gradient(170deg, var(--green) 0%, var(--green-d) 35%, var(--deep) 100%);
  background-attachment: fixed; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { font-family: Fraunces, Georgia, serif; margin: 0; font-weight: 600; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf */
.head { max-width: 1120px; margin: auto; padding: 26px 22px 0; }
.brand { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo img { width: 58px; height: 58px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,246,230,.25); }
.logo h1 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.05; }
.logo h1 i { color: var(--gold); font-weight: 500; }
.logo small { display: block; color: var(--mint); font-weight: 700; font-size: 13px; margin-top: 3px; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: transform .2s; }
.social a:hover { transform: translateY(-2px); }
.social .tt { background: var(--gold); color: #2b2100; }
.social .pi { background: var(--cream); color: var(--green-d); }
.social svg { width: 16px; height: 16px; }
.pills { display: none; gap: 10px; overflow-x: auto; padding: 24px 0 6px; scrollbar-width: none; }
.js .pills { display: flex; }
.pill { flex: none; display: flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255,246,230,.22);
  background: rgba(255,255,255,.05); font-weight: 800; font-size: 14px; transition: .2s; }
.pill:hover { background: rgba(255,255,255,.1); }
.pill.on { background: var(--cream); color: var(--green-d); border-color: var(--cream); }
.pill svg { width: 16px; height: 16px; }

/* Bücherliste ohne JavaScript (und für Suchmaschinen) */
.katalog { max-width: 1120px; margin: 0 auto; padding: 10px 22px 30px; }
.js .katalog { display: none; }
.katalog h3.category { font-size: 28px; font-style: italic; font-weight: 500; margin: 34px 0 4px; }
.katalog .category-sub { color: var(--mint); margin: 0 0 14px; }
.katalog .books { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.katalog .book { background: rgba(255,255,255,.06); border-radius: 14px; padding: 14px; }
.katalog .book:has(.btn-soon) { display: none; }
.katalog .book img { width: 100%; height: auto; border-radius: 6px; }
.katalog .by, .katalog .meta { margin: 6px 0 0; color: var(--mint); font-size: 13px; }
.katalog h4 { font-size: 18px; margin-top: 4px; }
.katalog .facts { margin: 6px 0 0; font-size: 12px; color: var(--mint); }
.katalog .facts div { display: flex; gap: 6px; }
.katalog .facts dd { margin: 0; }
.katalog .flag { display: inline-block; margin: 0; background: var(--gold); color: #2b2100; border-radius: 999px; padding: 0 8px; font-size: 11px; font-weight: 800; }
.katalog .btn { display: inline-block; margin-top: 6px; }

/* Bücherregal */
.case { max-width: 1120px; margin: 0 auto; padding: 18px 22px 40px; }
.case-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 34px 6px 16px; }
.case-title h2 { font-size: clamp(26px, 3.4vw, 36px); font-style: italic; font-weight: 500; }
.case-title p { margin: 0; color: var(--mint); }
.bookcase { position: relative; animation: fade .5s backwards; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
.cornice { position: relative; z-index: 3; height: 30px; margin: 0 -14px; border-radius: 9px 9px 3px 3px;
  background: linear-gradient(#3a8a84, #22645f 45%, #174a48); box-shadow: 0 8px 14px rgba(0,0,0,.4), inset 0 2px 0 rgba(255,255,255,.22); }
.cornice:after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; background: var(--gold); opacity: .55; border-radius: 2px; }
.carcass { position: relative; padding: 0 22px; }
.carcass:before, .carcass:after { content: ""; position: absolute; top: 0; bottom: 0; width: 22px; z-index: 2;
  background: linear-gradient(90deg, #123b39, #2f7b76 45%, #1d5956 80%, #133f3d); box-shadow: 0 0 12px rgba(0,0,0,.35); }
.carcass:before { left: 0; } .carcass:after { right: 0; }
.plinth { position: relative; z-index: 3; height: 34px; margin: 0 -6px; border-radius: 0 0 8px 8px;
  background: linear-gradient(#22645f, #123b39); box-shadow: 0 16px 30px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,255,255,.12); }
.plinth:before, .plinth:after { content: ""; position: absolute; bottom: -10px; width: 46px; height: 12px; background: #0c2725; border-radius: 0 0 6px 6px; }
.plinth:before { left: 18px; } .plinth:after { right: 18px; }

.shelf { position: relative; }
.back { position: relative; overflow: hidden;
  background: radial-gradient(ellipse 50% 80% at 50% 0, rgba(255,214,140,.15), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.22) 0 2px, rgba(255,255,255,.03) 2px 3px, transparent 3px 72px),
    linear-gradient(#0c2826, #113634);
  box-shadow: inset 0 26px 26px -14px rgba(0,0,0,.7), inset 22px 0 24px -14px rgba(0,0,0,.6), inset -22px 0 24px -14px rgba(0,0,0,.6); }
.lights { position: absolute; left: 0; top: 0; height: 40px; pointer-events: none; z-index: 1; }
.lights .b { animation: tw 3.4s ease-in-out infinite; }
@keyframes tw { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.items { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; gap: var(--gap); padding: 52px 18px 0; min-height: calc(var(--ch) + 52px); }
.board { position: relative; z-index: 3; margin-top: -7px; }
.board .top { height: 12px; background: linear-gradient(#bfa47a, #e7d7b8); clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%); }
.board .front { position: relative; height: 22px; background: linear-gradient(var(--birch), #e2d1b1 55%, var(--birch-d));
  box-shadow: 0 9px 14px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.7); }
.plate { position: absolute; left: 50%; top: 3px; transform: translateX(-50%); white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis;
  padding: 1px 16px; border-radius: 3px; font: 800 10.5px/14px Nunito, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #3a2a08;
  background: linear-gradient(#fbe1a0, #e0ad45 55%, #b9862c); box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 1px 2px rgba(0,0,0,.45); }
.plate:before, .plate:after { content: ""; position: absolute; top: 5px; width: 4px; height: 4px; border-radius: 50%; background: #8a6420; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.plate:before { left: 5px; } .plate:after { right: 5px; }

.book-b { position: relative; z-index: 2; flex: none; border: 0; padding: 0; background: none; height: var(--ch); transform-origin: bottom center;
  transition: transform .35s cubic-bezier(.3,1.5,.5,1); animation: pop .45s backwards; }
@keyframes pop { from { opacity: 0; transform: translateY(16px); } }
.book-b:before { content: ""; position: absolute; left: 4%; right: 4%; bottom: -4px; height: 10px; border-radius: 50%; background: rgba(0,0,0,.5); filter: blur(4px); z-index: -1; transition: .35s; }
.book-b img { display: block; height: 100%; width: auto; border-radius: 3px 7px 7px 3px; box-shadow: inset 4px 0 0 rgba(0,0,0,.12), 8px 6px 16px rgba(0,0,0,.5); }
.book-b:after { content: ""; position: absolute; inset: 0; border-radius: 3px 7px 7px 3px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.16) 3%, transparent 9%), linear-gradient(115deg, rgba(255,255,255,.16), transparent 30%); }
.book-b:hover, .book-b:focus-visible { transform: translateY(-12px) rotate(-1deg) scale(1.05); outline: none; z-index: 6; }
.book-b:hover:before { transform: scale(.8); opacity: .6; }
.book-b:hover img, .book-b:focus-visible img { box-shadow: 0 22px 34px rgba(0,0,0,.5), 0 0 0 2px rgba(242,182,50,.55); }
.tip { position: fixed; left: 0; top: 0; z-index: 15; max-width: min(360px, calc(100vw - 16px)); background: var(--cream); color: var(--green-d);
  font: 800 14px/1.3 Nunito, sans-serif; padding: 9px 14px; border-radius: 10px; text-align: center; opacity: 0; pointer-events: none;
  transform: translateY(6px); transition: opacity .18s, transform .18s; box-shadow: 0 10px 26px rgba(0,0,0,.45), 0 0 0 1px rgba(23,74,72,.15); }
.tip:after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: var(--cream); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.tip.show { opacity: 1; transform: none; }
.deco { flex: none; align-self: flex-end; pointer-events: none; filter: drop-shadow(6px 4px 6px rgba(0,0,0,.45)); }
.empty { text-align: center; color: var(--mint); padding: 60px 0; }

/* Über uns */
.about { max-width: 1120px; margin: 30px auto 0; padding: 0 22px 50px; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 18px; }
.about > div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,246,230,.12); border-radius: 18px; padding: 24px; }
.about h2 { font-size: 26px; font-style: italic; font-weight: 500; margin-bottom: 8px; }
.about h3 { font-size: 21px; margin-bottom: 6px; }
.about p { margin: 0 0 10px; color: #dcebe8; font-weight: 500; }
.about .mono { width: 44px; height: 44px; border-radius: 50%; background: var(--cream); color: var(--green-d); display: flex; align-items: center; justify-content: center;
  font: 600 20px Fraunces, serif; margin-bottom: 12px; }
.about .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.about .tags span { background: rgba(242,182,50,.16); color: var(--gold); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 800; }
.about a { color: var(--gold); font-weight: 800; }

/* Fußzeile */
.site-footer { max-width: 1120px; margin: 0 auto; padding: 26px 22px 110px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--mint); font-size: 14px; border-top: 1px solid rgba(255,246,230,.12); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; font-weight: 800; color: var(--cream); }
.site-footer a:hover { color: var(--gold); }

/* schwebende Knöpfe */
.fab { position: fixed; right: 22px; display: none; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 18px; border: 0; z-index: 10;
  background: rgba(255,246,230,.9); backdrop-filter: blur(6px); color: var(--green-d); box-shadow: 0 10px 24px rgba(0,0,0,.35); transition: transform .2s; }
.js .fab { display: flex; }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
#fabZoom { bottom: 94px; }
#fabSearch { bottom: 24px; }
.search { position: fixed; right: 94px; bottom: 30px; z-index: 10; width: 0; opacity: 0; transition: .3s; border: 0; border-radius: 14px; padding: 13px 16px;
  background: var(--cream); color: var(--green-d); font: 700 15px Nunito, sans-serif; outline: none; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.search.open { width: min(320px, calc(100vw - 130px)); opacity: 1; }

/* Leseansicht */
.reader { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(8,26,25,.72);
  backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.reader.open { opacity: 1; pointer-events: auto; }
.card { position: relative; width: min(980px, 100%); max-height: calc(100vh - 36px); overflow: auto; display: grid; grid-template-columns: 420px 1fr; background: var(--cream);
  color: #1f2d2c; border-radius: 22px; box-shadow: 0 40px 90px rgba(0,0,0,.5); transform: translateY(30px) scale(.96); transition: transform .4s cubic-bezier(.2,1.2,.4,1); }
.reader.open .card { transform: none; }
.stage { perspective: 1400px; display: flex; align-items: center; justify-content: center; padding: 44px 24px; border-radius: 22px 0 0 22px;
  background: radial-gradient(circle at 50% 40%, #b9d8d3, transparent 75%), #e3efed; }
.book3d { position: relative; width: 240px; transform-style: preserve-3d; transform: rotateY(-95deg); transition: transform 1s cubic-bezier(.2,.9,.3,1); }
.reader.open .book3d { transform: rotateY(-24deg) rotateX(4deg); }
.book3d:hover { transform: rotateY(-6deg) !important; }
.book3d img { display: block; width: 100%; height: auto; border-radius: 3px 7px 7px 3px; box-shadow: 0 30px 40px rgba(0,0,0,.3); }
.book3d .pages { position: absolute; top: 2%; bottom: 2%; right: -1px; width: 30px; transform: rotateY(90deg); transform-origin: right;
  background: repeating-linear-gradient(90deg, #fff 0 1px, #e8e0d0 1px 2px); }
.info { padding: 40px 38px 32px 26px; }
.kick { font: 800 12px Nunito, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
.info h2 { font-size: 32px; line-height: 1.1; margin: 8px 0 6px; }
.info .by { font-weight: 800; color: #56706d; }
.info .meta { font: italic 500 18px Fraunces, serif; color: #3d5553; margin: 8px 0 16px; }
.txt { font-size: 17px; font-weight: 500; margin: 0 0 18px; }
.rfacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 0 0 22px; }
.rfacts div { background: #e3efed; border-radius: 12px; padding: 8px 12px; }
.rfacts dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #56706d; font-weight: 800; }
.rfacts dd { margin: 0; font-weight: 800; color: #1f2d2c; font-size: 14px; line-height: 1.3; }
.info > :last-child { margin-bottom: 0; }
.btn { display: inline-flex; padding: 13px 22px; border-radius: 999px; background: var(--green); color: #fff; text-decoration: none; font-weight: 800; }
.btn-soon { background: #e3efed; color: #56706d; }
.katalog .btn { padding: 8px 14px; font-size: 13px; }
.close:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.07); font-size: 22px; color: #1f2d2c; }

/* Blick ins Buch */
.stage { flex-direction: column; }
.cover-view { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.peek { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 18px; background: #fff; color: var(--green-d);
  font-weight: 800; font-size: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.peek svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.peek[hidden], .viewer[hidden], .cover-view[hidden] { display: none; }
.viewer { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.sheet { height: 440px; display: flex; align-items: center; justify-content: center; perspective: 1600px; cursor: zoom-in; }
.sheet img { display: block; max-height: 440px; max-width: 100%; border-radius: 2px 6px 6px 2px; background: #fff; box-shadow: 0 18px 30px rgba(0,0,0,.22);
  transform-origin: left center; transition: transform .3s ease-in, opacity .3s; }
.sheet img.out { transform: rotateY(-80deg); opacity: .2; }
.sheet img.in { transform: rotateY(70deg); opacity: .3; transition: none; }
.pnav { display: flex; align-items: center; gap: 14px; }
.pnav button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.12); font-size: 20px; font-weight: 800; color: var(--green-d); }
.pnav button:disabled { opacity: .35; cursor: default; }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.18); transition: .2s; }
.dots i.on { background: var(--green); width: 20px; border-radius: 4px; }
.back2 { border: 0; background: none; color: #56706d; font-weight: 800; font-size: 13px; text-decoration: underline; }
.card.big { grid-template-columns: 1fr; width: min(820px, 100%); }
.card.big .info { display: none; }
.card.big .stage { border-radius: 22px; }
.card.big .sheet { height: calc(100vh - 190px); cursor: zoom-out; }
.card.big .sheet img { max-height: calc(100vh - 190px); }
.close { z-index: 5; }

@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .card { grid-template-columns: 1fr; }
  .stage { border-radius: 22px 22px 0 0; padding: 30px; }
  .book3d { width: 160px; }
  .sheet { height: 340px; }
  .sheet img { max-height: 340px; }
  .info { padding: 22px 22px 24px; }
  .info h2 { font-size: 25px; }
  .head, .case, .katalog, .about { padding-left: 12px; padding-right: 12px; }
  .carcass { padding: 0 12px; }
  .carcass:before, .carcass:after { width: 12px; }
  .cornice { margin: 0 -6px; height: 24px; }
  .plinth { margin: 0 -2px; height: 26px; }
  .plate { font-size: 9px; letter-spacing: .1em; }
  .items { padding: 46px 10px 0; }
  .fab { width: 52px; height: 52px; right: 14px; }
  #fabZoom { bottom: 80px; }
  #fabSearch { bottom: 18px; }
  .search { right: 76px; bottom: 23px; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; } }
