/* ms-storefront/static/css/storefront.css
 * Erstellt: 2026-11-04 12:45 CET
 * Mobile-first (375 px), Farben ausschliesslich ueber die Tokens aus
 * /theme.css (--sf-*), Fallbacks fuer Seiten ohne Shop (404/503).
 * Reihenfolge in base.html: diese Datei VOR /theme.css (Theme gewinnt). */
:root {
  --sf-primary: #198754;
  --sf-accent: #0d6efd;
  --sf-bg: #ffffff;
  --sf-fg: #1d2430;
  --sf-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.sf-body {
  background: var(--sf-bg);
  color: var(--sf-fg);
  font-family: var(--sf-font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sf-main { flex: 1; }

.sf-header { border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.sf-brand {
  color: var(--sf-fg);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}
.sf-lang { display: flex; gap: 0.35rem; }
.sf-lang .btn { min-width: 2.75rem; min-height: 2.75rem; }

.sf-hero { padding-top: 3rem; padding-bottom: 2.5rem; }
.sf-hero-title { font-size: clamp(2rem, 7vw, 3.5rem); font-weight: 700; margin-bottom: 0.75rem; }
.sf-hero-lead { font-size: 1.15rem; opacity: 0.8; margin-bottom: 1.5rem; }
.sf-hero-gallery { letter-spacing: 0.01em; }
.sf-hero-gallery .sf-hero-title { font-weight: 300; }

.sf-btn-primary {
  background: var(--sf-primary);
  border-color: var(--sf-primary);
  color: #fff;
  min-height: 3.25rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.sf-btn-primary:hover, .sf-btn-primary:focus { filter: brightness(0.92); color: #fff; }
.sf-btn-xl { width: 100%; }
@media (min-width: 576px) { .sf-btn-xl { width: auto; } }

.sf-section { padding-top: 2rem; padding-bottom: 2rem; }
.sf-section-title { font-size: 1.35rem; font-weight: 600; margin-bottom: 1rem; }
.sf-center { text-align: center; padding-top: 4rem; }
.sf-muted { opacity: 0.7; }

.sf-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  padding: 1.25rem;
  height: 100%;
  border-top: 4px solid var(--sf-accent);
}
.sf-card-title { font-size: 1.1rem; margin: 0; }
.sf-card-text { margin: 0.5rem 0 0; opacity: 0.8; }

.sf-footer { border-top: 1px solid rgba(0, 0, 0, 0.08); opacity: 0.75; }

/* --- Geändert: 2026-11-04 22:10 CET — Katalog, Detail, Warenkorb, Buchung, Owner --- */
.sf-narrow { max-width: 720px; }
.sf-chip { border-radius: 2rem; min-height: 2.75rem; }
.sf-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sf-product { display: block; color: var(--sf-fg); text-decoration: none; }
.sf-product-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.5rem; background: #eee; display: block; }
.sf-product-noimg { background: linear-gradient(135deg, var(--sf-accent), var(--sf-primary)); opacity: 0.25; }
.sf-product-body { padding: 0.5rem 0.1rem; }
.sf-product-name { font-weight: 600; }
.sf-product-meta { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.9rem; }
.sf-price { font-weight: 600; }
.sf-price-lg { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
.sf-detail-img { width: 100%; border-radius: 0.5rem; }
.sf-detail-title { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 600; }
.sf-edition { font-weight: 600; color: var(--sf-primary); }
.sf-attrs { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; }
.sf-attrs dd { margin: 0; }
.sf-variant { min-height: 3.25rem; }
.sf-wall { width: 100%; height: auto; border-radius: 0.5rem; }
.sf-row { padding-top: 0.9rem; padding-bottom: 0.9rem; }
.sf-qty { width: 5.5rem; }
.sf-totals td { padding-left: 0; padding-right: 0; }
.sf-step { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
.sf-check { padding-top: 0.4rem; padding-bottom: 0.4rem; }
.sf-check .form-check-input { width: 1.4rem; height: 1.4rem; margin-top: 0.1rem; }
.sf-check .form-check-label { padding-left: 0.4rem; }
.sf-option { border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 0.5rem; padding: 0.75rem 0.75rem 0.75rem 2.25rem; margin-bottom: 0.5rem; }
.sf-days { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; }
.sf-day { min-width: 4.5rem; line-height: 1.2; }
.sf-slots { display: grid; gap: 0.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 576px) { .sf-slots { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sf-slot { min-height: 3.5rem; font-weight: 600; }
.sf-btn-tall { min-height: 3.75rem; font-size: 1.15rem; }
.sf-square { min-width: 3.25rem; min-height: 3.25rem; }
.sf-tiles { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-tile { display: block; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 0.75rem; padding: 1rem;
  color: var(--sf-fg); text-decoration: none; min-height: 6rem; }
.sf-tile-value { font-size: 1.6rem; font-weight: 700; }
.sf-owner-nav { border-bottom: 1px solid rgba(0, 0, 0, 0.08); }

/* --- Geändert: 2026-11-04 22:15 CET — Navigation (alle Stile), Stil "plain" fuer Barbershops --- */
.sf-navbtn { min-height: 2.75rem; display: inline-flex; align-items: center; border: 1px solid var(--sf-fg); color: var(--sf-fg); background: transparent; }
.sf-navbtn.active, .sf-navbtn:hover { background: var(--sf-fg); color: var(--sf-bg); }
.sf-navbtn-primary { background: var(--sf-primary); border-color: var(--sf-primary); color: #fff; }
.sf-badge { display: inline-flex; min-width: 1.3rem; height: 1.3rem; padding: 0 0.35rem; border-radius: 1rem; margin-left: 0.4rem;
  background: var(--sf-accent); color: #fff; font-size: 0.75rem; font-weight: 700; align-items: center; justify-content: center; }
.sf-hero-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }
.sf-credit { font-size: 0.75rem; opacity: 0.65; }
.sf-credit a { color: inherit; }
/* Barbershop schlicht (Claude-Design Barbershop · 1): dunkle Kopfzeile, Primaerfarbe auf Weiss */
.sf-style-plain.sf-pack-barber .sf-header { background: #212529; border: 0; }
.sf-style-plain.sf-pack-barber .sf-brand { color: #fff; }
.sf-style-plain.sf-pack-barber .sf-navbtn { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.sf-style-plain.sf-pack-barber .sf-navbtn.active, .sf-style-plain.sf-pack-barber .sf-navbtn:hover { background: var(--sf-primary); border-color: var(--sf-primary); color: #fff; }
.sf-style-plain.sf-pack-barber .sf-navbtn-primary { background: var(--sf-primary); border-color: var(--sf-primary); }
.sf-style-plain.sf-pack-barber .sf-main { background: #f8f9fa; }
.sf-style-plain.sf-pack-barber .sf-hero-barber { background: #fff; border-bottom: 1px solid #dee2e6; padding-top: 0; }
.sf-team { display: grid; gap: 0.75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sf-member { background: #fff; border: 1px solid #dee2e6; border-radius: 0.5rem; padding: 0.9rem 0.5rem; text-align: center; }
.sf-avatar { width: 56px; height: 56px; border-radius: 50%; background: #ced4da; color: #495057; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }

/* --- Geändert: 2026-11-06 09:15 CET — Owner: Reiter, Login, Einstellungen, Team, Sortiment --- */
.sf-owner-nav { border-bottom: 1px solid rgba(127, 127, 127, 0.25); background: var(--sf-bg); position: sticky; top: 0; z-index: 25; }
.sf-owner-tabs { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.sf-owner-tabs::-webkit-scrollbar { display: none; }
.sf-owner-tab { flex: none; min-height: 2.9rem; padding: 0 1rem; border-radius: 999px; display: inline-flex; align-items: center;
  border: 1px solid rgba(127, 127, 127, 0.35); color: var(--sf-fg); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.sf-owner-tab.active, .sf-owner-tab:hover { background: var(--sf-fg); color: var(--sf-bg); border-color: var(--sf-fg); }
.sf-owner-logout { min-height: 2.9rem; border-radius: 999px; border: 1px solid rgba(127, 127, 127, 0.35); color: var(--sf-fg); }
.sf-staff-link { display: inline-flex; align-items: center; gap: 0.35rem; }
.sf-staff-link svg { width: 16px; height: 16px; }
/* Login */
.sf-login { min-height: calc(100vh - 220px); display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.sf-login-card { width: 100%; max-width: 420px; border-radius: 24px; padding: 2rem 1.5rem; background: var(--sf-bg);
  border: 1px solid rgba(127, 127, 127, 0.28); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12); }
.sf-login-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--sf-primary); color: var(--sf-bg); margin-bottom: 1rem; }
.sf-login-icon svg { width: 26px; height: 26px; }
.sf-login-kicker { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; margin: 0; }
.sf-login-title { font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; margin: 0.15rem 0 0.4rem; }
.sf-login .form-control { min-height: 3.4rem; border-radius: 14px; }
.sf-login .form-floating > label { opacity: 0.7; }
.sf-login-submit { min-height: 3.5rem; border-radius: 14px; font-weight: 700; font-size: 1.1rem; }
/* Einstellungen */
.sf-style-cards { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-style-card { border-radius: 18px; border: 2px solid rgba(127, 127, 127, 0.3); padding: 0.6rem; background: transparent;
  text-align: left; color: var(--sf-fg); width: 100%; font: inherit; }
.sf-style-card.active { border-color: var(--sf-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sf-primary) 30%, transparent); }
.sf-style-preview { border-radius: 12px; height: 108px; padding: 0.7rem; display: flex; flex-direction: column; gap: 0.35rem; overflow: hidden; }
.sf-style-preview i { display: block; border-radius: 6px; height: 10px; }
.sf-pv-plain { background: #f8f9fa; border: 1px solid #dee2e6; }
.sf-pv-plain .h { background: #212529; height: 16px; } .sf-pv-plain .a { background: #198754; width: 55%; } .sf-pv-plain .b { background: #ced4da; width: 80%; }
.sf-pv-neon { background: #0b0b0c; }
.sf-pv-neon .h { background: #f4f4f0; height: 22px; width: 70%; } .sf-pv-neon .a { background: #c6f432; width: 60%; height: 18px; } .sf-pv-neon .b { background: #2a2a2e; width: 85%; }
.sf-pv-bento { background: #f4f3ee; } .sf-pv-bento .h { background: #ffd23f; height: 30px; } .sf-pv-bento .a { background: #1f3d2b; width: 45%; } .sf-pv-bento .b { background: #fff; width: 90%; }
.sf-pv-immersive { background: #0e0e10; } .sf-pv-immersive .h { background: #3a4a6b; height: 36px; } .sf-pv-immersive .a { background: #8fb4ff; width: 40%; } .sf-pv-immersive .b { background: #24242a; width: 75%; }
.sf-style-name { font-weight: 700; margin-top: 0.5rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.sf-color { width: 3.4rem; height: 3rem; padding: 0.2rem; border-radius: 12px; }
/* Team */
.sf-week { display: grid; gap: 0.4rem; }
.sf-week-row { display: grid; grid-template-columns: 3.8rem minmax(0, 1fr) minmax(0, 1fr); gap: 0.4rem; align-items: center; }
.sf-week-row input[type=time] { min-width: 0; padding-left: 0.5rem; padding-right: 0.25rem; }
.sf-week-row .form-check { margin: 0; padding-left: 0; min-height: 2.75rem; display: flex; align-items: center; gap: 0.4rem; }
.sf-week-row .form-check-input { width: 1.5rem; height: 1.5rem; margin: 0; }
.sf-week-row input[type=time] { min-height: 2.75rem; }
.sf-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sf-chip-check input { position: absolute; opacity: 0; }
.sf-chip-check label { min-height: 2.75rem; padding: 0 0.9rem; border-radius: 999px; border: 1px solid rgba(127, 127, 127, 0.4); display: inline-flex; align-items: center; cursor: pointer; }
.sf-chip-check input:checked + label { background: var(--sf-primary); border-color: var(--sf-primary); color: #fff; }
.sf-chip-check input:focus-visible + label { outline: 3px solid var(--sf-primary); outline-offset: 2px; }
.sf-swatch { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0, 0, 0, 0.2); }
.sf-meter { width: 100%; height: 10px; }
@media (min-width: 768px) {
  .sf-style-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Cookie-Banner (Analytics erst nach Zustimmung) */
.sf-consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; justify-content: center; }
.sf-consent[hidden] { display: none; }
.sf-consent-box { max-width: 560px; width: 100%; background: var(--sf-bg); color: var(--sf-fg); border-radius: 18px;
  border: 1px solid rgba(127, 127, 127, 0.3); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25); padding: 1rem 1.1rem; }
.sf-consent-box .btn { min-height: 3rem; border-radius: 12px; }
.sf-footer-link { color: inherit; font-size: inherit; text-decoration: underline; }
/* Meldungen, Bestandsverlauf */
.sf-note { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 0; border-top: 1px solid rgba(127, 127, 127, 0.2); }
.sf-note:first-child { border-top: 0; }
.sf-note.is-unread .sf-note-title { font-weight: 700; }
.sf-note-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 0.45rem; flex: none; background: transparent; }
.sf-note.is-unread .sf-note-dot { background: var(--sf-primary); }
.sf-delta-plus { color: #198754; font-weight: 700; } .sf-delta-minus { color: #b02a37; font-weight: 700; }
.sf-note .btn { min-width: 44px; min-height: 44px; }
