/* Drehzahlkönig – Stylesheet */
:root {
  --bg: #0f1012;
  --bg-2: #16181b;
  --surface: #1c1f23;
  --surface-2: #24282d;
  --line: #2e3238;
  --text: #f3f3f1;
  --muted: #a3a7ae;
  --red: #e3172b;
  --red-dark: #b10f20;
  --amber: #ffc23d;
  --radius: 10px;
  --wrap: 1180px;
  --head: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p a, li a, .prose a { color: var(--amber); text-underline-offset: 3px; }
p a:hover, .prose a:hover { color: #fff; }

h1, h2, h3, .head {
  font-family: var(--head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.05;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font: 700 .8rem/1 var(--head); letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--red); transform: skewX(-25deg); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Zielflaggen-Trenner */
.flag-rule {
  height: 12px;
  background:
    conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 12px 12px;
  opacity: .12;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border-radius: 6px; border: 2px solid transparent;
  font: 700 1rem/1 var(--head); font-style: italic; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn--amber { background: var(--amber); color: #15161a; }
.btn--amber:hover { background: #ffd46e; }
.btn--sm { padding: 10px 16px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,16,18,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 54px; }
.brand span { font: 700 1.45rem/1 var(--head); font-style: italic; letter-spacing: .03em; text-transform: uppercase; }
.brand b { color: var(--red); font-weight: 700; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none; padding: 10px 14px; border-radius: 6px;
  font: 600 .95rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav a.nav-shop { background: var(--red); color: #fff; margin-left: 6px; }
.nav a.nav-shop:hover { background: var(--red-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 9px 12px; font: 600 .9rem var(--head); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px; font-size: 1.05rem; }
  .nav a.nav-shop { margin: 8px 0 0; text-align: center; }
  .brand span { font-size: 1.2rem; }
  .brand img { width: 44px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, rgba(227,23,43,.28), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 em { color: var(--red); font-style: italic; }
.hero-gauge { justify-self: center; width: min(460px, 100%); filter: drop-shadow(0 0 40px rgba(227,23,43,.35)); }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-gauge { order: -1; width: min(300px, 80%); }
}

/* Page head */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 190px; padding: 22px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--red); }
.tile .num {
  position: absolute; top: 16px; right: 18px;
  font: 800 3.2rem/1 var(--head); font-style: italic; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.18);
}
.tile h3 { margin: 0 0 6px; font-size: 1.45rem; }
.tile p { margin: 0; color: var(--muted); font-size: .95rem; }
.tile::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--accent, var(--red)); transform: scaleX(.25); transform-origin: left; transition: transform .25s; }
.tile:hover::after { transform: scaleX(1); }

/* Buchkarte */
.book {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.book-cover {
  aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 20px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--accent, var(--red)) 0%, #15161a 85%);
}
.book-cover::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 12px); }
.book-cover img.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.book-cover .bc-cat { position: relative; font: 700 .72rem/1 var(--head); letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.book-cover .bc-title { position: relative; font: 700 1.5rem/1.05 var(--head); font-style: italic; text-transform: uppercase; }
.book-cover .bc-author { position: relative; font-size: .9rem; opacity: .9; }
.book-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.book-body h3 { font-size: 1.1rem; margin: 0; font-style: normal; text-transform: none; font-family: var(--body); letter-spacing: 0; line-height: 1.3; }
.book-body .author { color: var(--muted); font-size: .92rem; margin: 0; }
.book-body p { margin: 0; font-size: .95rem; color: #d6d8dc; }
.book-body .btn { margin-top: auto; align-self: flex-start; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 4px; background: var(--amber); color: #15161a; font: 700 .7rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; }
.ad-note { font-size: .78rem; color: var(--muted); }

/* Suchkacheln */
.search-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.search-tile {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; font-weight: 600; transition: border-color .2s, background .2s;
}
.search-tile:hover { border-color: var(--amber); background: var(--surface-2); }
.search-tile span.arrow { color: var(--amber); font-size: 1.2rem; }

/* König oder Queen */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-card { border-radius: var(--radius); padding: 36px 28px; text-align: center; border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 14px; transition: transform .2s, border-color .2s; }
.duo-card:hover { transform: translateY(-4px); border-color: var(--red); }
.duo-card img { width: min(260px, 80%); }
.duo-card--dark { background: var(--surface); }
.duo-card--light { background: #f3f3f1; color: #15161a; }
.duo-card--light .muted { color: #555a62; }
.duo-wordmark { font: 700 1.9rem/1 var(--head); font-style: italic; text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 700px) { .duo { grid-template-columns: 1fr; } }

/* Produkt-Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: .9rem; color: var(--muted); text-decoration: none; }
a.chip:hover { border-color: var(--amber); color: var(--text); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* Feature-Box */
.feature { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--red); }

/* Shop-Embed */
.shop-gate {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px);
  text-align: center; background: var(--surface);
}
.shop-gate p { max-width: 60ch; margin-inline: auto; }
.shop-gate label { display: inline-flex; gap: 8px; align-items: center; font-size: .92rem; color: var(--muted); margin-top: 14px; cursor: pointer; }
#shop { min-height: 200px; }
#shop.loaded { background: #fff; color: #222; border-radius: var(--radius); padding: 8px; font-family: var(--body); }

/* Prose */
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #0b0c0d; padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font: 700 .85rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--amber); }
.affiliate-note { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Barrierefreiheit */
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #111; padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
