/* Patangi – Stylesheet
   Layout-Idee: Petrol-Bühne oben, ruhiges Papier darunter. Große, gestauchte
   Grotesk-Headlines, handschriftliche Randnotizen in Orange als einziger Schnörkel. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../assets/fonts/caveat-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* Farben */
  --paper: #f2f3ef;
  --card: #ffffff;
  --ink: #17282a;
  --muted: #55676a;
  --line: #d3d9d4;
  --petrol: #1f4f55;
  --petrol-deep: #153a3f;
  --on-petrol: #f2f3ef;
  --on-petrol-muted: #a9c3c2;
  --orange: #ee7623;
  --orange-text: #b0500e;
  --teal: #18b4ac; /* zweite Auszeichnungsfarbe: Infos (Tags, Labels). Nur als Fläche mit dunkler Schrift, nicht als Schrift auf hellem Grund. */

  /* Seltenheit */
  --r1: #8a8e8b;
  --r2: #3f9a50;
  --r3: #3b77c2;
  --r4: #8a4fc5;
  --r5: #ee7623;

  /* Schrift */
  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;

  /* Maße */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --radius: 14px;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Typo ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
p { margin: 0; }

.label {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.note {
  font-family: var(--hand);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--orange-text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--display); font-weight: 700; font-stretch: 85%;
  font-size: 1.15rem; line-height: 1;
  padding: 0.95em 1.4em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--orange); color: var(--ink);
  text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--ghost { background: var(--card); }
.btn--small { font-size: 0.95rem; padding: 0.7em 1.1em; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--petrol-deep);
  color: var(--on-petrol);
  border-bottom: 1px solid rgba(242, 243, 239, 0.08);
}
.nav__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.nav__brand {
  font-family: var(--display); font-weight: 800; font-stretch: 80%;
  font-size: 1.6rem; text-decoration: none; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.nav__brand img { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); }
.nav__links { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 0.98rem; color: var(--on-petrol-muted); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--on-petrol); }
.nav .btn { box-shadow: none; border-color: var(--orange); }
.nav .btn:hover { transform: none; box-shadow: none; background: #f58a41; }
/* Handy: Links als wischbare Leiste unter Logo und Twitch-Button */
@media (max-width: 860px) {
  html { scroll-padding-top: 116px; }
  :root { --nav-h: 90px; }
  .nav__inner { flex-wrap: wrap; row-gap: 0; }
  .nav .btn { margin-left: auto; }
  .nav__links {
    order: 3; flex: none; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 12px;
    gap: 20px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { display: inline-block; padding-block: 4px; }
  .nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--petrol);
  color: var(--on-petrol);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px;
  padding-top: clamp(32px, 5vw, 64px);
}
.hero__text { padding-bottom: clamp(40px, 6vw, 80px); min-width: 0; }
.hero .note { color: var(--orange); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.hero h1 {
  font-size: clamp(3.6rem, 11.5vw, 9.4rem);
  font-stretch: 75%;
  line-height: 0.86;
  margin-top: 10px;
}
.hero__sub {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--on-petrol-muted);
  margin-top: 28px;
  max-width: 30ch;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 34px; }
.hero__next { font-size: 0.98rem; color: var(--on-petrol-muted); }
.hero__next strong { color: var(--on-petrol); font-weight: 600; }

.hero__art { position: relative; align-self: end; justify-self: center; width: min(100%, 520px); }
.hero__art::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 10%; aspect-ratio: 1;
  background: var(--orange); border-radius: 50%;
}
.hero__art img { position: relative; width: 100%; }
.hero__art .note {
  position: absolute; left: -8%; top: 4%;
  color: var(--on-petrol); transform: rotate(-8deg); font-size: 1.6rem;
}
.hero__art .note svg { display: block; width: 46px; height: 34px; margin: 2px 0 0 40px; }

@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__text { padding-bottom: 24px; }
  .hero h1 { font-size: clamp(3.6rem, 19vw, 6rem); }
  .hero__art { width: min(78%, 360px); }
  .hero__art .note { left: -14%; font-size: 1.35rem; }
}

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(44px, 6vw, 76px); }
.section + .section { border-top: 1px solid var(--line); }
.section__head { display: grid; gap: 10px; margin-bottom: clamp(20px, 3vw, 32px); }
.section__intro { font-size: 1.1rem; max-width: 56ch; color: var(--muted); }

/* Über mich */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__text { display: grid; gap: 0.9em; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.55; max-width: 34em; }
.about__text p:first-child { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 1.35em; line-height: 1.2; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.facts li {
  font-size: 0.95rem; font-weight: 500;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; background: var(--teal); color: var(--ink);
}
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* Stream: Kalenderblätter */
.sheets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); list-style: none; margin: 0; padding: 0; }
.sheet {
  position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink); display: grid; align-content: start; text-align: center; overflow: hidden;
}
.sheet__band {
  position: relative; background: var(--petrol); color: var(--on-petrol);
  font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 1.05rem;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 18px 8px 8px; border-bottom: 2px solid var(--ink);
}
.sheet__band::before, .sheet__band::after {
  content: ""; position: absolute; top: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink);
}
.sheet__band::before { left: 26%; } .sheet__band::after { right: 26%; }
.sheet__date { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; padding: 16px 8px 0; font-variant-numeric: tabular-nums; }
.sheet__rel { color: var(--muted); font-size: 0.92rem; min-height: 1.4em; }
.sheet__time { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 1.25rem; padding: 4px 8px 16px; font-variant-numeric: tabular-nums; }
.sheet__follow { font-weight: 600; color: var(--ink); padding: 8px 14px 16px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sheet__tag {
  justify-self: center; margin: -6px 0 14px;
  background: var(--ink); color: var(--paper); border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px;
}
.sheet.is-next .sheet__band { background: var(--orange); color: var(--ink); }
.sheet--spontan { border-style: dashed; box-shadow: none; background: transparent; }
.sheet--spontan .sheet__band { background: var(--teal); color: var(--ink); border-bottom-style: dashed; }
.sheet--spontan .sheet__date { color: var(--muted); }
.stream-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: clamp(20px, 3vw, 28px); }
.stream-foot p { color: var(--muted); max-width: 46ch; }
@media (max-width: 560px) {
  .sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet--spontan { grid-column: 1 / -1; display: flex; justify-content: center; align-items: baseline; gap: 12px; }
  .sheet--spontan .sheet__band { display: none; }
  .sheet--spontan { flex-wrap: wrap; padding: 10px 14px; gap: 4px 12px; }
  .sheet--spontan .sheet__date { font-size: 1.6rem; padding: 0; }
  .sheet--spontan .sheet__follow { padding: 0; }
}

/* Spiele */
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.game {
  border-radius: var(--radius); padding: clamp(14px, 2vw, 18px);
  display: grid; grid-template-columns: clamp(96px, 12vw, 140px) minmax(0, 1fr); gap: clamp(14px, 2vw, 22px); align-items: center;
  border: 2px solid var(--ink);
}
.game--now { background: var(--ink); color: var(--paper); }
.game .label { justify-self: start; background: var(--teal); color: var(--ink); border-radius: 999px; padding: 4px 10px; letter-spacing: 0.08em; }
.game--next { background: var(--card); }
.game__cover {
  position: relative; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden;
  background: var(--petrol); border: 2px solid var(--ink);
  display: grid; place-items: center;
}
.game--now .game__cover { border-color: var(--paper); }
.game__cover span { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 2.4rem; color: var(--on-petrol); opacity: .5; }
.game__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game__text { display: grid; gap: 8px; min-width: 0; }
.game h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.game p { font-size: 1rem; }
.game--now p { color: #c9d3d2; }
@media (max-width: 760px) { .games { grid-template-columns: 1fr; } }
.genres { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 6px 0 0; }
.genres li {
  font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 1rem;
  padding: 8px 16px; border-radius: 999px; background: var(--teal); color: var(--ink); border: 1.5px solid var(--ink);
}

/* Loot-Teaser */
.loot-teaser { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.loot-teaser h2 em { font-style: normal; color: var(--orange-text); }
.loot-teaser p { font-size: 1.1rem; margin-top: 14px; max-width: 34ch; }
.loot-teaser .btn { margin-top: 22px; display: inline-block; }
/* Dunkel hinterlegter Bereich (Loot-Teaser auf der Startseite) */
.section--dark { background: var(--petrol-deep); color: var(--on-petrol); }
.section + .section--dark, .section--dark + .section { border-top: 0; }
.section--dark .label { color: var(--on-petrol-muted); }
.section--dark h2 em { color: var(--orange); }
.section--dark p { color: var(--on-petrol); }
.chest { width: min(100%, 340px); justify-self: center; overflow: visible; }
.chest__all { transform-box: view-box; transform-origin: 50% 92%; animation: chest-wobble 5s ease-in-out 1.2s infinite; }
.chest__lid { transform-box: view-box; transform-origin: 50% 50%; animation: chest-lid 5s ease-in-out 1.2s infinite; }
.chest__glow { animation: chest-glow 5s ease-in-out 1.2s infinite; opacity: 0; }
.chest__spark { transform-box: fill-box; transform-origin: center; animation: chest-spark 2.6s ease-in-out infinite; }
.chest__spark:nth-of-type(2) { animation-delay: .9s; }
.chest__spark:nth-of-type(3) { animation-delay: 1.7s; }
@keyframes chest-wobble {
  0%, 78%, 100% { transform: rotate(0); }
  82% { transform: rotate(-5deg); }
  86% { transform: rotate(5deg); }
  90% { transform: rotate(-3deg); }
  94% { transform: rotate(2deg); }
}
@keyframes chest-lid {
  0%, 80%, 98%, 100% { transform: translateY(0); }
  86%, 92% { transform: translateY(-9px); }
}
@keyframes chest-glow {
  0%, 80%, 98%, 100% { opacity: 0; }
  86%, 92% { opacity: 1; }
}
@keyframes chest-spark {
  0%, 100% { transform: scale(.6); opacity: .5; }
  50% { transform: scale(1.1); opacity: 1; }
}
@media (max-width: 760px) { .loot-teaser { grid-template-columns: 1fr; } .chest { width: min(70%, 260px); } }

/* Item-Kachel (auch im Wiki) */
.tile {
  position: relative;
  background: var(--card);
  border: 3px solid var(--rc, var(--r1));
  border-radius: 12px;
  padding: 12px 10px 10px;
  display: grid; justify-items: center; gap: 4px; text-align: center;
}
.tile img { width: 72%; aspect-ratio: 1; }
.tile__name { font-weight: 600; font-size: 0.86rem; line-height: 1.2; }
.r1 { --rc: var(--r1); } .r2 { --rc: var(--r2); } .r3 { --rc: var(--r3); } .r4 { --rc: var(--r4); } .r5 { --rc: var(--r5); }

/* Socials + Kontakt */
.connect { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; }
.connect__box { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); display: grid; gap: 14px; align-content: start; }
.connect__box h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.connect__box > p { color: var(--muted); max-width: 40ch; }
.socials { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; margin: 4px 0 0; padding: 0; }
.socials a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.socials__icon {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--ink); color: var(--paper);
  transition: background .2s ease, transform .2s ease;
}
.socials__icon svg { width: 24px; height: 24px; fill: currentColor; }
.socials a:hover .socials__icon { background: var(--orange); color: var(--ink); transform: translateY(-2px); }
.socials__text { display: grid; line-height: 1.25; }
.socials__text b { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 1.15rem; }
.socials__text span { color: var(--muted); font-size: 0.9rem; }
.contact__address { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: clamp(1.3rem, 2.6vw, 1.7rem); word-break: break-all; }
.contact__address a { text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.connect .btn { justify-self: start; }
/* Kontaktformular */
.kontakt { display: grid; gap: 12px; }
.kontakt__feld { display: grid; gap: 5px; font-size: 0.9rem; font-weight: 600; }
.kontakt__feld .field { width: 100%; }
.kontakt textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.kontakt .field:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }
.kontakt__falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kontakt__hinweis { font-size: 0.85rem; color: var(--muted); }
.kontakt__status { font-weight: 600; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--teal) 25%, var(--card)); border: 1.5px solid var(--ink); }
.kontakt__status.is-fehler { background: color-mix(in srgb, var(--orange) 22%, var(--card)); }
.kontakt button[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 760px) { .connect { grid-template-columns: 1fr; } }
.kontakt-seite { padding-block: clamp(32px, 5vw, 56px); }
.kontakt-seite .connect__box { max-width: 640px; }
.kontakt .btn { justify-self: start; }

/* Abschluss */
.outro { background: var(--petrol-deep); color: var(--on-petrol); padding-block: clamp(48px, 8vw, 96px) 0; overflow: hidden; }
.outro__word {
  font-family: var(--display); font-weight: 800; font-stretch: 75%;
  font-size: clamp(3.6rem, 13vw, 11rem); line-height: 0.95; letter-spacing: -0.02em;
  color: var(--orange); margin: 0; padding-bottom: 0.12em;
}

/* Footer */
.footer { background: var(--petrol-deep); color: var(--on-petrol-muted); font-size: 0.92rem; padding-block: 28px; border-top: 1px solid rgba(242, 243, 239, 0.12); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; color: var(--on-petrol); }
.footer a:hover { text-decoration: underline; }

/* Sanftes Einblenden: Inhalt ist sichtbar, bevor JS läuft */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-waiting { opacity: 0; transform: translateY(18px); }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.page-head { background: var(--petrol); color: var(--on-petrol); padding-block: clamp(36px, 6vw, 72px); }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-stretch: 75%; }
.page-head p { color: var(--on-petrol-muted); margin-top: 16px; font-size: 1.15rem; max-width: 46ch; }
.prose { max-width: 68ch; padding-block: clamp(48px, 7vw, 88px); display: grid; gap: 1em; }
.prose h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-top: 1.2em; }
.prose h3 { font-size: 1.3rem; font-stretch: 90%; margin-top: 0.6em; }
.prose address { font-style: normal; }
.prose ul { margin: 0; padding-left: 1.2em; }
.draft {
  border: 2px dashed var(--orange-text); border-radius: var(--radius);
  padding: 16px 20px; background: var(--card); color: var(--ink);
}

/* ---------- Chat-Loot (loot.html) ---------- */
.loot-head { padding-bottom: clamp(32px, 5vw, 56px); }
.loot-head__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: end; }
.progress { display: grid; gap: 10px; background: var(--petrol-deep); border-radius: var(--radius); padding: 20px 22px; }
.progress .progress__count { margin: 0;  font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.progress__count small { font-size: 0.5em; font-weight: 600; color: var(--on-petrol-muted); }
.progress__bar { height: 10px; border-radius: 999px; background: rgba(242, 243, 239, 0.15); overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; background: var(--orange); border-radius: inherit; transition: width .4s ease; }
.progress .progress__gold { margin: 0;  color: var(--on-petrol-muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.progress__gold b { color: var(--on-petrol); }
@media (max-width: 760px) { .loot-head__grid { grid-template-columns: 1fr; } }

.toolbar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h, 64px) - 1px); z-index: 40;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding-block: 14px;
}
.toolbar__row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.toolbar__row + .toolbar__row { margin-top: 10px; }
.field {
  font: inherit; font-size: 0.98rem; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 9px 12px; min-height: 42px;
}
.field:focus { border-color: var(--ink); outline: none; }
.field--search { flex: 1 1 220px; min-width: 0; }
.field--dir { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; }
.field--dir svg { width: 16px; height: 16px; transition: transform .2s ease; }
.field--dir.is-desc svg { transform: rotate(180deg); }
.field--dir:hover { border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px; min-height: 36px;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--line);
}
.chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rc, var(--ink)); }
.chip[data-stufe="0"]::before { display: none; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip small { font-weight: 500; opacity: 0.7; font-variant-numeric: tabular-nums; }
.toolbar .btn--small { box-shadow: none; margin-left: auto; }
.toolbar .btn--small:hover { transform: none; box-shadow: none; }
@media (max-width: 640px) {
  .toolbar { position: static; }
  .toolbar .btn--small { margin-left: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); width: calc(100% + 2 * var(--gutter)); }
  .chip { flex: none; }
}

.banner {
  margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
  background: var(--card); border: 2px solid var(--orange); border-radius: var(--radius); padding: 16px 20px;
}
.banner p { font-weight: 500; }
.banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.share {
  margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
}
.share .field { flex: 1 1 260px; min-width: 0; font-size: 0.9rem; }
.share__status { font-size: 0.9rem; color: var(--muted); }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px; padding-block: 28px 96px;
}
@media (max-width: 420px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.item { position: relative; }
.item .tile {
  width: 100%; height: 100%; font: inherit; color: inherit; cursor: pointer;
  align-content: start; padding: 14px 10px 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.item .tile:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--rc); }
.item .tile img { width: 64%; }
.tile__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 8px; font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tile__stufe { color: var(--rc); font-weight: 700; filter: brightness(0.8); }
.item.is-owned .tile { background: color-mix(in srgb, var(--rc) 10%, var(--card)); }

.have {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer;
  background: var(--card); color: var(--muted); border: 1.5px solid var(--line);
}
.have svg { width: 16px; height: 16px; }
.have:hover { border-color: var(--ink); color: var(--ink); }
.have[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.have[disabled] { cursor: default; }
.have[disabled]:not([aria-pressed="true"]) { display: none; }

.empty { grid-column: 1 / -1; padding: 48px 0; display: grid; gap: 8px; justify-items: start; }
.empty strong { font-family: var(--display); font-size: 1.8rem; font-stretch: 80%; }

/* Detailansicht */
.detail {
  border: 3px solid var(--rc, var(--ink)); border-radius: 18px; padding: 0;
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  background: var(--card); color: var(--ink);
}
.detail::backdrop { background: rgba(21, 58, 63, 0.6); }
.detail__inner { display: grid; gap: 14px; padding: clamp(20px, 4vw, 32px); }
.detail__img { width: min(180px, 50%); justify-self: center; aspect-ratio: 1; }
.detail__stufe { color: var(--rc); filter: brightness(0.8); font-weight: 700; font-size: 0.85rem; letter-spacing: .1em; text-transform: uppercase; }
.detail h2 { font-size: clamp(2rem, 6vw, 2.8rem); }
.detail__text { font-size: 1.1rem; }
.detail__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-variant-numeric: tabular-nums; }
.detail__facts b { color: var(--ink); }
.detail__close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font-size: 1.4rem; line-height: 1;
}
.stepper { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.stepper__label { font-weight: 600; margin-right: auto; }
.stepper button {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card);
  font: inherit; font-size: 1.3rem; font-weight: 700; cursor: pointer; color: var(--ink);
}
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 2ch; text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums; }

/* Nur für Screenreader sichtbar */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
