/* OEZ Premium · premium-base.css · S4 Shell
   1) Basis aus tokens.css Block 10, aber Snackys-verträglich: keine globalen Regeln für img/a/p, die
      bestehende Seiten (Kacheln, Konto, Checkout) brechen würden – Fließtext-Links nur in .oez-prose.
   2) Snackys-Reste auf die Tokens ziehen (Alerts statt JTL-Hellblau, Buttons, Formfelder, Modal,
      Pagination, Breadcrumb), damit S5–S11 auf einem ruhigen Grund aufsetzen.
   Nur Tokens, keine Hex-Werte. !important nur gegen Snackys-Inline-/ID-Regeln, jeweils kommentiert. */

/* 1 · Basis ---------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--oez-font-text);
  /* Feinschliff O-1: Snackys setzt html{line-height:1.4} und mobil body{font-size:var(--bd-sm)} (14,4 px) – Fließtext überall 16 px / 1,55.
     --bd-sm/-md/-lg bleiben unangetastet (steuern Tabs, Alerts, Buttons, Consent). premium-base lädt nach #maincss, daher ohne Media-Query. */
  font-size: var(--oez-fs-16);
  line-height: var(--oez-lh-text);
  color: var(--oez-ink);
  background: var(--oez-white);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--oez-orange-text); outline-offset: 2px; }
::selection { background: var(--oez-orange-200); color: var(--oez-ink); }
h1, h2, .h1, .h2 { font-family: var(--oez-font-display); font-weight: 400; text-transform: uppercase; letter-spacing: var(--oez-ls-display); line-height: var(--oez-lh-display); color: var(--oez-ink); text-wrap: balance; }
h3, h4, h5, .h3, .h4, .h5 { font-family: var(--oez-font-text); color: var(--oez-ink); line-height: var(--oez-lh-tight); }
h3, .h3 { font-weight: var(--oez-fw-num); letter-spacing: -0.01em; }
h4, h5, .h4, .h5 { font-weight: var(--oez-fw-strong); }
.oez-prose a, .oez-recovery a:not([class]), .oez-cta-band p a { color: var(--oez-orange-text); text-decoration: underline; text-underline-offset: .15em; }
.oez-accent { color: var(--oez-orange-text); }
.oez-skip-target { display: block; height: 0; outline: none; }
.oez-skip-target:focus { outline: none; }
#content-wrapper { scroll-margin-top: 120px; }

/* Snackys-Container auf die Shell-Breite (1280 + Rand) ziehen, damit Kopf, Inhalt und Fuß bündig sind. */
.mw-container { max-width: calc(var(--oez-container) - 2 * var(--oez-gutter)); }
@media (min-width: 768px) { :root { --oez-gutter: 24px; } }
@media (min-width: 1024px) { :root { --oez-gutter: 32px; } }

/* 2 · Alerts / Hinweisboxen (ersetzt JTL-Hellblau, components §15) ----------- */
.alert {
  border: 1px solid var(--oez-info-line);
  border-radius: var(--oez-r-md);
  background: var(--oez-info-bg);
  color: var(--oez-ink);
  font-size: var(--oez-fs-14);
  padding: var(--oez-s-4) var(--oez-s-5);
  box-shadow: none;
}
.alert a { color: var(--oez-orange-text); font-weight: var(--oez-fw-label); }
.alert-info { background: var(--oez-info-bg); border-color: var(--oez-info-line); color: var(--oez-ink); }
.alert-success { background: var(--oez-ok-bg); border-color: transparent; color: var(--oez-ok-text); }
.alert-warning { background: var(--oez-warn-bg); border-color: transparent; color: var(--oez-warn-text); }
.alert-danger { background: var(--oez-err-bg); border-color: transparent; color: var(--oez-err-text); }

/* 3 · Buttons: Snackys .btn → Ghost, .btn-primary → Primär (Ink auf Orange, components §4) -- */
.btn {
  min-height: var(--oez-control);
  border-radius: var(--oez-r-md);
  font-family: var(--oez-font-text);
  font-weight: var(--oez-fw-strong);
  letter-spacing: 0;
  text-transform: none;
}
.btn-primary, .btn.btn-primary {
  background: var(--oez-orange);
  border-color: var(--oez-orange);
  color: var(--oez-ink);
}
.btn-primary:hover, .btn-primary:focus, .btn.btn-primary:hover {
  background: var(--oez-orange-hover);
  border-color: var(--oez-orange-hover);
  color: var(--oez-ink);
}
.btn:focus-visible { box-shadow: var(--oez-focus); outline: none; }
/* Gate 2 KD-09 (5)/(6): Snackys-/JTL-Zweitbuttons (.btn-default: Versandrechner, Wunschzettel, Minicart · .btn-outline-primary: Warenkorb-Hinweise)
   sehen aus wie .oez-btn--secondary (Ghost: Ink-Rahmen, Radius-Token, Manrope 600/16, Höhe --oez-control). */
.btn.btn-default, .btn.btn-outline-primary {
  background: transparent;
  color: var(--oez-ink);
  border: 1.5px solid var(--oez-ink);
  border-radius: var(--oez-r-md);
  font-family: var(--oez-font-text);
  font-weight: var(--oez-fw-label);
  font-size: var(--oez-fs-16);
  line-height: 1.2;
  min-height: var(--oez-control);
  padding-inline: var(--oez-s-5);
  box-shadow: none;
  text-transform: none;
}
.btn.btn-default:hover, .btn.btn-default:active, .btn.btn-outline-primary:hover, .btn.btn-outline-primary:active,
.btn.btn-default.active, .btn.btn-outline-primary.active {
  background: var(--oez-ink);
  border-color: var(--oez-ink);
  color: var(--oez-white);
}
.btn.btn-default:focus-visible, .btn.btn-outline-primary:focus-visible { box-shadow: var(--oez-focus); outline: none; }
.btn.btn-default.btn-sm, .btn.btn-default.btn-xs { font-size: var(--oez-fs-14); padding-inline: var(--oez-s-4); }
/* In Eingabegruppen (PLZ + „Versandkosten ermitteln“) bleiben die Stoßkanten gerade, außen gilt der Radius-Token. */
.input-group-btn:last-child > .btn.btn-default, .input-group-btn:last-child > .btn.btn-outline-primary { border-radius: 0 var(--oez-r-md) var(--oez-r-md) 0; }
.input-group-btn:first-child > .btn.btn-default, .input-group-btn:first-child > .btn.btn-outline-primary { border-radius: var(--oez-r-md) 0 0 var(--oez-r-md); }

/* 4 · Formfelder (components §5) ------------------------------------------- */
.form-control, select.form-control, .custom-select {
  min-height: var(--oez-control);
  border: 1.5px solid var(--oez-line-strong);
  border-radius: var(--oez-r-md);
  background-color: var(--oez-white);
  color: var(--oez-ink);
  font-family: var(--oez-font-text);
  font-size: var(--oez-fs-16);
  box-shadow: none;
}
.form-control:focus, .custom-select:focus {
  border-color: var(--oez-ink);
  box-shadow: 0 0 0 3px var(--oez-orange-200);
  outline: none;
}
.has-error .form-control, .form-control.is-invalid { border-color: var(--oez-err); }
.form-error-msg, .invalid-feedback { color: var(--oez-err-text); font-size: var(--oez-fs-13); }
label, .control-label { color: var(--oez-ink); font-weight: var(--oez-fw-label); }

/* 5 · Modal (Snackys/Bootstrap .modal) -------------------------------------- */
.modal-content { border: 0; border-radius: var(--oez-r-lg); box-shadow: var(--oez-shadow-lg); color: var(--oez-ink); }
.modal-header { border-bottom: 1px solid var(--oez-line); }
.modal-footer { border-top: 1px solid var(--oez-line); }
.modal-title { font-family: var(--oez-font-text); font-weight: var(--oez-fw-num); text-transform: none; }

/* 6 · Pagination (Snackys .pagination → components §17) -------------------- */
.pagination .page-link, .pagination a, .pagination .pagination-btn {
  border-radius: var(--oez-r-sm);
  color: var(--oez-ink);
  font-weight: var(--oez-fw-label);
  font-variant-numeric: tabular-nums;
}
.pagination .active > .page-link, .pagination .active a, .pagination .page-item.active .page-link {
  background: var(--oez-ink);
  border-color: var(--oez-ink);
  color: var(--oez-white);
}

/* 7 · Snackys-Farbreste: Tokens statt #FF6C31 (css_* in km_snackys_config sind lokal angeglichen) */
.color-brand { color: var(--oez-orange-text); }
.badge { border-radius: var(--oez-r-pill); }
