@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-sans-3-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/source-sans-3-700.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-700.woff2") format("woff2");
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/caveat-700.woff2") format("woff2");
}

:root {
  --navy: #0b1f4d;
  --red: #d0114b;
  --red-dark: #b50e41;
  --paper: #e7f3fc;
  --ink-soft: #3d4d6e;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(11, 31, 77, 0.1);
  --gold: #f4b740;
  --green: #0e7c5a;
  --tabbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(880px 380px at 88% -20px, rgba(47, 120, 214, 0.2), transparent 62%),
    linear-gradient(180deg, #f5faff 0%, var(--paper) 42%, #f7fbff 100%);
  color: var(--navy);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -48px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: #fff; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

/* Kopfzeile wie Event-App: dunkelblau, Marke zentriert, roter Pill-Link */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; padding-top: env(safe-area-inset-top); box-shadow: 0 4px 16px rgba(11,31,77,.25); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; line-height: 1; }
.shop-link { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; }

.main { padding: 16px 0 28px; }
.status { padding: 16px; color: var(--ink-soft); text-align: center; }

.section-title, .page-title {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--red);
}
.section-title { font-size: 1.45rem; margin: 22px 0 10px; }
.page-title { font-size: 2.2rem; color: var(--navy); margin: 4px 0 12px; }

/* Aktionsbanner */
.promo { display: block; padding: 14px 16px; border-radius: var(--radius); background: linear-gradient(120deg, var(--red), #a20d3b); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.promo-kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.action-card .promo-kicker { color: var(--red); opacity: 1; }
.promo-title { display: block; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 1.5rem; text-transform: uppercase; line-height: 1.05; margin: 2px 0 4px; }
.promo-text { display: block; font-size: .95rem; }

/* Hervorgehobene Kachel */
.featured { display: grid; grid-template-columns: 128px 1fr; gap: 16px; margin-top: 16px; padding: 16px; border-radius: var(--radius); background: #fff; border: 2px solid var(--red); box-shadow: var(--shadow); text-decoration: none; }
.featured-cover { width: 128px; height: auto; border-radius: 6px; box-shadow: 0 8px 18px rgba(11,31,77,.25); }
.featured-body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.featured-kicker { color: var(--red); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.featured-title { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 1.75rem; line-height: 1; text-transform: uppercase; }
.featured-author { color: var(--ink-soft); font-weight: 600; }
.featured-price { font-size: 1.3rem; font-weight: 700; }
.featured .btn { margin-top: 4px; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.2; }
.badge-promo { background: #dff3ea; color: var(--green); }
.badge-float { position: absolute; left: 8px; top: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }

/* Filter-Chips */
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 18px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1.5px solid #c9d8ec; font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Buchkacheln */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.book { display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-decoration: none; overflow: hidden; }
.book-media { position: relative; aspect-ratio: 3 / 4; background: linear-gradient(180deg, #eef5fd, #dce9f8); }
.book-cover { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); max-width: none; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(11,31,77,.25)); }
.badge-float { z-index: 1; }
.book-info { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; flex: 1; }
.book-title { font-size: .98rem; line-height: 1.2; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-author { color: var(--ink-soft); font-size: .85rem; }
.book-price { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--red); }

/* Detail */
.detail { width: min(720px, 100%); margin: 0 auto; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.detail-card { padding: 20px 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-align: center; }
.detail-cover { width: min(220px, 60%); height: auto; margin: 0 auto 16px; border-radius: 6px; box-shadow: 0 12px 26px rgba(11,31,77,.28); }
.detail-title { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: .98; text-transform: uppercase; }
.detail-author { margin-top: 6px; color: var(--ink-soft); font-weight: 600; font-size: 1.05rem; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.detail-price { margin-top: 12px; font-size: 1.7rem; font-weight: 700; color: var(--red); }
.detail-tax { color: var(--ink-soft); font-size: .85rem; }
.detail-actions { display: grid; gap: 10px; margin-top: 16px; }
.detail-desc { margin-top: 18px; text-align: left; }
.detail-desc p { margin: 0 0 10px; }
.more summary { cursor: pointer; color: var(--red); font-weight: 700; margin-bottom: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 10px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; }
.featured .btn { min-height: 40px; padding: 8px 12px; font-size: .95rem; }
.btn-ghost { background: #fff; color: var(--navy); border: 2px solid var(--navy); }

/* Aktionen & Autoren */
.card { padding: 16px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.card-title { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 1.6rem; text-transform: uppercase; margin: 4px 0 6px; }
.author-list .section-title:first-child { margin-top: 4px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 8px; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(11,31,77,.07); text-decoration: none; font-weight: 700; }
.row-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row-meta { flex: none; color: var(--ink-soft); font-weight: 600; font-size: .9rem; }

/* Untere Tab-Leiste */
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid #d6e2f1; box-shadow: 0 -6px 18px rgba(11,31,77,.08); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-soft); font-size: .74rem; font-weight: 600; text-decoration: none; }
.tab svg { width: 24px; height: 24px; fill: currentColor; }
.tab.active { color: var(--red); }
.tab.active span { font-weight: 700; }

/* Menü „Mehr“ als Bottom-Sheet */
.sheet-backdrop { position: fixed; inset: 0; z-index: 25; background: rgba(11,31,77,.45); display: flex; align-items: flex-end; }
.sheet { width: 100%; max-width: 560px; margin: 0 auto; padding: 16px 16px calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #fff; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sheet-title { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 1.7rem; font-weight: 700; text-transform: uppercase; }
.sheet-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); text-decoration: none; font-weight: 700; }
.sheet-link { display: flex; flex-direction: column; padding: 12px 4px; border-bottom: 1px solid #e3ebf6; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.sheet-link small { color: var(--ink-soft); font-weight: 400; font-size: .85rem; }
.sheet-legal { display: flex; gap: 20px; padding-top: 14px; }
.sheet-legal a { color: var(--red); font-weight: 700; }

.noscript { padding: 16px; text-align: center; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .featured { grid-template-columns: 200px 1fr; padding: 24px; }
  .featured-cover { width: 200px; }
  .featured-title { font-size: 2.4rem; }
  .featured .btn { width: auto; }
  .tabbar { max-width: 560px; margin: 0 auto 12px; border: 1px solid #d6e2f1; border-radius: 18px; }
}
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.list-section{margin-top:28px}
