/* ==========================================================================
   CRANE Parts B2B-Shop — Stylesheet
   Industrial B2B Premium · identische Design-Tokens wie die Webseite
   Navy #1a1d29 · Marken-Gelb #FFC700 · Akzent-Rot #D63031
   ========================================================================== */

/* ---------- Design Tokens (1:1 von assets/css/style.css) ---------- */
:root {
  /* Brand — Original CRANE.parts Gelb */
  --brand:          #FFC700;
  --brand-dark:     #E6B300;
  --brand-light:    #FFD93D;
  --brand-tint:     #FFF8DC;
  --brand-glow:     rgba(255, 199, 0, .45);

  /* Accent — Logo-Rot */
  --accent:         #D63031;
  --accent-dark:    #B71C1C;
  --accent-light:   #ff5a5b;

  /* Ink / Navy */
  --ink:            #1a1d29;
  --ink-2:          #2a2f3e;
  --ink-3:          #3a4154;
  --ink-soft:       #4a5163;

  /* Steel / Body */
  --steel:          #555a68;
  --steel-2:        #6b7280;
  --steel-3:        #9ca3af;
  --steel-mute:     #d1d5db;

  /* Surfaces */
  --bg:             #ffffff;
  --bg-soft:        #fafaf7;
  --bg-mute:        #f4f4ef;
  --bg-warm:        #fdf6e3;
  --bg-card:        #ffffff;

  /* Lines */
  --line:           #e5e7eb;
  --line-strong:    #d1d5db;
  --line-dark:      rgba(255, 255, 255, .12);

  /* Shadows */
  --shadow-xs:      0 1px 2px rgba(26, 29, 41, .05);
  --shadow-sm:      0 2px 6px rgba(26, 29, 41, .06), 0 1px 2px rgba(26, 29, 41, .04);
  --shadow-md:      0 8px 20px -4px rgba(26, 29, 41, .08), 0 4px 8px -2px rgba(26, 29, 41, .04);
  --shadow-lg:      0 24px 48px -12px rgba(26, 29, 41, .18), 0 8px 16px -4px rgba(26, 29, 41, .06);
  --shadow-xl:      0 40px 80px -20px rgba(26, 29, 41, .25);
  --shadow-brand:   0 16px 32px -8px rgba(255, 199, 0, .55);

  /* Type */
  --ff-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --ff-body:    'Inter', system-ui, -apple-system, sans-serif;
  --ff-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Container */
  --maxw: 1320px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Transitions */
  --t-fast: .15s ease;
  --t-base: .25s cubic-bezier(.4, 0, .2, 1);
  --t-slow: .45s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--steel);
  background: var(--bg-soft);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv11', 'ss01';
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brand); color: var(--ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .6em;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.2rem;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.eyebrow.dark { color: var(--brand); }
.eyebrow.dark::before { background: var(--brand); }

.lead { font-size: 1.15rem; color: var(--steel); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 920px; }

.site-main { min-height: 60vh; padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }

.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-soft { background: var(--bg-mute); }

.section-header { max-width: 760px; margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: .4em; }
.section-header p { color: var(--steel); margin: 0; }

/* Fallback für alte .section-title-Verwendung */
.section-title { margin-bottom: 1.5rem; }

/* ==========================================================================
   Buttons — wie Webseite
   ========================================================================== */
.btn,
.btn-primary, .btn-yellow, .btn-ghost, .btn-danger, .btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: 1.05rem 1.8rem;
  border-radius: var(--r-md);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .96rem;
  letter-spacing: .01em;
  line-height: 1.2;
  cursor: pointer;
  transition: all var(--t-base);
  position: relative;
  white-space: nowrap;
  border: 1px solid transparent;
  text-align: center;
}
.btn svg,
.btn-primary svg, .btn-yellow svg, .btn-ghost svg {
  width: 18px; height: 18px;
  transition: transform var(--t-base);
  flex-shrink: 0;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(214, 48, 49, .45);
}
.btn-primary:hover svg { transform: translateX(4px); }

.btn-yellow {
  background: var(--brand);
  color: var(--ink);
  box-shadow: var(--shadow-brand);
}
.btn-yellow:hover {
  background: var(--brand-dark);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn-yellow:hover svg { transform: translateX(4px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}
.btn-ghost.on-dark,
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
}
.btn-ghost.on-dark:hover,
.btn-ghost-light:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-danger {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-danger:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(214, 48, 49, .45);
}

.btn-small, .btn-sm {
  padding: .65rem 1.2rem;
  font-size: .85rem;
}

.btn-block {
  display: flex;
  width: 100%;
  margin-top: .8rem;
}

.btn-remove {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .82rem;
  color: var(--accent);
  padding: .3rem .4rem;
  border-radius: var(--r-xs);
  transition: all var(--t-fast);
}
.btn-remove:hover { color: #fff; background: var(--accent); }

/* ==========================================================================
   Offline-Banner (Mitarbeiter-Vorschau) — liegt ÜBER dem Header
   ========================================================================== */
.offline-banner {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: .65rem 1.25rem;
  font-size: .9rem;
  border-bottom: 2px solid var(--brand);
}
.offline-banner .offline-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--brand);
  color: var(--ink);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .2rem .65rem;
  border-radius: var(--r-full);
  margin-right: .6rem;
  vertical-align: middle;
}
.offline-banner .offline-tag::before {
  content: '\26A0';
  font-size: .8rem;
  line-height: 1;
}
.offline-banner strong { color: #fff; }
.offline-banner a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  margin-left: .5rem;
}
.offline-banner a:hover { color: var(--brand-light); }

/* ==========================================================================
   Header — gelber Balken wie Webseite
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: var(--brand);
  box-shadow: 0 2px 8px rgba(26, 29, 41, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

/* Brand / Wortmarke */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--ff-display);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  width: 54px; height: 54px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: .25rem;
}
.brand .wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .3em;
  font-size: 1.35rem;
  letter-spacing: -.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand .wordmark em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .02em;
}
.brand:hover .wordmark em { color: var(--accent); transition: color var(--t-fast); }
.brand-tag {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex: 1;
  min-width: 0;
}
.nav-link {
  position: relative;
  font-family: var(--ff-display);
  font-size: .96rem;
  font-weight: 600;
  color: var(--ink);
  padding: .5rem 0;
  transition: color var(--t-fast);
  white-space: nowrap;
}
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 3px;
  background: var(--ink);
}
.nav-link-admin { color: var(--accent); }
.nav-link-admin::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: .4rem;
  vertical-align: 2px;
}
.nav-link-admin:hover { color: var(--accent-dark); }

/* Suche — weißes Pill-Feld im gelben Header */
.nav-search {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 200px;
  max-width: 340px;
  background: #fff;
  border: 1px solid rgba(26, 29, 41, .2);
  border-radius: var(--r-full);
  overflow: hidden;
  padding: .25rem;
  transition: all var(--t-fast);
}
.nav-search:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26, 29, 41, .12);
}
.nav-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: .45rem .4rem .45rem .9rem;
  font-family: var(--ff-body);
  font-size: .9rem;
  color: var(--ink);
}
.nav-search input[type="search"]:focus { outline: none; }
.nav-search input[type="search"]::placeholder { color: var(--steel-3); }
.btn-search {
  background: var(--ink);
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .82rem;
  padding: .45rem 1.05rem;
  border-radius: var(--r-full);
  transition: background var(--t-fast);
  flex-shrink: 0;
}
.btn-search:hover { background: var(--accent); }

/* Header-Aktionen rechts */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.logout-form { display: inline-flex; }

/* Warenkorb — Navy-Pill mit Badge */
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem .6rem .55rem 1.1rem;
  border-radius: var(--r-full);
  transition: all var(--t-base);
  white-space: nowrap;
}
.cart-link:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -6px rgba(214, 48, 49, .45);
}
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 .45rem;
  border-radius: var(--r-full);
  background: var(--brand);
  color: var(--ink);
  font-family: var(--ff-display);
  font-size: .78rem;
  font-weight: 700;
}

/* ==========================================================================
   Alerts
   ========================================================================== */
.alert {
  margin: 1rem 0;
  padding: .9rem 1.2rem;
  border-radius: var(--r-md);
  font-size: .95rem;
  border: 1px solid transparent;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.alert-success { background: #e8f7ec; border-color: #b7e4c3; color: #1d6b34; }
.alert-error   { background: #fdecec; border-color: #f5c2c2; color: #a32020; }
.alert-warning { background: var(--brand-tint); border-color: var(--brand); color: var(--ink); }
.alert-info    { background: var(--brand-tint); border-color: var(--brand); color: var(--ink); }

.field-error {
  margin: .35rem 0 0;
  color: var(--accent);
  font-size: .83rem;
  font-weight: 500;
}

/* ==========================================================================
   Startseiten-Hero — Navy wie section-dark der Webseite
   ========================================================================== */
.hero {
  background: var(--ink);
  color: var(--steel-mute);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at top left, black 30%, transparent 80%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  right: -140px; top: -140px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 199, 0, .16) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-text { max-width: 720px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 1.1rem;
  letter-spacing: -.03em;
}
.accent-word { color: var(--brand); }
.hero-sub,
.hero .lead {
  color: var(--steel-mute);
  font-size: 1.12rem;
  max-width: 620px;
  margin-bottom: 1.6rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
}
.hero-meta .pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .9rem;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-full);
  color: #fff;
  font-size: .75rem;
}
.hero-meta .pill .live {
  width: 7px; height: 7px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 199, 0, .25);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 199, 0, .25); }
  50%      { box-shadow: 0 0 0 8px rgba(255, 199, 0, 0); }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Karten — wie .cat-tile der Webseite
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-base);
  color: inherit;
  isolation: isolate;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.card-media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-mute);
  position: relative;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.card:hover .card-media img { transform: scale(1.07); }
.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26, 29, 41, .15) 100%);
  pointer-events: none;
}
.card-media-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--steel-mute);
}

/* Marken-Badge oben links über dem Bild */
.card-media .badge,
.card-media .badge-brand {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  background: var(--brand);
  color: var(--ink);
  border: 0;
}

.card-body {
  padding: 1.6rem 1.6rem 1.8rem;
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.card-title {
  font-size: 1.2rem;
  margin: 0 0 .15rem;
  color: var(--ink);
}
.category-card .card-title { padding-right: 2.8rem; }
.card-text {
  color: var(--steel);
  font-size: .92rem;
  margin: 0 0 .4rem;
}
.card-meta {
  font-family: var(--ff-display);
  font-size: .74rem;
  font-weight: 600;
  color: var(--steel-2);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 1rem;
}
.card-sku {
  font-size: .78rem;
  color: var(--steel-3);
  letter-spacing: .05em;
  margin: 0;
}
.card-price {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  margin: .45rem 0 1rem;
}
.card-price .price-net {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: .76rem;
  color: var(--steel-2);
  margin-left: .35rem;
}
.card-body .card-text:last-of-type { flex-grow: 0; }

/* große Positionsnummer (Kategoriekarten) */
.cat-num {
  position: absolute;
  top: 1.4rem; right: 1.6rem;
  font-family: var(--ff-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--bg-mute);
  line-height: 1;
  transition: color var(--t-base);
}
.card:hover .cat-num { color: var(--brand); }

/* CTA-Zeile unten in der Karte */
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent);
  letter-spacing: .02em;
  padding-top: .8rem;
  margin-top: auto;
  border-top: 2px solid var(--bg-mute);
  transition: all var(--t-base);
}
.card:hover .card-cta {
  color: var(--ink);
  border-top-color: var(--brand);
  gap: .8rem;
}
.card-cta svg { width: 16px; height: 16px; transition: transform var(--t-base); flex-shrink: 0; }
.card:hover .card-cta svg { transform: translateX(4px); }

/* ==========================================================================
   Badges
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .35rem .75rem;
  border-radius: var(--r-xs);
  font-family: var(--ff-display);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
  line-height: 1.3;
}
.badge-brand { background: var(--brand); color: var(--ink); }
.badge-stock-in  { background: #e8f7ec; color: #1d6b34; border: 1px solid #b7e4c3; box-shadow: none; }
.badge-stock-out { background: var(--brand-tint); color: #8a6d00; border: 1px solid var(--brand); box-shadow: none; }

/* Status-Badges (Bestellungen) — Pill, Space Grotesk */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: .3rem .8rem;
  border-radius: var(--r-full);
  font-family: var(--ff-display);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  line-height: 1.4;
}
.status-new        { background: var(--brand-tint); color: #8a6d00; border: 1px solid var(--brand); }
.status-confirmed  { background: #e6f0fb; color: #1d4f91; border: 1px solid #b9d4f0; }
.status-shipped    { background: #f1e9fb; color: #5b2d91; border: 1px solid #d9c6f0; }
.status-completed  { background: #e8f7ec; color: #1d6b34; border: 1px solid #b7e4c3; }
.status-cancelled  { background: #fdecec; color: #a32020; border: 1px solid #f5c2c2; }

.payment-paid      { background: #e8f7ec; color: #1d6b34; border: 1px solid #b7e4c3; }
.payment-open,
.payment-pending   { background: var(--brand-tint); color: #8a6d00; border: 1px solid var(--brand); }
.payment-failed    { background: #fdecec; color: #a32020; border: 1px solid #f5c2c2; }

/* ==========================================================================
   Breadcrumb / Seitenkopf
   ========================================================================== */
.breadcrumb {
  margin: 1.6rem 0 .6rem;
  font-size: .85rem;
  color: var(--steel-2);
}
.breadcrumb a {
  color: var(--steel);
  font-weight: 500;
  transition: color var(--t-fast);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { margin: 0 .55rem; color: var(--brand-dark); font-weight: 700; }

.page-head { margin: 1.4rem 0 2rem; }
.page-head .eyebrow { margin-bottom: .8rem; }
.page-head h1 { margin-bottom: .2em; }
.page-lead {
  margin-top: .5rem;
  color: var(--steel);
  max-width: 760px;
  font-size: 1.05rem;
}

/* Filterleiste (Kategorie / Suche) */
.filter-bar {
  display: flex;
  gap: .65rem;
  margin-bottom: 2rem;
  max-width: 560px;
}
.filter-bar input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: .8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: .95rem;
  background: #fff;
  color: var(--ink);
  transition: all var(--t-fast);
}
.filter-bar input[type="search"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 199, 0, .25);
}

.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.empty-state p {
  margin-bottom: 1.2rem;
  color: var(--steel);
  font-size: 1.05rem;
}

/* ==========================================================================
   Produktdetail
   ========================================================================== */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  margin: 1.5rem 0 3rem;
  align-items: start;
}
.product-detail-media {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.product-detail-media img { width: 100%; height: auto; }
.media-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel-3);
  background: var(--bg-mute);
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: .05em;
}
.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  align-items: flex-start;
}
.product-detail-info h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0;
}
.product-description { color: var(--steel); margin: 0; }
.product-unit { font-size: .9rem; color: var(--steel-2); margin: 0; }

.price-box {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.4rem 1.5rem;
  margin-top: .3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand);
}
.price-main {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--ink);
  margin: 0;
  letter-spacing: -.02em;
}
.price-note { font-size: .85rem; color: var(--steel-2); margin: .25rem 0 0; }
.price-on-request {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0 0 .5rem;
}
.price-box .btn-primary { margin-top: .8rem; }

.add-to-cart-form {
  display: flex;
  align-items: flex-end;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: .4rem;
}
.add-to-cart-form label {
  display: block;
  font-family: var(--ff-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel-2);
  margin-bottom: .3rem;
  width: 100%;
}
.qty-input {
  width: 92px;
  padding: .8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: .95rem;
  background: #fff;
  color: var(--ink);
  transition: all var(--t-fast);
}
.qty-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 199, 0, .25);
}

/* Downloads & Datenblatt */
.product-downloads, .product-datasheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.8rem 2rem;
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.product-downloads h2, .product-datasheet h2 {
  font-size: 1.2rem;
  margin-bottom: .9rem;
}
.download-list { list-style: none; margin: 0; padding: 0; }
.download-list li + li { margin-top: .55rem; }
.download-list a {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .75rem 1rem;
  transition: all var(--t-fast);
}
.download-list a:hover {
  border-color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.download-icon {
  background: var(--accent);
  color: #fff;
  font-family: var(--ff-display);
  font-size: .65rem;
  font-weight: 700;
  padding: .3rem .55rem;
  border-radius: var(--r-xs);
  letter-spacing: .08em;
  flex-shrink: 0;
}
.download-title { font-weight: 600; color: var(--ink); }
.download-meta { margin-left: auto; font-size: .8rem; color: var(--steel-2); white-space: nowrap; }
.datasheet-hint { margin: .8rem 0 0; font-size: .85rem; color: var(--steel-2); }
.datasheet-hint a,
.product-datasheet p a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--brand);
  transition: color var(--t-fast);
}
.datasheet-hint a:hover,
.product-datasheet p a:hover { color: var(--accent); }

/* ==========================================================================
   Tabellen
   ========================================================================== */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: .92rem;
  box-shadow: var(--shadow-sm);
}
.table th {
  text-align: left;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--steel-2);
  background: var(--bg-mute);
  padding: .85rem 1rem;
  border-bottom: 2px solid var(--line);
}
.table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--steel);
}
.table td strong { color: var(--ink); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: var(--bg-soft); }
.table .num { text-align: right; white-space: nowrap; }

/* ==========================================================================
   Warenkorb
   ========================================================================== */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  align-items: start;
}
.cart-table-wrap { overflow-x: auto; }
.cart-product {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.cart-thumb {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg-mute);
  flex-shrink: 0;
}
.cart-product-name {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--ink);
  transition: color var(--t-fast);
}
.cart-product-name:hover { color: var(--accent); }
.cart-product .card-sku { margin-top: .15rem; }
.cart-qty-form {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cart-qty-form .qty-input { width: 76px; padding: .55rem .7rem; }

/* Summenblock — Navy-Karte, Gesamtsumme gelb */
.cart-summary {
  background: var(--ink);
  color: var(--steel-mute);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 110px;
  overflow: hidden;
}
.cart-summary::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--brand);
}
.cart-summary h2 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}
.totals { margin: 0 0 .8rem; }
.totals-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: .95rem;
}
.totals-row dt { color: var(--steel-mute); margin: 0; }
.totals-row dd { font-weight: 600; color: #fff; margin: 0; }
.totals-grand {
  border-bottom: none;
  border-top: 2px solid rgba(255, 255, 255, .25);
  margin-top: .3rem;
  padding-top: .9rem;
  font-family: var(--ff-display);
  font-size: 1.1rem;
}
.totals-grand dt { font-weight: 700; color: #fff; }
.totals-grand dd {
  font-weight: 700;
  color: var(--brand);
  font-size: 1.35rem;
  letter-spacing: -.01em;
}
.cart-summary .btn-primary {
  background: var(--brand);
  color: var(--ink);
  box-shadow: var(--shadow-brand);
}
.cart-summary .btn-primary:hover {
  background: var(--brand-dark);
  color: var(--ink);
  transform: translateY(-2px);
}
.cart-summary .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
}
.cart-summary .btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* Summen außerhalb der Navy-Karte (Bestellbestätigung etc.) */
.totals-standalone {
  max-width: 420px;
  margin-left: auto;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.totals-standalone .totals-row { border-bottom-color: var(--line); }
.totals-standalone .totals-row dt { color: var(--steel); }
.totals-standalone .totals-row dd { color: var(--ink); }
.totals-standalone .totals-grand { border-top-color: var(--ink); }
.totals-standalone .totals-grand dt { color: var(--ink); }
.totals-standalone .totals-grand dd { color: var(--ink); }

/* ==========================================================================
   Checkout
   ========================================================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}
.checkout-summary { top: 110px; }
.summary-table {
  margin-bottom: 1rem;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.summary-table td {
  padding: .6rem .2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-size: .9rem;
}
.summary-table .card-sku { color: rgba(255, 255, 255, .55); }
.summary-table tbody tr:hover { background: transparent; }

.checkout-fields { min-width: 0; }
.form-section {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  padding: 1.8rem 2rem;
  margin: 0 0 1.5rem;
  box-shadow: var(--shadow-sm);
}
.form-section legend {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 0 .6rem;
  letter-spacing: -.01em;
}

.form-group { margin-bottom: 1.1rem; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  display: block;
  font-family: var(--ff-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: .04em;
  margin-bottom: .4rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: .95rem;
  background: #fff;
  color: var(--ink);
  transition: all var(--t-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 199, 0, .25);
}
.form-group textarea { resize: vertical; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-group-small { flex: 0 0 140px !important; }

.radio-option,
.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .6rem .25rem;
  cursor: pointer;
  font-size: .95rem;
  font-family: var(--ff-body) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 500 !important;
  color: var(--ink-2) !important;
}
.radio-option input,
.checkbox-option input {
  margin-top: 4px;
  accent-color: var(--ink);
  width: 17px; height: 17px;
  flex-shrink: 0;
}
.checkbox-option a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--brand);
  transition: color var(--t-fast);
}
.checkbox-option a:hover { color: var(--accent); }

/* ==========================================================================
   Bestellabschluss / Bestelldetail
   ========================================================================== */
.success-head, .cancelled-head { margin: 2rem 0 1.8rem; }
.order-number-big {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -.01em;
  color: var(--ink);
  background: var(--brand);
  border-radius: var(--r-md);
  display: inline-block;
  padding: .5rem 1.4rem;
  margin: .8rem 0;
  box-shadow: var(--shadow-brand);
}
.payment-method-line { margin: 1rem 0; }
.payment-method-line strong { color: var(--ink); }
.action-row {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.container-narrow > p { margin: 1rem 0; }
.container-narrow h2 { margin: 1.8rem 0 .9rem; }

.order-head .order-meta { color: var(--steel); margin: .4rem 0; }
.order-badges {
  display: flex;
  gap: .6rem;
  margin: .7rem 0;
  flex-wrap: wrap;
}
.address-block {
  font-style: normal;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.1rem 1.4rem;
  display: inline-block;
  min-width: 260px;
  box-shadow: var(--shadow-sm);
  color: var(--steel);
  line-height: 1.7;
}

/* ==========================================================================
   Konto-Einstellungen
   ========================================================================== */
.account-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.8rem 2rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.account-card h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.logo-preview {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.logo-preview img {
  max-height: 80px;
  max-width: 240px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .5rem;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.logo-upload-form label {
  display: block;
  font-family: var(--ff-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: .45rem;
}
.logo-upload-form input[type="file"] {
  display: block;
  margin-bottom: .9rem;
  font-size: .9rem;
  color: var(--steel);
}

/* ==========================================================================
   Auth (Login / Registrierung)
   ========================================================================== */
.auth-card {
  max-width: 440px;
  margin: 3rem auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2.3rem 2.3rem;
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--brand);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.6rem;
}
.auth-brand .brand-logo { width: 44px; height: 44px; }
.auth-brand .wordmark {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.auth-brand .wordmark em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .02em;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 1.4rem; }
.auth-switch {
  margin: 1.3rem 0 0;
  text-align: center;
  font-size: .92rem;
  color: var(--steel);
}
.auth-switch a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--brand);
  transition: color var(--t-fast);
}
.auth-switch a:hover { color: var(--accent); }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination-wrap {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
}
ul.pagination {
  display: flex;
  gap: .4rem;
  list-style: none;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
ul.pagination li a,
ul.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink-2);
  font-family: var(--ff-display);
  font-size: .9rem;
  font-weight: 600;
  transition: all var(--t-fast);
}
ul.pagination li a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
ul.pagination li.active span,
ul.pagination li span[aria-current="page"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
ul.pagination li.disabled span { opacity: .4; }

/* ==========================================================================
   Footer — Navy mit gelbem Balken wie Webseite
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--steel-mute);
  padding-top: 5.5rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--brand);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand .brand { color: var(--accent); }
.footer-brand .brand .wordmark em { color: #fff; }
.footer-brand .brand:hover .wordmark em { color: var(--brand); }
.footer-brand p {
  color: var(--steel-mute);
  font-size: .94rem;
  margin: 1.4rem 0 0;
  max-width: 340px;
  line-height: 1.65;
}
.footer-col h4 {
  font-family: var(--ff-display);
  font-size: .82rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.4rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .7rem;
}
.footer-col li { color: var(--steel-mute); font-size: .94rem; }
.footer-col a {
  color: var(--steel-mute);
  font-size: .94rem;
  transition: color var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.footer-col a:hover { color: var(--brand); }
.footer-website-btn { margin-top: 1.4rem; }

.footer-bottom {
  padding: 1.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: var(--steel-3);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--steel-mute); transition: color var(--t-fast); }
.footer-bottom a:hover { color: var(--brand); }
.footer-bottom-links { display: flex; gap: 1.5rem; }

/* ==========================================================================
   Offline- / Wartungsseite
   ========================================================================== */
.offline-page {
  background: var(--ink);
  min-height: 100vh;
  margin: 0;
}
.offline-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
}
.offline-page .offline-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.offline-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 3rem 2.5rem 2.6rem;
  max-width: 560px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.offline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--brand);
}
.offline-logo { width: 72px; margin: 0 auto 1.2rem; }
.offline-card h1 { font-size: 1.6rem; }
.offline-message { color: var(--steel); margin: 1rem 0 1.8rem; }
.offline-actions {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.offline-staff-hint { margin: 1.8rem 0 0; font-size: .8rem; }
.offline-staff-hint a {
  color: var(--steel-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
.offline-staff-hint a:hover { color: var(--ink); }

/* ==========================================================================
   Rechtliche Seiten (AGB & Co.) — dunkler Page-Hero + weiße Karte
   ========================================================================== */
.page-hero {
  background: var(--ink);
  color: var(--steel-mute);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 80%);
  pointer-events: none;
}
.page-hero .inner {
  text-align: center;
  max-width: 840px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
.page-hero h1 { color: #fff; margin-bottom: 0; }
.page-hero .breadcrumb { color: rgba(255, 255, 255, .65); margin: 0 0 1.2rem; }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .85); }
.page-hero .breadcrumb a:hover { color: var(--brand); }
.page-hero .breadcrumb-sep { color: var(--brand); }

.legal-wrap { margin-top: -2.5rem; position: relative; z-index: 3; padding-bottom: 1rem; }
.legal-page {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.5rem 3rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  max-width: 820px;
  margin-inline: auto;
}
.legal-content {
  white-space: normal;
  color: var(--steel);
  line-height: 1.7;
}
.legal-updated {
  margin: 1.8rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--steel-3);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .cart-layout,
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .product-detail { gap: 1.8rem; }
}

@media (max-width: 900px) {
  .header-inner { gap: .9rem 1.2rem; }
  .main-nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    gap: 1.2rem;
  }
  .nav-search { max-width: none; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 720px) {
  .brand-logo { width: 44px; height: 44px; }
  .brand .wordmark { font-size: 1.1rem; }
  .brand-tag { font-size: .6rem; }
  .header-actions { gap: .7rem; }
  .product-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
  .site-footer { padding-top: 3.5rem; }
  .form-row { flex-direction: column; gap: 0; }
  .form-group-small { flex: 1 !important; }
  .form-section { padding: 1.4rem 1.3rem; }
  .legal-page { padding: 1.8rem 1.5rem; }
  .table { font-size: .85rem; }
  .table th, .table td { padding: .6rem .65rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 1.8rem 1.4rem; margin: 1.6rem auto; }
  .cart-product { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .order-number-big { font-size: 1.4rem; }
  .hero-actions .btn-yellow,
  .hero-actions .btn-ghost { width: 100%; }
}

/* ==========================================================================
   B2B & Anfragekorb (RFQ) — Ergänzungen
   ========================================================================== */

/* ---------- Anfragekorb-Link im Header — Ghost/Outline-Navy ---------- */
.rfq-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem .6rem .55rem 1.1rem;
  border-radius: var(--r-full);
  transition: all var(--t-base);
  white-space: nowrap;
}
.rfq-link:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -6px rgba(26, 29, 41, .35);
}
.rfq-link .cart-badge {
  background: var(--ink);
  color: var(--brand);
  transition: all var(--t-base);
}
.rfq-link:hover .cart-badge {
  background: var(--brand);
  color: var(--ink);
}

/* "B2B-Prüfung läuft"-Badge im Header */
.b2b-pending-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--brand-tint);
  color: #8a6d00;
  border: 1px solid var(--brand);
  font-family: var(--ff-display);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .75rem;
  border-radius: var(--r-full);
  white-space: nowrap;
  transition: all var(--t-fast);
}
.b2b-pending-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-dark);
  flex-shrink: 0;
}
.b2b-pending-badge:hover {
  background: var(--brand);
  color: var(--ink);
}

/* ---------- B2B-Registrierungsformular ---------- */
.b2b-register-form { margin-bottom: 3rem; }
.b2b-register-form > .btn-primary { margin-top: .4rem; }
.b2b-register-form .auth-switch { text-align: left; }

/* Datei-Inputs */
.file-input {
  display: block;
  width: 100%;
  padding: .55rem .6rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  font-size: .88rem;
  color: var(--steel);
  transition: all var(--t-fast);
}
.file-input:hover { border-color: var(--ink); background: #fff; }
.file-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 199, 0, .25);
}
.file-input::file-selector-button {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .82rem;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--r-xs);
  padding: .45rem .9rem;
  margin-right: .8rem;
  cursor: pointer;
  transition: background var(--t-fast);
}
.file-input::file-selector-button:hover { background: var(--accent); }

/* Hinweisbox (z. B. Vertraulichkeit der Nachweise) */
.form-hint-box {
  background: var(--brand-tint);
  border: 1px solid var(--brand);
  border-radius: var(--r-sm);
  padding: .85rem 1.1rem;
  font-size: .88rem;
  color: var(--ink-2);
  margin-top: .4rem;
}

/* ---------- B2B-Status-Banner ---------- */
.b2b-status-banner {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.b2b-status-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 6px;
}
.b2b-status-banner p { margin: .7rem 0 0; color: var(--steel); }
.b2b-status-banner p strong { color: var(--ink); }
.b2b-status-banner a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--brand);
  transition: color var(--t-fast);
}
.b2b-status-banner a:hover { color: var(--accent); }

.b2b-status-pending_verification,
.b2b-status-under_review { background: var(--brand-tint); border-color: var(--brand); }
.b2b-status-pending_verification::before,
.b2b-status-under_review::before { background: var(--brand); }
.b2b-status-pending_verification .b2b-status-badge,
.b2b-status-under_review .b2b-status-badge { background: var(--brand); color: var(--ink); }

.b2b-status-approved { background: #e8f7ec; border-color: #b7e4c3; }
.b2b-status-approved::before { background: #1d6b34; }
.b2b-status-approved .b2b-status-badge { background: #1d6b34; color: #fff; }

.b2b-status-rejected,
.b2b-status-blocked { background: #fdecec; border-color: #f5c2c2; }
.b2b-status-rejected::before,
.b2b-status-blocked::before { background: var(--accent); }
.b2b-status-rejected .b2b-status-badge,
.b2b-status-blocked .b2b-status-badge { background: var(--accent); color: #fff; }

.b2b-profile-table td:first-child {
  width: 220px;
  font-family: var(--ff-display);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--steel-2);
}
.b2b-upload-title { margin: 1.6rem 0 .8rem; font-size: 1.05rem; }

/* ---------- Anfragekorb (RFQ) ---------- */
.rfq-items { margin-bottom: 1.6rem; }
.rfq-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-fast);
}
.rfq-item:hover { border-color: var(--ink); }
.rfq-item + .rfq-item { margin-top: .8rem; }
.rfq-item-info {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.rfq-item-info strong {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--ink);
}
.rfq-item-form {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}
.rfq-item-form .qty-input { width: 84px; padding: .55rem .7rem; }
.rfq-note-input {
  width: 240px;
  padding: .55rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: .88rem;
  background: #fff;
  color: var(--ink);
  transition: all var(--t-fast);
}
.rfq-note-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 199, 0, .25);
}
.rfq-item-remove { display: inline-flex; }

.rfq-custom-card { margin-bottom: 2rem; }
.rfq-custom-card p { color: var(--steel); }

.rfq-submit-form { margin-bottom: 3rem; }
.rfq-submit-form > .btn-primary { margin-top: .4rem; }
.rfq-response-hint {
  margin: .9rem 0 0;
  font-size: .88rem;
  color: var(--steel-2);
}

/* Dringlichkeits-Optionen im Formular */
.urgency-option-emergency {
  border: 1px solid #f5c2c2;
  border-radius: var(--r-sm);
  background: #fdecec;
  padding: .6rem .8rem;
  margin-top: .3rem;
}
.urgency-option-emergency span { color: #a32020 !important; font-weight: 600 !important; }
.urgency-option-emergency input { accent-color: var(--accent); }

/* Dringlichkeits-Badges (Pill, wie status-badge) */
.urgency-badge.urgency-normal    { background: var(--bg-mute); color: var(--steel); border: 1px solid var(--line-strong); }
.urgency-badge.urgency-urgent    { background: var(--brand-tint); color: #8a6d00; border: 1px solid var(--brand); }
.urgency-badge.urgency-emergency { background: #fdecec; color: #a32020; border: 1px solid var(--accent); }

/* RFQ-Status-Badges */
.rfq-status-new                  { background: var(--brand-tint); color: #8a6d00; border: 1px solid var(--brand); }
.rfq-status-in_review            { background: #e6f0fb; color: #1d4f91; border: 1px solid #b9d4f0; }
.rfq-status-waiting_for_customer { background: #f1e9fb; color: #5b2d91; border: 1px solid #d9c6f0; }
.rfq-status-quoted               { background: #e6f0fb; color: #1d4f91; border: 1px solid #b9d4f0; }
.rfq-status-accepted             { background: #e8f7ec; color: #1d6b34; border: 1px solid #b7e4c3; }
.rfq-status-rejected             { background: #fdecec; color: #a32020; border: 1px solid #f5c2c2; }
.rfq-status-closed               { background: var(--bg-mute); color: var(--steel); border: 1px solid var(--line-strong); }

.rfq-message-card p { color: var(--steel); }
.rfq-attachments-hint {
  font-size: .9rem;
  color: var(--steel-2);
  margin: 1.2rem 0;
}

/* ---------- Preisanzeige ---------- */
.price-base-strike {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: .72em;
  color: var(--steel-3);
  text-decoration: line-through;
  margin-left: .45rem;
  vertical-align: 2px;
  white-space: nowrap;
}
.price-group-note {
  font-size: .85rem;
  font-weight: 600;
  color: #1d6b34;
  margin: .3rem 0 0;
}
.price-on-request-label {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--steel-2);
}

/* RFQ-Formular auf der Produktseite + B2B-Hinweis */
.rfq-add-form { margin-top: .2rem; }
.b2b-register-hint {
  font-size: .9rem;
  color: var(--steel-2);
  margin: .4rem 0 0;
}
.b2b-register-hint a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--brand);
  transition: color var(--t-fast);
}
.b2b-register-hint a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .rfq-item { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .rfq-note-input { width: 100%; flex: 1; }
  .rfq-item-form { width: 100%; }
}

/* ============================================================
   HEADER V2 — gruppierte Navigation (Branding / Nav / Aktionen /
   Konto), Icon-Buttons mit Badges, Burger-Menue, Such-Toggle.
   Ersetzt die alte Headerstruktur (.header-inner etc. = obsolet).
   ============================================================ */

/* Utilities */
.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: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--brand);
  padding: .8rem 1.4rem; border-radius: 0 0 12px 0;
  font-family: var(--ff-display); font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Sichtbarer Fokus ueberall */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(26, 29, 41, .85);
  outline-offset: 2px;
  border-radius: 4px;
}
.site-footer a:focus-visible, .offline-banner a:focus-visible {
  outline-color: var(--brand);
}

/* Header-Bar: Brand | Nav | (flex) Aktionen | Konto | Burger */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--brand); box-shadow: 0 2px 8px rgba(26,29,41,.08); }
.header-bar {
  display: flex; align-items: center;
  gap: clamp(.6rem, 1.6vw, 1.6rem);
  padding-top: .7rem; padding-bottom: .7rem;
  min-height: 64px;
}
.hdr-nav { display: flex; align-items: center; gap: clamp(.8rem, 1.4vw, 1.5rem); }
.hdr-nav-link {
  position: relative; font-family: var(--ff-display); font-weight: 600;
  font-size: .94rem; color: var(--ink); padding: .55rem .15rem;
  white-space: nowrap; transition: color var(--t-fast);
}
.hdr-nav-link:hover { color: var(--accent); }
.hdr-nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--ink); border-radius: 2px;
}
.hdr-admin-link { color: var(--accent); }
.hdr-admin-link::before { content: "\25CF"; font-size: .55rem; margin-right: .35rem; vertical-align: 2px; }

/* Gruppe C: Aktionen */
.hdr-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }

/* Such-Pill (Desktop) */
.hdr-search {
  display: flex; align-items: center; background: #fff;
  border: 2px solid rgba(26,29,41,.25); border-radius: 999px;
  overflow: hidden; max-width: 300px; transition: border-color var(--t-fast);
}
.hdr-search:focus-within { border-color: var(--ink); }
.hdr-search input {
  border: 0; outline: none; padding: .55rem .4rem .55rem 1rem;
  width: 100%; min-width: 0; font-size: .9rem; background: transparent;
}
.hdr-search input:focus-visible { outline: none; }
.hdr-search-submit {
  display: grid; place-items: center; width: 40px; height: 40px;
  flex-shrink: 0; background: var(--ink); color: #fff;
  border: 0; border-radius: 999px; margin: 2px; cursor: pointer;
  transition: background var(--t-fast);
}
.hdr-search-submit:hover { background: var(--accent); }
.hdr-search-submit svg { width: 17px; height: 17px; }

/* Icon-Buttons (Anfragekorb/Warenkorb/Such-Toggle) */
.icon-btn {
  position: relative; display: inline-flex; align-items: center;
  justify-content: center; gap: .5rem;
  min-width: 44px; min-height: 44px; padding: 0 .8rem;
  border-radius: 12px; font-family: var(--ff-display); font-weight: 600;
  font-size: .85rem; cursor: pointer; white-space: nowrap;
  transition: all var(--t-base); text-decoration: none;
}
.icon-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.icon-btn-ghost { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
.icon-btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.icon-btn-solid { background: var(--ink); border: 2px solid var(--ink); color: #fff; }
.icon-btn-solid:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.icon-badge {
  position: absolute; top: -7px; right: -7px;
  min-width: 21px; height: 21px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--brand);
  border: 2px solid var(--brand);
  border-radius: 999px; font-size: .68rem; font-weight: 700;
}
.icon-badge-yellow { background: var(--brand); color: var(--ink); border-color: var(--ink); }

/* Gruppe D: Konto */
.hdr-account { display: flex; align-items: center; gap: clamp(.6rem, 1.2vw, 1.1rem); }
.hdr-logout { display: inline-flex; }
.hdr-ghost-btn {
  background: transparent; border: 2px solid rgba(26,29,41,.4);
  color: var(--ink); border-radius: 12px; padding: .5rem .9rem;
  font-family: var(--ff-display); font-weight: 600; font-size: .82rem;
  cursor: pointer; transition: all var(--t-fast); white-space: nowrap;
}
.hdr-ghost-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.hdr-cta-btn {
  background: var(--ink); color: #fff; border-radius: 12px;
  padding: .6rem 1.05rem; font-family: var(--ff-display); font-weight: 600;
  font-size: .85rem; white-space: nowrap; transition: all var(--t-base);
}
.hdr-cta-btn:hover { background: var(--accent); transform: translateY(-1px); }

/* Burger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 11px;
  border: 2px solid var(--ink); border-radius: 12px;
  background: transparent; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 100%; background: var(--ink);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Ausklappbare Suchzeile */
.header-search-row { background: var(--brand-dark); padding: .8rem 0; border-top: 1px solid rgba(26,29,41,.15); }
.header-search-row form { display: flex; gap: .6rem; }
.header-search-row input {
  flex: 1; min-width: 0; padding: .75rem 1rem; font-size: 1rem;
  border: 2px solid rgba(26,29,41,.3); border-radius: 12px; background: #fff;
}
.header-search-row input:focus-visible { outline: none; border-color: var(--ink); }

/* Mobiles Menue */
.mobile-menu {
  position: absolute; left: 0; right: 0; z-index: 99;
  background: #fff; border-bottom: 4px solid var(--brand);
  box-shadow: 0 24px 48px -12px rgba(26,29,41,.25);
  max-height: calc(100vh - 70px); overflow-y: auto;
  padding: .6rem 0 1.2rem;
}
.mobile-menu-heading {
  font-family: var(--ff-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--steel-2);
  margin: 1.1rem 0 .3rem; padding-bottom: .35rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: .6rem .2rem;
  font-family: var(--ff-display); font-weight: 600; font-size: 1rem;
  color: var(--ink); border-bottom: 1px solid var(--bg-mute);
  width: 100%; text-align: left; background: none;
  border-left: 0; border-right: 0; border-top: 0; cursor: pointer;
}
.mobile-menu-link:hover { color: var(--accent); }
.mobile-menu-admin { color: var(--accent); }
.mobile-count {
  background: var(--ink); color: var(--brand); border-radius: 999px;
  min-width: 24px; height: 24px; display: grid; place-items: center;
  font-size: .75rem; padding: 0 6px;
}
.mobile-menu-cta {
  display: block; text-align: center; margin-top: 1rem;
  background: var(--ink); color: #fff; border-radius: 12px;
  padding: .85rem 1rem; font-family: var(--ff-display); font-weight: 600;
}
.mobile-menu-cta:hover { background: var(--accent); }

/* ---------- Breakpoints ---------- */

/* Standard (>=1280px): alles sichtbar inkl. Icon-Labels */
.search-toggle { display: none; }
.icon-btn-label { display: inline; }

/* 1100-1279px: Icon-only, schmalere Suche */
@media (max-width: 1279px) {
  .icon-btn-label { display: none; }
  .icon-btn { padding: 0; width: 44px; }
  .hdr-search { max-width: 220px; }
}

/* <1100px: Burger-Modus — Nav + Konto ins Menue, Suche als Toggle */
@media (max-width: 1099px) {
  .hdr-nav, .hdr-account, .hdr-search { display: none; }
  .nav-toggle { display: flex; }
  .search-toggle { display: inline-flex; }
}

/* <768px: kompakter */
@media (max-width: 767px) {
  .header-bar { gap: .5rem; }
  .brand-logo { width: 40px; height: 40px; }
}

/* <420px: Tag ausblenden, Buttons minimal kleiner */
@media (max-width: 419px) {
  .brand-tag { display: none; }
  .icon-btn, .nav-toggle { min-width: 42px; width: 42px; min-height: 42px; height: 42px; }
}

/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  .icon-btn, .hdr-cta-btn, .hdr-ghost-btn, .nav-toggle span { transition: none; }
}
