:root {
  color-scheme: light;
  --bg: #faf7f4;
  --surface: #ffffff;
  --ink: #2b2622;
  --muted: #8a8079;
  --line: #ece5de;
  --accent: #a64a63;
  --accent-soft: #f5e7ec;
  --az-accent: #c84f83;
  --briefing-accent: #e6a9bf;
  --rail-bg: #d8c27c;
  --rail-bg-soft: #e5d592;
  --rail-bg-deep: #cdb466;
  --rail-hover: #ddca8a;
  --header-bg: #121111;
  --header-line: #252222;
  --header-text: #fff8f2;
  --header-muted: #d8c9bd;
  --header-field: #1b1918;
  --serif: Georgia, "Times New Roman", serif;
  --display-serif: "Cormorant Garamond", "Playfair Display", Didot, "Bodoni 72", Georgia, serif;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

@font-face {
  font-family: "Allura";
  src: url("/static/allura.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.login-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 440px);
  align-items: start;
  justify-content: center;
  column-gap: clamp(34px, 7vw, 110px);
  padding: clamp(34px, 8vh, 76px) clamp(28px, 7vw, 96px) 28px;
  background:
    radial-gradient(circle at 16% 18%, rgba(216, 194, 124, 0.34), transparent 33%),
    radial-gradient(circle at 86% 20%, rgba(230, 169, 191, 0.24), transparent 29%),
    linear-gradient(135deg, #171313 0%, #1d1816 46%, #111010 100%);
  position: relative;
  overflow: hidden;
}

.login-body::before {
  content: "";
  position: fixed;
  left: clamp(-160px, -6vw, -56px);
  top: clamp(44px, 10vh, 96px);
  width: min(58vw, 760px);
  aspect-ratio: 16 / 9;
  background: url("/static/login-hair.png") center / cover no-repeat;
  opacity: 0.64;
  mix-blend-mode: multiply;
  filter: saturate(1.08) contrast(1.05);
  -webkit-mask-image:
    radial-gradient(ellipse at 58% 48%, #000 0 48%, transparent 74%),
    linear-gradient(90deg, #000 0 72%, transparent 100%);
  mask-image:
    radial-gradient(ellipse at 58% 48%, #000 0 48%, transparent 74%),
    linear-gradient(90deg, #000 0 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  pointer-events: none;
}

.login-panel {
  grid-column: 2;
  justify-self: end;
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 248, 242, 0.16);
  border-radius: 18px;
  background: rgba(255, 248, 242, 0.96);
  box-shadow: 0 30px 80px -36px rgba(0, 0, 0, 0.78);
}

.login-marke {
  display: block;
  margin: 0 0 18px;
  font-family: "Allura", "Brush Script MT", cursive;
  font-size: clamp(46px, 10vw, 64px);
  line-height: 1;
  color: var(--ink);
  text-align: center;
}

.login-panel h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
}

.login-panel form {
  display: grid;
  gap: 14px;
}

.login-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.login-panel input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.login-panel input:focus {
  outline: none;
  border-color: rgba(230, 169, 191, 0.9);
  box-shadow: 0 0 0 3px rgba(230, 169, 191, 0.2);
}

.login-panel button {
  height: 46px;
  border: 0;
  border-radius: 999px;
  margin-top: 6px;
  background: var(--header-bg);
  color: var(--header-text);
  cursor: pointer;
  font: inherit;
}

.login-fehler {
  margin: -8px 0 16px;
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--accent-soft);
  color: #7a2e42;
  font-size: 14px;
}

.login-info {
  margin: -8px 0 16px;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(216, 194, 124, 0.18);
  color: #5a4c26;
  font-size: 14px;
  line-height: 1.45;
}

.login-warte {
  margin: 12px 0 0;
  color: #6f5b2b;
  font-size: 13px;
  text-align: center;
}

.login-hilfe {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.login-hilfe a {
  color: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto minmax(260px, 360px);
  align-items: center;
  gap: 8px 20px;
  padding: 9px clamp(20px, 5vw, 64px) 10px;
  background:
    linear-gradient(180deg, rgba(255, 248, 242, 0.04), rgba(255, 248, 242, 0)),
    var(--header-bg);
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar::after {
  content: "";
  position: absolute;
  left: clamp(20px, 5vw, 64px);
  right: clamp(20px, 5vw, 64px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(216, 194, 124, 0),
    rgba(216, 194, 124, 0.75) 16%,
    rgba(230, 169, 191, 0.72) 46%,
    rgba(216, 182, 255, 0.48) 72%,
    rgba(216, 194, 124, 0)
  );
  pointer-events: none;
}

.marke {
  grid-column: 1;
  justify-self: start;
  font-family: "Allura", "Brush Script MT", cursive;
  font-weight: 400;
  font-size: clamp(30px, 2.7vw, 42px);
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.15;
  padding: 0 20px 0 0;
  border-right: 1px solid rgba(216, 194, 124, 0.35);
  transform: scaleY(1.05);
  transform-origin: center;
  color: var(--header-text);
  text-align: left;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--header-muted);
}

.topbar h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1;
  font-size: clamp(22px, 1.7vw, 28px);
  color: #f0b7c8;
}

.button {
  border: 1px solid rgba(255, 248, 242, 0.24);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--header-muted);
  background: rgba(255, 248, 242, 0.03);
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.button:hover {
  border-color: rgba(255, 248, 242, 0.52);
  color: var(--header-text);
  background: rgba(255, 248, 242, 0.08);
}

.topbar .button.aktiv {
  border-color: rgba(240, 183, 200, 0.86);
  color: var(--header-text);
  background: rgba(240, 183, 200, 0.18);
}

.mobil-az {
  display: none;
}

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  padding: 0;
}

.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -12px rgba(43, 38, 34, 0.25);
  border-color: #e0d6cd;
}

.product-card img,
.product-card .placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.product-card .placeholder {
  background: var(--accent-soft);
}

.wissen-feed-card .placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 248, 242, 0.7), rgba(255, 248, 242, 0.1)),
    linear-gradient(180deg, var(--rail-bg-deep), var(--rail-bg-soft));
}

.wissen-feed-card .placeholder::before {
  content: "Wissen";
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 64px);
  color: rgba(43, 38, 34, 0.62);
}

.product-card span {
  padding: 14px 16px 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-card strong {
  padding: 4px 16px 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
}

.product-card time {
  padding: 0 16px 18px;
  font-size: 11px;
  color: var(--muted);
}

.product-card .vertrieb-herzen {
  position: absolute;
  right: 15px;
  bottom: 15px;
  z-index: 2;
  padding: 0;
  color: var(--accent);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: none;
  text-shadow: 0 1px 0 rgba(255, 250, 247, 0.8);
}

.product-card .pin-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 250, 247, 0.92);
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 8px 20px -14px rgba(43, 38, 34, 0.45);
}

@media (min-width: 1100px) {
  .product-card-gross {
    grid-column: span 3;
  }

  .product-card-mittel {
    grid-column: span 2;
  }

  .product-card-gross img,
  .product-card-gross .placeholder,
  .product-card-mittel img,
  .product-card-mittel .placeholder {
    aspect-ratio: 16 / 9;
  }

  .product-card-gross strong {
    font-size: 28px;
  }

  .product-card-mittel strong {
    font-size: 24px;
  }
}

.archiv-card {
  justify-content: flex-start;
  min-height: 100%;
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.archiv-card span {
  order: 1;
  padding-top: 18px;
}

.archiv-card strong {
  order: 2;
}

.archiv-card time {
  order: 3;
}

.archiv-card span,
.archiv-card time {
  color: var(--muted);
}

.archiv-card strong {
  color: var(--ink);
}

.archiv-card:hover {
  border-color: #e0d6cd;
  box-shadow: 0 12px 30px -12px rgba(43, 38, 34, 0.25);
}

.archiv-symbol {
  order: 4;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0.02em;
  color: var(--accent);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.2)),
    var(--accent-soft);
}

.product-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 24px);
  min-height: 32px;
  background: rgba(255, 250, 247, 0.96);
  color: var(--accent);
  border: 0;
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 7px 16px;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
  box-shadow:
    inset 0 0 0 1px rgba(230, 169, 191, 0.28),
    0 10px 24px -18px rgba(43, 38, 34, 0.5);
}

.status-tag {
  display: inline-block;
  margin: 10px 0 0;
  background: var(--accent-soft);
  color: #7a2e42;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
}

.kopf-aktionen {
  grid-column: 3;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: end;
}

.teilen {
  cursor: pointer;
  background: none;
  font-family: inherit;
}

.teilen:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.wissen-index {
  padding: 32px clamp(20px, 5vw, 64px) 64px;
  max-width: 1120px;
}

.wissen-bereich {
  margin-bottom: 40px;
}

.wissen-bereich > h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.artikel-liste {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.artikel-karte {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.artikel-karte:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -12px rgba(43, 38, 34, 0.22);
  border-color: #e0d6cd;
}

.artikel-karte strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
}

.artikel-karte span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.artikel-seite {
  padding: 32px clamp(20px, 5vw, 64px) 72px;
}

.artikel {
  max-width: 68ch;
  color: #3d372f;
  font-size: 17px;
  line-height: 1.75;
}

.artikel h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  margin: 34px 0 12px;
}

.artikel h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  margin: 26px 0 10px;
}

.artikel p {
  margin: 0 0 16px;
}

.artikel ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.artikel li {
  margin: 0 0 6px;
}

.artikel a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.artikel code {
  background: var(--accent-soft);
  color: #7a2e42;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.9em;
}

.archiv-layout {
  align-items: start;
}

.archiv {
  display: grid;
  gap: 18px;
}

.sortierleiste {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button.aktiv {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.archiv-liste {
  display: grid;
  gap: 10px;
}

.archiv-eintrag {
  display: grid;
  grid-template-columns: 104px 160px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.archiv-eintrag:hover {
  border-color: #e0d6cd;
  box-shadow: 0 10px 24px -14px rgba(43, 38, 34, 0.22);
  transform: translateY(-2px);
}

.archiv-eintrag time {
  color: var(--accent);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.archiv-eintrag span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.archiv-eintrag strong {
  min-width: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
}

.empty {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 44px;
  text-align: center;
  color: var(--muted);
}

.empty h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 8px;
}

.slider {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.slider figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.slider figure img {
  width: 100%;
  height: clamp(170px, 14vw, 220px);
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  background: var(--surface);
}

.video-cover {
  width: 100%;
  height: clamp(170px, 14vw, 220px);
  display: grid;
  place-items: center;
  border: 0;
  margin: 0;
  padding: 24px;
  cursor: pointer;
  color: var(--surface);
  background:
    linear-gradient(135deg, rgba(43, 38, 34, 0.72), rgba(125, 91, 181, 0.52)),
    radial-gradient(circle at 70% 28%, rgba(230, 169, 191, 0.38), transparent 36%),
    #2b2622;
  font: inherit;
}

.video-cover span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 250, 247, 0.94);
  color: var(--ink);
  font-size: 13px;
  box-shadow: 0 14px 32px -20px rgba(0, 0, 0, 0.65);
}

.video-cover span::before {
  content: "";
  width: 0;
  height: 0;
  margin-right: 9px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid var(--accent);
}

.video-link {
  text-decoration: none;
}

.slider figure iframe,
.slider figure video {
  width: 100%;
  height: clamp(170px, 14vw, 220px);
  display: block;
  border: 0;
  background: #000;
}

.slider figcaption {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slider.slider-einbild {
  grid-template-columns: minmax(0, 440px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(43, 38, 34, 0.82);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(100%, 1180px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 28px 80px -28px rgba(0, 0, 0, 0.65);
}

.video-lightbox-player {
  width: min(1180px, 100%);
  aspect-ratio: 16 / 9;
  max-height: 82vh;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 28px 80px -28px rgba(0, 0, 0, 0.65);
}

.video-lightbox-player iframe,
.video-lightbox-player video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

.lightbox button {
  position: fixed;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  border-radius: 999px;
  font-size: 42px;
  background: rgba(255, 250, 247, 0.86);
}

.lightbox-prev {
  left: clamp(10px, 2vw, 24px);
}

.lightbox-next {
  right: clamp(10px, 2vw, 24px);
}

.lightbox-nav[hidden] {
  display: none;
}

.pdfbox {
  position: fixed;
  inset: 0;
  z-index: 21;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 36px);
  background: rgba(43, 38, 34, 0.78);
}

.pdfbox[hidden] {
  display: none;
}

.pdfbox-rahmen {
  width: min(1180px, 100%);
  height: min(88vh, 920px);
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 30px 90px -32px rgba(0, 0, 0, 0.68);
}

.pdfbox-kopf {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid var(--line);
}

.pdfbox-kopf strong {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.pdfbox-kopf a {
  color: var(--accent);
  font-size: 13px;
  white-space: nowrap;
}

.pdfbox-kopf button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.pdfbox iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  border: 0;
  background: #f2eee9;
}

.office-html,
.office-viewer {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f2eee9;
}

.office-placeholder {
  width: 100vw;
  height: 100vh;
  min-height: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.office-placeholder p {
  margin: 0;
}

.office-placeholder a {
  color: var(--accent);
}

@media (max-width: 640px) {
  .slider {
    gap: 12px;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-color: #d7bbc9 transparent;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .slider::-webkit-scrollbar {
    height: 6px;
  }

  .slider::-webkit-scrollbar-track {
    background: transparent;
  }

  .slider::-webkit-scrollbar-thumb {
    background: #d7bbc9;
    border-radius: 999px;
  }

  .slider.slider-einbild {
    grid-auto-columns: 100%;
    overflow-x: visible;
    padding-bottom: 0;
    scrollbar-width: none;
  }

  .slider.slider-einbild::-webkit-scrollbar {
    display: none;
  }

  .slider figure {
    border-radius: 14px;
    scroll-snap-align: start;
  }

  .slider figure img {
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .video-cover,
  .slider figure iframe,
  .slider figure video {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

.downloads {
  align-self: start;
  display: grid;
  gap: 10px;
}

.downloads h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 4px;
}

.downloads a {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.downloads a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.anhaenge,
.verwandt {
  display: grid;
  gap: 12px;
}

.anhaenge h2,
.briefing h2,
.verwandt h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin: 0;
}

.anhaenge-liste,
.briefing-liste,
.verwandt-liste {
  display: grid;
  gap: 10px;
}

.anhaenge-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.anhaenge-liste a,
.verwandt-liste a {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
}

.anhaenge-liste a {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--accent);
}

.verwandt-liste {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.briefing {
  --briefing-card-height: calc(clamp(170px, 14vw, 220px) + 48px);
  align-self: start;
  display: grid;
}

.briefing-liste {
  gap: 12px;
}

.briefing-card {
  background: #fffaf7;
  border: 1px solid var(--line);
  border-right: 3px solid var(--briefing-accent);
  border-radius: 12px;
  padding: 14px 16px;
  height: calc(var(--briefing-card-height) / 2);
  overflow: auto;
  box-shadow: 0 10px 24px -20px rgba(43, 38, 34, 0.35);
}

.briefing-card:first-child {
  height: var(--briefing-card-height);
}

.briefing-card h2 {
  margin: 0 0 16px;
  text-align: center;
}

.briefing-card p {
  margin: 0;
  color: #4a423c;
  font-size: 14px;
  line-height: 1.6;
}

.briefing-spalte {
  position: sticky;
  top: 104px;
  align-self: start;
}

.verwandt-liste a span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.leer {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.haupt {
  display: grid;
  gap: 28px;
  min-width: 0;
  overflow: hidden;
}

.beschreibung {
  max-width: 62ch;
  color: #4a423c;
  font-size: 16px;
  line-height: 1.75;
}

.beschreibung p {
  margin: 0 0 14px;
}

.beschreibung p:last-child {
  margin-bottom: 0;
}

.titel {
  grid-column: 2;
  min-width: 0;
}

.suche {
  grid-column: 4;
  width: 100%;
  max-width: none;
  height: 38px;
  border: 1px solid rgba(255, 248, 242, 0.2);
  border-radius: 999px;
  padding: 0 20px;
  font-size: 15px;
  background: var(--header-field);
  color: var(--header-text);
}

.suche::placeholder {
  color: rgba(255, 248, 242, 0.62);
}

.suche:focus {
  outline: none;
  border-color: rgba(216, 182, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(216, 182, 255, 0.18);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 40px;
  padding: 32px clamp(20px, 5vw, 64px) 64px;
  align-items: start;
}

.product-layout {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) 300px;
  gap: 28px;
}

.product-layout-ohne-briefing {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
}

.keine-treffer {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 24px 0;
}

.index {
  position: sticky;
  top: 104px;
  align-self: start;
  background:
    linear-gradient(155deg, rgba(255, 247, 211, 0.52) 0%, rgba(255, 247, 211, 0) 34%),
    linear-gradient(180deg, var(--rail-bg-deep) 0%, var(--rail-bg) 48%, var(--rail-bg-soft) 100%);
  border: 1px solid #c8ad5f;
  border-radius: 14px;
  padding: 16px;
  color: var(--ink);
  box-shadow: 0 18px 40px -34px rgba(43, 38, 34, 0.45);
}

.index > h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 16px;
  text-align: center;
}

.az-gruppe {
  margin-bottom: 12px;
}

.az-gruppe h3 {
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
  color: var(--az-accent);
}

.az-gruppe a {
  display: block;
  margin: 0 -8px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
}

.az-gruppe a:hover {
  background: var(--rail-hover);
  color: var(--ink);
}

@media (max-width: 900px) {
  .login-body {
    grid-template-columns: 1fr;
    place-items: center;
    padding: 28px;
  }

  .login-body::before {
    left: 50%;
    top: 18px;
    width: min(118vw, 620px);
    transform: translateX(-50%);
    opacity: 0.22;
  }

  .login-panel {
    grid-column: 1;
    justify-self: center;
  }

  .topbar {
    display: flex;
    flex-wrap: wrap;
  }

  .marke {
    flex: 1 0 100%;
    font-size: clamp(34px, 10vw, 50px);
    padding: 2px 0;
    border-right: 0;
    text-align: center;
  }

  .mobil-az {
    display: inline-flex;
    align-items: center;
  }

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

  .briefing-spalte {
    position: static;
  }

  .briefing-card,
  .briefing-card:first-child {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .index {
    background: transparent;
    position: static;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    color: var(--ink);
  }

  .az-gruppe h3 {
    color: var(--accent);
  }

  .az-gruppe a {
    color: var(--ink);
  }

  .titel {
    margin-right: 0;
  }

  .kopf-aktionen {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .suche {
    flex-basis: 100%;
    max-width: 100%;
  }

  .topbar h1 {
    font-size: 26px;
  }

  .archiv-eintrag {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .archiv-eintrag strong {
    font-size: 18px;
  }
}
