/**
 * Bobteam Illmann Fanshop – Ergänzende Shop-Styles (shop.css)
 *
 * Wird nach tokens.css, base.css und components.css geladen.
 * Ergänzt den Fanshop um Regeln für:
 * - Kopfzeile: Shop-Aktionen (Konto, Warenkorb-Badge)
 * - Startseite & Kategorien: Produkt-Raster, Vorratsanzeigen, Platzhalter
 * - Produktdetails: Galerie, Knopfreihe für Größen, Mengenauswahl, Spezifikationen
 * - Warenkorb: Zeilen, Mengeneingabe, Zusammenfassung
 * - Kasse: Mehrstufige Schritte, Adresskarten, Zahlarten, Bestätigung
 * - Kundenkonto: Navigation, Bestellübersicht, neutrale Status-Pillen, Adressbuch
 * - Formulare: Barrierefreie 44-px-Tippziele, zweifarbige Fokusringe
 */

/* ==========================================================================
   KOPFZEILE & SHOP-AKTIONEN
   ========================================================================== */

.shop-aktionen {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.shop-aktionen__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: var(--target-min);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-on-dark);
  text-decoration: none;
  position: relative;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.shop-aktionen__link:hover {
  color: var(--color-red);
  background-color: rgba(255, 255, 255, 0.06);
}

.shop-aktionen__link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-red);
}

.shop-aktionen__link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.shop-aktionen__text {
  display: inline;
}

@media (max-width: 48rem) {
  .shop-aktionen__text {
    display: none;
  }
  .shop-aktionen__link {
    padding: 0.5rem;
  }
}

.korb-zahl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
  line-height: 1;
  color: #ffffff;
  background-color: var(--color-red);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.korb-zahl[data-anzahl="0"] {
  opacity: 0.65;
  background-color: var(--color-team-blue-surface);
}

/* ==========================================================================
   PRODUKTKACHELN & LISTEN (shop-grid / product-card)
   ========================================================================== */

.product-card-title-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.product-card-title-link:hover,
.product-card-title-link:focus-visible {
  color: var(--color-red);
}

.product-vat-note a {
  color: inherit;
  text-decoration: underline;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

.product-vat-note a:hover {
  color: var(--color-red);
}

.vorrat {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: #15803d; /* Dunkelgrün für WCAG AA */
  margin-top: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.vorrat::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #15803d;
}

.vorrat--leer {
  color: var(--color-red);
}

.vorrat--leer::before {
  background-color: var(--color-red);
}

/* ==========================================================================
   PRODUKT-DETAILSEITE & MERKMALE / GRÖSSENWAHL
   ========================================================================== */

.size-selector-group {
  margin-bottom: var(--space-xl);
}

.size-selector-group .selector-label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.selected-size-highlight {
  color: var(--color-red);
}

.size-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.size-btn-wrap {
  position: relative;
  display: inline-flex;
}

/* Unsichtbarer echter Radio-Input für reguläres HTML-Formular-POST */
.size-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.size-btn-wrap .size-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--target-min);
  min-height: var(--target-min);
  padding: 0.5rem 1rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.size-btn-wrap .size-btn:hover {
  border-color: var(--color-red);
  background-color: var(--color-surface-hover);
}

.size-radio:checked + .size-btn {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(220, 20, 68, 0.4);
}

.size-radio:disabled + .size-btn {
  opacity: 0.45;
  text-decoration: line-through;
  cursor: not-allowed;
  border-style: dashed;
  background-color: var(--color-surface-subtle);
}

.size-radio:focus-visible + .size-btn {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-red);
}

/* Mengenauswahl */
.quantity-control.menge,
.menge {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.quantity-control button,
.menge button {
  width: var(--target-min);
  height: var(--target-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: background-color var(--transition-fast);
}

.quantity-control button:hover,
.menge button:hover {
  background-color: var(--color-surface-hover);
}

.quantity-control button:focus-visible,
.menge button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
  box-shadow: 0 0 0 2px var(--color-red);
}

.quantity-control input,
.menge input {
  width: 50px;
  height: var(--target-min);
  text-align: center;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  -moz-appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button,
.menge input::-webkit-outer-spin-button,
.menge input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ==========================================================================
   WARENKORB (shopping_cart.html / order_details.html)
   ========================================================================== */

.shopping_cart {
  width: 100%;
}

.korb-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-2xl);
  align-items: start;
  margin-top: var(--space-xl);
}

@media (max-width: 64rem) {
  .korb-layout {
    grid-template-columns: 1fr;
  }
}

.korb-liste {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.korb-zeile {
  display: grid;
  grid-template-columns: 88px 1fr auto auto;
  gap: var(--space-md);
  align-items: center;
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 48rem) {
  .korb-zeile {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-sm);
  }
  .korb-zeile__menge {
    grid-column: 1 / -1;
    justify-content: space-between;
  }
  .korb-zeile__preis {
    grid-column: 2;
    text-align: right;
  }
}

.korb-zeile__bild img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background-color: #ffffff;
}

.korb-zeile__name {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2xs);
}

.korb-zeile__name a {
  color: var(--color-text);
  text-decoration: none;
}

.korb-zeile__name a:hover {
  color: var(--color-red);
}

.korb-zeile__variante {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xs);
}

.korb-zeile__warnung {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-red);
}

.korb-zeile__weg a,
.korb-zeile__weg button {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.korb-zeile__weg a:hover,
.korb-zeile__weg button:hover {
  color: var(--color-red);
}

.korb-zeile__menge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.korb-zeile__preis {
  text-align: right;
  font-weight: var(--weight-bold);
}

.summe {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-red);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
}

.summe h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
}

.summe__zeile {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  padding-block: var(--space-xs);
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: var(--text-sm);
}

.summe__zeile a {
  color: inherit;
  text-decoration: underline;
}

.summe__zeile a:hover {
  color: var(--color-red);
}

.summe__zeile--gesamt {
  font-size: var(--text-lg);
  font-weight: var(--weight-black);
  border-top: 2px solid var(--color-border);
  border-bottom: none;
  padding-top: var(--space-md);
  margin-top: var(--space-xs);
  color: var(--color-text);
}

.korb-leer__weiter {
  margin-top: var(--space-xl);
}

/* ==========================================================================
   BESTELLSCHRITTE (schritte)
   ========================================================================== */

.schritte {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-md);
}

.schritte li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.schritte li[aria-current="step"] {
  color: var(--color-red);
}

.schritte li.schritte__erledigt {
  color: var(--color-text);
}

.schritte__nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.schritte li[aria-current="step"] .schritte__nr {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: #ffffff;
}

.schritte li.schritte__erledigt .schritte__nr {
  background-color: var(--color-team-blue);
  border-color: var(--color-team-blue);
  color: #ffffff;
}

/* ==========================================================================
   KASSE & FORMULARE (bt-checkout)
   ========================================================================== */

.bt-checkout {
  width: 100%;
}

.bt-checkout__layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 64rem) {
  .bt-checkout__layout {
    grid-template-columns: 1fr;
  }
}

.bt-checkout__section {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-card);
}

.bt-checkout__fieldset {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
  margin: 0 0 var(--space-xl) 0;
  background-color: var(--color-surface);
}

.bt-checkout__fieldset legend {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  padding: 0 var(--space-xs);
  color: var(--color-text);
}

.bt-checkout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  margin-top: var(--space-xl);
}

.bt-checkout__address {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  transition: border-color var(--transition-fast);
}

.bt-checkout__address.is-selected {
  border-color: var(--color-red);
  box-shadow: 0 0 0 2px rgba(220, 20, 68, 0.25);
}

.bearbeiten-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.bearbeiten {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--target-min);
  min-height: var(--target-min);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.bearbeiten:hover {
  color: var(--color-red);
}

.bearbeiten:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-red);
  border-radius: var(--radius-sm);
}

.kaufhinweis {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.zustimmung {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  min-height: var(--target-min);
  padding: var(--space-xs) 0;
  font-size: var(--text-sm);
  cursor: pointer;
}

.zustimmung input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin-top: 2px;
  accent-color: var(--color-red);
  cursor: pointer;
}

.zustimmung a {
  color: inherit;
  text-decoration: underline;
}

.zustimmung a:hover {
  color: var(--color-red);
}

/* Formular-Elemente */
.formular {
  width: 100%;
}

.formular__reihe {
  display: flex;
  gap: var(--space-md);
}

.formular__reihe--zwei {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.formular__reihe--plz {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-md);
}

@media (max-width: 48rem) {
  .formular__reihe--zwei,
  .formular__reihe--plz {
    grid-template-columns: 1fr;
  }
}

.feld {
  margin-bottom: var(--space-md);
  width: 100%;
}

.feld label {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

.feld input[type="text"],
.feld input[type="email"],
.feld input[type="tel"],
.feld input[type="password"],
.feld input[type="number"],
.feld select,
.feld textarea {
  width: 100%;
  min-height: var(--target-min);
  padding: 0.625rem 0.875rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.feld input:focus-visible,
.feld select:focus-visible,
.feld textarea:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-color: var(--color-red);
  box-shadow: 0 0 0 4px var(--color-red);
}

.feld__pflicht {
  color: var(--color-red);
  margin-left: 2px;
}

.feld__hinweis {
  font-size: var(--text-xs);
  font-weight: normal;
  color: var(--color-text-muted);
}

/* ==========================================================================
   KUNDENKONTO (account.html)
   ========================================================================== */

.konto-bereich {
  width: 100%;
}

.konto-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-2xl);
  align-items: start;
  margin-top: var(--space-xl);
}

@media (max-width: 48rem) {
  .konto-layout {
    grid-template-columns: 1fr;
  }
}

.konto-menue {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}

.konto-menue a {
  display: flex;
  align-items: center;
  min-height: var(--target-min);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.konto-menue a:hover {
  background-color: var(--color-surface-hover);
  color: var(--color-red);
}

.konto-menue a[aria-current="page"] {
  background-color: var(--color-red);
  color: #ffffff;
}

.konto-bestellungen,
.konto-produkte {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.bestellung {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.bestellung__nr {
  font-weight: var(--weight-bold);
}

.bestellung__datum {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.stand {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}

.stand--neutral {
  background-color: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.konto-adresse {
  background-color: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.konto-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  min-height: var(--target-min);
  padding: var(--space-xs) 0;
  font-size: var(--text-sm);
}

.konto-option input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin-top: 2px;
  accent-color: var(--color-red);
}

.konto-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* ==========================================================================
   MELDUNGEN & HINWEISE
   ========================================================================== */

.errormessage,
.infomessage,
.successmessage,
.konto-hinweis {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xl);
  font-size: var(--text-sm);
  line-height: 1.5;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-red);
  background-color: var(--color-surface);
}

.errormessage {
  border-left-color: var(--color-red);
  color: var(--color-text);
}

.successmessage {
  border-left-color: #15803d;
  color: var(--color-text);
}

.infomessage {
  border-left-color: var(--color-team-blue);
  color: var(--color-text);
}

/* ==========================================================================
   ZAHLUNGSTABELLE & DANKE-SEITE
   ========================================================================== */

.paymentinfotable {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-md);
  font-size: var(--text-sm);
}

.paymentinfotable td {
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 1px solid var(--color-border-subtle);
}

.paymentinfotable td:first-child {
  font-weight: var(--weight-bold);
  width: 35%;
}

.bestaetigung {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-red);
  border-radius: var(--radius-sm);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   BARRIEREFREIHEIT & HILFSKLASSEN
   ========================================================================== */

.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Kopf: Konto und Warenkorb als weiße Symbole mit Zähler (Korrektur 23.10.2026)
   ========================================================================== */
.shop-aktionen {
  display: flex;
  align-items: center;
  gap: var(--space-xs, 0.25rem);
  margin-left: var(--space-md, 1rem);
  color: var(--color-white, #ffffff);
}

.shop-aktionen a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  color: var(--color-white, #ffffff);
  text-decoration: none;
  border-radius: 4px;
}

.shop-aktionen svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Beschriftung nur für Screenreader; sichtbar sind die Symbole. */
.shop-aktionen a > span:not(.korb-zahl) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.shop-aktionen a:hover {
  color: var(--color-red, #dc1444);
}

.shop-aktionen a:focus-visible {
  outline: 2px solid var(--color-white, #ffffff);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-red, #dc1444);
}

.shop-aktionen .korb-zahl {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--color-red, #dc1444);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.shop-aktionen .korb-zahl[data-anzahl="0"] {
  background: rgba(255, 255, 255, 0.18);
}

/* Gleicher Umbruchpunkt wie die mobile Navigation in components.css. */
@media (width < 1120px) {
  .header-inner {
    justify-content: flex-start;
    gap: var(--space-2xs, 0.25rem);
  }

  .header-brand {
    flex: 0 1 140px;
    min-width: 44px;
  }

  .header-logo {
    width: 100%;
    height: auto;
    max-height: 52px;
  }

  .shop-aktionen {
    margin-left: auto;
    flex: none;
  }

  .menu-toggle {
    flex: none;
    min-width: 44px;
    min-height: 44px;
  }
}

/* ==========================================================================
   Fuß: Versandkosten-Link lesbar, modified-Hinweis im Fußstil
   ========================================================================== */
.footer-bottom p a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom p a:hover,
.footer-bottom p a:focus-visible {
  color: var(--color-red-light, #ff5c7f);
}

.copyright {
  margin: 0;
  padding: 0 var(--space-md, 1rem) 1.25rem;
  background: var(--color-team-blue, #0f1f38);
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.4;
}

.copyright a,
.copyright span {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.copyright a:hover span,
.copyright a:focus-visible span {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Kopf: Der Shop braucht neben der Navigation Platz für Konto und Warenkorb.
   Deshalb schaltet er erst ab 1120 px auf die volle Navigation (Website: 960 px)
   und nutzt darunter dasselbe Burger-Menü wie die Website unter 960 px.
   ========================================================================== */
@media (960px <= width < 1120px) {
  .header-inner { height: 70px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-team-blue);
    border-bottom: 3px solid var(--color-red);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    padding: var(--space-lg) var(--container-pad);
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .main-nav[data-open="true"] { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: var(--space-2xs); width: 100%; }
  .nav-link { width: 100%; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); background: var(--color-team-blue-surface); }
  .nav-link[aria-current="page"] { border-left: 4px solid var(--color-red); background: #1e3a68; }
  .nav-link[aria-current="page"]::after { display: none; }
}

/* ==========================================================================
   Größenwahl als Knöpfe wie im Prototyp (.size-btn), technisch weiter Radios
   (modified sendet id[...]); das Radio bleibt für Tastatur/Screenreader bedienbar.
   ========================================================================== */
.size-selector-group .size-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.size-selector-group .size-btn-row input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.size-selector-group .size-btn-row label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--target-min, 44px);
  min-height: var(--target-min, 44px);
  padding: 0.5rem 1rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.size-selector-group .size-btn-row label:hover {
  border-color: var(--color-red);
  background-color: var(--color-surface-hover);
}

.size-selector-group .size-btn-row input[type="radio"]:checked + label {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-text-on-dark);
  box-shadow: 0 0 10px rgba(220, 20, 68, 0.4);
}

.size-selector-group .size-btn-row input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--color-team-blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #ffffff, 0 0 0 6px var(--color-red);
}

.size-selector-group .size-btn-row input[type="radio"]:disabled + label {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Kopf ab 1120 px: Navigation rechtsbündig wie auf der Website, Konto/Warenkorb dahinter. */
@media (width >= 1120px) {
  .header-inner > .main-nav { margin-left: auto; }
  .header-inner > .shop-aktionen { margin-left: var(--space-lg, 1.5rem); }
}
