/* DogFather Maps – Stufe 1
   Schriften: Inter (Text) und Space Grotesk (Überschriften), Lizenz SIL OFL 1.1.
   Die beiden WOFF2-Dateien gehören nach fonts/ (inter-var.woff2, space-grotesk-var.woff2). */
@font-face { font-family: "Inter"; src: url("fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #0B0B0F;
  --bg-2: #13131A;
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.10);
  --text: #F4F4F5;
  --muted: #A1A1AA;
  --accent: #F5B301;
  --accent-ink: #0B0B0F;
  --radius: 18px;
  --wrap: 1120px;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
[hidden] { display: none !important; }
.no-js #grid .state { display: none; }
section[id], article[id] { scroll-margin-top: 84px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px;
  background: rgba(11, 11, 15, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 18px; }
@media (max-width: 359px) { .nav { gap: 12px; } .nav a { font-size: 0.88rem; } .brand { font-size: 1rem; } }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 10px 2px; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  padding: 72px 20px 56px;
  max-width: var(--wrap); margin: 0 auto;
}
.hero::before {
  content: ""; position: absolute; top: -80px; left: 50%; width: 100vw; transform: translateX(-50%); height: 620px; z-index: -1;
  background:
    radial-gradient(60% 60% at 20% 20%, rgba(245, 179, 1, 0.22), transparent 70%),
    radial-gradient(50% 50% at 85% 10%, rgba(245, 179, 1, 0.10), transparent 70%);
}
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 9vw, 4.6rem); font-weight: 700; max-width: 14ch; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 3.4vw, 1.3rem); max-width: 46ch; margin: 18px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trust li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 0.85rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem var(--font-text); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); background: #FFC627; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { width: 100%; }

/* Abschnitte */
.section { max-width: var(--wrap); margin: 0 auto; padding: 56px 20px; }
.section h2 { font-size: clamp(1.7rem, 6vw, 2.6rem); }
.section-sub { color: var(--muted); margin-top: 10px; max-width: 56ch; }

/* Karten */
.grid { display: grid; gap: 20px; margin-top: 28px; grid-template-columns: 1fr; }
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(245, 179, 1, 0.5); }
.card-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1B1B24, #101016); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.noimg { display: grid; place-items: center; background: linear-gradient(135deg, rgba(245, 179, 1, 0.28), #14141B 70%); }
.card-media.noimg::after { content: attr(data-name); font: 700 1.6rem var(--font-head); color: var(--text); padding: 0 16px; text-align: center; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.78rem; padding: 5px 11px; border-radius: 999px; }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 18px; flex: 1; }
.card-body h3 { font-size: 1.4rem; }
.card-text { color: var(--muted); }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.92rem; }
.features li { padding-left: 22px; position: relative; }
.features li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.card-foot { margin-top: auto; display: grid; gap: 12px; padding-top: 6px; }
.price { font: 700 1.7rem var(--font-head); }
.price small { font: 400 0.8rem var(--font-text); color: var(--muted); margin-left: 6px; }
.soon { color: var(--muted); font-weight: 600; }

.state { color: var(--muted); padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); }
.state-error { display: grid; gap: 14px; justify-items: start; color: var(--text); }

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.steps li { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps h3 { font-size: 1.2rem; margin: 12px 0 6px; }
.steps p { color: var(--muted); }
.step-no { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* FAQ */
.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; min-height: 48px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); padding-bottom: 16px; }

/* Fuß */
.footer { border-top: 1px solid var(--line); padding: 32px 20px 48px; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.small { color: var(--muted); font-size: 0.85rem; }

@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-top: 110px; padding-bottom: 80px; }
  .top { padding: 16px 32px; }
}
@media (min-width: 1100px) {
  .grid { gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .btn-primary:hover, .card:hover { transform: none; }
}

/* ===== Ausbau: Verkauf und eigener Look ===== */

/* Kartenraster im Hero wie ein Lageplan */
.hero::after {
  content: ""; position: absolute; top: -80px; left: 50%; width: 100vw; transform: translateX(-50%); height: 620px; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 70% at 30% 30%, #000, transparent 75%);
  mask-image: radial-gradient(70% 70% at 30% 30%, #000, transparent 75%);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 { background: linear-gradient(180deg, #FFFFFF 30%, #F5B301 140%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.btn-primary { box-shadow: 0 8px 30px rgba(245, 179, 1, 0.28); }

/* Aktionsband */
.promo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; font-weight: 600; font-size: 0.92rem; text-align: center;
}
.promo-code {
  min-height: 36px; padding: 4px 14px; border-radius: 8px; cursor: pointer;
  border: 2px dashed var(--accent-ink); background: transparent; color: var(--accent-ink);
  font: 700 0.95rem ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.08em;
}
.promo-code:focus-visible { outline-color: var(--accent-ink); }
.promo-count strong { font-variant-numeric: tabular-nums; }

/* Laufband */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span {
  font: 700 clamp(1.1rem, 4vw, 1.6rem) var(--font-head); text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35); white-space: nowrap; padding-right: 20px;
}
.ticker-track span::after { content: "✦"; color: var(--accent); -webkit-text-stroke: 0; margin-left: 20px; }
@supports (-webkit-text-stroke: 1px #fff) {
  .ticker-track span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35); }
  .card-no { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55); }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* Karten: Nummer, Koordinaten, Vorschau-Video */
.card-no {
  position: absolute; right: 12px; bottom: 6px;
  font: 700 3.2rem/1 var(--font-head); color: rgba(255, 255, 255, 0.55);
}
.card-coords {
  position: absolute; left: 12px; bottom: 12px; max-width: 70%;
  background: rgba(11, 11, 15, 0.72); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px;
  font: 500 0.72rem ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-coords::before { content: "⌖ "; color: var(--accent); }
.card-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease; }
.card-video.on { opacity: 1; }
.card:hover { box-shadow: 0 18px 50px rgba(245, 179, 1, 0.10); }

/* Bundle */
.bundle {
  display: grid; gap: 24px; padding: 26px;
  border: 1px solid rgba(245, 179, 1, 0.45); border-radius: 22px;
  background: linear-gradient(135deg, rgba(245, 179, 1, 0.16), rgba(255, 255, 255, 0.03) 60%);
}
.bundle-buy { display: grid; gap: 8px; align-content: center; }
.bundle-old { color: var(--muted); text-decoration: line-through; }
.bundle-save { color: var(--accent); font-weight: 700; margin-bottom: 8px; }

/* Fester Kaufen-Balken */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(15, 15, 21, 0.94); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.buybar-info { display: grid; line-height: 1.25; min-width: 0; }
.buybar-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-info span { color: var(--accent); font-weight: 700; }
.has-buybar .footer { padding-bottom: 110px; }

/* Einblenden */
/* Inhalte sind immer sichtbar. Die Animation läuft nur zusätzlich, wenn ein Element ins Bild kommt. */
.reveal-in { animation: rise 0.6s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (min-width: 700px) {
  .bundle { grid-template-columns: 1.4fr 1fr; padding: 36px; align-items: center; }
  .buybar { left: auto; right: 20px; bottom: 20px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 10px 10px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .reveal-in { animation: none; }
  .card-video { transition: none; }
}

/* ===== Stufe 2: Sprachumschalter, Detailansicht mit Galerie ===== */

/* Kopfzeile: Marke, Navigation, Sprache. Reicht der Platz nicht, rutscht die Navigation in eine zweite Zeile. */
.top { flex-wrap: wrap; row-gap: 4px; }
.nav { margin-left: auto; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-btn {
  min-width: 46px; min-height: 48px; padding: 0 12px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); font: 600 0.9rem var(--font-text); letter-spacing: 0.04em;
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.lang-btn:focus-visible { outline-offset: -3px; }
@media (max-width: 560px) {
  .top { padding: 10px 16px 4px; }
  .lang { order: 2; margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  section[id], article[id] { scroll-margin-top: 124px; }
}

/* Karten: die ganze Karte öffnet die Detailansicht, Knöpfe liegen darüber */
.card-clickable { position: relative; cursor: pointer; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; }
.card-clickable .card-foot { position: relative; z-index: 2; }

/* Detailansicht */
.detail-open { overflow: hidden; }
.detail {
  position: fixed; inset: 0; z-index: 80;
  overflow-y: auto; overscroll-behavior: contain;
  background: rgba(5, 5, 8, 0.78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.detail-panel { max-width: 980px; min-height: 100%; margin: 0 auto; background: var(--bg); }
.detail-top {
  position: sticky; top: 0; z-index: 3;
  padding: 10px 16px; background: rgba(11, 11, 15, 0.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.detail-body { display: grid; gap: 28px; }
.detail-head, .detail-block, .detail-video { margin: 0 20px; }
.detail-head h2 { font-size: clamp(1.9rem, 7vw, 2.9rem); }
.detail-lead { margin: 12px 0 0; }
.detail-block h3 { font-size: 1.15rem; margin-bottom: 14px; }
.detail-video { width: calc(100% - 40px); border-radius: 14px; background: var(--bg-2); aspect-ratio: 16 / 9; }

.gallery-strip {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip:focus-visible { outline-offset: -3px; }
.gallery-item { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1B1B24, #101016); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.noimg { display: grid; place-items: center; background: linear-gradient(135deg, rgba(245, 179, 1, 0.28), #14141B 70%); }
.gallery-item.noimg::after { content: attr(data-name); font: 700 1.6rem var(--font-head); color: var(--text); padding: 0 16px; text-align: center; }
.gallery-nav { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 16px 0; }
.gallery-btn {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
  font: 400 1.7rem/1 var(--font-head);
}
.gallery-btn:hover { border-color: var(--accent); }
.gallery-count { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 5ch; text-align: center; }

.specs { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.spec-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 16px; border-top: 1px solid var(--line); }
.spec-row:first-child { border-top: 0; }
.spec-row dt { color: var(--muted); font-size: 0.85rem; }
.spec-row dd { margin: 0; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.92rem; }

.detail-cta {
  position: sticky; bottom: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(15, 15, 21, 0.95); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

@media (min-width: 560px) {
  .spec-row { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 16px; }
}
@media (min-width: 700px) {
  .detail { padding: 32px 24px; }
  .detail-panel { min-height: 0; border: 1px solid var(--line); border-radius: 22px; overflow: clip; }
  .detail-head, .detail-block, .detail-video { margin: 0 32px; }
  .detail-video { width: calc(100% - 64px); }
  .detail-cta { position: static; margin-top: 4px; padding: 20px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-strip { scroll-behavior: auto; }
}
.detail-panel:focus { outline: none; }
