/* Schriften lokal eingebettet (Regel 37), nichts wird nachgeladen */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2");
}

/* Ersatzschriften mit angepassten Maßen, damit beim Laden nichts springt (F14) */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial");
  size-adjust: 97%;
  ascent-override: 93%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial");
  size-adjust: 101%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* award-basis v1 START – Vorlage aus ui-ux-pro-max. Nur die Farbwelt-Werte ersetzen, den Rest unverändert lassen. */

:root {
  /* Farbwelt (aus der Stildatenbank, beim Bau ersetzen) – eine Grundfarbe, eine Textfarbe, eine Akzentfarbe */
  --grund: #0D0B12;          /* nie #000 (A14) */
  --text: #F3EFF6;           /* Kreideweiß statt Reinweiß (Regel 28) */
  --akzent: #D45FF0;         /* gehört dem Handlungsaufruf (Regel 26) */
  --text-leise: color-mix(in oklab, var(--text) 70%, var(--grund));
  --linie: color-mix(in oklab, var(--text) 14%, var(--grund));
  --schatten: color-mix(in oklab, var(--grund) 60%, transparent);

  /* Radius-System (A5) – im Plan festlegen, dann überall nur diese drei */
  --radius-knopf: 999px;
  --radius-karte: 14px;
  --radius-feld: 8px;

  /* Abstandsreihe (Regel 42) */
  --a1: 4px; --a2: 8px; --a3: 16px; --a4: 24px; --a5: 40px; --a6: 64px;

  /* Kurven (A28) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-schublade: cubic-bezier(0.32, 0.72, 0, 1);

  /* Dauern (F19). Zeitlupe zum Prüfen: --tempo: 3 (A38), danach zurück auf 1 */
  --tempo: 1;
  --d-druck: calc(160ms * var(--tempo));
  --d-hinweis: calc(180ms * var(--tempo));
  --d-menue: calc(220ms * var(--tempo));
  --d-overlay: calc(280ms * var(--tempo));
  --d-aus: calc(150ms * var(--tempo));
  --d-aufdecken: calc(700ms * var(--tempo));
}

/* Grundlage */
html {
  color-scheme: dark;              /* helle Farbwelt: light (A7) */
  scrollbar-gutter: stable;        /* F15 */
  scrollbar-color: var(--linie) var(--grund);
  -webkit-text-size-adjust: 100%;
}
body { background: var(--grund); color: var(--text); }

/* Browser-Oberflächen aus der Farbwelt (A20) */
::selection { background: color-mix(in oklab, var(--akzent) 38%, transparent); color: var(--text); }
input, textarea { caret-color: var(--akzent); }
a { text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
table, .preis, .zeit, time { font-variant-numeric: tabular-nums; }   /* Regel 39 */

/* Schrift (A22) */
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }

/* Fokus (F1) */
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

/* Touch (F21) */
a, button, [role="button"], input, select, textarea, label, summary { touch-action: manipulation; }

/* Knöpfe geben beim Drücken nach (A29), Eigenschaften einzeln (A31) */
button, .knopf {
  border-radius: var(--radius-knopf);
  transition:
    transform var(--d-druck) var(--ease-out),
    background-color var(--d-hinweis) ease,
    color var(--d-hinweis) ease,
    box-shadow var(--d-hinweis) ease;
}
button:active, .knopf:active { transform: scale(0.97); }

/* Überfahren nur mit echter Maus (A32). Beispiel – je Seite anpassen */
@media (hover: hover) and (pointer: fine) {
  .knopf:hover { background-color: color-mix(in oklab, var(--akzent) 88%, var(--text)); }
}

/* Vollbild ohne Sprung in Handy-Browsern (A37) */
.vollbild { min-height: 100vh; min-height: 100dvh; }

/* Erscheinen ohne JavaScript, nie aus dem Nichts (A30) */
.erscheint {
  transition: opacity var(--d-menue) var(--ease-out), transform var(--d-menue) var(--ease-out);
  @starting-style { opacity: 0; transform: scale(0.95); }
}

/* Aufklappmenü wächst aus seinem Auslöser (A33) */
.menue { transform-origin: var(--ursprung, top right); }

/* Einmalige Bildaufdeckung (A27). Nur mit JS versteckt – ohne JS bleibt alles sichtbar */
.js .aufdecken:not(.sichtbar) { clip-path: inset(0 0 100% 0); }
.js .aufdecken { transition: clip-path var(--d-aufdecken) var(--ease-out); }
.js .aufdecken.sichtbar { clip-path: inset(0 0 0 0); }

/* Reduzierte Bewegung: weniger, nicht null (A35, Regel 53) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  button:active, .knopf:active { transform: none; }
  .erscheint { transform: none; }
  .js .aufdecken, .js .aufdecken:not(.sichtbar) { clip-path: none; opacity: 0; transition: opacity 200ms ease; }
  .js .aufdecken.sichtbar { opacity: 1; }
}

/* award-basis v1 ENDE */

/* ===== Seite: Muselyn ===== */

:root {
  --font-kopf: "Bricolage Grotesque", "Bricolage Fallback", system-ui, sans-serif;
  --font-text: "Figtree", "Figtree Fallback", system-ui, sans-serif;

  /* Vier Größenstufen (Regel 34) */
  --s0: 1.0625rem;                       /* Text, kleine Hinweise */
  --s1: 1.25rem;                         /* Einleitung, Menü, Untertitel */
  --s2: 1.75rem;                         /* Namen, Zwischenüberschriften */
  --s3: clamp(2.5rem, 7vw, 4.25rem);     /* Hauptüberschrift */

  --breit: 80rem;
  --kopf-h: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--font-text);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kopf-h) + var(--a4));
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-size: var(--s0);
  line-height: 1.6;
  font-weight: 400;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }

.nowrap { white-space: nowrap; }

.nur-leser {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Zum Inhalt springen (F3) */
.skip {
  position: absolute;
  left: var(--a3);
  top: var(--a2);
  z-index: 100;
  padding: var(--a2) var(--a3);
  background: var(--akzent);
  color: var(--grund);
  font-weight: 600;
  border-radius: var(--radius-feld);
  transform: translateY(-200%);
  transition: transform var(--d-menue) var(--ease-out);
}
.skip:focus { transform: translateY(0); }

/* ===== Kopf und Menü ===== */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--grund);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  position: relative;
  max-width: var(--breit);
  height: var(--kopf-h);
  margin-inline: auto;
  padding-inline: var(--a3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wortmarke {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--font-kopf);
  font-size: var(--s1);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.burger {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  color: var(--text);
  border: 1px solid var(--linie);
  cursor: pointer;
}
.burger svg {
  grid-area: 1 / 1;
  width: 1.5rem;
  height: 1.5rem;
  transition: opacity var(--d-hinweis) var(--ease-out), transform var(--d-hinweis) var(--ease-out);
}
.burger .icon-zu { opacity: 0; transform: rotate(-45deg) scale(0.95); }
.burger[aria-expanded="true"] .icon-auf { opacity: 0; transform: rotate(45deg) scale(0.95); }
.burger[aria-expanded="true"] .icon-zu { opacity: 1; transform: none; }

.menue {
  position: absolute;
  top: calc(100% + var(--a2));
  right: var(--a3);
  width: min(18rem, calc(100vw - 2 * var(--a3)));
  padding: var(--a2);
  background: color-mix(in oklab, var(--grund) 90%, var(--text));
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  transform-origin: top right;
}
.menue ul { display: grid; gap: var(--a1); }
.menue a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
  padding-inline: var(--a3);
  border-radius: var(--radius-feld);
  font-family: var(--font-kopf);
  font-size: var(--s1);
  font-weight: 600;
  text-decoration: none;
}
.menue a[aria-current="page"] { color: var(--akzent); }

/* Mit JavaScript klappt das Menü auf und zu */
.js .menue {
  opacity: 0;
  transform: scale(0.95);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--d-aus) var(--ease-out),
    transform var(--d-aus) var(--ease-out),
    visibility 0s linear var(--d-aus);
}
.js .menue.offen {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity var(--d-menue) var(--ease-out),
    transform var(--d-menue) var(--ease-out),
    visibility 0s;
}

/* Ohne JavaScript: Menü steht offen unter dem Kopf, kein Burger */
html:not(.js) .burger { display: none; }
html:not(.js) .kopf-innen { height: auto; min-height: var(--kopf-h); flex-wrap: wrap; padding-block: var(--a2); }
html:not(.js) .menue {
  position: static;
  width: auto;
  padding: 0;
  background: none;
  border: 0;
}
html:not(.js) .menue ul { display: flex; flex-wrap: wrap; gap: var(--a2); }

@media (hover: hover) and (pointer: fine) {
  .burger:hover { background: color-mix(in oklab, var(--akzent) 14%, var(--grund)); border-color: var(--akzent); }
  .menue a:hover { background: color-mix(in oklab, var(--akzent) 14%, var(--grund)); color: var(--akzent); }
}

.nur-mobil { display: block; }

@media (min-width: 54em) {
  .kopf-innen { padding-inline: var(--a5); }
  .burger { display: none; }
  .nur-mobil { display: none; }
  .js .menue, .js .menue.offen {
    position: static;
    width: auto;
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }
  .menue ul { display: flex; gap: var(--a2); }
  .menue a { min-height: 2.75rem; padding-inline: var(--a3); font-size: var(--s0); font-family: var(--font-text); }
}

/* ===== Gerüst ===== */

main {
  flex: 1;
  width: 100%;
  max-width: var(--breit);
  margin-inline: auto;
  padding-inline: var(--a3);
}
@media (min-width: 54em) {
  main { padding-inline: var(--a5); }
}

/* ===== Startseite ===== */

.start-kopf { padding-block: var(--a5) var(--a4); }
.start-kopf h1 {
  max-width: 22ch;
  font-family: var(--font-kopf);
  font-size: var(--s3);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.start-kopf p {
  max-width: 34rem;
  margin-top: var(--a3);
  font-size: var(--s1);
  color: var(--text-leise);
}

.kacheln {
  display: grid;
  gap: var(--a5) var(--a4);
  padding-bottom: var(--a6);
}
.kachel {
  display: flex;
  flex-direction: column;
  gap: var(--a3);
  text-decoration: none;
}
.kachel-bild {
  position: relative;
  display: block;
  flex: none;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-karte);
  background: color-mix(in oklab, var(--akzent) 9%, var(--grund));
  outline: 2px solid transparent;
  outline-offset: 4px;
  transition: outline-color var(--d-hinweis) ease;
}
.kachel-bild img { width: 100%; height: 100%; object-fit: cover; }
.platzhalter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-kopf);
  font-weight: 700;
  font-size: clamp(6rem, 32vw, 12rem);
  line-height: 1;
  color: color-mix(in oklab, var(--akzent) 26%, var(--grund));
}
.kachel-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--a3);
}
.kachel-name {
  font-family: var(--font-kopf);
  font-size: var(--s2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.kachel-nische { color: var(--text-leise); }
.kachel-pfeil {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--linie);
  border-radius: var(--radius-knopf);
  transition: background-color var(--d-hinweis) ease, color var(--d-hinweis) ease, border-color var(--d-hinweis) ease;
}
.kachel-pfeil svg { width: 1.5rem; height: 1.5rem; }
.kachel:active .kachel-pfeil { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .kachel:hover .kachel-bild { outline-color: var(--akzent); }
  .kachel:hover .kachel-pfeil { background: var(--akzent); color: var(--grund); border-color: var(--akzent); }
}

@media (min-width: 54em) {
  .start-kopf { padding-block: var(--a6) var(--a5); }
  .kacheln { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .kachel { grid-column: span 6; }
  .kachel:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 3; }
  .kachel:nth-child(2), .kachel:nth-child(3) { grid-column: 8 / 13; }
  .kachel:nth-child(1) .kachel-bild { flex: 1; aspect-ratio: auto; min-height: 30rem; }
  .kachel:nth-child(n + 2) .kachel-bild { aspect-ratio: 16 / 10; }
}

/* ===== Model-Seite ===== */

.modell {
  display: grid;
  gap: var(--a5);
  padding-block: var(--a4) var(--a6);
}
.modell-bild {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 58vh;
  max-height: 58svh;
  border-radius: var(--radius-karte);
  background: color-mix(in oklab, var(--akzent) 9%, var(--grund));
}
.modell-bild img { width: 100%; height: 100%; object-fit: cover; }

.modell-inhalt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--a4);
  max-width: 34rem;
}
.modell h1 {
  font-family: var(--font-kopf);
  font-size: var(--s3);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.kopfzeile { display: grid; gap: var(--a2); justify-items: start; }
.nische { font-size: var(--s1); color: var(--text-leise); }
.kennzeichen {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding-inline: var(--a3);
  border: 1px solid var(--linie);
  border-radius: var(--radius-knopf);
  color: var(--text-leise);
}
.bio { font-size: var(--s1); }

.steckbrief {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--a2) var(--a4);
  padding-top: var(--a4);
  border-top: 1px solid var(--linie);
}
.steckbrief dt { color: var(--text-leise); }
.steckbrief dd { font-weight: 600; }

.links { display: flex; flex-wrap: wrap; gap: var(--a2); }
.icon-link {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--linie);
  border-radius: var(--radius-knopf);
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--d-hinweis) ease, border-color var(--d-hinweis) ease, color var(--d-hinweis) ease, transform var(--d-druck) var(--ease-out);
}
.icon-link svg { width: 1.5rem; height: 1.5rem; }
.icon-link:active, .pille:active { transform: scale(0.97); }

.pille {
  display: inline-flex;
  align-items: center;
  gap: var(--a2);
  min-height: 3rem;
  padding-inline: var(--a4) var(--a3);
  border: 1px solid var(--linie);
  border-radius: var(--radius-knopf);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--d-hinweis) ease, border-color var(--d-hinweis) ease, color var(--d-hinweis) ease, transform var(--d-druck) var(--ease-out);
}
.pille svg { width: 1.5rem; height: 1.5rem; flex: none; }
.pille-zusatz { font-weight: 400; color: var(--text-leise); }

@media (hover: hover) and (pointer: fine) {
  .icon-link:hover, .pille:hover {
    background: color-mix(in oklab, var(--akzent) 14%, var(--grund));
    border-color: var(--akzent);
    color: var(--akzent);
  }
  .pille:hover .pille-zusatz { color: var(--akzent); }
}

.support { display: grid; gap: var(--a2); justify-items: start; }
.hinweis { max-width: 30rem; color: var(--text-leise); }

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--a2);
  min-height: 3.25rem;
  padding-inline: var(--a5);
  background: var(--akzent);
  color: var(--grund);
  border: 0;
  font-family: var(--font-text);
  font-size: var(--s0);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.knopf svg { width: 1.5rem; height: 1.5rem; }
.knopf[aria-disabled="true"] {
  background: color-mix(in oklab, var(--akzent) 28%, var(--grund));
  color: var(--text-leise);
  cursor: default;
}
.knopf--leise {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--linie);
}
@media (hover: hover) and (pointer: fine) {
  .knopf--leise:hover { background: color-mix(in oklab, var(--akzent) 14%, var(--grund)); border-color: var(--akzent); color: var(--akzent); }
  .knopf[aria-disabled="true"]:hover { background: color-mix(in oklab, var(--akzent) 28%, var(--grund)); }
}

.weiter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--a4) var(--a3);
  width: 100%;
  padding-top: var(--a4);
  border-top: 1px solid var(--linie);
}
.weiter-naechste {
  display: grid;
  min-height: 3.25rem;
  text-decoration: none;
}
.weiter-naechste span { color: var(--text-leise); }
.weiter-naechste strong {
  display: inline-flex;
  align-items: center;
  gap: var(--a2);
  font-family: var(--font-kopf);
  font-size: var(--s2);
  line-height: 1.1;
}
.weiter-naechste svg { width: 1.5rem; height: 1.5rem; }
@media (hover: hover) and (pointer: fine) {
  .weiter-naechste:hover strong { color: var(--akzent); }
}

@media (min-width: 54em) {
  .modell {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--a6);
    align-items: start;
    padding-block: var(--a5) var(--a6);
  }
  .modell-bild {
    position: sticky;
    top: calc(var(--kopf-h) + var(--a4));
    aspect-ratio: auto;
    max-height: none;
    height: calc(100vh - var(--kopf-h) - var(--a6));
    height: calc(100dvh - var(--kopf-h) - var(--a6));
    min-height: 28rem;
  }
}

/* ===== Textseiten ===== */

.text-seite { padding-block: var(--a5) var(--a6); }
.text-inner { max-width: 44rem; }
.text-inner h1 {
  font-family: var(--font-kopf);
  font-size: var(--s3);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.text-inner h2 {
  margin-top: var(--a5);
  font-family: var(--font-kopf);
  font-size: var(--s2);
  font-weight: 600;
  line-height: 1.15;
}
.text-inner p { margin-top: var(--a3); max-width: 65ch; }
.text-inner h1 + p { margin-top: var(--a4); font-size: var(--s1); color: var(--text-leise); }
.text-inner a { color: var(--akzent); }
.offen-feld {
  padding: 0 0.35em;
  border-radius: var(--radius-feld);
  background: color-mix(in oklab, var(--akzent) 18%, var(--grund));
}

/* ===== Fuß ===== */

.fuss {
  display: grid;
  justify-items: center;
  gap: var(--a3);
  padding: var(--a5) var(--a3) calc(var(--a5) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linie);
  text-align: center;
}
.fuss ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--a1) var(--a4); }
.fuss li a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.fuss-hinweis { max-width: 36rem; color: var(--text-leise); }
.signatur {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--font-kopf);
  font-weight: 600;
  color: var(--text-leise);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .signatur:hover, .fuss li a:hover { color: var(--akzent); }
}

/* Fehlerseite */
.fehler-seite { display: grid; align-content: center; justify-items: start; gap: var(--a4); padding-block: var(--a6); }
.fehler-seite h1 { font-family: var(--font-kopf); font-size: var(--s3); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; }
