/* shop.birthday-adventure.de - shop-eigene Styles, aufbauend auf shared/design-tokens.css.
   Kein Phone-Frame (das gilt nur fuer frontend-app, siehe frontend-design-Skill) - dieser Shop
   ist eine normale responsive Marketingflaeche wie frontend-www. */

body { overflow-x: hidden; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Kopfnavigation (Muster aus frontend-www uebernommen) ---- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.site-nav-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav-brand span { color: var(--gold-soft); }
.site-nav nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav nav a { color: var(--text-muted); text-decoration: none; font-size: 15px; }
.site-nav nav a:hover { color: var(--gold-soft); }

/* Sprachumschalter als Flaggen (Betreiberauftrag 2026-09-06, "genauso wie auf der richtigen
   Hauptseite") - 1:1 aus resources/frontend-www/style.css uebernommen, position: fixed statt in
   die Nav-Zeile eingehaengt, damit "oben rechts, immer sichtbar" auf jeder Unterseite gleich
   bleibt, exakt wie auf birthday-adventure.de. */
.lang-switcher {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 50;
  display: flex;
  gap: 6px;
}
.lang-flag {
  min-width: 40px;
  min-height: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(244, 236, 219, 0.25);
  background: var(--ink2);
  cursor: pointer;
  opacity: 0.55;
  overflow: hidden;
  transition: opacity 150ms ease-in-out, border-color 150ms ease-in-out, transform 150ms ease-in-out;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.lang-flag svg { width: 100%; height: 100%; display: block; }
.lang-flag:active { transform: scale(0.92); }
.lang-flag.active {
  opacity: 1;
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 1px var(--gold-soft);
  cursor: default;
}
.lang-flag:hover:not(.active) { opacity: 0.85; }

/* Aufklappbares Panel statt drei Dauer-sichtbarer Flaggen (Betreiberauftrag 2026-09-06,
   "genauso wie auf der Hauptseite") - 1:1 aus resources/frontend-www/style.css uebernommen.
   js/lang-switcher.js haengt zur Laufzeit einen einzelnen .lang-trigger-Ausloeser (zeigt die
   aktive Flagge) VOR das bestehende .lang-switcher-Panel und haengt .lang-switcher--panel an -
   ohne JS blieben alle drei Flaggen einfach dauerhaft sichtbar (progressive enhancement). */
.lang-trigger {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 51;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(244, 236, 219, 0.25);
  background: var(--ink2);
  cursor: pointer;
  overflow: visible;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: border-color 150ms ease-in-out, transform 150ms ease-in-out;
}
.lang-trigger:active { transform: scale(0.92); }
.lang-trigger .lang-trigger-flag {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  overflow: hidden;
  display: block;
}
.lang-trigger .lang-trigger-flag svg { width: 100%; height: 100%; display: block; }
/* Kleiner Pfeil unten rechts am Ausloeser - einziger Hinweis darauf, dass sich dahinter ein
   Menue verbirgt (die aktive Flagge allein saehe wie ein reiner Statusanzeiger aus). */
.lang-trigger::after {
  content: '';
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--ink);
  border: 1px solid rgba(244, 236, 219, 0.3);
  background-image: linear-gradient(45deg, transparent 45%, var(--text-muted) 45%, var(--text-muted) 55%, transparent 55%),
                     linear-gradient(135deg, transparent 45%, var(--text-muted) 45%, var(--text-muted) 55%, transparent 55%);
  background-size: 6px 6px;
  background-position: center 40%, center 60%;
  background-repeat: no-repeat;
}
.lang-switcher.lang-switcher--panel {
  position: fixed;
  top: 62px;
  right: 16px;
  z-index: 50;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(20, 17, 13, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(244, 236, 219, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transform-origin: top right;
  transform: scale(0.9) translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease-out, transform 140ms ease-out;
}
.lang-switcher.lang-switcher--panel.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.lang-switcher--panel .lang-flag {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  opacity: 0.7;
}
.lang-switcher--panel .lang-flag.active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .lang-switcher.lang-switcher--panel { transition: none; }
}

/* "Jetzt eine Mission buchen" (Betreiberauftrag 2026-09-05) - deutlich sichtbarer Rueckweg zur
   Hauptseite, oben auf JEDER Seite. Etwas kompakter als der grosse Hero-Button, damit er sich in
   die Nav-Zeile einfuegt statt sie zu sprengen. */
/* .site-nav nav a { color: var(--text-muted) } hat sonst Vorrang vor .btn-primary's eigener
   dunkler Schrift (Spezifitaet Klasse+Element schlaegt einfache Klasse) - dadurch war der Text
   kaum lesbar (helles, halbtransparentes Grau auf Gold). Explizit auf dasselbe dunkle Braun wie
   jeder andere .btn-primary der Seite zurueckgesetzt, per hoeherer Spezifitaet statt !important. */
.site-nav nav a.nav-cta,
.site-nav nav a.nav-cta:hover {
  color: #241a0a;
}
.nav-cta { min-height: 36px; padding: 0 18px; font-size: 14px; }
/* Betreiberauftrag (2026-09-05, zweite Runde): auf der Startseite bleibt NUR der Buchen-Button
   oben rechts - kleiner/kompakter (rund halb so gross) - der Rueckweg-Button wandert stattdessen
   unter die beiden Hero-Buttons (siehe .hero-ctas-back). Bewusst nicht ganz unter die
   Touch-Ziel-Mindestgroesse (44px) gedrueckt - 30px ist ein Kompromiss zwischen "deutlich
   kompakter" und "noch bedienbar". */
.nav-cta--compact { min-height: 30px; padding: 0 12px; font-size: 12px; }
/* "Zurueck zur Hauptseite" (Betreiberauftrag 2026-09-05) - zweite, neutralere Ausweich-Aktion
   neben dem Buchen-Button, ebenfalls kompakt fuer die Nav-Zeile. Gleiches Spezifitaets-Problem
   wie bei .nav-cta: .site-nav nav a haette sonst Vorrang vor .btn-secondary's eigener,
   kraeftigerer Textfarbe (var(--text) statt des hier zu blassen var(--text-muted)). */
.site-nav nav a.nav-back { color: var(--text); border-color: rgba(244, 236, 219, 0.35); }
.site-nav nav a.nav-back:hover { color: var(--gold-soft); }
.nav-back { min-height: 36px; padding: 0 16px; font-size: 14px; }

/* Betreiberauftrag (2026-09-05): beide Buttons UNTEREINANDER statt nebeneinander, sonst wird die
   Nav-Zeile (und damit die ganze Kopfzeile) unnoetig breit. Ein Slot in der Nav-Reihe, darin
   selbst eine Spalte mit den zwei Buttons - stretch sorgt dafuer, dass beide gleich breit sind. */
.nav-cta-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.nav-cta-group .btn { text-align: center; }

main { position: relative; z-index: 1; }

/* ---- Prototyp-Banner: nur lokal, nicht Teil des eigentlichen Shops ---- */
.prototype-banner {
  background: var(--ink2);
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

/* ---- Hero ---- */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  text-align: center;
}
.hero h1 { font-size: 38px; line-height: 1.2; margin: 8px 0 16px; text-wrap: balance; }
.hero p { max-width: 560px; margin: 0 auto 32px; color: var(--text-muted); font-size: 17px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* "Zurueck zur Hauptseite" (Betreiberauftrag 2026-09-05, zweite Runde) - eigene Zeile unter den
   beiden Haupt-CTAs, etwas abgesetzt statt direkt gleichrangig danebenzustehen. */
.hero-ctas-back { margin-top: 12px; }

/* ---- Grids ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
/* Betreiberauftrag (2026-09-05): bei "Alle Produkte" bleibt eine unvollstaendige letzte Zeile
   (z. B. 2 Karten bei 10 Produkten und 4 Spalten) sonst links haengen, weil CSS Grid
   justify-content nur den GESAMTEN Spaltenblock zentriert, nicht jede Zeile einzeln - die
   leeren Zellen einer kurzen letzten Zeile bleiben dabei rechts, nicht mittig. Flexbox mit
   flex-wrap zentriert dagegen JEDE Zeile (auch eine unvollstaendige) fuer sich - deshalb hier
   bewusst kein Grid mehr, nur fuer diesen einen Bereich. */
#alle-produkte .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#alle-produkte .grid > * {
  flex: 0 1 245px;
}
/* Betreiberauftrag (2026-09-05): Kits sollen untereinander (gestapelt) statt im Mehrspalten-Grid
   stehen - bessere Uebersicht bei 5 Kits, kein "Verschwinden" in einer Rasteroptik. Bewusst
   keine .grid-Klasse mehr auf dem Kits-Container in index.html (siehe dort), stattdessen dieser
   eigene Stack-Container. */
.kit-stack { display: flex; flex-direction: column; gap: 16px; margin: 32px 0; }

section.section { padding: 40px 0; }
.section-heading { text-align: center; max-width: 600px; margin: 0 auto 8px; }
.section-heading .eyebrow { text-align: center; }
.section-intro { text-align: center; color: var(--text-muted); max-width: 560px; margin: 0 auto 8px; }

/* ---- Kategorie-Kacheln ---- */
.category-tile {
  text-decoration: none;
  display: block;
  transition: transform var(--duration-standard) var(--easing-standard), box-shadow var(--duration-standard) var(--easing-standard);
}
.category-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.category-tile-icon { font-size: 32px; margin-bottom: 8px; }
.category-tile h3 { margin: 0 0 6px; font-size: 19px; }
.category-tile p { margin: 0; font-size: 14px; }

/* ---- Kit-Karten (Betreiberauftrag 2026-09-05: horizontales Listen-Layout statt Grid-Kachel,
   damit die gestapelte Anordnung uebersichtlich wirkt - Icon links, Text in der Mitte, Pfeil
   rechts, wie ein Zeilen-Eintrag statt eine eigene "Kachel-Insel"). ---- */
.kit-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  transition: transform var(--duration-standard) var(--easing-standard), box-shadow var(--duration-standard) var(--easing-standard), border-color var(--duration-standard) var(--easing-standard);
}
.kit-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); border-color: var(--border-soft); }
/* Gleiche Icon-Badge-Optik wie .product-card-icon - ein Kreis im Ticket-Verlauf statt frei
   schwebendem Emoji, konsistent ueber die ganze Seite. */
.kit-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--dusk), var(--dusk2));
  border: 1px solid var(--border-soft);
}
.kit-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kit-card h3 { margin: 0; font-size: 20px; }
.kit-card-claim { margin: 0; color: var(--gold-soft); font-weight: 600; font-size: 14px; }
.kit-card-contents { margin: 0; font-size: 13px; }
.kit-card-arrow { flex-shrink: 0; white-space: nowrap; }

/* Auf schmalen Bildschirmen wieder untereinander (Icon oben) - horizontal wird bei wenig Platz
   sonst zu eng fuer den Textblock. */
@media (max-width: 560px) {
  .kit-card { flex-direction: column; align-items: flex-start; text-align: left; }
  .kit-card-arrow { align-self: flex-end; }
}

/* ---- Produktkarten (Feinschliff 2026-09-04) ---- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  /* Etwas grosszuegiger als .card-Standard (24px) - die Icon-Badge oben braucht mehr Luft,
     damit sie nicht ans Kartenende stoesst. */
  padding: 28px 24px 24px;
  transition: transform var(--duration-standard) var(--easing-standard),
              box-shadow var(--duration-standard) var(--easing-standard),
              border-color var(--duration-standard) var(--easing-standard);
}

/* Betreiberauftrag (2026-09-04): klein und dezent, aber direkt am Link selbst (statt nur im
   Footer) - erfuellt damit Amazons "unmittelbare Naehe"-Vorgabe, ohne optisch Aufmerksamkeit zu
   ziehen. Bewusst gedaempfte Farben (kein Gold/Rose - das waere ein Blickfang), kleine Schrift,
   in der ohnehin schon vorhandenen Kartenecke. */
.product-card-ad-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(23, 17, 48, 0.55);
  border: 1px solid var(--border-soft);
  padding: 2px 8px;
  border-radius: 999px;
  pointer-events: none;
}
/* Nur echte Links (fertig verlinkte Produkte) bekommen die Hover-Anhebung - ein .product-card,
   das (noch) kein <a> ist (kein Amazon-Link hinterlegt), soll nicht wie klickbar wirken. */
a.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  border-color: var(--border-soft);
}
a.product-card:hover .product-card-icon {
  transform: scale(1.06);
  border-color: rgba(227, 172, 85, 0.45);
}
a.product-card:focus-visible .product-card-cta-btn {
  box-shadow: 0 0 0 3px rgba(227, 172, 85, 0.35);
}

/* Icon-Badge statt frei schwebendem Emoji - ruhiger Kreis im Ticket-Verlauf, mit duennem
   Gold-Ring. Macht aus "irgendein Emoji" ein bewusst gestaltetes Produkt-Icon. */
.product-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--dusk), var(--dusk2));
  border: 1px solid var(--border-soft);
  transition: transform var(--duration-standard) var(--easing-standard), border-color var(--duration-standard) var(--easing-standard);
}

/* Echtes Produktfoto (Betreiberauftrag 2026-09-04) - weisse "Fotokarte" innerhalb der Karte,
   damit die (meist weiss-hinterlegten) Amazon-Produktbilder nicht direkt auf dem dunklen
   Kartenhintergrund schweben, sondern wie ein bewusst gerahmtes Foto wirken. object-fit:contain
   statt cover, damit kein Produkt an den Raendern beschnitten wird. */
.product-card-media {
  background: #f4ecdb;
  border-radius: var(--radius-small);
  padding: 10px;
  margin: -4px 0 4px;
}
.product-card-image {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.product-card h3 { margin: 4px 0 0; font-size: 18px; }
.product-card-tagline { margin: 0; color: var(--gold-soft); font-weight: 600; font-size: 14px; }

.product-card-footer { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.product-card-price { margin: 0; font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--text); }
.product-card-price-note {
  display: block;
  margin-top: 2px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 11px;
  color: var(--text-muted);
}

/* Der CTA ist jetzt ein rein visueller <span> (die ganze Karte traegt den echten Link) - soll
   optisch trotzdem wie ein klickbarer Button wirken, inkl. dezenter Hover-Reaktion ueber die
   Karte selbst statt eines eigenen :hover (kein eigenes Klickziel mehr). */
.product-card-cta-btn { pointer-events: none; }
.product-card-cta-btn span { margin-left: 2px; opacity: 0.8; }

/* "Wartet noch auf einen Link" - bewusst als gestrichelter Rahmen statt nur gedimmt, damit es
   wie ein Platzhalter/Zwischenzustand aussieht statt wie ein kaputter Button. */
.btn-disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
  background: transparent;
  border: 1px dashed rgba(244, 236, 219, 0.3);
}
.product-card--pending { cursor: default; }
.product-card--pending .product-card-icon { opacity: 0.7; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--ink);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---- CTA-Ticket ("Du hast bereits eine Mission gekauft?") ---- */
.mission-cta {
  margin: 48px auto;
  max-width: 720px;
}
.mission-cta p { margin: 0 0 16px; }

/* ---- FAQ (Betreiberauftrag 2026-09-04, GEO-/SEO-Check) ---- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--ink2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-standard);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--gold-soft);
  font-size: 20px;
  flex-shrink: 0;
  transition: transform var(--duration-standard) var(--easing-standard);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 16px; }

/* ---- Breadcrumbs (SEO-Skill, Abschnitt 3 - echte Seitenhierarchie vorhanden) ---- */
.breadcrumbs {
  max-width: 640px;
  margin: 20px auto 0;
  padding: 0 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-soft); text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--gold-soft); }

/* ---- Kit-/Kategorie-Detailseite ---- */
.detail-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 16px;
}
.detail-hero .icon { font-size: 48px; }
.detail-hero h1 { margin: 8px 0 8px; font-size: 32px; }
.detail-hero .claim { color: var(--gold-soft); font-weight: 600; font-size: 17px; margin: 0 0 12px; }
.detail-hero p.text-secondary { max-width: 520px; margin: 0 auto; }

.back-link { display: inline-block; margin: 24px 0 0; }

/* ---- Rechtstexte (Impressum/Datenschutz) - Muster aus frontend-www/style.css uebernommen ---- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
  line-height: 1.6;
}
.legal h1 { font-size: 28px; margin: 0 0 8px; }
.legal h2 { font-size: 20px; margin: 32px 0 12px; }
.legal p { margin: 0 0 16px; }
.legal ol, .legal ul { margin: 0 0 16px; padding-left: 24px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); }
.legal-stand { color: var(--text-muted); font-size: 14px; }
/* Uebersetzungs-Hinweis auf EN/RU-Rechtstexten (Betreiberauftrag 2026-09-06) - die deutsche
   Fassung bleibt rechtlich massgeblich, das muss auf den uebersetzten Seiten sichtbar stehen. */
.legal-translation-notice {
  background: var(--ink2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-small);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

footer.site-footer {
  text-align: center;
  padding: 40px 24px 56px;
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
  z-index: 1;
}
footer.site-footer a { color: var(--text-muted); }

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .site-nav nav { gap: 14px; }
}
