/* Gestaltung der B2B-Plattform.
   Frueher lag dieses Stylesheet als minifizierter String im Servercode und war weder
   pruefbar noch cachebar. Jetzt liefert der Server die Datei unter einer Adresse mit
   Inhaltspruefsumme aus und darf sie dauerhaft cachen. */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/roboto-v32-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/roboto-v32-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/roboto-v32-latin-700.woff2") format("woff2");
}

:root {
  --ink: #181a19;
  --ink-soft: #494e49;
  --canvas: #f7f7f5;
  --paper: #ffffff;
  --line: #e4e5e1;
  --line-strong: #cfd1cb;
  /* Aufgehellt auf 5,9:1 gegen Weiss. Der vorherige Wert #747974 lag bei 4,1:1 und
     verfehlte damit die Anforderung von 4,5:1 fuer normalen Text. */
  --muted: #5f645f;
  --success: #155b40;
  --success-bg: #eaf3ed;
  --warning: #7a5000;
  --warning-bg: #fff4d8;
  --danger: #8a1616;
  --danger-bg: #fffafa;
  --focus: #0b5fff;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-size: 14px;
  letter-spacing: -0.01em;
}

/* --- Tastaturbedienung ---------------------------------------------------- */

/* Vorher entfernte "outline:none" an Eingabefeldern jede Fokusanzeige. Jetzt gibt es
   einen einheitlichen, deutlich sichtbaren Fokusring auf allen bedienbaren Elementen. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* --- Kopfbereich ---------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4.5vw;
}

.brand {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.square {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--ink);
  margin-right: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 62px 4.5vw 88px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 760;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 12px;
}

.title {
  max-width: 780px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin: 0 0 48px;
  font-weight: 550;
}

/* --- Grundraster und Navigation ------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 56px;
}

.side {
  position: sticky;
  top: 108px;
  align-self: start;
}

.side a {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 570;
  transition:
    color 160ms ease,
    padding 160ms ease;
}

.side a.active,
.side a:hover {
  color: var(--ink);
  padding-left: 6px;
  font-weight: 750;
}

/* Die aktive Seite wird nicht nur farblich, sondern auch durch eine Markierung
   angezeigt - Farbe allein ist kein ausreichendes Unterscheidungsmerkmal. */
.side a.active {
  border-left: 3px solid var(--ink);
  padding-left: 9px;
}

/* --- Kennzahlen und Flaechen ---------------------------------------------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric {
  min-height: 138px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 25px;
  transition:
    transform 180ms var(--ease),
    border-color 180ms ease;
}

.metric:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.metric b {
  display: block;
  font-size: 39px;
  line-height: 1;
  letter-spacing: -0.065em;
  margin-bottom: 15px;
  font-weight: 560;
}

.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 30px;
  margin-bottom: 16px;
  box-shadow: 0 1px 0 rgba(20, 24, 21, 0.015);
}

.panel > h2 {
  max-width: 620px;
}

.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: none;
}

.dark .muted {
  color: #c4c9c3;
}

.dark .eyebrow {
  color: #c4c9c3;
}

/* --- Text ----------------------------------------------------------------- */

h1,
h2,
h3 {
  font-weight: 600;
}

h2 {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin: 0 0 12px;
}

h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

p {
  line-height: 1.65;
  margin: 0 0 14px;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-color: #8c908a;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 19px 0;
}

.row:first-child {
  border-top: 0;
  padding-top: 0;
}

/* Leerzustand: erklaert, warum eine Liste leer ist, statt nur nichts anzuzeigen. */
.empty {
  border: 1px dashed var(--line-strong);
  background: #fbfbfa;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.empty h3 {
  color: var(--ink);
  margin-bottom: 8px;
  font-size: 16px;
}

.empty p {
  margin: 0 auto 14px;
  max-width: 440px;
}

/* --- Datentabellen -------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table caption {
  text-align: left;
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px 12px 0;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.data-table td.numeric,
.data-table th.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding-right: 0;
}

/* --- Status und Aktionen -------------------------------------------------- */

.tag {
  display: inline-block;
  border: 1px solid var(--line-strong);
  padding: 5px 8px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #fff;
  white-space: nowrap;
}

.tag.shipped {
  border-color: #b8d6c7;
  color: var(--success);
  background: var(--success-bg);
}

.tag.process {
  border-color: #ead199;
  color: var(--warning);
  background: var(--warning-bg);
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  padding: 0 17px;
  cursor: pointer;
  font:
    700 11px/1 ui-sans-serif,
    -apple-system,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 140ms var(--ease),
    background 140ms ease;
}

.primary:hover {
  background: #343735;
}

.primary:active {
  transform: scale(0.97);
}

.dark .primary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* --- Formulare ------------------------------------------------------------ */

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #fff;
  padding: 10px 12px;
  margin-top: 7px;
  color: var(--ink);
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(24, 26, 25, 0.08);
}

input[type="checkbox"] {
  min-height: 0;
}

label {
  display: block;
  margin: 0 0 17px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.035em;
}

form {
  max-width: 760px;
}

/*
 * Pflichtfelder zusaetzlich zur Browserpruefung kennzeichnen. Der Hinweis steht wegen der
 * Markup-Struktur (<label>Text<input></label>) unter dem Feld, darf dort also nicht wie eine
 * Fehlermeldung wirken: klein, mager, ohne Sperrsatz.
 */
label:has(input:required)::after,
label:has(select:required)::after,
label:has(textarea:required)::after {
  content: "Pflichtfeld";
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* Aufklappbereich, z. B. der SMTP-Zugang je Firma. */
.smtp-block {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}

.smtp-block > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 4px 0;
}

.smtp-block > summary::marker {
  color: var(--muted);
}

.smtp-block[open] > summary {
  margin-bottom: 16px;
}

/* --- Anmeldung ------------------------------------------------------------ */

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
}

.login-box {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  max-width: 920px;
  width: 100%;
  min-height: 490px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 70px rgba(24, 26, 25, 0.08);
}

.login-brand {
  background: var(--ink);
  color: #fff;
  padding: 58px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.login-brand .title {
  font-size: 52px;
  margin: 0 0 22px;
}

.login-brand .muted {
  color: #c4c9c3;
}

.login-form {
  padding: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notice {
  margin: 17px 0;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  background: #fbfbfa;
  color: var(--ink-soft);
}

.notice.error {
  border-color: #e7b9b9;
  color: var(--danger);
  background: var(--danger-bg);
}

/* --- Sendungsverfolgung --------------------------------------------------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 32px 0;
}

.timeline-step {
  border: 1px solid var(--line);
  background: #fafaf8;
  padding: 16px 13px;
  min-height: 94px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.timeline-step.done {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.timeline-step.current {
  background: var(--success-bg);
  border-color: #b8d6c7;
  color: var(--success);
  font-weight: 750;
}

/* --- Shop ---------------------------------------------------------------- */

.shop-hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 54px);
  margin-bottom: 28px;
}

.shop-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--ink);
}

.shop-hero-copy {
  max-width: 670px;
  margin-bottom: 29px;
}

.shop-hero-copy h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.06em;
  margin: 0;
}

.shop-hero-copy p {
  max-width: 500px;
  margin: 13px 0 0;
  color: var(--muted);
}

.shop-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 800px;
  margin: 0;
}

.shop-search label {
  margin: 0;
}

.search-field {
  position: relative;
}

.search-field::before {
  content: "⌕";
  position: absolute;
  left: 16px;
  top: 50%;
  translate: 0 -50%;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  pointer-events: none;
}

.search-field input {
  height: 54px;
  margin: 0;
  padding: 0 16px 0 50px;
  border-color: #bec2bc;
  font-size: 14px;
}

.shop-search .primary {
  min-height: 54px;
  padding: 0 24px;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid #d9ddd7;
  background: #fff;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.03em;
  transition:
    background 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.category-chip:hover,
.category-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  text-decoration: none;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 0 0 15px;
}

.shop-toolbar h2 {
  font-size: 19px;
  margin: 0;
}

.shop-toolbar p {
  margin: 5px 0 0;
  font-size: 12px;
}

.toolbar-link {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 100%;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #c7cbc4;
  box-shadow: 0 16px 30px rgba(24, 26, 25, 0.06);
}

.product-media {
  display: block;
  position: relative;
  height: 238px;
  background: #eceeea;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.product-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.025);
}

.product-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Detailseite: Galerie bzw. Platzhalter, damit die Seite nicht ohne Bildflaeche beginnt. */
.product-media-detail {
  height: 300px;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.product-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
  margin-bottom: 22px;
}

.product-hero-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.product-thumb {
  width: 32%;
  max-height: 150px;
  object-fit: cover;
  display: block;
}

.product-detail h3 {
  margin-top: 26px;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.product-body .tag {
  align-self: flex-start;
  margin-bottom: 17px;
}

.product-title {
  font-size: 23px;
  line-height: 1.03;
  letter-spacing: -0.05em;
  margin: 0 0 10px;
}

.product-title a {
  text-decoration: none;
}

.product-description {
  font-size: 13px;
  margin-bottom: 20px;
}

.product-pricing {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
}

.product-pricing .meta {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}

.product-price {
  font-size: 22px;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.05em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.product-price small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-actions {
  display: flex;
  gap: 9px;
  align-items: end;
  margin-top: 20px;
}

.product-actions form {
  flex: 1;
  margin: 0;
}

.product-actions label {
  margin: 0;
  font-size: 10px;
}

.product-actions input {
  min-height: 39px;
  height: 39px;
  margin-top: 5px;
}

.product-actions .primary {
  width: 100%;
  min-height: 39px;
  padding: 0 12px;
  font-size: 10px;
}

.product-links {
  display: flex;
  gap: 13px;
  margin: 17px 0 0;
  font-size: 11px;
  font-weight: 700;
}

.product-links a {
  text-decoration: none;
  border-bottom: 1px solid #bfc3bd;
  padding-bottom: 2px;
}

/* --- Anpassung an Geraete ------------------------------------------------- */

@media (max-width: 900px) {
  .top {
    padding: 0 24px;
  }

  .wrap {
    padding: 44px 24px 64px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .side {
    position: static;
    display: flex;
    gap: 18px;
    overflow: auto;
    border-bottom: 1px solid var(--line);
  }

  .side a {
    white-space: nowrap;
    border: 0;
    padding: 0 0 12px;
  }

  .side a.active,
  .side a:hover {
    padding-left: 0;
  }

  .side a.active {
    border-left: 0;
    border-bottom: 3px solid var(--ink);
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .login-box {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 250px;
    padding: 38px;
  }

  .login-form {
    padding: 38px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .shop-search {
    grid-template-columns: 1fr;
  }

  .shop-search .primary {
    width: 100%;
  }

  .product-media {
    height: 260px;
  }
}

@media (max-width: 600px) {
  .top {
    min-height: 64px;
    padding: 0 16px;
  }

  .top .muted {
    display: none;
  }

  .wrap {
    padding: 36px 16px 56px;
  }

  .title {
    font-size: 42px;
    margin-bottom: 34px;
  }

  .metrics,
  .two,
  .timeline {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 104px;
    padding: 20px;
  }

  .panel {
    padding: 22px;
  }

  .row {
    flex-direction: column;
    gap: 12px;
  }

  .login {
    padding: 0;
  }

  .login-box {
    min-height: 100vh;
    border: 0;
  }

  .login-brand,
  .login-form {
    padding: 30px;
  }

  .login-brand .title {
    font-size: 43px;
  }

  .shop-hero {
    padding: 27px 22px;
  }

  .shop-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .product-body {
    padding: 21px;
  }

  .product-media {
    height: 210px;
  }

  .category-nav {
    gap: 6px;
  }

  .category-chip {
    min-height: 34px;
    padding: 0 10px;
  }
}

/* Nutzer, die Bewegung reduzieren wollen, bekommen keine Verschiebungen und Skalierungen. */
@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;
  }

  .metric:hover,
  .product-card:hover,
  .primary:active,
  .product-card:hover .product-media img {
    transform: none;
  }
}

/* --- Lutz-Abel-Markenbild -------------------------------------------------- */

:root {
  --ink: #031927;
  --ink-soft: #33434d;
  --canvas: #f5f6f3;
  --paper: #fffffe;
  --line: #dfe4e1;
  --line-strong: #abb7b5;
  --muted: #5b6970;
  --success: #155b40;
  --success-bg: #ecf3ed;
  --warning: #76580b;
  --warning-bg: #fff7d7;
  --danger: #a52222;
  --danger-bg: #fff7f7;
  --focus: #b7cd00;
}

body {
  background: var(--canvas);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

:focus-visible {
  outline-color: var(--focus);
}

.skip-link {
  background: var(--focus);
  color: var(--ink);
}

.top {
  min-height: 82px;
  border-bottom: 1px solid rgba(183, 205, 0, 0.42);
  background: rgba(3, 25, 39, 0.98);
  box-shadow: none;
  padding: 0 clamp(18px, 4.5vw, 72px);
}

.top .muted {
  color: #c5ced1;
}

.brand {
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--paper);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-divider {
  display: inline-block;
  width: 2px;
  height: 22px;
  background: var(--focus);
  box-shadow: 6px 0 0 rgba(183, 205, 0, 0.26);
}

.brand-suffix {
  margin-left: 13px;
  color: var(--focus);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-area {
  display: flex;
  align-items: center;
  gap: 13px;
}

.account-area form {
  max-width: none;
}

.wrap {
  max-width: 1480px;
  padding-top: clamp(46px, 6vw, 88px);
}

.eyebrow {
  color: #4f6977;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.title {
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.grid {
  gap: clamp(32px, 4vw, 64px);
}

.side a {
  border-bottom-color: var(--line-strong);
  color: #4f616a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.side a.active,
.side a:hover {
  color: var(--ink);
}

.side a.active {
  border-left-color: var(--focus);
  color: var(--ink);
}

.metric,
.panel,
.product-card,
.shop-hero,
.timeline-step {
  border-color: var(--line-strong);
  box-shadow: none;
}

.metric,
.panel,
.product-card,
.shop-hero {
  background: var(--paper);
}

.metric {
  position: relative;
  padding-top: 29px;
}

.metric::before,
.shop-hero::before {
  height: 3px;
  background: var(--focus);
}

.metric:hover,
.product-card:hover {
  border-color: var(--ink);
  box-shadow: none;
}

.panel {
  border-top: 3px solid var(--ink);
}

.dark {
  background: var(--ink);
  border-color: var(--ink);
}

.dark .eyebrow,
.dark .muted {
  color: #c5ced1;
}

h2,
h3 {
  color: var(--ink);
  font-weight: 500;
}

.dark h2,
.dark h3 {
  color: var(--paper);
}

.data-table th {
  color: #4f6977;
  letter-spacing: 0.11em;
}

.data-table th,
.data-table td,
.row,
.product-pricing {
  border-color: var(--line);
}

.tag {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.primary {
  min-height: 44px;
  border-color: var(--focus);
  background: var(--focus);
  color: var(--ink);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.primary:hover {
  border-color: #cadf10;
  background: #cadf10;
  color: var(--ink);
}

.dark .primary {
  border-color: var(--focus);
  background: var(--focus);
  color: var(--ink);
}

input,
select,
textarea {
  border-color: #9eabb0;
  background: var(--paper);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(183, 205, 0, 0.28);
}

label {
  color: #40535e;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      117deg,
      transparent 0 46%,
      rgba(183, 205, 0, 0.92) 46.08% 46.28%,
      transparent 46.36% 100%
    ),
    var(--canvas);
}

.login-box {
  max-width: 980px;
  min-height: 530px;
  border: 1px solid var(--ink);
  box-shadow: none;
}

.login-brand {
  position: relative;
  overflow: hidden;
  background: linear-gradient(148deg, #00263e 0%, #031927 72%);
  padding: 58px;
}

.login-brand::before {
  content: "";
  position: absolute;
  inset: 28px 28px auto;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--focus) 0 3px, transparent 3px 12px);
}

.login-brand-lockup {
  position: absolute;
  top: 54px;
  left: 58px;
}

.login-brand .eyebrow {
  color: var(--focus);
}

.login-brand .title {
  color: var(--paper);
  font-weight: 400;
}

.login-brand .muted {
  color: #ced5d6;
}

.login-form {
  padding: 58px;
}

.login-form .eyebrow {
  color: #587281;
}

.notice {
  border-left: 3px solid var(--focus);
  border-color: var(--line-strong);
  border-left-color: var(--focus);
  background: #f6f8f1;
}

.notice.error {
  border-left-color: var(--danger);
}

.category-chip {
  border-color: #9eabb0;
  color: #40535e;
  border-radius: 0;
}

.category-chip:hover,
.category-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.toolbar-link {
  border-bottom-color: var(--focus);
  color: var(--ink);
}

.product-media {
  background: #e5eaeb;
  border-bottom-color: var(--line-strong);
}

.timeline-step.done {
  background: var(--ink);
  border-color: var(--ink);
}

.timeline-step.current {
  border-color: var(--focus);
  background: #f2f6cf;
  color: var(--ink);
}

.portal-intro {
  position: relative;
  margin-bottom: 48px;
  padding: 4px 0 2px 22px;
  border-left: 3px solid var(--focus);
}

.portal-intro .title {
  margin-bottom: 22px;
}

.portal-intro .muted {
  max-width: 640px;
  margin: 0;
}

.portal-footer {
  margin: 56px 0 20px;
  padding-top: 18px;
  border-top: 1px solid var(--focus);
  color: #4f616a;
  font-size: 12px;
}

@media (max-width: 900px) {
  .top {
    padding: 0 24px;
  }

  .account-area .muted {
    display: none;
  }

  .side a.active {
    border-bottom-color: var(--focus);
  }
}

@media (max-width: 600px) {
  .top {
    padding: 0 16px;
  }

  .brand-lockup {
    font-size: 13px;
    gap: 7px;
  }

  .brand-divider {
    height: 18px;
  }

  .brand-suffix {
    display: none;
  }

  .login {
    background: var(--canvas);
  }

  .login-brand-lockup {
    top: 42px;
    left: 30px;
  }
}

/* --- Druckansicht fuer Rechnung und Lieferschein -------------------------- */

@media print {
  :root {
    --canvas: #fff;
    --muted: #444;
  }

  body {
    background: #fff;
  }

  .top,
  .side,
  .skip-link,
  .primary,
  form {
    display: none !important;
  }

  .wrap {
    padding: 0;
    max-width: none;
  }

  .panel {
    border: 1px solid #000;
    box-shadow: none;
    page-break-inside: avoid;
  }

  a[href^="/"]::after {
    content: "";
  }
}
