/* =====================================================================
   3Dinge – "Projekt Simson S51" Design
   ---------------------------------------------------------------------
   Dunkles Design im Stil der Celly-Studio-/RideVerse-Präsentation
   (Outfit-Schrift, fast schwarzer Grund mit Speed-Lines, weiche Karten,
   Verlaufs-Akzente). Wird NACH css/style.css geladen und überschreibt
   nur das Aussehen – alle Shop-Funktionen bleiben unverändert.

   Zurück zum alten Design: in den HTML-Seiten die Zeile
   <link rel="stylesheet" href="css/simson-theme.css"> entfernen
   bzw. die Sicherheitskopie "3dinge-shop-v11-BACKUP-vor-Simson-2026-11-12"
   zurückspielen.
   ===================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Design-Grundlage (wie Celly/RideVerse) */
  --v-ground: #07080c;
  --v-ink: #f3f4f0;
  --v-mute: #9a9ea8;
  --v-mute-2: #6d717a;
  --v-card: #14151a;
  --v-card-2: #1c1d22;
  --v-line: #23252b;
  --v-line-2: #2e3139;
  --v-red: #ff4d6a;
  --v-mint: #74efb9;
  --v-amber: #ffb23e;
  /* Akzent 3Dinge × Simson: Druck-Orange → Tank-Gelb */
  --v-a1: #ff7a1a;
  --v-a2: #ffc23e;
  --v-on-accent: #0b0a08;
  --v-grad: linear-gradient(90deg, var(--v-a1), var(--v-a2));
  --v-stripe: rgba(255, 140, 40, 0.035);
  --v-glow: rgba(255, 122, 26, 0.10);
  --v-font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --v-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --v-pop: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Bestehende Shop-Variablen auf das neue Design umbiegen */
  --primary: var(--v-a1);
  --primary-dark: #ff9a4a;
  --primary-light: rgba(255, 122, 26, 0.16);
  --accent: var(--v-a1);
  --accent-light: var(--v-card-2);
  --on-primary: var(--v-on-accent);
  --bg: var(--v-ground);
  --card-bg: var(--v-card);
  --text: var(--v-ink);
  --muted: var(--v-mute);
  --border: var(--v-line-2);
  --success: var(--v-mint);
  --success-bg: rgba(116, 239, 185, 0.12);
  --danger: var(--v-red);
  --danger-bg: rgba(255, 77, 106, 0.12);
  --warn: var(--v-amber);
  --warn-bg: rgba(255, 178, 62, 0.12);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 24px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.55);
  --radius: 24px;
  --font-display: var(--v-font);
}

html { font-size: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--v-font);
  color: var(--v-ink);
  background-color: var(--v-ground);
  background-image:
    radial-gradient(1100px 800px at 88% -6%, var(--v-glow), transparent 70%),
    repeating-linear-gradient(-58deg, var(--v-stripe) 0 14px, transparent 14px 60px);
  background-attachment: fixed;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--v-font); letter-spacing: -0.03em; }
a, a:visited { color: var(--v-ink); }
::selection { background: var(--v-a1); color: var(--v-on-accent); }
:focus-visible { outline: 3px solid var(--v-a1); outline-offset: 4px; border-radius: 6px; }
.wrap { max-width: 1160px; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(7, 8, 12, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { background: rgba(7, 8, 12, 0.94); border-bottom-color: var(--v-line); }
.header-inner { padding: 12px 20px; }
.logo-img { height: 46px; }
.site-header nav { gap: 6px; }
.site-header nav a {
  color: var(--v-mute); font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; transition: color .2s ease, background .2s ease;
}
.site-header nav a:hover { color: var(--v-ink); background: var(--v-card-2); }
.site-header nav a.nav-simson { color: var(--v-on-accent); background: var(--v-grad); font-weight: 800; }
.site-header nav a.nav-simson:hover { filter: brightness(1.06); color: var(--v-on-accent); }
#cart-badge:not(:empty) {
  display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px;
  align-items: center; justify-content: center; border-radius: 999px;
  background: var(--v-a1); color: var(--v-on-accent); font-size: .78rem; font-weight: 800;
}
.user-chip { background: var(--v-card-2); color: var(--v-ink); border: 2px solid var(--v-line-2); }
.nav-toggle { background: var(--v-card-2); color: var(--v-ink); border: 2px solid var(--v-line-2); border-radius: 12px; }
@media (max-width: 700px) {
  .site-header nav { background: rgba(7, 8, 12, 0.98); border-bottom: 2px solid var(--v-line); box-shadow: var(--shadow-md); }
  .site-header nav.nav-open a { border-bottom: 1px solid var(--v-line); border-radius: 0; padding: 14px 4px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  border: 2px solid var(--v-line-2); background: var(--v-card-2); color: var(--v-ink);
  font-weight: 700; box-shadow: none;
  transition: transform .35s var(--v-pop), background .2s ease, border-color .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: none; border-color: var(--v-a1); }
.btn:active { transform: scale(.97); box-shadow: none; }
.btn-primary, a.btn-primary, a.btn-primary:visited { background: var(--v-grad); color: var(--v-on-accent); border-color: transparent; font-weight: 800; }
.btn-primary:hover { background: var(--v-grad); filter: brightness(1.07); border-color: transparent; }
.btn-small { padding: 8px 14px; box-shadow: none; }
.btn-small:hover { box-shadow: none; }
.btn-danger { background: var(--danger-bg); color: var(--v-red); border-color: rgba(255, 77, 106, .4); }
.btn-ghost { background: transparent; }
.back-link { display: inline-flex; padding: 8px 16px; border-radius: 999px; background: var(--v-card-2); color: var(--v-mute); }
.back-link:hover { color: var(--v-ink); }

/* ---------- Formulare ---------- */
input, select, textarea { color-scheme: dark; }
.checkout-form input, .checkout-form textarea, .checkout-form select,
.toolbar-inner input[type="search"], .toolbar-inner select,
.newsletter-form input[type="email"], .track-form input,
.review-form select, .review-form textarea,
.personalization-fields input, .add-form input[type=number] {
  background: var(--v-card-2); color: var(--v-ink);
  border: 2px solid var(--v-line-2); border-radius: 14px;
}
.toolbar-inner input[type="search"], .toolbar-inner select { border-radius: 999px; padding: 13px 20px; }
.checkout-form input:focus, .checkout-form textarea:focus, .checkout-form select:focus,
.toolbar-inner input[type="search"]:focus, .toolbar-inner select:focus, .track-form input:focus {
  border-color: var(--v-a1); box-shadow: 0 0 0 4px rgba(255, 122, 26, .18);
}
::placeholder { color: var(--v-mute-2); }

/* ---------- Karten / Boxen allgemein ---------- */
.product-card, .checkout-summary, .payment-section, .order-status-box, .order-card,
.contact-info-box, .reviews-manage-box, .maintenance-box, .return-request-box, .cart-table {
  background: var(--v-card); border: 2px solid var(--v-line); border-radius: var(--radius); box-shadow: var(--shadow-md);
}

/* ---------- Trust-Leiste ---------- */
.trust-bar { background: transparent; border: 0; margin: 0; padding: 28px 0 0; }
.trust-bar .wrap { gap: 14px; }
.trust-item {
  flex: 1 1 220px; max-width: none; flex-direction: row; gap: 14px; text-align: left;
  padding: 18px 20px; border-radius: 24px; background: var(--v-card); border: 2px solid var(--v-line);
}
.trust-icon { flex: none; width: 50px; height: 50px; border: 0; border-radius: 16px; background: var(--v-card-2); font-size: 1.4rem; }
.trust-item span { color: var(--v-ink); font-weight: 700; font-size: .98rem; }
.trust-flag { box-shadow: none; }

/* ---------- Hero-Karussell (Admin-Banner) ---------- */
.hero-banner { margin-top: 26px; border: 2px solid var(--v-line); border-radius: 32px; box-shadow: var(--shadow-lg); }
.hero-slide-inner { padding: 0 56px; }
.hero-slide-text h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; }
.hero-eyebrow { background: rgba(7, 8, 12, .85); color: var(--v-ink); border: 0; transform: none; letter-spacing: .14em; }
.hero-slide-text .btn-primary { background: var(--v-ground); color: var(--v-ink); }
.hero-slide-text .btn-primary:hover { background: #000; }
.hero-nav { background: rgba(7, 8, 12, .7); color: var(--v-ink); border: 2px solid rgba(255,255,255,.15); box-shadow: none; width: 38px; height: 38px; }
.hero-nav:hover { background: rgba(7, 8, 12, .95); }
.hero-dot { border: 0; background: rgba(0, 0, 0, .35); }
.hero-dot.active { background: var(--v-ink); }

/* ---------- Produktraster ---------- */
.shop-toolbar { padding: 26px 0 0; }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; padding: 22px 0 40px; }
.product-card {
  padding: 14px 14px 20px; text-align: left; color: var(--v-ink);
  transition: transform .4s var(--v-ease), border-color .25s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--v-a1); }
.product-photo { height: 190px; border: 0; border-radius: 16px; background: var(--v-card-2); transition: transform .5s var(--v-ease); }
.product-media-wrap { overflow: hidden; border-radius: 16px; }
.product-card:hover .product-photo { transform: scale(1.05); }
.product-emoji { height: 190px; display: flex; align-items: center; justify-content: center; font-size: 3.4rem; background: var(--v-card-2); border-radius: 16px; }
.product-card h3 { font-family: var(--v-font); font-size: 1.08rem; font-weight: 800; margin: 14px 4px 4px; letter-spacing: -.02em; }
.product-category { margin: 0 4px 6px; color: var(--v-a1); letter-spacing: .12em; }
.product-rating { margin: 2px 4px 6px; }
.product-price { margin: 8px 4px 0; font-size: 1.25rem; font-weight: 800; }
.badge { border: 0; box-shadow: none; transform: none; border-radius: 999px; letter-spacing: .06em; }
.badge-out { background: var(--v-red); color: #fff; }
.badge-low { background: var(--v-amber); color: #0b0a08; }
.badge-preorder { background: var(--v-grad); color: var(--v-on-accent); }

/* ---------- Produktseite ---------- */
.product-detail-photo, .product-detail-emoji, .gallery-main { border: 2px solid var(--v-line); border-radius: 24px; background: var(--v-card); }
.gallery-thumb { border: 2px solid var(--v-line-2); border-radius: 12px; }
.gallery-thumb.active { border-color: var(--v-a1); }
.product-detail-price { font-weight: 800; font-size: 2rem; }
.color-swatch { border: 2px solid var(--v-line-2); box-shadow: none; }
.color-swatch:hover { box-shadow: none; }
.reviews-section, .recommend-section { border-top: 2px solid var(--v-line); }
.review-item { border-bottom: 1px solid var(--v-line); }

/* ---------- Warenkorb / Kasse ---------- */
.cart-table { overflow: hidden; }
.cart-table th, .cart-table td { border-bottom: 2px solid var(--v-line); }
.cart-table th { background: var(--v-card-2); color: var(--v-mute); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.payment-option { border: 2px solid var(--v-line-2); border-radius: 16px; }
.payment-option .option-note, .stripe-badge { color: var(--v-mute); }
.card-fields { border-top: 2px dashed var(--v-line-2); }
.test-banner, .legal-warning {
  background: rgba(255, 178, 62, .1); border: 2px solid rgba(255, 178, 62, .4); color: #ffe0a8; border-radius: 18px;
}
.legal-warning-minimal { background: var(--v-card-2); border-color: var(--v-line-2); color: var(--v-mute); }
.email-verify-box, .return-label-box, .dhl-tracking-box { background: var(--v-card-2); border: 2px dashed var(--v-line-2); border-radius: 18px; }

/* ---------- Status / Tracking ---------- */
.status-badge, .return-status-badge { border: 0; letter-spacing: .08em; }
.status-new { background: var(--primary-light); color: var(--v-a2); }
.status-progress { background: rgba(255, 178, 62, .14); color: var(--v-amber); }
.status-done { background: var(--v-card-2); color: var(--v-mute); }
.return-status-badge.status-wird-geprueft, .return-status-badge.status-bezahlt { background: rgba(255, 178, 62, .14); color: var(--v-amber); }
.track-tab { background: var(--v-card); border: 2px solid var(--v-line-2); border-radius: 999px; box-shadow: none; color: var(--v-mute); }
.track-tab.active { background: var(--v-grad); color: var(--v-on-accent); border-color: transparent; }
.flash { border: 2px solid var(--v-line-2); border-radius: 14px; }

/* ---------- Rechtstexte & eigene Seiten ---------- */
.legal-content p, .legal-content li, .custom-page-content p { color: var(--v-mute); }
.legal-content h1, .custom-page-content h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
.legal-content a, .custom-page-content a { color: var(--v-a1); }
.legal-content strong { color: var(--v-ink); }
main.wrap > h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; margin: 48px 0 16px; }

/* ---------- Newsletter ---------- */
.newsletter-section {
  background: transparent; padding: clamp(64px, 9vw, 110px) 0 0; margin-top: 0; text-align: left;
}
.newsletter-section .wrap {
  position: relative; overflow: hidden;
  padding: clamp(28px, 5vw, 56px); border-radius: 32px;
  background: var(--v-card); border: 2px solid var(--v-line); box-shadow: var(--shadow-lg);
}
.newsletter-section .wrap::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, .28), transparent 70%); pointer-events: none;
}
.newsletter-section h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; margin: 0 0 10px; }
.newsletter-section p { color: var(--v-mute); margin: 0 0 22px; max-width: 560px; }
.newsletter-form { justify-content: flex-start; margin: 0; max-width: 560px; position: relative; z-index: 1; }
.newsletter-form input[type="email"] { border-radius: 999px; padding: 14px 20px; }
.newsletter-status { color: var(--v-a2); }
.newsletter-section .hint a { color: var(--v-mute) !important; }

/* ---------- Footer ---------- */
.site-footer {
  background: transparent; margin-top: clamp(70px, 9vw, 110px);
  border-top: 2px solid var(--v-line); color: var(--v-mute-2);
}
.site-footer p, .site-footer a, .site-footer a:visited { color: var(--v-mute); }
.site-footer a:hover { color: var(--v-ink); }
.legal-footer-links a { padding: 6px 12px; border-radius: 999px; }
.legal-footer-links a:hover { background: var(--v-card-2); }
.footer-badge-caption { color: var(--v-mute-2); letter-spacing: .14em; }
.social-links a { background: var(--v-card-2); border: 2px solid var(--v-line-2); }
.social-links a:hover { background: var(--v-a1); border-color: transparent; }
.footer-partner-link { background: var(--v-card); border: 2px solid var(--v-line); border-radius: 999px; padding: 3px; }
.site-footer-brand img { height: 64px; opacity: .9; }
.whatsapp-float-btn { border: 0; box-shadow: 0 16px 36px rgba(0, 0, 0, .5); }

/* ---------- Wartung / 404 ---------- */
.maintenance-countdown { background: var(--v-card-2); color: var(--v-a2); border-radius: 14px; }
.not-found-page h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }

/* ---------- Mini-CMS (falls im Frontend sichtbar) ---------- */
.rte-editor, .rte-toolbar button { background: var(--v-card); color: var(--v-ink); border-color: var(--v-line-2); }

/* ---------- Einblenden beim Scrollen ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--v-ease), transform .7s var(--v-ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="scale"] { transform: translateY(18px) scale(.96); }
[data-reveal="scale"].is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-photo, .product-emoji { height: 130px; }
  .product-card { padding: 10px 10px 14px; }
  .product-card h3 { font-size: .95rem; }
  .trust-item { flex-basis: 100%; }
  .trust-item span { font-size: .92rem; }
  .hero-slide-inner { padding: 26px 30px 0; }
}
