/* ══════════════════════════════════════════════════════════════
   RiVL — gemeinsame Verbesserungen für alle Seiten
   (Bedienbarkeit, Tastatur-Fokus, reduzierte Bewegung)
   Wird nach den Inline-Styles geladen und ergänzt sie nur.
   ══════════════════════════════════════════════════════════════ */

/* ── Press-Feedback: sofortige Rückmeldung beim Antippen ───── */
.btn, .modal-add, .pd-add, .quick-add-btn, .product-card-cta button,
.cookie-btn, .size-btn, .size-pd-btn, .qty-btn, .lang-pill, .theme-toggle,
.nav-icon, .nicon, .burger, .gate-tab, .faq-q, .drops-arrow,
.cart-checkout, .cart-item-remove, .newsletter-form button, .rvl-wid-trigger {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active, .modal-add:active, .pd-add:active, .quick-add-btn:active,
.product-card-cta button:active, .cookie-btn:active, .cart-checkout:active,
.newsletter-form button:active {
  scale: .97;
  transition-duration: .08s;
}
.size-btn:active, .size-pd-btn:active, .qty-btn:active, .lang-pill:active,
.theme-toggle:active, .nav-icon:active, .nicon:active, .burger:active,
.gate-tab:active, .drops-arrow:active, .mm-close:active, .mmx:active,
.cart-close:active, .modal-close:active, .cdx:active {
  scale: .92;
  opacity: .7;
  transition-duration: .08s;
}
.faq-q:active, .cart-item-remove:active,
.footer-col a:active, .footer-legal a:active, .fc ul a:active { opacity: .6; }

/* ── Tastatur-Fokus sichtbar machen ─────────────────────────── */
:focus-visible {
  outline: 2px solid var(--lt, var(--ld, #7560ad));
  outline-offset: 3px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 0; }

/* ── Mindestgröße für kleine Bedienelemente (Touch) ─────────── */
.burger, .mm-close, .mmx, .cart-close, .modal-close, .cdx {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.mm-close, .mmx, .cart-close, .modal-close, .cdx { display: inline-flex; }
.lang-pill, .theme-toggle { min-height: 36px; }
.footer-col a, .footer-legal a, .fc ul a, .fleg a { display: inline-block; padding-block: .3rem; }

/* ── Reduzierte Bewegung respektieren ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn:active, .modal-add:active, .pd-add:active { scale: none; }
}

/* ── Footer: Listenpunkte entfernen (hingen links aus dem Raster) ── */
.footer-col ul, .fc ul { list-style: none; }

/* ════════════════════════════════════════════════════════════
   Design-Feinschliff (Lesbarkeit, Bedienbarkeit)
   ════════════════════════════════════════════════════════════ */

/* ── Zum Inhalt springen (nur sichtbar, wenn per Tastatur angesteuert) ── */
.skip-link {
  position: absolute; left: .75rem; top: -4.5rem; z-index: 10000;
  background: var(--bone, #0c0c0c); color: var(--ink, #fff);
  padding: .8rem 1.2rem; font: 500 .85rem 'DM Sans', sans-serif;
  text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: .75rem; }
main:focus { outline: none; }

/* ── Schrift: nichts unter 12 px, Fließtext kräftiger (vorher 300 = sehr dünn) ── */
:root { --label: .75rem; }
.lang-pill, .theme-toggle, .nav-badge, .nav-links a, .eyebrow, .btn,
.hero-btn-primary, .hero-btn-secondary, .marquee-item, .product-card-cat,
.quick-add-btn, .product-card-cta button, .pd-add, .footer h5, .fc h5,
.footer-col h5, .fsoc a, .fleg a, .footer-legal a, .fcopy, .footer-copy,
.cookie-btn, .rvl-wid-trigger, .cart-title, .cart-total-label, .cart-note,
.cart-item-meta, .cart-item-remove, .cart-club-prompt, .gate-tab, .cdtl, .ctotl,
.mm-foot a, .footer-social a {
  font-size: .75rem;
}
.rvl-wid-trigger { font-size: .75rem !important; }   /* Widerrufsknopf: Gestaltung wird vom Widget nachgeladen */
body { font-weight: 400; }
p, li, dd, .faq-a, .fdesc { font-weight: 400; }
[style*="font-weight:300"] { font-weight: 400 !important; }

/* ── Konturenschrift in Titeln: gut lesbar statt fast unsichtbar ── */
.hero-text .outline { -webkit-text-stroke: 1.5px rgba(15,15,15,.82) !important; }
html.dark .hero-text .outline { -webkit-text-stroke: 1.5px rgba(240,237,232,.85) !important; }
[style*="-webkit-text-stroke"] { -webkit-text-stroke-color: rgba(15,15,15,.78) !important; }
html.dark [style*="-webkit-text-stroke"] { -webkit-text-stroke-color: rgba(240,237,232,.82) !important; }

/* ── Tippflächen: mindestens 44 × 44 px ── */
.pd-back { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 768px), (pointer: coarse) {
  .lang-pill, .theme-toggle, .nav-icon, .nicon { min-width: 44px; min-height: 44px; }
  .nav-logo { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-col a, .footer-legal a, .fc ul a, .fleg a, .fsoc a, .footer-social a, .mm-foot a, .cart-club-prompt { display: inline-flex; align-items: center; min-height: 44px; }
  .cart-item-remove, .qty-btn { min-width: 44px; min-height: 44px; }
  .rvl-wid-trigger { min-height: 44px !important; }
  .rvl-wid-close { min-width: 44px !important; min-height: 44px !important; }
}

/* ── Hero am Handy: ruhigere, hellere Fläche hinter dem Text (hellen Modus) ── */
@media (max-width: 768px) {
  html:not(.dark) .hero-overlay {
    background: linear-gradient(to top, rgba(245,243,239,.97) 0%, rgba(245,243,239,.88) 32%, rgba(245,243,239,.4) 58%, rgba(245,243,239,0) 100%) !important;
  }
}

/* ── Einblend-Animationen: ohne Skript bleibt der Inhalt sichtbar ── */
@media (scripting: none) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1 !important; transform: none !important; }
}

/* ── Hero: Scroll-Hinweis nur am Computer (am Handy kollidierte er mit den Knöpfen) ── */
@media (max-width: 900px) { .hero-scroll { display: none !important; } }

/* ── Warenkorb: Fortschritt bis zum kostenlosen Versand (/js/warenkorb.js) ── */
.ship-bar { margin: 0 0 1.1rem; }
.ship-bar[hidden] { display: none; }
.ship-bar-text { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--bone); }
.ship-bar-text strong { font-weight: 700; color: var(--lt); }
.ship-bar.done .ship-bar-text strong { color: var(--bone); }
.ship-bar-track { height: 6px; margin: .55rem 0 .45rem; border-radius: 99px; background: var(--ll); overflow: hidden; }
.ship-bar-fill { height: 100%; width: 0; border-radius: inherit; background: var(--li); transition: width .45s cubic-bezier(.2,.7,.2,1); }
.ship-bar.done .ship-bar-fill { background: var(--lt); }
.ship-bar-note { margin: 0; font-size: .75rem; line-height: 1.4; color: var(--g3); }
@media (prefers-reduced-motion: reduce) { .ship-bar-fill { transition: none; } }

/* Knappheitshinweis auf der Produktseite (/js/bestand.js) */
.pd-stock { display: flex; align-items: center; gap: .5rem; margin: -.6rem 0 1.3rem; font-size: .84rem; font-weight: 500; color: var(--lt); }
.pd-stock::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--li); box-shadow: 0 0 0 0 var(--li); animation: pdStockPulse 2s ease-out infinite; }
.pd-stock[hidden] { display: none; }
@keyframes pdStockPulse { 0% { box-shadow: 0 0 0 0 rgba(138,114,192,.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(138,114,192,0); } }
@media (prefers-reduced-motion: reduce) { .pd-stock::before { animation: none; } }

/* Versand-Tipp im Warenkorb (/js/warenkorb.js) */
.ship-tip { display: flex; align-items: center; gap: .75rem; margin: .7rem 0 0; padding: .65rem .75rem; border: 1px dashed var(--li); background: var(--ll); }
.ship-tip[hidden] { display: none; }
.ship-tip-text { flex: 1; margin: 0; font-size: .8rem; line-height: 1.4; color: var(--bone); }
.ship-tip-text strong { font-weight: 700; color: var(--lt); }
.ship-tip-btn { flex: none; min-height: 44px; padding: .5rem .9rem; border: 1px solid var(--bone); background: var(--bone); color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.ship-tip-btn:hover { background: transparent; color: var(--bone); }
