/* =============================================
   REPSHARK – style.css
   Shop (Start, Raster, Produktseite), Admin und rechtliche Seiten.

   Aufbau: schlicht und luftig wie ein Streetwear-Store – weiss bzw.
   schwarz, fette schmale Grossbuchstaben, schwebende Pillen-Navigation.
   Das RepShark-Rot ist der einzige Akzent.
   ============================================= */

/* ===== SCHRIFTEN (selbst gehostet, siehe /fonts) =====
   Frueher von fonts.googleapis.com geladen – dabei ging die IP-Adresse jedes
   Besuchers an Google (LG Muenchen I, 20.01.2022, 3 O 17493/20). Jetzt liegt
   alles auf der eigenen Seite. Der Browser laedt latin-ext nur, wenn ein
   Zeichen daraus auf der Seite steht.

   Inter: Fliesstext, Formulare.          Lizenz: /fonts/OFL.txt
   Archivo Condensed: Navigation, Ueberschriften, Produktnamen – alles,
   was in Grossbuchstaben steht. Breite fest auf "Condensed" (wdth 75),
   Staerke 500-900 variabel.              Lizenz: /fonts/OFL-Archivo.txt */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo Condensed';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('/fonts/archivo-condensed-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo Condensed';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('/fonts/archivo-condensed-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== FARBEN & MASSE =====
   Hell ist der Grundzustand, Dunkel kommt ueber data-theme="dark" auf
   <html>. Das setzt ein kleines Skript im <head> noch vor dem ersten
   Zeichnen: gespeicherte Wahl des Besuchers, sonst die Einstellung des
   Geraets. Admin, Formulare & Co. nutzen dieselben Namen. */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --red: #E8312A;
  --red-d: #B52420;
  --red-glow: rgba(232, 49, 42, 0.15);
  --wa: #25D366;

  --bg: #FFFFFF;
  --bg-rgb: 255 255 255;
  --s1: #FFFFFF;          /* Flaechen (Karten, Formulare) */
  --s2: #F4F4F4;          /* Felder, Chips */
  --tile: #F2F2F2;        /* Hintergrund hinter Produktfotos */
  --b1: #E8E8E8;
  --b2: #D6D6D6;
  --t1: #000000;
  --t2: #6E6E6E;
  --t3: #8A8A8A;
  --tab-off: #C4C4C4;     /* nicht ausgewaehlter Reiter */
  --green: #16A34A;
  --amber: #B45309;       /* "nur auf Bestellung" */
  --blue: #1D63ED;        /* "Coming soon" */
  --pill-bg: #000000;
  --pill-fg: #FFFFFF;
  --pill-mute: #A3A3A3;
  --shade: 0 8px 28px rgba(0,0,0,.16);

  --font-ui: 'Archivo Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --pad: 10px;            /* Seitenrand */
  --r: 8px;
  --r-sm: 6px;
  --r-lg: 14px;
  --hero-r: 18px;
  --top: calc(var(--net-offset) + max(10px, env(safe-area-inset-top)));
  --head-space: calc(var(--top) + 68px);   /* Platz unter der schwebenden Pille */
  --net-offset: 0px;
  color-scheme: light;
}
@media (min-width: 700px) { :root { --pad: 16px; } }

:root[data-theme="dark"] {
  --bg: #0B0B0B;
  --bg-rgb: 11 11 11;
  --s1: #141414;
  --s2: #1C1C1C;
  --tile: #161616;
  --b1: #262626;
  --b2: #333333;
  --t1: #F5F5F5;
  --t2: #A0A0A0;
  --t3: #7A7A7A;
  --tab-off: #4D4D4D;
  --green: #22C55E;
  --amber: #F5A623;
  --blue: #5B9BFF;
  --pill-bg: #FFFFFF;
  --pill-fg: #000000;
  --pill-mute: #6E6E6E;
  --shade: 0 8px 28px rgba(0,0,0,.55);
  color-scheme: dark;
}

/* Verbindungsband (js/offline.js) schiebt alles um seine Hoehe nach unten */
html.net-shift { --net-offset: 36px; }

html { background: var(--bg); scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--bg);
  color: var(--t1);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--net-offset);
  transition: padding-top .2s ease;
}
body.no-scroll { overflow: hidden; }
a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Grossbuchstaben-Schrift fuer alle Bedienelemente */
.u, .pill, .tile-txt, .gtabs, .ctabs, .shop-bar, .sec-head, .hero,
.pdp-info, .fpill, .sheet, .menu-ov, .site-footer, .split-label {
  font-family: var(--font-ui);
}

.page { min-height: 100vh; }

/* ===== SCHWEBENDE PILLE (Navigation) ===== */
.hdr {
  position: fixed; top: var(--top); left: 0; right: 0; z-index: 60;
  display: flex; justify-content: center;
  padding: 0 var(--pad);
  pointer-events: none;
}
.pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 2px;
  height: 50px; max-width: 100%;
  padding: 0 6px 0 10px;
  background: var(--pill-bg); color: var(--pill-fg);
  border-radius: 999px;
  box-shadow: var(--shade);
  font-weight: 700; text-transform: uppercase;
}
.pill-logo { display: flex; align-items: center; gap: 7px; padding-right: 10px; flex-shrink: 0; }
.logo-img {
  width: 34px; height: 34px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(232,49,42,.55));
}
.logo-text { display: flex; flex-direction: column; line-height: 1; gap: 1px; }
.logo-rep {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px; font-weight: 900; letter-spacing: 3px;
  color: var(--red);
  text-shadow: 0 0 10px rgba(232, 49, 42, 0.55);
}
.logo-shark {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 8.5px; font-weight: 800; letter-spacing: 4.6px; padding-left: 1px;
  color: var(--pill-mute);
}
.pill-links { display: none; }
.pill-link {
  font-size: 16px; padding: 8px 11px; border-radius: 999px;
  transition: color .15s;
}
.pill-link:hover { color: var(--red); }
.pill-link[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--red);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.pill-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; transition: color .15s, transform .2s;
}
.pill-btn:hover { color: var(--red); }
.pill-menu { font-size: 16px; padding: 8px 12px 8px 8px; font-weight: 700; text-transform: uppercase; }
.pill-menu:hover { color: var(--red); }
.pill-auth { display: none; }
@media (min-width: 760px) {
  .pill { gap: 4px; padding: 0 8px 0 12px; }
  .pill-links { display: flex; gap: 2px; }
  .pill-menu { display: none; }
  .pill-auth { display: flex; }
}

/* ===== MENUE (Handy) ===== */
.menu-ov {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg); color: var(--t1);
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--head-space) + 6px) var(--pad) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 26px;
  text-transform: uppercase;
  animation: fadeIn .18s ease;
}
.menu-main { display: flex; flex-direction: column; }
.menu-main a {
  font-size: clamp(40px, 13vw, 64px); font-weight: 800; line-height: .98;
  transition: color .15s;
}
.menu-main a:hover, .menu-main a[aria-current="page"] { color: var(--red); }
.menu-h { font-size: 13px; font-weight: 700; color: var(--t2); margin-bottom: 8px; }
.menu-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.menu-cats a { font-size: 20px; font-weight: 700; line-height: 1.1; }
.menu-cats a:hover { color: var(--red); }
.menu-foot { display: flex; flex-direction: column; gap: 12px; font-size: 16px; font-weight: 700; }
.menu-foot a, .menu-foot button { display: flex; align-items: center; gap: 8px; text-align: left; text-transform: uppercase; }
.menu-foot a:hover, .menu-foot button:hover { color: var(--red); }
.menu-foot .ti-brand-whatsapp { color: var(--wa); font-size: 20px; }
.menu-legal { display: flex; gap: 16px; font-size: 13px; color: var(--t2); }
@media (min-width: 760px) { .menu-ov { display: none; } }

/* ===== STARTSEITE: GROSSES BILD / VIDEO ===== */
.hero {
  position: relative; overflow: hidden;
  margin: 0 var(--pad);
  margin-top: max(10px, env(safe-area-inset-top));
  height: calc(100svh - 20px - max(10px, env(safe-area-inset-top)));
  min-height: 500px; max-height: 1100px;
  border-radius: var(--hero-r);
  background: #111; color: #fff;
  isolation: isolate;
}
.hero-slide, .hero-video, .hero-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-slide { opacity: 0; transition: opacity 1.2s ease; }
.hero-video { opacity: 0; transition: opacity .8s ease; }
.hero-video.playing { opacity: 1; }
.hero-slide.on { opacity: 1; }
.hero-slide.on img { animation: heroZoom 9s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 24%),
    linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.18) 46%, rgba(0,0,0,0) 62%);
}
.hero-content {
  /* Handy: Platz fuer die schwebende Pille unten lassen */
  position: absolute; left: 18px; right: 18px; bottom: calc(84px + env(safe-area-inset-bottom));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  text-transform: uppercase;
}
.hero-kicker { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.78); margin-bottom: 10px; }
.hero-links { display: flex; flex-direction: column; }
.hero-link {
  font-size: clamp(38px, 10.5vw, 92px); font-weight: 800; line-height: .94;
  color: rgba(255,255,255,.52); transition: color .2s;
}
.hero-link:first-child, .hero-link:hover, .hero-link:focus-visible { color: #fff; }
.hero-cta {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff;
  font-size: 16px; font-weight: 700; text-transform: uppercase;
  padding: 12px 18px; border-radius: 999px;
  transition: background .15s, transform .1s;
}
.hero-cta:hover { background: var(--red-d); }
.hero-cta:active { transform: scale(.97); }
.hero-msg {
  display: inline-block; margin-bottom: 12px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  padding: 8px 16px; font-size: 18px; font-weight: 700; color: #fff;
}
@media (min-width: 700px) {
  .hero-content { left: 28px; right: 28px; }
  .hero-cta { font-size: 18px; padding: 14px 22px; }
}
/* Erst bei viel Breite steht die Schrift links weit genug von der Pille in der Mitte weg */
@media (min-width: 1100px) { .hero-content { bottom: 28px; } }

/* ===== ABSCHNITTE ===== */
.sec { padding: 34px var(--pad) 0; }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 12px; text-transform: uppercase;
}
.sec-title { font-size: clamp(26px, 6vw, 44px); font-weight: 800; line-height: 1; }
.sec-link { font-size: 15px; font-weight: 700; color: var(--t2); white-space: nowrap; transition: color .15s; }
.sec-link:hover { color: var(--red); }

/* Waagerechte Leiste zum Wischen (Handy), ab Tablet sechs nebeneinander */
.tiles-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 44%;
  gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad);
  scroll-padding: 0 var(--pad);
}
.tiles-row::-webkit-scrollbar { display: none; }
.tiles-row > .tile { scroll-snap-align: start; }
@media (min-width: 600px) { .tiles-row { grid-auto-columns: 30%; } }
@media (min-width: 900px) {
  .tiles-row { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin: 0; padding: 0; }
}

/* Maenner / Frauen */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 34px var(--pad) 0; }
.split-tile {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 3 / 4; border-radius: var(--r-lg); background: var(--tile);
}
.split-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .split-tile:hover img { transform: scale(1.05); } }
.split-tile::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0) 48%);
}
.split-label {
  position: absolute; left: 14px; bottom: 12px; z-index: 1;
  color: #fff; text-transform: uppercase; font-weight: 800;
  font-size: clamp(30px, 8vw, 72px); line-height: .95;
}
.split-label small { display: block; font-size: 14px; font-weight: 700; opacity: .8; margin-top: 4px; }
@media (min-width: 900px) { .split-tile { aspect-ratio: 4 / 3; } }

/* ===== SHOP: REITER, LEISTE, RASTER ===== */
.shop { padding: var(--head-space) var(--pad) 0; }
.notice {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; padding: 10px 14px;
  border-radius: var(--r-lg); background: var(--s2);
  font-family: var(--font-ui); font-size: 15px; font-weight: 700; text-transform: uppercase;
}
.notice i { color: var(--red); font-size: 18px; }
.gtabs { display: flex; gap: 16px; margin-bottom: 6px; text-transform: uppercase; }
.gtab { font-size: 14px; font-weight: 700; color: var(--tab-off); transition: color .15s; }
.gtab:hover { color: var(--t1); }
.gtab[aria-current="page"] { color: var(--t1); }
.ctabs {
  display: flex; gap: 14px; white-space: nowrap;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 8px;
  text-transform: uppercase;
}
.ctabs::-webkit-scrollbar { display: none; }
.ctab { font-size: 18px; font-weight: 700; color: var(--tab-off); transition: color .15s; }
.ctab:hover { color: var(--t1); }
.ctab[aria-current="page"] {
  color: var(--t1);
  text-decoration: underline; text-decoration-color: var(--red);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.shop-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px;
  margin: 6px 0 12px; text-transform: uppercase;
}
.shop-count { font-size: 13px; font-weight: 700; color: var(--t2); margin-right: auto; }
.fchip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  padding: 5px 8px 5px 11px; border-radius: 999px;
  border: 1px solid var(--b2); color: var(--t1);
  transition: border-color .15s, color .15s;
}
.fchip:hover { border-color: var(--red); color: var(--red); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px; }
@media (min-width: 600px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px)  { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Produktkachel */
.tile { display: block; min-width: 0; color: var(--t1); }
.tile-img {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1; background: var(--tile);
}
.tile-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: opacity .35s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.tile-img .tile-alt { opacity: 0; }
@media (hover: hover) {
  .tile:hover .tile-img img { transform: scale(1.03); }
  .tile:hover .tile-alt.ready { opacity: 1; }
}
.tile-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--t3); }
.tile-badge {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  font-family: var(--font-ui); font-size: 12px; font-weight: 700; text-transform: uppercase;
  background: var(--red); color: #fff; padding: 3px 7px 2px;
}
.tile-soon {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.42); color: #fff;
  font-family: var(--font-ui); font-size: 20px; font-weight: 800; text-transform: uppercase;
}
.tile-txt { padding-top: 8px; text-transform: uppercase; font-weight: 700; font-size: 13px; line-height: 1.05; }
.tile-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-brand { color: var(--t2); }
.tile-meta { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 3px; }
.st-sold { color: var(--t2); }
.st-order { color: var(--amber); }
.st-soon { color: var(--blue); }
.st-colors { color: var(--t2); }
.tile.is-sold .tile-img img { opacity: .62; }

.empty-s {
  grid-column: 1 / -1; text-align: center; padding: 4rem 1rem;
  font-family: var(--font-ui); font-size: 18px; font-weight: 700; text-transform: uppercase; color: var(--t2);
}

/* ===== SCHWEBENDE PILLE UNTEN (Filter / Anfrage) ===== */
.fpill {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; gap: 2px; padding: 5px;
  background: var(--pill-bg); color: var(--pill-fg);
  border-radius: 999px; box-shadow: var(--shade);
}
.fpill button {
  display: flex; align-items: center; gap: 6px;
  font-size: 16px; font-weight: 700; text-transform: uppercase;
  padding: 9px 15px; border-radius: 999px; white-space: nowrap;
  transition: color .15s;
}
.fpill button:hover { color: var(--red); }
.fpill .ti-brand-whatsapp { color: var(--wa); font-size: 19px; }
.fp-count {
  min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
  background: var(--red); color: #fff; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
}
.scroll-top-btn {
  position: fixed; right: var(--pad); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 39;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--s1); color: var(--t1); border: 1px solid var(--b2);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  box-shadow: var(--shade);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s, transform .25s, color .15s;
}
.scroll-top-btn.visible { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top-btn:hover { color: var(--red); }

/* ===== FILTER (Handy: von unten, Rechner: von rechts) ===== */
.sheet-ov {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(0,0,0,.42);
  display: flex; align-items: flex-end; justify-content: flex-end;
  animation: fadeIn .2s ease;
}
.sheet {
  width: 100%; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); color: var(--t1);
  border-radius: 20px 20px 0 0;
  padding: 18px 16px 0;
  animation: sheetUp .28s cubic-bezier(.32,.72,0,1);
}
@media (min-width: 700px) {
  .sheet-ov { align-items: stretch; }
  .sheet { width: 420px; max-height: none; height: 100%; border-radius: 0; animation: drawerIn .28s cubic-bezier(.32,.72,0,1); }
}
@keyframes sheetUp  { from { transform: translateY(100%); } to { transform: none; } }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-title { font-size: 28px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.sheet-x { width: 40px; height: 40px; border-radius: 50%; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.sheet-x:hover { color: var(--red); }
.sheet-h { display: block; margin: 18px 0 8px; font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--t2); }
.f-search {
  width: 100%; padding: 12px 14px; border-radius: 999px;
  border: 1px solid var(--b2); background: var(--s2); color: var(--t1);
  font-family: var(--font-body); font-size: 16px;
}
.f-search:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt {
  font-size: 15px; font-weight: 700; text-transform: uppercase;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--b2); color: var(--t1);
  transition: border-color .15s, background .15s, color .15s;
}
.opt:hover { border-color: var(--t1); }
.opt[aria-pressed="true"] { background: var(--t1); border-color: var(--t1); color: var(--bg); }
.sheet-foot {
  position: sticky; bottom: 0; display: flex; gap: 8px;
  margin-top: 22px; padding: 12px 0 calc(16px + env(safe-area-inset-bottom));
  background: var(--bg);
}

/* Knoepfe im neuen Stil (Pille) */
.btn-solid, .btn-line {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 52px; padding: 0 20px; border-radius: 999px;
  font-family: var(--font-ui); font-size: 18px; font-weight: 700; text-transform: uppercase;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn-solid { flex: 1; background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-d); }
.btn-line { border: 1px solid var(--b2); color: var(--t1); }
.btn-line:hover { border-color: var(--t1); }
.btn-solid:active, .btn-line:active { transform: scale(.98); }

/* ===== PRODUKTSEITE ===== */
.pdp-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--head-space) var(--pad) 10px;
  font-family: var(--font-ui); text-transform: uppercase;
}
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 700; color: var(--t2); transition: color .15s; }
.back-link:hover { color: var(--red); }
.icon-line {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--b2);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  transition: border-color .15s, color .15s;
}
.icon-line:hover { border-color: var(--red); color: var(--red); }
.pdp { display: grid; gap: 18px; padding: 0 var(--pad); }
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); gap: 40px; align-items: start; }
}
.pdp-media { position: relative; min-width: 0; }
/* Handy: Fotos nebeneinander zum Wischen (natives Scrollen mit Einrasten) */
.pdp-gallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--pad));
}
.pdp-gallery::-webkit-scrollbar { display: none; }
.pdp-slide {
  flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always;
  position: relative; aspect-ratio: 4 / 5; background: var(--tile);
  display: block; padding: 0; cursor: zoom-in;
}
.pdp-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.pdp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--b2); padding: 0; transition: background .2s, transform .2s; }
.pdp-dot.on { background: var(--red); transform: scale(1.25); }
/* Rechner: Fotos untereinander, Infos laufen rechts mit */
@media (min-width: 900px) {
  .pdp-gallery { flex-direction: column; gap: 8px; overflow: visible; margin: 0; }
  .pdp-slide { flex: none; width: 100%; max-height: calc(100svh - 110px); }
  .pdp-dots { display: none; }
}
.pdp-info { display: flex; flex-direction: column; gap: 18px; text-transform: uppercase; }
@media (min-width: 900px) { .pdp-info { position: sticky; top: var(--head-space); } }
.pdp-brand { font-size: 16px; font-weight: 700; color: var(--t2); }
.pdp-name { font-size: clamp(32px, 7vw, 52px); font-weight: 800; line-height: .95; margin-top: 4px; }
.pdp-price { font-size: 26px; font-weight: 700; margin-top: 10px; }
.pdp-status { font-size: 15px; font-weight: 700; margin-top: 4px; }
.st-avail { color: var(--green); }
.pdp-label { font-size: 14px; font-weight: 700; color: var(--t2); margin-bottom: 8px; }
.pdp-label b { color: var(--red); }
.pdp-actions { display: flex; flex-direction: column; gap: 8px; }
.pdp-details { display: flex; flex-direction: column; border-top: 1px solid var(--b1); }
.pdp-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--b1);
  font-size: 15px; font-weight: 700;
}
.pdp-row span:first-child { color: var(--t2); }
.pdp-gone { padding: var(--head-space) var(--pad) 0; text-align: center; font-family: var(--font-ui); text-transform: uppercase; }
.pdp-gone h1 { font-size: clamp(32px, 8vw, 56px); font-weight: 800; line-height: 1; margin: 40px 0 10px; }
.pdp-gone p { font-size: 16px; font-weight: 700; color: var(--t2); margin-bottom: 22px; }
.pdp-gone .btn-solid { display: inline-flex; flex: none; }

/* Groessen */
.size-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 6px; }
.size-chip {
  position: relative; padding: 11px 0;
  border: 1px solid var(--b2); background: transparent; color: var(--t1);
  font-family: var(--font-ui); font-size: 17px; font-weight: 700;
  transition: border-color .15s, background .15s, color .15s;
}
.size-chip:hover:not(.unavail) { border-color: var(--t1); }
.size-chip.selected { background: var(--red); border-color: var(--red); color: #fff; }
/* Nicht verfuegbar: ausgegraut + diagonal durchgestrichen */
.size-chip.unavail {
  color: var(--t3); border-color: var(--b1); cursor: not-allowed;
  background-image: linear-gradient(to top right, transparent 47%, var(--b2) 48%, var(--b2) 52%, transparent 53%);
}

/* Farbvarianten */
.mv-var-row { display: flex; gap: 6px; flex-wrap: wrap; }
.mv-var {
  width: 62px; height: 62px; overflow: hidden; flex-shrink: 0;
  border: 2px solid transparent; background: var(--tile);
  display: flex; align-items: center; justify-content: center; color: var(--t3);
  transition: border-color .15s;
}
.mv-var:hover { border-color: var(--t2); }
.mv-var[aria-current="page"] { border-color: var(--red); }
.mv-var img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Kauf-Knoepfe */
.btn-buy, .btn-wa, .btn-unavail {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 20px; border-radius: 999px;
  font-family: var(--font-ui); font-size: 19px; font-weight: 700; text-transform: uppercase;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn-buy { background: var(--red); color: #fff; }
.btn-buy:hover { background: var(--red-d); }
.btn-wa { border: 1px solid var(--b2); color: var(--t1); }
.btn-wa:hover { border-color: var(--wa); }
.btn-wa i { color: var(--wa); font-size: 21px; }
.btn-unavail { background: var(--s2); color: var(--t2); cursor: not-allowed; }
.btn-buy:active, .btn-wa:active { transform: scale(.98); }

.order-box, .soon-box {
  border-radius: var(--r-lg); padding: 14px 16px;
  font-family: var(--font-body); text-transform: none;
}
.order-box { background: rgba(245,166,35,.1); border: 1px solid rgba(245,166,35,.32); }
.soon-box  { background: rgba(29,99,237,.08); border: 1px solid rgba(29,99,237,.3); }
.order-box-title, .soon-box-title {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-ui); text-transform: uppercase; font-size: 18px; font-weight: 800;
}
.order-box-title { color: var(--amber); }
.soon-box-title { color: var(--blue); }
.order-box-sub, .soon-box-sub { font-size: 13px; color: var(--t2); line-height: 1.55; margin-top: 5px; }

/* ===== ZOOM (Vollbild eines Fotos) ===== */
.zoom-ov { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.96); display: flex; align-items: center; justify-content: center; animation: fadeIn .2s ease; }
.zoom-ov img { max-width: 100%; max-height: 100%; object-fit: contain; }
.zoom-close {
  position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 201;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: #000; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.zoom-close:hover { background: var(--red); color: #fff; }

/* ===== WERBEBANNER (rotiert alle 7s) ===== */
.ad-wrap { padding: 34px var(--pad) 0; }
.ad-banner {
  position: relative; width: 100%;
  aspect-ratio: 1400 / 550;
  border-radius: var(--r-lg); overflow: hidden;
  -webkit-user-select: none; user-select: none;
  container-type: inline-size;
}
.ad-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); display: block; }
.ad-layer { position: absolute; inset: 0; }
.ad-text, .ad-product { position: absolute; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.ad-text.active, .ad-product.active { opacity: 1; }
.ad-text { top: 5%; left: 3%; width: 62%; height: 50%; object-fit: contain; object-position: left top; }
.ad-product {
  top: 50%; right: 2.5%; height: 90%; width: 40%;
  transform: translateY(-50%); object-fit: contain; object-position: right center;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.4));
}
.ad-promo { position: absolute; left: 3%; bottom: 7%; max-width: 60%; display: flex; flex-direction: column; gap: .5cqw; }
.ad-promo-line1 {
  font-family: var(--font-ui); text-transform: uppercase;
  font-size: 4.4cqw; font-weight: 800; line-height: 1.05; color: var(--red);
  text-shadow: 0 2px 6px rgba(0,0,0,.8);
}
.ad-promo-line2 {
  font-size: 2.4cqw; font-weight: 600; line-height: 1.2; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.9), 0 0 4px rgba(0,0,0,.95);
}

/* ===== ANFRAGE-FENSTER (WhatsApp) ===== */
.welcome-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .2s ease;
}
.welcome-box {
  background: var(--bg); color: var(--t1);
  border-radius: 20px; max-width: 380px; width: 100%;
  padding: 26px 22px 20px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  animation: slideUp .3s ease;
}
.welcome-icon { font-size: 36px; color: var(--wa); margin-bottom: 8px; }
.welcome-title { font-family: var(--font-ui); font-size: 30px; font-weight: 800; text-transform: uppercase; line-height: 1; margin-bottom: 12px; }
.welcome-text { font-size: 14px; color: var(--t2); line-height: 1.6; margin-bottom: 18px; }
.welcome-text strong { color: var(--t1); }
.welcome-wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--wa); color: #fff; min-height: 52px; border-radius: 999px;
  font-family: var(--font-ui); font-size: 18px; font-weight: 700; text-transform: uppercase;
  margin-bottom: 8px; transition: opacity .15s;
}
.welcome-wa-btn:hover { opacity: .9; }
.welcome-close {
  width: 100%; min-height: 46px; border-radius: 999px; border: 1px solid var(--b2);
  font-family: var(--font-ui); font-size: 16px; font-weight: 700; text-transform: uppercase; color: var(--t2);
}
.welcome-close:hover { border-color: var(--t1); color: var(--t1); }

/* ===== FUSSZEILE ===== */
.site-footer {
  margin-top: 64px;
  padding: 26px var(--pad) calc(96px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--b1);
  display: flex; flex-direction: column; gap: 14px;
  text-transform: uppercase;
}
.footer-brand { font-size: 30px; font-weight: 800; line-height: 1; }
.footer-brand span { color: var(--red); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; font-weight: 700; }
.footer-links a, .footer-links button { color: var(--t2); transition: color .15s; text-transform: uppercase; font-weight: 700; }
.footer-links a:hover, .footer-links button:hover, .footer-links a[aria-current="page"] { color: var(--t1); }
.footer-copy { font-family: var(--font-body); text-transform: none; font-size: 12px; color: var(--t3); }

/* ===== RECHTLICHE SEITEN (legal-notice.html / privacy-policy.html) ===== */
.legal-page { max-width: 760px; margin: 0 auto; padding: var(--head-space) var(--pad) 0; }
.legal-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-ui); font-size: 16px; font-weight: 700; text-transform: uppercase;
  color: var(--t2); transition: color .15s;
}
.legal-back:hover { color: var(--red); }
.legal-page h1 {
  font-family: var(--font-ui); text-transform: uppercase;
  font-size: clamp(36px, 9vw, 64px); font-weight: 800; line-height: .95;
  margin: 14px 0 22px;
}
.legal-content { font-size: 15px; line-height: 1.7; color: var(--t2); }
.legal-content h3 {
  font-family: var(--font-ui); text-transform: uppercase;
  font-size: 19px; font-weight: 800; color: var(--t1);
  margin: 26px 0 6px;
}
.legal-content h3:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 8px; }
.legal-content a { color: var(--red); text-decoration: underline; word-break: break-word; }
.legal-content strong { color: var(--t1); }

/* ===== ADMIN ===== */
.admin-page { max-width: 1280px; margin: 0 auto; padding: var(--head-space) var(--pad) 120px; }
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.adm-title { font-family: var(--font-ui); font-size: clamp(36px, 8vw, 60px); font-weight: 800; text-transform: uppercase; line-height: .95; }
.adm-new { flex: none; min-height: 46px; font-size: 17px; padding: 0 18px; }
.adm-tabs { margin-bottom: 14px; }
.adm-n { font-size: 13px; color: var(--t2); vertical-align: middle; }
.adm-h { font-family: var(--font-ui); font-size: 24px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.adm-sep { width: 1px; align-self: stretch; background: var(--b2); margin: 2px 4px; }

/* Kacheln mit Zahlen */
.adm-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.adm-stat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 12px; border: 1px solid var(--b1); border-radius: 14px; text-align: left;
  font-family: var(--font-ui); text-transform: uppercase;
}
button.adm-stat:hover { border-color: var(--t1); }
.adm-stat b { font-size: 26px; font-weight: 800; line-height: 1; }
.adm-stat span { font-size: 12px; font-weight: 700; color: var(--t2); }
.c-avail { color: var(--green); } .c-order { color: var(--amber); } .c-red { color: var(--red); }
@media (max-width: 600px) {
  .adm-stats { grid-template-columns: repeat(5, minmax(84px, 1fr)); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)) 12px; padding: 0 var(--pad); }
  .adm-stats::-webkit-scrollbar { display: none; }
}

/* Suche, Filter */
.adm-tools { display: grid; grid-template-columns: minmax(0, 1fr) 190px 170px; gap: 8px; margin-bottom: 8px; }
@media (max-width: 700px) {
  .adm-tools { grid-template-columns: 1fr 1fr; }
  .adm-search { grid-column: 1 / -1; }
}
.adm-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)) 6px; padding: 2px var(--pad); }
.adm-chips::-webkit-scrollbar { display: none; }
.opt-sm { font-size: 14px; padding: 6px 11px; white-space: nowrap; flex-shrink: 0; }
.opt-sm span { color: var(--t2); margin-left: 2px; }
.opt-sm[aria-pressed="true"] span { color: inherit; opacity: .7; }

/* Liste */
.adm-listhead {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--b1);
  font-family: var(--font-ui); font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--t2);
}
.adm-reset { color: var(--red); font-weight: 700; text-transform: uppercase; }
.adm-check { display: flex; align-items: center; justify-content: center; width: 28px; flex-shrink: 0; cursor: pointer; margin: 0; }
.adm-check input { width: 18px; height: 18px; accent-color: var(--red); cursor: pointer; }
.adm-row {
  display: grid; align-items: center; gap: 4px 12px;
  grid-template-columns: 28px 56px minmax(0, 1fr) auto auto;
  grid-template-areas: "check thumb main price ctrls";
  padding: 10px 0; border-bottom: 1px solid var(--b1);
  transition: background .15s;
}
.adm-row.is-sel { background: var(--red-glow); }
.adm-check { grid-area: check; }
.adm-thumb {
  grid-area: thumb; width: 56px; height: 56px; background: var(--tile);
  display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--t3); font-size: 22px;
}
.adm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-row.is-sold .adm-thumb img { opacity: .55; }
.adm-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.adm-name {
  font-family: var(--font-ui); font-size: 16px; font-weight: 700; text-transform: uppercase; line-height: 1.05;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.adm-main:hover .adm-name { color: var(--red); }
.adm-sub { font-size: 12px; color: var(--t2); }
.adm-warn { color: var(--amber); }
.adm-price { grid-area: price; font-family: var(--font-ui); font-size: 17px; font-weight: 700; white-space: nowrap; }
.adm-ctrls { grid-area: ctrls; display: flex; align-items: center; gap: 6px; }
.adm-status {
  appearance: none; -webkit-appearance: none;
  height: 34px; padding: 0 28px 0 12px; border-radius: 999px; border: 1px solid var(--b2);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center;
  color: var(--t1); font-family: var(--font-ui); font-size: 15px; font-weight: 700; text-transform: uppercase; cursor: pointer;
}
.adm-status.ss-available { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, var(--b2)); }
.adm-status.ss-order     { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, var(--b2)); }
.adm-status.ss-sold      { color: var(--t2); }
@media (max-width: 760px) {
  .adm-row {
    grid-template-columns: 28px 56px minmax(0, 1fr) auto;
    grid-template-areas: "check thumb main price" "ctrls ctrls ctrls ctrls";
    gap: 8px 10px;
  }
  .adm-ctrls { justify-content: space-between; }
  .adm-ctrls .adm-status { flex: 1; max-width: 170px; }
}

/* Leiste fuer mehrere ausgewaehlte Produkte */
.bulk-bar {
  position: fixed; left: var(--pad); right: var(--pad); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
  max-width: 980px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px;
  background: var(--pill-bg); color: var(--pill-fg); border-radius: 999px; box-shadow: var(--shade);
  font-family: var(--font-ui); text-transform: uppercase; font-weight: 700;
  animation: slideUp .2s ease;
}
.bulk-n { white-space: nowrap; font-size: 16px; }
.bulk-actions { flex: 1; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.bulk-actions::-webkit-scrollbar { display: none; }
.bulk-actions button, .bulk-actions select {
  flex-shrink: 0; height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--pill-fg) 30%, transparent);
  background: transparent; color: inherit; font: inherit; font-size: 15px; text-transform: uppercase; cursor: pointer;
}
.bulk-actions button:hover { border-color: var(--pill-fg); }
.bulk-actions select option { color: #000; }
.bulk-actions .adm-sep { background: color-mix(in srgb, var(--pill-fg) 30%, transparent); }
.bulk-del { color: #ff6b63 !important; }
.bulk-x { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }

/* Formularfelder (Editor, Kategorien, Login) */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .ed-label {
  font-family: var(--font-ui); font-size: 15px; font-weight: 700; text-transform: uppercase; color: var(--t2);
  display: flex; align-items: baseline; gap: 8px;
}
.ed-count { font-size: 13px; color: var(--t3); }
.input {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--b2); border-radius: 12px;
  background: var(--bg); color: var(--t1);
  font-family: var(--font-body); font-size: 16px;   /* 16px: kein Auto-Zoom auf dem iPhone */
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--t3); }
.input:focus { outline: none; border-color: var(--t1); box-shadow: 0 0 0 3px var(--red-glow); }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.has-err .input, .has-err .seg, .has-err .ed-sizes { border-color: var(--red); }
.ed-err { color: var(--red); font-size: 13px; font-weight: 600; }
.ed-hint { font-size: 13px; color: var(--t2); line-height: 1.45; }
.ed-hint a, .ed-link { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ed-link { align-self: flex-start; font-size: 13px; }
.ed-note { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 14px; border: 1px dashed var(--b2); border-radius: 12px; color: var(--t2); font-size: 14px; }
.ed-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .ed-grid2 { grid-template-columns: 1fr; } }
.ed-inline { display: flex; gap: 8px; align-items: center; }
.ed-inline .icon-line { flex-shrink: 0; width: 46px; height: 46px; }

/* Segment-Knoepfe (Maenner/Frauen, Status) */
.seg { display: inline-flex; border: 1px solid var(--b2); border-radius: 999px; padding: 3px; gap: 2px; align-self: flex-start; }
.seg-btn {
  min-height: 38px; padding: 0 15px; border-radius: 999px;
  font-family: var(--font-ui); font-size: 16px; font-weight: 700; text-transform: uppercase; color: var(--t2);
  transition: background .15s, color .15s;
}
.seg-btn:hover { color: var(--t1); }
.seg-btn.on { background: var(--red); color: #fff; }
.seg-wide { display: flex; align-self: stretch; }
.seg-wide .seg-btn { flex: 1; }
.seg-sm { padding: 2px; }
.seg-sm .seg-btn { min-height: 0; width: 32px; height: 30px; padding: 0; font-size: 14px; }
@media (max-width: 760px) { .seg-sm .seg-btn { width: 40px; height: 32px; } }

/* Schalter (Coming soon, Holiday, Banner) */
.switch-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; margin: 0; }
.switch-row b { display: block; font-family: var(--font-ui); font-size: 17px; text-transform: uppercase; color: var(--t1); }
.switch-row small { display: block; font-size: 13px; color: var(--t2); margin-top: 2px; line-height: 1.4; }
.switch {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; cursor: pointer;
  width: 48px; height: 28px; border-radius: 14px; background: var(--b2); position: relative;
  transition: background .2s; margin-top: 1px;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: transform .2s;
}
.switch:checked { background: var(--red); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Editor */
.ed-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ed-head .back-link { align-self: flex-start; }
.ed-title { font-family: var(--font-ui); font-size: clamp(26px, 6vw, 40px); font-weight: 800; text-transform: uppercase; line-height: 1; }
.ed-dirty { color: var(--red); }
.editor { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .editor { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 40px; align-items: start; }
  .ed-media { position: sticky; top: var(--head-space); }
}
.ed-media, .ed-fields { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ed-fields { gap: 20px; }

.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 150px; padding: 18px; border: 2px dashed var(--b2); border-radius: 16px;
  text-align: center; cursor: pointer; color: var(--t2); margin: 0;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--red); background: var(--red-glow); }
.drop.busy { cursor: progress; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop i { font-size: 30px; color: var(--red); }
.drop b { font-family: var(--font-ui); font-size: 19px; text-transform: uppercase; color: var(--t1); }
.drop span { font-size: 13px; }
.ed-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ed-thumb { position: relative; aspect-ratio: 1 / 1; background: var(--tile); overflow: hidden; cursor: grab; }
.ed-thumb.dragging { opacity: .4; }
.ed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ed-cover {
  position: absolute; left: 6px; top: 6px;
  background: var(--red); color: #fff; padding: 2px 7px 1px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.ed-x {
  position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.ed-x:hover { background: var(--red); }
.ed-arrows { position: absolute; left: 5px; right: 5px; bottom: 5px; display: flex; justify-content: space-between; }
.ed-arrows button {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.ed-arrows button:disabled { opacity: 0; pointer-events: none; }
.ed-arrows button:hover { background: var(--red); }
.ed-preview { max-width: 220px; pointer-events: none; }
/* Handy: im Editor zaehlt jeder Zentimeter – Admin-Kopf weg (der Link
   "Products" fuehrt zurueck), Fotofeld und Vorschau kleiner */
@media (max-width: 700px) {
  .is-editor .adm-head, .is-editor .adm-tabs { display: none; }
  .drop { min-height: 104px; }
  .ed-preview { max-width: 160px; }
}

.ed-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; border: 1px solid transparent; border-radius: 12px; }
.ed-size {
  min-height: 44px; border: 1px solid var(--b2); color: var(--t2);
  font-family: var(--font-ui); font-size: 17px; font-weight: 700;
  transition: background .15s, border-color .15s, color .15s;
}
.ed-size:hover { border-color: var(--t1); color: var(--t1); }
.ed-size.on { background: var(--t1); border-color: var(--t1); color: var(--bg); }

.ed-siblings { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ed-sib { width: 48px; height: 48px; background: var(--tile); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--t3); border: 2px solid transparent; }
.ed-sib:hover { border-color: var(--red); }
.ed-sib img { width: 100%; height: 100%; object-fit: cover; }

/* Speichern-Leiste unten */
.ed-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--b1);
}
.ed-bar-in { max-width: 1280px; margin: 0 auto; display: flex; gap: 8px; justify-content: flex-end; }
.ed-bar .btn-solid { flex: 0 1 220px; }
.ed-bar .btn-line, .ed-bar .btn-solid { min-height: 50px; font-size: 17px; padding: 0 16px; }
.ed-del:hover { border-color: var(--red); color: var(--red); }
@media (max-width: 700px) {
  .ed-bar .btn-solid { flex: 1; }
  .ed-more span { display: none; }
  .ed-more { width: 50px; padding: 0 !important; }
}
.btn-solid:disabled, .btn-line:disabled { opacity: .55; cursor: progress; }

/* Karten (Kategorien, Startseite) */
.adm-card {
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--b1); border-radius: 18px; padding: 18px; margin-bottom: 14px;
}
.adm-card.is-on { border-color: color-mix(in srgb, var(--red) 45%, var(--b1)); }
.adm-card > .btn-solid, .adm-card > .btn-line { align-self: flex-start; padding: 0 22px; }

/* Kategorien bearbeiten */
.cat-list { display: flex; flex-direction: column; gap: 6px; }
.cat-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 150px 44px 46px; gap: 6px; align-items: center; }
.cat-move { display: flex; gap: 4px; }
.cat-move .icon-line { width: 38px; height: 46px; border-radius: 12px; }
.icon-line:disabled { opacity: .3; cursor: default; }
.cat-count {
  height: 46px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: 17px; font-weight: 700; color: var(--t2);
  border-radius: 12px; transition: color .15s;
}
.cat-count:hover { color: var(--red); }
.cat-del { width: 46px; height: 46px; border-radius: 12px; }
.cat-del:hover { border-color: var(--red); color: var(--red); }
.cat-add { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 6px; align-items: center; }
.cat-add .btn-solid { min-height: 46px; font-size: 17px; }
@media (max-width: 600px) {
  .cat-row { grid-template-columns: auto minmax(0, 1fr) 40px 46px; }
  .cat-row .cat-type { grid-column: 2 / 3; grid-row: 2; }
  .cat-add { grid-template-columns: minmax(0, 1fr) auto; }
  .cat-add select { grid-column: 1 / -1; grid-row: 2; }
}

/* Startseite & Werbebanner */
.hero-admin-media { width: 100%; max-width: 640px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; background: #000; display: block; }
.ad-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 600px) { .ad-slots { grid-template-columns: 1fr; } }
.ad-slot { display: grid; grid-template-columns: 20px 1fr 1fr; gap: 6px; align-items: center; }
.ad-slot-title { font-family: var(--font-ui); font-size: 18px; font-weight: 800; color: var(--t2); }
.ad-up {
  position: relative; cursor: pointer; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 1px dashed var(--b2); border-radius: 12px; padding: 6px; transition: border-color .15s;
}
.ad-up:hover { border-color: var(--red); }
.ad-up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ad-up img { width: 100%; height: 54px; object-fit: contain; background: #6b6b6b; border-radius: 6px; }
.ad-up .spin { font-size: 20px; color: var(--red); height: 54px; display: flex; align-items: center; }
.ad-up span { font-family: var(--font-ui); font-size: 13px; color: var(--t2); font-weight: 700; text-transform: uppercase; }

/* Anmeldung */
.login-wrap {
  max-width: 380px; margin: 0 auto; padding: calc(var(--head-space) + 3vh) var(--pad) 0;
  display: flex; flex-direction: column; gap: 14px;
}
.login-wrap .btn-solid { flex: none; }

/* ===== KLEINKRAM ===== */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 9999;
  background: var(--pill-bg); color: var(--pill-fg);
  padding: 11px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shade);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.toast.show { opacity: 1; }
.load-error {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 3rem 1rem; text-align: center;
}
.load-error i { font-size: 30px; color: var(--red); }
.load-error-title { font-family: var(--font-ui); font-size: 22px; font-weight: 800; text-transform: uppercase; }
.load-error-sub { font-size: 13px; color: var(--t2); max-width: 320px; line-height: 1.5; }
.load-error .btn-solid { flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; display: inline-block; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes csPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== LADEBILDSCHIRM: SHARK fuellt sich, dann Flug hindurch =====
   Markup und Fuellstand stehen in index.html (ganz oben im <body>).
   "REPShark" in einer Zeile: REP rot, Shark zweimal deckungsgleich – grau
   (.lm-dim) und darueber weiss (.lm-fill), das nur unterhalb der Welle
   sichtbar ist. Die Welle ist eine SVG-Maske, deren Position das Skript
   Bild fuer Bild setzt: seitlich wandert sie, nach oben steigt der Pegel.
   Masse in em, damit die Welle mit der Schrift mitwaechst.
   Immer dunkel (wie ein Kino-Intro), auch im Hell-Modus: sonst waere
   weiss auf weiss nicht zu sehen. */
.loader {
  position: fixed; inset: 0; z-index: 20000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.loader::before {
  content: ''; position: absolute; inset: 0;
  background: #0B0B0B;
  transition: opacity .6s ease .25s;
}
.loader.out { pointer-events: none; }
.loader.out::before { opacity: 0; }
.lm {
  position: relative; display: flex; align-items: baseline; white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 900; line-height: 1;            /* Schreibweise wie im Markup: REP gross, Shark normal */
  font-size: min(17vw, 160px); letter-spacing: -.01em;
  /* Flug durch die Mitte des Schriftzugs – Schrift bleibt beim Vergroessern scharf */
  transform-origin: 50% 55%;
  transition: transform 1s cubic-bezier(.7,0,.2,1), opacity .45s ease .45s;
}
.loader.out .lm { transform: scale(9); opacity: 0; }
.lm-rep { color: var(--red); text-shadow: 0 0 .14em rgba(232,49,42,.35); }
.lm-shark { position: relative; display: inline-block; }
.lm-dim  { color: #333; }
.lm-fill {
  position: absolute; left: 0; top: 0; color: #FFFFFF;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='1200' viewBox='0 0 240 1200' preserveAspectRatio='none'%3E%3Cpath d='M0 12 Q30 0 60 12 T120 12 T180 12 T240 12 V1200 H0 Z' fill='black'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='1200' viewBox='0 0 240 1200' preserveAspectRatio='none'%3E%3Cpath d='M0 12 Q30 0 60 12 T120 12 T180 12 T240 12 V1200 H0 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-size: 2.4em 12em; mask-size: 2.4em 12em;
  -webkit-mask-position: 0 9999px; mask-position: 0 9999px;   /* leer, bis das Skript fuellt */
}
@media (prefers-reduced-motion: reduce) {
  .loader.out .lm { transform: none; }
  .lm-fill { -webkit-mask: none; mask: none; }
}
/* Nach dem Ladebildschirm (z.B. "Try again"): schlichter Kreisel */
.page-loading { display: flex; justify-content: center; padding: calc(var(--head-space) + 18vh) 0; font-size: 30px; color: var(--red); }

/* Wortmarke des Offline-Bildschirms (Proportionen wie das Nav-Logo) */
.splash-mark { position: relative; z-index: 2; text-align: center; }
.splash-rep, .splash-sub { line-height: 1; text-transform: uppercase; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.splash-rep {
  font-size: clamp(52px, 14vmin, 168px); font-weight: 900; color: var(--red);
  letter-spacing: .18em; padding-left: .18em;
  text-shadow: 0 0 .09em rgba(232,49,42,.6), 0 0 .24em rgba(232,49,42,.3);
}
.splash-sub {
  font-size: clamp(26px, 7vmin, 84px); font-weight: 800; color: var(--t2);
  letter-spacing: .545em; padding-left: .545em; margin-top: .12em;
}
@keyframes wordStamp { from { opacity: 0; transform: scale(1.14); } to { opacity: 1; transform: scale(1); } }

/* ===== OFFLINE-SCREEN (kein Netz / sehr langsame Verbindung) =====
   Liegt wie der Toast ausserhalb von #root und wird von js/offline.js
   per .show ein-/ausgeblendet – ueberlebt also jeden render()-Aufruf. */
.offline-screen {
  position: fixed; inset: 0; z-index: 25000;
  background: var(--bg); display: none;
  align-items: center; justify-content: center; overflow: hidden;
}
.offline-screen.show { display: flex; }
.offline-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  /* seitlich schmal, damit die 342px breite Figur auf ein Handy passt */
  padding: 24px 12px; text-align: center;
  animation: wordStamp .5s cubic-bezier(.16,1,.3,1) both;
}
/* Sprite-Strip: 7 Frames aus offline-sprite.png, je 171x164px, ganzzahlig
   verdoppelt (342x328). Ueber die echten Masse statt transform: scale(2),
   sonst ragt die Figur aus ihrem Kasten heraus. */
.offline-sprite-wrap { position: relative; height: 354px; width: 342px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 6px; }
.offline-sprite {
  width: 342px; height: 328px;
  background: url('/offline-sprite.png') no-repeat 0 0 / 2394px 328px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 14px rgba(232,49,42,.55)) drop-shadow(0 0 30px rgba(232,49,42,.25));
  animation: offlineSpriteRun 1.6s steps(7) infinite, offlineBob 1.6s ease-in-out infinite;
}
@keyframes offlineSpriteRun { from { background-position: 0 0; } to { background-position: -2394px 0; } }
@keyframes offlineBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.offline-shadow {
  position: absolute; bottom: 14px; left: 0; right: 0; margin: 0 auto;
  width: 180px; height: 16px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.45), transparent 72%);
  animation: offlineShadowPulse 1.6s ease-in-out infinite;
}
@keyframes offlineShadowPulse { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(.8); opacity: .28; } }
.offline-mark { position: relative; margin-bottom: 2px; }
.offline-mark .splash-rep { font-size: clamp(30px, 7vmin, 46px); }
.offline-mark .splash-sub { font-size: clamp(15px, 3.5vmin, 23px); }
.offline-mark::before { content: none; }
.offline-msg { font-family: var(--font-ui); font-size: clamp(24px, 5.4vmin, 36px); font-weight: 800; text-transform: uppercase; }
.offline-sub { font-size: 13px; color: var(--t2); line-height: 1.55; max-width: 320px; }
.offline-retry { flex: none; width: auto; padding: 0 30px; margin-top: 8px; }
.offline-status { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--t3); margin-top: 2px; }
.offline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: csPulse 1.5s ease-in-out infinite; }
.offline-dot.slow { background: #f5a623; box-shadow: 0 0 8px #f5a623; }

/* ===== VERBINDUNGSBAND (langsam / offline mit Inhalt) =====
   Schmaler Streifen ganz oben. Statt die Seite zu ueberdecken, schiebt er
   sie um seine eigene Hoehe nach unten (siehe --net-offset). */
.net-banner {
  position: fixed; top: 0; left: 0; right: 0; height: 36px; z-index: 65;
  display: none; align-items: center; justify-content: center; gap: 9px; padding: 0 12px;
  background: var(--s1); color: var(--t1); border-bottom: 1px solid var(--b2);
  font-size: 12.5px; font-weight: 600; box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.net-banner.show { display: flex; animation: netBannerIn .22s ease both; }
@keyframes netBannerIn { from { transform: translateY(-100%); } to { transform: none; } }
.net-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--red); box-shadow: 0 0 8px var(--red); animation: csPulse 1.5s ease-in-out infinite; }
.net-dot.slow { background: #f5a623; box-shadow: 0 0 8px #f5a623; }
.net-retry { border: 1px solid var(--b2); font-size: 11.5px; padding: 4px 11px; border-radius: 20px; transition: all .15s; }
.net-retry:hover { border-color: var(--red); color: var(--red); }

/* 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;
  }
}
