/* Lockvogel: Premium-Stil
   Ruhige Flächen, viel Weißraum, klare Typografie (Inter, lokal eingebunden).
   Markenfarben nur als Akzent: Grün für Aktionen und Hinweise, Gelb sehr sparsam. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --tint: #f5f5f7;
  --tint-2: #ececf0;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;

  --brand: #2f8a1c;        /* Lockvogel-Grün, abgedunkelt für Text und Buttons */
  --brand-hover: #267416;
  --brand-soft: #eef6ea;
  --accent: #ffd21f;       /* Lockvogel-Gelb, nur für winzige Akzente */
  --danger: #c4281c;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;

  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --header-h: 56px;
  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0 0 .4em; font-weight: 700; letter-spacing: -0.03em; line-height: 1.07; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.05rem; letter-spacing: -0.015em; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.4; color: var(--muted); letter-spacing: -0.02em; max-width: 46ch; }
.muted { color: var(--muted); font-size: .88rem; }
.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; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip-link:focus { top: 12px; text-decoration: none; }
.container { width: min(var(--maxw), 100%); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  font: 500 1rem/1.2 var(--font); letter-spacing: -0.01em;
  color: #fff; background: var(--brand);
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.btn:hover { text-decoration: none; color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--brand-hover); } }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); }
.btn-dark { background: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-dark:hover { background: #000; } }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: var(--brand-soft); color: var(--brand); } }
.btn-lg { min-height: 52px; padding: 14px 30px; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--tint-2); color: var(--faint); cursor: not-allowed; transform: none; }
.link-more { font-weight: 500; font-size: 1.05rem; color: var(--brand); white-space: nowrap; }
.link-more::after { content: "\203A"; display: inline-block; margin-left: 6px; font-size: 1.25em; line-height: 0; transform: translateY(1px); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-more:hover::after { transform: translate(3px, 1px); } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; color: var(--brand); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Ankündigung (statisch, kein Laufband) ---------- */
.announcement { background: var(--tint); color: var(--ink-2); text-align: center; font-size: .82rem; }
.announcement p { margin: 0; padding: 9px var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 251, 253, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }
.header-inner {
  width: min(var(--maxw), 100%); margin-inline: auto; padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: auto; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.03em; }
.main-nav { flex: 1; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a, .mega-trigger {
  display: inline-block; padding: 6px 12px;
  font: 400 .88rem var(--font); letter-spacing: -0.005em; color: var(--ink-2);
  background: none; border: 0; border-radius: 8px; cursor: pointer;
  transition: color 200ms ease;
}
.main-nav a:hover, .mega-trigger:hover, .mega-trigger[aria-expanded="true"] { color: var(--ink); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.mega-trigger::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-out); }
.mega-trigger[aria-expanded="true"]::after { transform: translateY(0) rotate(-135deg); }
.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 36px 0 44px;
  background: var(--bg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
}
.has-mega.open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.mega-inner { width: min(var(--maxw), 100%); margin-inline: auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 64px; }
.mega-title { font-size: .78rem; color: var(--muted); margin-bottom: 12px; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mega a { display: block; padding: 2px 0; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.mega small { display: block; font-size: .82rem; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
.nav-type, .nav-search { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search { display: flex; align-items: center; background: var(--tint); border-radius: 999px; padding: 0 4px 0 14px; transition: box-shadow 200ms ease; }
.search input[type="search"] { border: 0; box-shadow: none; border-radius: 0; background: transparent; padding: 7px 4px; font: inherit; font-size: .86rem; width: 150px; min-width: 0; min-height: 0; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search input[type="search"]:focus { outline: none; box-shadow: none; }
.search:focus-within { box-shadow: 0 0 0 2px var(--brand); }
.search button { border: 0; background: none; padding: 7px 8px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.cart-link { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); transition: background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .cart-link:hover { background: var(--tint); } }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 5px; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: 999px; font-size: .66rem; font-weight: 600; }
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump 300ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.25); } }

.nav-toggle { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; cursor: pointer; padding: 12px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 250ms var(--ease-out), opacity 200ms ease; }
.nav-toggle span:nth-child(2) { display: none; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.25px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-inner { gap: 8px; }
  .brand { margin-right: auto; }
  .main-nav {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, 92px); z-index: 90;
    background: var(--bg);
    padding: 20px var(--gutter) 48px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { display: block; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); padding: 8px 0; }
  .has-mega { display: none; }
  .nav-type { display: block; }
  .nav-search { display: block; margin-bottom: 20px; }
  .search { display: none; }
}
body.nav-open { overflow: hidden; }

/* ---------- Flash ---------- */
.flash { background: var(--brand-soft); }
.flash p { width: min(var(--maxw), 100%); margin: 0 auto; padding: 12px var(--gutter); font-size: .92rem; color: var(--brand); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 0; text-align: center; overflow: hidden; }
.hero-text { display: flex; flex-direction: column; align-items: center; }
.eyebrow { font-size: clamp(.95rem, 1.6vw, 1.15rem); font-weight: 600; color: var(--brand); margin-bottom: 10px; letter-spacing: -0.01em; }
.hero h1 { font-size: clamp(3rem, 9vw, 6.5rem); letter-spacing: -0.045em; line-height: 1.02; margin-bottom: 18px; }
.hero .lead { margin-inline: auto; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; }
.hero-stage {
  width: min(1100px, 100%); margin: clamp(48px, 7vw, 88px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(12px, 2vw, 24px); align-items: end;
}
.hero-item { display: block; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; background: var(--tint); }
.hero-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 600ms var(--ease-out); }
.hero-item-2 img { aspect-ratio: 4 / 4.6; }
@media (hover: hover) and (pointer: fine) { .hero-item:hover img { transform: scale(1.03); } }
@media (max-width: 640px) {
  .hero-stage { grid-template-columns: 1fr 1fr; }
  .hero-item-2 { grid-column: 1 / -1; order: -1; border-radius: var(--radius-lg); }
  .hero-item-1, .hero-item-3 { border-radius: var(--radius); }
  .hero-item-2 img { aspect-ratio: 1; }
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding-top: 16px; }
.section-tint { background: var(--tint); }
.section-dark { background: #000; color: #f5f5f7; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-title { margin: 0; font-size: clamp(2rem, 4.5vw, 3rem); }

/* Produktarten */
.type-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.type-tile { display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.type-tile:hover { text-decoration: none; color: var(--ink); }
.type-media { display: block; border-radius: var(--radius); overflow: hidden; background: var(--tint); margin-bottom: 14px; }
.type-media img { aspect-ratio: 1; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .type-tile:hover img { transform: scale(1.04); } }
.type-name { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.type-teaser { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .type-tiles { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; } }

/* Kollektionen */
.section-dark .section-title { color: #f5f5f7; }
.collection-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.collection-tile {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 32px 32px 0; background: #161617; color: #f5f5f7;
  border-radius: var(--radius-lg); overflow: hidden;
}
.collection-tile:hover { text-decoration: none; color: #f5f5f7; }
.collection-count { font-size: .82rem; color: #86868b; margin-bottom: 6px; }
.collection-name { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.collection-teaser { color: #a1a1a6; font-size: .95rem; margin-top: 8px; }
.collection-tile img { width: 78%; margin: 28px auto 0; border-radius: 20px 20px 0 0; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .collection-tile:hover img { transform: translateY(-6px); } }
@media (max-width: 860px) { .collection-tiles { grid-template-columns: 1fr; } .collection-tile img { width: 60%; } }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { display: flex; flex-direction: column; gap: 6px; padding: 32px; background: var(--tint); border-radius: var(--radius-lg); }
.step-no { font-size: .82rem; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.steps strong { font-size: 1.4rem; letter-spacing: -0.025em; font-weight: 700; }
.steps span:last-child { color: var(--muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Produktkarten ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 20px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; } }
.card { position: relative; display: flex; flex-direction: column; }
.card-media { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.section-tint .card-media { background: var(--surface); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 300ms ease, transform 600ms var(--ease-out); }
.card-alt { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-alt { opacity: 1; }
  .card:hover .card-media img { transform: scale(1.03); }
}
.badge { position: absolute; top: 14px; left: 14px; font-size: .72rem; font-weight: 600; letter-spacing: .01em; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); }
.badge-new { color: var(--brand); }
.card-body { display: flex; flex-direction: column; gap: 3px; padding: 16px 2px 0; flex: 1; }
.card-type { margin: 0; font-size: .78rem; font-weight: 500; color: var(--muted); }
.card-title { margin: 0; font-size: 1rem; line-height: 1.3; font-weight: 600; }
.card-title a { color: var(--ink); }
.card-title a:hover { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-price { margin: 4px 0 0; font-size: .95rem; color: var(--ink-2); }
.card-swatches { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 6px; }
.card-swatches li { width: 12px; height: 12px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* ---------- Seitenkopf, Toolbar ---------- */
.page-head { padding: clamp(32px, 5vw, 64px) 0 8px; }
.page-head h1 { margin-bottom: 8px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--muted); margin: 20px 0 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span[aria-hidden] { color: var(--faint); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 16px 0 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.toolbar > p { margin: 0; font-size: .9rem; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: .88rem; color: var(--ink-2); background: var(--tint); transition: background-color 200ms ease; }
.chip:hover { text-decoration: none; background: var(--tint-2); color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); color: #fff; }
.sort { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sort label { font-size: .88rem; color: var(--muted); }
select, input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="date"], input:not([type]), textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 50px; width: 100%;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 138, 28, .18); }
.sort select { width: auto; min-height: 40px; padding: 8px 12px; font-size: .9rem; }
textarea { min-height: 140px; resize: vertical; }
input[aria-invalid="true"] { border-color: var(--danger); }
.empty-text { font-size: 1.1rem; color: var(--muted); }

/* ---------- Produktseite ---------- */
.product { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); padding-bottom: 96px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-thumbs[hidden] { display: none; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.thumb { padding: 0; width: 76px; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--tint); cursor: pointer; box-shadow: inset 0 0 0 1px transparent; opacity: .6; transition: opacity 200ms ease, box-shadow 200ms ease; }
.thumb img { mix-blend-mode: multiply; }
.thumb[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.buybox { padding-top: 8px; }
.buybox .card-type { font-size: .88rem; color: var(--brand); font-weight: 600; margin-bottom: 6px; }
.buybox h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); letter-spacing: -0.035em; margin-bottom: 12px; }
.price { font-size: 1.35rem; font-weight: 500; margin: 0; }
.price-note { font-size: .8rem; color: var(--muted); margin: 4px 0 32px; }
.price-note a { color: var(--muted); text-decoration: underline; }
.opt { border: 0; padding: 0; margin: 0 0 28px; }
.opt legend { font-weight: 600; font-size: .95rem; margin-bottom: 12px; padding: 0; display: flex; gap: 12px; align-items: baseline; width: 100%; }
.opt legend span { font-weight: 400; color: var(--muted); }
.opt-link { font-size: .85rem; font-weight: 400; margin-left: auto; }
.opt-static { font-weight: 600; font-size: .95rem; margin-bottom: 28px; }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.swatch { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); cursor: pointer; transition: box-shadow 200ms ease; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.swatch:has(input:checked) { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 3px var(--bg), 0 0 0 5px var(--brand); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 7px; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.size span { display: grid; place-items: center; height: 50px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 500; font-size: .95rem; background: var(--surface); cursor: pointer; transition: border-color 200ms ease, box-shadow 200ms ease; }
@media (hover: hover) and (pointer: fine) { .size span:hover { border-color: var(--ink-2); } }
.size input:checked + span { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.size input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.buy-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.qty { width: 84px !important; text-align: center; }
.buy-row .btn { flex: 1; min-width: 200px; }
.form-msg { min-height: 1.5em; margin: 12px 0 0; font-size: .9rem; color: var(--brand); }
.form-msg.error { color: var(--danger); }
.facts { list-style: none; padding: 20px 0; margin: 12px 0 8px; border-top: 1px solid var(--line-soft); display: grid; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.facts strong { font-weight: 600; color: var(--ink); }
.acc { border-top: 1px solid var(--line-soft); }
.acc:last-of-type { border-bottom: 1px solid var(--line-soft); }
.acc summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--ease-out); }
.acc[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.acc p { color: var(--muted); font-size: .95rem; }
.acc > p:last-child { padding-bottom: 8px; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .gallery { position: static; }
}

/* ---------- Warenkorb, Kasse ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.cart-item { display: grid; grid-template-columns: 120px 1fr auto auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
.cart-item img { border-radius: var(--radius-sm); background: var(--tint); }
.cart-item-info { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; color: var(--muted); }
.cart-item-info a { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.cart-item-qty { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cart-item-total { font-size: 1.05rem; font-weight: 600; }
@media (max-width: 600px) {
  .cart-item { grid-template-columns: 88px 1fr; gap: 16px; }
  .cart-item-qty { flex-direction: row; grid-column: 2; justify-content: flex-start; }
  .cart-item-total { grid-column: 2; }
}
.summary { padding: 28px; background: var(--tint); border-radius: var(--radius-lg); position: sticky; top: calc(var(--header-h) + 24px); }
.summary h2 { font-size: 1.5rem; margin-bottom: 20px; }
.summary > p:not(.muted) { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 10px; font-size: .95rem; }
.summary-total { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px !important; font-weight: 600; font-size: 1.15rem !important; }
.summary .btn { margin-top: 12px; }
.summary .mini-items img { background: var(--surface); }
.mini-items { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 16px; }
.mini-items li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; font-size: .88rem; }
.mini-items img { border-radius: 10px; background: var(--tint); width: 64px; }
.mini-items div { display: flex; flex-direction: column; color: var(--muted); }
.mini-items a, .mini-title { color: var(--ink); font-weight: 600; }
.mini-items strong { font-weight: 500; }

.steps-bar { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; counter-reset: st; font-size: .9rem; }
.steps-bar li { counter-increment: st; color: var(--faint); }
.steps-bar li::before { content: counter(st) "  "; font-variant-numeric: tabular-nums; }
.steps-bar li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.checkout-form fieldset { border: 0; padding: 0; margin: 0 0 36px; }
.checkout-form legend { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.025em; padding: 0; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 500; font-size: .88rem; color: var(--ink-2); }
.field small { font-weight: 400; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field-row-zip { grid-template-columns: 140px 1fr; }
@media (max-width: 520px) { .field-row, .field-row-zip { grid-template-columns: 1fr; } }
.static-field { margin: 0; font-size: 1rem; padding: 12px 0; }
.field-error { margin: 0; color: var(--danger); font-size: .82rem; }
.form-alert { background: #fdf1f0; border-radius: var(--radius-sm); padding: 12px 16px; font-size: .92rem; color: var(--danger); }
.pay-option { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; cursor: pointer; background: var(--surface); transition: border-color 200ms ease, box-shadow 200ms ease; }
.pay-option:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.pay-option input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.review { display: grid; gap: 0; align-content: start; }
.review-block { padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
.review-block:first-child { border-top: 1px solid var(--line-soft); }
.review-block h2 { font-size: 1.15rem; letter-spacing: -0.02em; display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.review-block h2 .opt-link { margin-left: auto; }
.review-block p { color: var(--ink-2); }
.review-block p:last-child { margin: 0; }
.legal-note { font-size: .88rem; color: var(--muted); margin: 24px 0 16px; }
.placeholder-hint { background: var(--tint); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 12px 16px; font-size: .86rem; color: var(--ink-2); margin-top: 16px; }

/* ---------- Leerer Warenkorb ---------- */
.empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 32px 0; }
.empty img { width: 72px; opacity: .9; }
.empty p { color: var(--muted); max-width: 30ch; }
.empty strong { display: block; color: var(--ink); font-size: 1.2rem; letter-spacing: -0.02em; margin-bottom: 4px; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in 250ms ease; }
.drawer-panel {
  position: absolute; top: 8px; right: 8px; bottom: 8px; width: min(420px, calc(100% - 16px));
  background: var(--surface); border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .18);
  display: flex; flex-direction: column; overflow: hidden;
  animation: slide-in 400ms var(--ease-drawer);
}
@keyframes slide-in { from { transform: translateX(calc(100% + 16px)); } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drawer-panel { animation: fade-in 200ms ease; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 8px; }
.drawer-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.drawer-close { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--tint); cursor: pointer; color: var(--ink-2); transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.drawer-close:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .drawer-close:hover { background: var(--tint-2); } }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px 24px; }
.ship-progress { margin-bottom: 24px; font-size: .88rem; color: var(--ink-2); }
.ship-progress p { margin-bottom: 8px; }
.ship-bar { height: 4px; border-radius: 999px; overflow: hidden; background: var(--tint-2); }
.ship-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.mini-sum { border-top: 1px solid var(--line-soft); padding-top: 18px; }
.mini-sum p:first-child { display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.mini-sum .btn { margin-top: 10px; }

/* ---------- Textseiten ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.025em; margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.2em; }
.table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.table th { font-weight: 600; color: var(--ink); }
.table td { color: var(--ink-2); }
.table thead th { font-size: .82rem; color: var(--muted); font-weight: 500; border-bottom-color: var(--line); }
.search-big { display: flex; gap: 12px; max-width: 640px; flex-wrap: wrap; }
.search-big input { flex: 1; min-width: 200px; }
.notfound { text-align: center; }
.notfound img { margin: 0 auto 24px; width: 96px; }
.notfound .lead { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--tint); color: var(--muted); font-size: .8rem; }
.footer-trust { width: min(var(--maxw), 100%); margin-inline: auto; padding: 48px var(--gutter) 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-bottom: 1px solid var(--line); }
.footer-trust div { display: flex; flex-direction: column; gap: 4px; }
.footer-trust strong { color: var(--ink); font-size: .95rem; font-weight: 600; letter-spacing: -0.015em; }
.footer-trust span { font-size: .86rem; }
@media (max-width: 760px) { .footer-trust { grid-template-columns: 1fr; gap: 20px; } }
.footer-inner { width: min(var(--maxw), 100%); margin-inline: auto; padding: 40px var(--gutter) 24px; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { max-width: 30ch; }
.footer-title { color: var(--ink); font-weight: 600; font-size: .8rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { width: min(var(--maxw), 100%); margin-inline: auto; padding: 16px var(--gutter) 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: underline; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Nach oben ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 150;
  width: 48px; height: 48px; display: grid; place-items: center;
  color: #fff; background: rgba(29, 29, 31, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
  animation: fade-in 250ms ease;
}
.to-top:hover { text-decoration: none; color: #fff; }
.to-top[hidden] { display: none; }
.to-top:active { transform: scale(0.94); }
.to-top::after { content: ""; position: absolute; top: 9px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.to-top-label {
  position: absolute; right: calc(100% + 10px); top: 50%;
  white-space: nowrap; background: var(--ink); color: #fff;
  padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 500;
  opacity: 0; transform: translate(4px, -50%); pointer-events: none;
  transition: opacity 150ms ease, transform 150ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .to-top:hover { background: var(--brand); }
  .to-top:hover .to-top-label { opacity: 1; transform: translate(0, -50%); }
}
.to-top:focus-visible .to-top-label { opacity: 1; transform: translate(0, -50%); }

/* ---------- Admin ---------- */
.admin { background: var(--bg); }
.admin-header { background: var(--surface); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 50; }
.admin-header-inner { width: min(var(--maxw), 100%); margin-inline: auto; padding: 0 var(--gutter); min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.admin-tag { font-weight: 500; color: var(--muted); margin-left: 4px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.admin-nav a { padding: 6px 12px; border-radius: 999px; font-size: .9rem; color: var(--ink-2); }
.admin-nav a:hover { background: var(--tint); text-decoration: none; }
.admin-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.admin-actions { display: flex; align-items: center; gap: 16px; font-size: .88rem; }
.admin-actions form { margin: 0; }
.admin-main { padding-top: 32px; padding-bottom: 96px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.admin-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0; }
.admin-narrow { max-width: 460px; margin: 48px auto; }
.admin-narrow h1 { font-size: 2.2rem; }
.admin-narrow-left { max-width: 560px; }
.admin-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.admin-card h2 { font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 14px; }
.admin-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }
.stat-tiles { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-tiles a { display: flex; flex-direction: column; gap: 2px; padding: 22px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); color: var(--ink); transition: border-color 200ms ease; }
.stat-tiles a:hover { text-decoration: none; border-color: var(--line); }
.stat-tiles strong { font-size: 2.2rem; letter-spacing: -0.04em; line-height: 1; font-weight: 700; }
.stat-tiles span { color: var(--muted); font-size: .88rem; }
@media (max-width: 800px) { .stat-tiles { grid-template-columns: repeat(2, 1fr); } }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--tint); color: var(--ink-2); margin-right: 6px; }
.status-ok { background: var(--brand-soft); color: var(--brand); }
.status-error { background: #fdecea; color: var(--danger); }
.status-wait { background: #fff6d6; color: #7a5c00; }
.status-running { background: #e8f0fe; color: #1a56c4; }
.log { background: var(--tint); border-radius: var(--radius-sm); padding: 14px 16px; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; color: var(--ink-2); }
.log-big { max-height: 70vh; }
.admin-tabs { margin-bottom: 20px; }
.table-wrap { overflow-x: auto; }
.admin-table td, .admin-table th { padding: 12px 10px; vertical-align: middle; }
.admin-table .num, .calc .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.thumb-cell { width: 68px; }
.thumb-cell img, .thumb-empty { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--tint); display: block; }
.row-link { font-weight: 600; color: var(--ink); }
.admin-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
@media (max-width: 1000px) { .admin-split { grid-template-columns: 1fr; } }
.admin-side { display: grid; gap: 0; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; font-size: .95rem; }
.toggle input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.calc { margin: 8px 0; font-size: .9rem; }
.calc td, .calc th { padding: 8px 0; }
.calc .neg { color: var(--danger); }
.variant-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.variant-row .muted { flex-basis: 100%; padding-left: 26px; }
.dot { width: 16px; height: 16px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.img-grid figure { margin: 0; }
.img-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--tint); }
.img-grid figcaption { font-size: .72rem; color: var(--muted); margin-top: 4px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-danger { color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
@media (hover: hover) and (pointer: fine) { .btn-danger:hover { background: #fdecea; color: var(--danger); } }
code { font: .85em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--tint); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
