:root {
  --red: #df171c;
  --red-dark: #a9090d;
  --ink: #171311;
  --paper: #fffaf2;
  --cream: #f4e7d2;
  --gold: #d89a39;
  --muted: #6f6259;
  --line: rgba(31, 22, 17, .15);
  --shadow: 0 18px 50px rgba(34, 18, 9, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(216,154,57,.16), transparent 28rem),
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: #fff; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,250,242,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav {
  max-width: 1180px;
  margin: auto;
  min-height: 74px;
  padding: .7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: Arial, sans-serif;
  font-weight: 900;
  letter-spacing: .02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 36px;
  transform: rotate(-3deg);
  background: var(--red);
  color: white;
  font-size: 1.25rem;
  border-radius: 4px 12px 5px 10px;
}
.nav-links { display: flex; align-items: center; gap: 1.3rem; font-family: Arial, sans-serif; font-weight: 700; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--red-dark); }
.nav-contact {
  border: 0;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  padding: .65rem .9rem;
  cursor: pointer;
  font: 800 .92rem Arial, sans-serif;
}
.nav-contact:hover, .nav-contact:focus-visible { background: var(--red-dark); }
.page-nav { display: flex; align-items: center; gap: 1rem; font: 700 .95rem Arial, sans-serif; }
.page-nav a { text-decoration: none; }
.site-search-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.site-search-toggle:hover, .site-search-toggle:focus-visible { background: var(--ink); color: #fff; transform: translateY(-1px); }
.site-search-toggle svg, .book-search-field svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.site-search-toggle--mobile { display: none; }
.menu-button { display: none; border: 0; background: var(--ink); color: #fff; border-radius: 8px; padding: .7rem .9rem; font: 700 1rem Arial, sans-serif; }

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.4rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow); }
.hero-visual::after {
  content: "Humor • Herz • Erinnerungen";
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  background: var(--ink);
  color: white;
  padding: .75rem 1.1rem;
  border-radius: 12px;
  font: 700 .9rem Arial, sans-serif;
  transform: rotate(-2deg);
}
.eyebrow { margin: 0 0 .6rem; color: var(--red-dark); font: 800 .82rem Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.08; }
h1 { margin: 0; font-size: clamp(2.7rem, 7vw, 5.6rem); letter-spacing: -.045em; }
.hero-copy .lead { margin: 1.25rem 0 1.6rem; max-width: 34rem; font-size: clamp(1.1rem, 2vw, 1.35rem); color: #4d413a; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font: 800 .95rem Arial, sans-serif;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--gold);
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover, .button:focus-visible { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--gold); }
.button.alt { background: transparent; color: var(--ink); box-shadow: none; }
.button.red { background: var(--red); border-color: var(--red); box-shadow: 4px 4px 0 var(--ink); }

.strip { margin-top: 2rem; background: var(--ink); color: #fff; transform: rotate(-.5deg); }
.strip-inner { max-width: 1100px; margin: auto; padding: .85rem 1.25rem; display: flex; justify-content: space-around; gap: 1rem; flex-wrap: wrap; font: 800 .92rem Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.strip strong { color: #ffcf5a; }

.section { max-width: 1180px; margin: auto; padding: 5rem 1.25rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.7rem; }
.section h2 { margin: 0; font-size: clamp(2.15rem, 5vw, 3.8rem); letter-spacing: -.035em; }
.section-intro { max-width: 680px; margin: .7rem 0 0; color: var(--muted); }

#buecher { padding-bottom: 2rem; }
#geschenkfinder { padding-top: 2rem; padding-bottom: 4rem; }
.finder-intro { margin-bottom: 1.6rem; }
.finder-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(1.4rem, 4vw, 2.6rem); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.finder-form { display: grid; gap: 1rem; align-content: start; }
.finder-form [hidden] { display: none; }
.finder-form .button { justify-self: start; cursor: pointer; }
.finder-result { min-height: 190px; padding: 1.3rem; background: var(--cream); border-radius: 16px; }
.finder-result > p { margin: 0; color: var(--muted); }
.finder-result h3 { margin: 0 0 1rem; font-size: 1.45rem; }
.finder-pick { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 1rem; align-items: center; }
.finder-pick img { width: 86px; aspect-ratio: .72; object-fit: cover; border-radius: 7px; box-shadow: 0 6px 14px rgba(32,20,12,.17); }
.finder-pick h4 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.finder-pick p { margin: .3rem 0; color: var(--muted); line-height: 1.4; }
.finder-pick a { color: var(--red-dark); font: 800 .9rem Arial, sans-serif; }

.book-stage { position: relative; }
.book-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 29%); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: .5rem .3rem 1.4rem; }
.book-card { scroll-snap-align: start; border: 1px solid var(--line); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(32,20,12,.1); transition: transform .2s ease, box-shadow .2s ease; }
.book-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.book-card a { text-decoration: none; }
.cover-wrap { position: relative; aspect-ratio: 0.72; overflow: hidden; background: var(--cream); }
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.new-badge { position: absolute; z-index: 2; top: .4rem; left: .4rem; width: 84px; height: 84px; display: grid; place-items: center; background: #d81924; color: #fff; font: 900 15px/1 Arial, sans-serif; letter-spacing: .04em; clip-path: polygon(50% 2%, 61% 34%, 97% 35%, 69% 56%, 79% 91%, 50% 72%, 21% 91%, 31% 56%, 3% 35%, 39% 34%); pointer-events: none; }
.new-badge--large { width: 108px; height: 108px; font-size: 18px; top: .5rem; left: .5rem; }
.new-badge--small { width: 50px; height: 50px; font-size: 9px; top: -.25rem; left: -.25rem; }
.finder-cover-wrap { position: relative; width: 86px; overflow: hidden; border-radius: 7px; }
.book-copy { padding: 1rem 1rem 1.25rem; }
.book-copy h3 { margin: 0 0 .45rem; font-size: 1.22rem; }
.book-copy p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.5; }
.book-link { margin-top: .8rem; display: inline-block; color: var(--red-dark); font: 800 .9rem Arial, sans-serif; }
.track-controls { display: flex; gap: .6rem; }
.track-controls button { width: 44px; height: 44px; border: 2px solid var(--ink); background: #fff; border-radius: 50%; font-size: 1.25rem; cursor: pointer; }

.promise { background: #251b17; color: #fff; }
.promise .section { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 4rem; }
.brush-title { display: inline-block; background: var(--red); padding: .4rem .8rem; transform: rotate(-2deg); }
.promise-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.promise-card { padding: 1.4rem; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: rgba(255,255,255,.05); }
.promise-card .num { color: #ffcf5a; font: 900 1.7rem Arial, sans-serif; }
.promise-card h3 { margin: .45rem 0; }
.promise-card p { margin: 0; color: #e5d9d0; font-size: .95rem; }

.author { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(0,1.2fr); gap: clamp(2rem,6vw,5rem); align-items: center; }
.author img { border-radius: 22px; box-shadow: var(--shadow); }
.author blockquote { margin: 1.4rem 0; padding-left: 1.2rem; border-left: 5px solid var(--red); font-size: 1.25rem; font-style: italic; }
.signature { font: 900 1.15rem Arial, sans-serif; color: var(--red-dark); }

.closing { text-align: center; background: var(--cream); border-radius: 28px; padding: clamp(2rem,6vw,4rem); }
.closing p { max-width: 650px; margin: 1rem auto 1.5rem; }
.site-footer { background: #130f0d; color: #d9ccc4; }
.footer-inner { max-width: 1180px; margin: auto; padding: 2rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-inner a { color: #fff; }

.detail { max-width: 1080px; margin: auto; padding: 4rem 1.25rem 6rem; }
.detail-grid { display: grid; grid-template-columns: minmax(250px,380px) 1fr; gap: clamp(2rem,7vw,5rem); align-items: start; }
.detail-cover-wrap { position: relative; align-self: start; }
/* Buchcover proportional skalieren, auch wenn das HTML Breite und Höhe vorgibt. */
.detail-cover { border-radius: 18px; box-shadow: var(--shadow); width: 100%; height: auto; object-fit: contain; }
.detail h1 { font-size: clamp(2.3rem,6vw,4.8rem); }
.detail-sub { font-size: 1.25rem; color: var(--muted); }
.facts { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.2rem 0; }
.pill { background: var(--cream); padding: .35rem .75rem; border-radius: 999px; font: 700 .85rem Arial, sans-serif; }
.detail-description { margin: 1.5rem 0; }
.detail-audience { margin: 1.25rem 0 1.65rem; padding: 1.05rem 1.2rem; border-left: 4px solid var(--red); background: var(--cream); border-radius: 0 12px 12px 0; }
.detail-audience h2 { margin: 0 0 .35rem; font-size: 1.15rem; }
.detail-audience p { margin: 0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--red-dark); font: 800 .92rem Arial,sans-serif; }
.sample { max-width: 1120px; margin: auto; padding: 3rem 1.25rem 5rem; }
.sample-heading { display: grid; grid-template-columns: 165px minmax(0, 1fr); gap: 2rem; align-items: center; margin: .7rem 0 2rem; }
.sample-heading > img { width: 165px; border-radius: 12px; box-shadow: var(--shadow); }
.sample-heading h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.sample-heading p:not(.eyebrow) { color: var(--muted); margin: .7rem 0 1.3rem; }
.sample-viewer { background: #dfd8cc; padding: .7rem; border: 1px solid var(--line); border-radius: 15px; }
.sample-viewer iframe { width: 100%; height: min(85vh, 950px); min-height: 520px; display: block; border: 0; background: #fff; }
.sample-note { margin-top: 1rem; color: var(--muted); font-size: .94rem; }
.legal { max-width: 780px; margin: auto; padding: 4rem 1.25rem 7rem; }
.legal h1 { font-size: clamp(2.4rem,6vw,4.5rem); }
.notice { border-left: 5px solid var(--gold); background: #fff; padding: 1rem 1.2rem; box-shadow: 0 8px 24px rgba(20,10,5,.08); }

.contact-dialog {
  width: min(92vw, 590px);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(0,0,0,.35);
}
.contact-dialog::backdrop { background: rgba(18,12,9,.72); backdrop-filter: blur(3px); }
.site-search-dialog {
  width: min(720px, calc(100vw - 2rem));
  max-height: min(760px, calc(100vh - 2rem));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(28,19,14,.3);
}
.site-search-dialog::backdrop { background: rgba(18,12,9,.72); backdrop-filter: blur(3px); }
.search-dialog-inner { padding: clamp(1.25rem, 4vw, 2.2rem); }
.site-search-dialog .dialog-head h2 { font-size: clamp(1.7rem, 5vw, 2.65rem); }
.book-search-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .75rem;
  padding: .15rem .95rem;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff;
}
.book-search-field:focus-within { outline: 3px solid rgba(223,23,28,.2); border-color: var(--red); }
.book-search-field input { width: 100%; min-height: 50px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 1rem Arial, sans-serif; }
.book-search-results { display: grid; gap: .65rem; max-height: min(460px, 52vh); overflow: auto; margin-top: 1rem; padding: .1rem; }
.book-search-hint { margin: .5rem 0; color: var(--muted); font: 600 .96rem/1.5 Arial, sans-serif; }
.book-search-result { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: .85rem; padding: .65rem; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); text-decoration: none; }
.book-search-result:hover, .book-search-result:focus-visible { border-color: var(--red); box-shadow: 0 6px 20px rgba(28,19,14,.1); }
.book-search-result img { width: 54px; height: 76px; object-fit: cover; border-radius: 5px; box-shadow: 0 3px 8px rgba(28,19,14,.18); }
.book-search-result strong, .book-search-result small { display: block; }
.book-search-result strong { font: 800 1rem/1.2 Arial, sans-serif; }
.book-search-result small { margin-top: .3rem; color: var(--muted); font: 500 .84rem/1.35 Arial, sans-serif; }
.book-search-arrow { color: var(--red); font: 800 1.4rem Arial, sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dialog-inner { padding: clamp(1.35rem, 4vw, 2.2rem); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.dialog-head h2 { margin: 0; font-size: clamp(2rem, 7vw, 3.15rem); }
.dialog-close { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 1.3rem; }
.form-grid { display: grid; gap: 1rem; }
.form-field { display: grid; gap: .35rem; }
.form-field label { font: 800 .9rem Arial, sans-serif; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: .78rem .85rem;
  border: 1px solid rgba(31,22,17,.28);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 1rem/1.4 Arial, sans-serif;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 3px solid rgba(223,23,28,.2); border-color: var(--red); }
.form-note { margin: .1rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.check-field { display: flex; align-items: flex-start; gap: .65rem; font-size: .92rem; line-height: 1.45; }
.check-field input { margin-top: .3rem; }
.form-submit { border: 0; cursor: pointer; }

.reviews-hero { max-width: 1000px; margin: auto; padding: 5rem 1.25rem 2rem; text-align: center; }
.reviews-hero h1 { font-size: clamp(3rem, 9vw, 6.4rem); }
.reviews-hero .lead { max-width: 690px; margin: 1rem auto 1.6rem; color: var(--muted); font-size: 1.2rem; }
.review-board { max-width: 900px; margin: 1rem auto 6rem; padding: 0 1.25rem; }
.review-empty { padding: clamp(2rem, 6vw, 4rem); text-align: center; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.review-empty .quote-mark { display: block; color: var(--red); font-size: 4rem; line-height: 1; }
.review-empty h2 { margin: .4rem 0 .8rem; font-size: clamp(2rem, 5vw, 3.3rem); }
.review-empty p { max-width: 600px; margin: 0 auto 1.4rem; color: var(--muted); }

@media (max-width: 850px) {
  .menu-button { display: inline-flex; }
  .site-search-toggle--mobile { display: inline-grid; margin-left: auto; }
  .nav-links .site-search-toggle { display: none; }
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; padding: 1rem max(1.25rem, env(safe-area-inset-right)) calc(1.4rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left)); flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 34px rgba(31,22,17,.14); }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links .nav-contact { min-height: 48px; display: flex; align-items: center; }
  .nav-links .nav-contact { justify-content: center; }
  .hero, .promise .section, .author, .detail-grid, .finder-panel { grid-template-columns: 1fr; }
  .hero-copy { order: -1; }
  .hero-visual::after { right: .5rem; }
  .book-track { grid-auto-columns: minmax(220px, 66%); }
  .promise-grid { grid-template-columns: 1fr; }
  .page-nav { gap: .65rem; }
  .page-nav a:first-child { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .section { padding-top: 3.6rem; padding-bottom: 3.6rem; }
  .book-track { grid-auto-columns: 84%; }
  .section-heading { align-items: flex-start; }
  .track-controls { display: none; }
  .hero { padding-top: 1.5rem; }
  .hero-visual { width: min(100%, 310px); margin-inline: auto; }
  .hero-visual::after { display: none; }
  .nav { padding-left: max(.9rem, env(safe-area-inset-left)); padding-right: max(.9rem, env(safe-area-inset-right)); }
  .brand { gap: .5rem; font-size: .9rem; }
  .brand-mark { width: 39px; height: 34px; }
  .page-nav a { display: none; }
  .site-search-toggle { width: 40px; height: 40px; }
  .site-search-dialog { width: calc(100vw - 1rem); margin: auto; border-radius: 17px; }
  .search-dialog-inner { padding: 1.1rem; padding-bottom: calc(1.1rem + env(safe-area-inset-bottom)); }
  .book-search-result { grid-template-columns: 46px 1fr auto; gap: .65rem; padding: .55rem; }
  .book-search-result img { width: 46px; height: 65px; }
  .book-search-result small { display: none; }
  .sample-heading { grid-template-columns: 95px minmax(0, 1fr); gap: 1rem; align-items: start; }
  .sample-heading > img { width: 95px; }
  .sample-heading .detail-actions { grid-column: 1 / -1; }
  .sample-viewer { padding: .25rem; }
  .sample-viewer iframe { min-height: 480px; height: 70vh; }
  .contact-dialog { width: calc(100vw - 1rem); margin: auto; border-radius: 17px; }
  .dialog-inner { padding-bottom: calc(1.35rem + env(safe-area-inset-bottom)); }
  .form-field input, .form-field textarea, .form-field select { font-size: 16px; }
  .footer-inner { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.book-filters { display:flex; gap:.65rem; flex-wrap:wrap; margin:1.2rem 0 .8rem; }
.book-filters button { font:inherit; font-weight:700; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--ink); padding:.55rem 1rem; cursor:pointer; }
.book-filters button[aria-pressed="true"] { background:var(--ink); color:#fff; border-color:var(--ink); }
.book-card[hidden] { display:none; }

.track-controls .autoplay-toggle { width:auto; min-width:78px; padding:0 .75rem; font-size:.85rem; }
.track-controls .autoplay-toggle[hidden] { display:none; }

.book-track.is-auto-scrolling { scroll-snap-type:none; scroll-behavior:auto; overflow-anchor:none; }
.book-track.is-auto-scrolling .book-card { scroll-snap-align:none; }

.review-card { padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.review-card h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: .5rem 0 1.5rem; }
.review-card h2 a { color: inherit; text-decoration: none; }
.review-card h2 a:hover { text-decoration: underline; }
.review-card blockquote { margin: 0; padding-left: 1.25rem; border-left: 4px solid var(--red); }
.review-card blockquote p { font-size: 1.125rem; line-height: 1.7; }
.review-author { margin: 1.5rem 0 0; font-weight: 700; }

.review-board { display: grid; gap: 1.5rem; }
.review-card blockquote p { white-space: pre-wrap; overflow-wrap: anywhere; }
