:root {
  --bg: #020617;
  --surface: #0f172a;
  --surface-2: #1e293b;
  /* Farben exakt wie pawhost.de (Tailwind-Slate + PawHost-Orange) */
  --card: #1e293b;
  --border: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #FF6900;
  --accent-strong: #C2410C;
  --ok: #86efac;
  --radius-pill: 9999px;
  --radius-card: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  /* Schriftstack wie pawhost.de (keine Webfonts, nur Systemschrift) */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.top {
  position: sticky;
  top: 0;
  z-index: 10;
  /* Kopfleiste wie pawhost.de: Slate 800, 89 px hoch */
  background: #1e293b;
  border-bottom: 1px solid var(--border);
}

.bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo { height: 40px; width: auto; display: block; }
.brand-wiki { color: var(--text); font-weight: 600; font-size: 1.35rem; line-height: 1; align-self: center; position: relative; top: 1.45px; }
.brand:hover { text-decoration: none; }

.search {
  flex: 1;
  min-width: 180px;
  max-width: 420px;
  margin-left: auto;
}
.search input {
  width: 100%;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}

nav.side ul { list-style: none; padding: 0; margin: 0; }
nav.side li { margin: 2px 0; }
nav.side a {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
}
nav.side a:hover, nav.side a.active {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}
nav.side .group {
  margin: 18px 0 6px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding-left: 12px;
}

main article h1 { font-size: 2.5rem; margin: 0 0 8px; }
main article .lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 24px; }
main article h2 { font-size: 1.75rem; margin: 32px 0 8px; color: var(--text); }
main article h3 { font-size: 1.25rem; font-weight: 700; margin: 20px 0 6px; }
main article p, main article li { color: #cbd5e1; }
main article ul { padding-left: 20px; }

.note {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  color: #cbd5e1;
}
.todo {
  color: var(--accent);
  font-style: italic;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px;
  color: var(--text);
}
.card:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  margin: 2px 4px 2px 0;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  background: var(--accent);
  color: #1c0a00;
  font-weight: 600;
}
.btn:hover { background: var(--accent-strong); text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost:hover { border-color: var(--accent); }

table.specs {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.95rem;
}
table.specs th, table.specs td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--surface-2);
}
table.specs th { color: var(--muted); font-weight: 500; width: 40%; }

.results a { display: block; padding: 10px 0; border-bottom: 1px solid var(--surface-2); }
.results small { color: var(--muted); display: block; }

footer.foot {
  border-top: 1px solid var(--surface-2);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px 16px;
}

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; gap: 16px; }
  nav.side { order: 2; }
  main { order: 1; }
  .search { margin-left: 0; max-width: none; width: 100%; }
}

details.acc > summary { list-style: none; cursor: pointer; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary.group::after { content: "▸"; float: right; color: var(--muted); margin-right: 8px; }
details.acc[open] > summary.group::after { content: "▾"; }
details.acc > ul.sub { padding-left: 12px; margin: 4px 0 0 12px; border-left: 1px solid var(--surface-2); list-style: none; }
details.acc > summary.group { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
details.acc > summary.group::after { float: none; margin-right: 0; }

/* ---- Reiter und Hauptseite ---- */
.tabbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 10px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }
.tabbar a {
  flex: 0 0 auto;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.tabbar a:hover { color: var(--text); text-decoration: none; border-color: var(--accent); }
.tabbar a.active { background: var(--accent); color: #1c0a00; border-color: var(--accent); font-weight: 600; }

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}
.page h1 { font-size: 2.5rem; margin: 0 0 8px; }
.page h2 { font-size: 1.75rem; margin: 32px 0 8px; color: var(--text); }
.page h3 { font-size: 1.25rem; font-weight: 700; margin: 20px 0 6px; }
.page p, .page li { color: #cbd5e1; }
.page ul, .page ol { padding-left: 20px; }
.page .lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 24px; }
.page pre { background: var(--surface); border: 1px solid var(--surface-2); border-radius: 10px; padding: 12px 14px; overflow-x: auto; }
.page pre code { color: var(--text); font-size: 0.9rem; }
.page code { color: var(--accent); }
.page table.specs { margin: 12px 0 20px; }

.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

.home .lead { margin-bottom: 8px; }
.cards .count { display: inline-block; margin-top: 10px; font-size: 0.8rem; color: var(--accent); }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--surface-2);
}
.pager a { color: var(--accent); max-width: 48%; }
.pager span { flex: 1; }

@media (max-width: 800px) {
  .page { padding: 20px 16px 48px; }
}

/* ---- Kategorie-Liste: Gruppen, Zeilen, Filter ---- */
.filter { margin: 0 0 8px; }
.filter input {
  width: 100%;
  max-width: 420px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.filter input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.page h2.group-h {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 26px 0 8px;
}
.rows { display: flex; flex-direction: column; gap: 8px; }
a.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--surface-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}
a.row:hover { border-color: var(--accent); text-decoration: none; }
a.row strong { display: block; font-weight: 600; }
a.row small { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
a.row .chev { color: var(--accent); font-size: 1.4rem; line-height: 1; }

/* Startseiten-Kacheln: kompakter, Beschreibung vollständig sichtbar */
.home .cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.home .card { padding: 16px; }

/* ---- Wunschformular ---- */
form.wunsch { display: flex; flex-direction: column; gap: 16px; max-width: 560px; margin: 8px 0 20px; }
form.wunsch label { display: flex; flex-direction: column; gap: 6px; }
form.wunsch label > span { font-weight: 600; color: var(--text); }
form.wunsch label > span em { color: var(--accent); font-style: normal; }
form.wunsch label small { color: var(--muted); }
form.wunsch input, form.wunsch textarea {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
form.wunsch input:focus, form.wunsch textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
form.wunsch button { align-self: flex-start; cursor: pointer; border: 0; font: inherit; }

.foot-links { margin-top: 8px; }
.foot-links a { color: var(--accent); }

/* ---- Wunschseite: Hero, Schritte, Formularkarte ---- */
.wish { max-width: 720px; }
.wish-hero {
  position: relative;
  padding: 32px 28px;
  border-radius: 20px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,105,0,0.22) 0%, rgba(15,23,42,0) 60%), var(--surface);
  border: 1px solid var(--surface-2);
  margin-bottom: 20px;
}
.wish-hero h1 { font-size: 2.1rem; margin: 10px 0 6px; }
.wish-hero .lead { margin: 0; }
.wish-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,105,0,0.15);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}
.wish-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
}
.step-no {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #1c0a00;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
  font-size: 0.85rem;
}
.step strong { font-size: 0.95rem; color: var(--text); }
.step small { color: var(--muted); font-size: 0.82rem; }

.panel {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 20px;
  padding: 24px;
}
.wish-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.wish-form .field { display: flex; flex-direction: column; gap: 6px; }
.wish-form .full { grid-column: 1 / -1; }
.wish-form label { font-weight: 600; color: var(--text); font-size: 0.92rem; }
.wish-form label em { color: var(--accent); font-style: normal; }
.wish-form .opt { color: var(--muted); font-weight: 400; }
.wish-form small { color: var(--muted); font-size: 0.8rem; }
.wish-form input, .wish-form textarea {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wish-form input:focus, .wish-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,105,0,0.2);
}
.wish-form textarea { resize: vertical; }
.wish-form .actions { margin-top: 4px; }
.wish-btn {
  width: 100%;
  border: 0;
  padding: 13px 22px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.wish-info {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  color: #cbd5e1;
  font-size: 0.9rem;
}
.wish-info strong { color: var(--text); display: block; margin-bottom: 4px; }
.wish-info p { margin: 0; }

@media (max-width: 640px) {
  .wish-steps { grid-template-columns: 1fr; }
  .wish-form { grid-template-columns: 1fr; }
  .wish-hero { padding: 24px 20px; }
  .wish-hero h1 { font-size: 1.7rem; }
}

/* ---- Galerie verfügbarer Spiele ---- */
.games-avail { margin-top: 40px; }
.games-avail h2 { font-size: 1.3rem; margin: 0 0 4px; }
.games-avail .muted { color: var(--muted); margin: 0 0 16px; }
.carousel { position: relative; }
.games-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px;
}
.games-track::-webkit-scrollbar { display: none; }
.games-track figure.game {
  flex: 0 0 calc((100% - 28px) / 3);
  scroll-snap-align: start;
}
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.car-btn:hover { border-color: var(--accent); color: var(--accent); }
.car-btn.prev { left: -14px; }
.car-btn.next { right: -14px; }
@media (max-width: 640px) {
  .games-track figure.game { flex-basis: calc(100% - 4px); }
  .car-btn { display: none; }
}
figure.game {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  transition: border-color .15s ease, transform .15s ease;
}
figure.game:hover { border-color: var(--accent); transform: translateY(-2px); }
figure.game img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-2);
}
figure.game figcaption {
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

/* ---- Eyecatcher: Spielgalerie direkt unter dem Titel ---- */
.games-avail.eyecatch {
  margin: 0 0 22px;
  padding: 22px 22px 24px;
  border-radius: 20px;
  background: radial-gradient(120% 120% at 100% 0%, rgba(255,105,0,0.18) 0%, rgba(15,23,42,0) 55%), var(--surface);
  border: 1px solid rgba(255,105,0,0.35);
  box-shadow: 0 10px 40px -20px rgba(255,105,0,0.45);
}
.games-avail.eyecatch .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.games-avail.eyecatch h2 { font-size: 1.6rem; margin: 0 0 4px; }
.games-avail.eyecatch .muted { margin-bottom: 18px; }
.games-avail.eyecatch figure.game { border-radius: 16px; }
.games-avail.eyecatch figure.game figcaption { font-size: 0.95rem; padding: 10px 12px; }
.games-avail.eyecatch .car-btn { background: var(--accent); color: #1c0a00; border-color: var(--accent); }
.games-avail.eyecatch .car-btn:hover { background: var(--accent-strong); color: #1c0a00; }
@media (max-width: 640px) {
  .games-avail.eyecatch { padding: 16px; }
  .games-avail.eyecatch h2 { font-size: 1.3rem; }
}

.games-avail.eyecatch .wish-badge { margin-bottom: 4px; }
.games-avail.eyecatch h1 { font-size: 1.9rem; margin: 8px 0 4px; }
.games-avail.eyecatch > .lead { margin: 0 0 18px; }

/* ---- Eigene Karten, zwei Spalten auf dem Desktop ---- */
.wish { max-width: 1040px; }
.wish .games-avail.eyecatch {
  padding: 26px 26px 28px;
  border-radius: 24px;
  margin-bottom: 18px;
}
.wish-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 18px;
  align-items: start;
}
.wish-grid .wish-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.wish-grid .step {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 70%);
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.6);
}
.wish-grid .step-no { margin: 0; flex: 0 0 34px; height: 34px; width: 34px; font-size: 0.95rem; }
.wish-grid .step > div, .wish-grid .step strong, .wish-grid .step small { display: block; }
.wish-grid .step small { margin-top: 2px; }
.wish-grid .wish-form {
  border-radius: 24px;
  padding: 26px;
  margin: 0;
  box-shadow: 0 16px 40px -24px rgba(0,0,0,0.7);
}
.wish .wish-info {
  border-radius: 20px;
  margin-top: 18px;
  box-shadow: 0 8px 24px -18px rgba(0,0,0,0.6);
}
@media (max-width: 800px) {
  .wish-grid { grid-template-columns: 1fr; }
  .wish-grid .wish-form { padding: 20px; }
}
.wish-grid .step { flex-wrap: wrap; }
.wish-grid .step strong { flex: 1 1 0; }
.wish-grid .step small { flex: 0 0 100%; padding-left: 48px; margin-top: -10px; }

/* ---- Stapel-Karussell: aktive Karte vorn, zwei dahinter ---- */
.games-track {
  position: relative;
  display: block;
  height: 250px;
  overflow: visible;
  scroll-snap-type: none;
}
.games-track figure.game {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(54%, 430px);
  margin: 0;
  transform: translateX(-50%);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s ease, filter .6s ease;
  border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.8);
  cursor: default;
}
.games-track figure.game:hover { transform: translateX(-50%); border-color: var(--surface-2); }
.games-track figure.is-active { z-index: 3; opacity: 1; transform: translateX(-50%) scale(1); }
.games-track figure.is-prev {
  z-index: 2;
  opacity: .72;
  transform: translateX(-74%) rotate(-7deg) scale(.86);
  filter: brightness(.7);
}
.games-track figure.is-next {
  z-index: 2;
  opacity: .72;
  transform: translateX(-26%) rotate(7deg) scale(.86);
  filter: brightness(.7);
}
.games-track figure.is-hidden { z-index: 1; opacity: 0; transform: translateX(-50%) scale(.7); pointer-events: none; }
.games-track figure.game img { aspect-ratio: 16 / 9; }
.games-track figure.game figcaption { font-size: 1rem; }
.games-avail.eyecatch .car-btn { top: 125px; }
@media (max-width: 640px) {
  .games-track { height: 210px; }
  .games-track figure.is-prev { transform: translateX(-80%) rotate(-6deg) scale(.82); }
  .games-track figure.is-next { transform: translateX(-20%) rotate(6deg) scale(.82); }
  .games-avail.eyecatch .car-btn { display: flex; top: 105px; }
}
.wish .games-avail.eyecatch { padding-bottom: 44px; }
.wish .games-track { height: 270px; }

/* ---- Spielbilder ganz zeigen: Vordergrund komplett, Hintergrund unscharf ---- */
.games-track figure.game .media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
}
.games-track figure.game .media::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(18px) brightness(0.55);
  -webkit-backdrop-filter: blur(18px) brightness(0.55);
}
.games-track figure.game .media img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

/* ---- Vollflächige Kacheln ohne Rahmen ---- */
.games-track figure.game {
  position: absolute;
  overflow: hidden;
  border: 0;
  background: none;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.85);
}
.games-track figure.game:hover { border-color: transparent; }
.games-track figure.game .media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  background: none;
}
.games-track figure.game .media::before { display: none; }
.games-track figure.game .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.games-track figure.game figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(to top, rgba(2,6,23,0.95), rgba(2,6,23,0));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}
.games-track figure.game { width: min(54%, 430px); }
.games-track figure.game { aspect-ratio: auto; height: 0; padding-top: 56.25%; }
.games-track figure.game .media { inset: 0; }
.games-track figure.game {
  width: min(360px, 62vw);
  height: calc(min(360px, 62vw) * 0.5625);
  padding-top: 0;
}

/* ---- Titel der aktiven Kachel ---- */
.game-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  min-height: 36px;
}
.game-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.game-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}
.game-title.swap { animation: gameTitleIn .5s ease both; }
.game-count {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}
@keyframes gameTitleIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
  .game-title { font-size: 1.2rem; }
}

/* ---- Startseite: Suche mittig über den Kacheln, Kopfsuche dort ausgeblendet ---- */
body.is-home .top .search { display: none; }
.home-search {
  position: relative;
  width: min(620px, 100%);
  margin: 8px auto 26px;
}
.home-search .s-ico {
  display: block;
  z-index: 1;
  position: absolute;
  left: 22px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  color: var(--muted);
  pointer-events: none;
  transition: color .25s ease;
}
.home-search .s-ico svg { display: block; width: 100%; height: 100%; transform-origin: 70% 70%; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.home-search .s-lens { transform-box: fill-box; transform-origin: center; }
.home-search:hover .s-ico svg,
.home-search:focus-within .s-ico svg { transform: rotate(-14deg) scale(1.15); }
.home-search:hover .s-lens,
.home-search:hover .s-ico,
.home-search:focus-within .s-ico { color: var(--accent); }
.home-search input {
  display: block;
  width: 100%;
  padding: 16px 26px 16px 56px;
  font: inherit;
  font-size: 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.home-search input::placeholder { color: var(--muted); }
.home-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,105,0,.22), 0 6px 24px rgba(0,0,0,.25);
}
.home .results { max-width: 720px; margin: 0 auto; }
.home .results > p.lead { text-align: center; }
.home h1, .home > .lead { text-align: center; }
.home > .lead {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 22px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.home > .lead::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 2px;
  /* Verlauf von hell nach dunkel, nur Orange-Toene von pawhost.de (orange-400, PawHost-Orange, orange-600) */
  background: linear-gradient(90deg, #FB923C 0%, #FF6900 50%, #EA580C 100%);
  box-shadow: 0 0 12px rgba(255,105,0,0.45);
}
.card.card-accent {
  background: linear-gradient(160deg, rgba(255,105,0,0.22) 0%, var(--card) 65%);
  border-color: rgba(255,105,0,0.55);
}
.card.card-accent:hover { border-color: var(--accent); }

/* ---- Startseite: Kacheln zentriert, auch eine einzelne letzte Kachel ---- */
.home .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.home .cards > .card {
  flex: 0 1 calc((100% - 24px) / 3);
  min-width: 220px;
}
@media (max-width: 720px) {
  .home .cards > .card { flex-basis: calc((100% - 12px) / 2); }
}
@media (max-width: 460px) {
  .home .cards > .card { flex-basis: 100%; }
}

/* ---- Wolfskopf vor dem Kachel-Titel ---- */
.card h3 { display: flex; align-items: center; gap: 8px; }
.card-icon { width: 22px; height: 22px; flex: 0 0 22px; object-fit: contain; opacity: 0.95; }
.card-icon { filter: brightness(0) invert(1); width: 26px; height: 26px; flex-basis: 26px; }
.card-icon { width: 44px; height: 44px; flex-basis: 44px; }
.card h3 { gap: 12px; }

/* ---- Startseite: 8 Kacheln in einem sauberen 4er-Raster ---- */
body.is-home .page { max-width: 1040px; }
.home .cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  justify-content: stretch;
}
.home .cards > .card { flex: none; min-width: 0; height: 100%; }
@media (max-width: 900px) {
  .home .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .home .cards { grid-template-columns: 1fr; }
}

/* ---- Suchergebnisse als schwebendes Feld unter dem Suchfeld ---- */
.suggest {
  position: fixed;
  z-index: 50;
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.85);
}
.suggest[hidden] { display: none; }
.suggest .sg-head { font-size: 0.8rem; color: var(--muted); padding: 6px 12px 8px; }
.suggest a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
}
.suggest a small { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-top: 2px; }
.suggest a:hover, .suggest a:focus { background: var(--surface-2); text-decoration: none; }

/* ---- Sprachschalter im Header ---- */
.bar { flex-wrap: nowrap; }
.lang { display: flex; gap: 4px; flex: 0 0 auto; }
.lang button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang button:hover { color: var(--text); border-color: var(--accent); }
.lang button.active { background: var(--accent); color: #1c0a00; border-color: var(--accent); }
@media (max-width: 640px) {
  .bar { flex-wrap: wrap; }
  .lang { order: 3; }
}

/* ---- Sprach-Dropdown mit Flagge, klein im Header ---- */
.lang-dd { position: relative; flex: 0 0 auto; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 9px 0 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--accent); }
.lang-btn .caret { color: var(--muted); font-size: 0.7rem; }
.flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
  flex: 0 0 18px;
}
.flag svg { display: block; width: 100%; height: 100%; }
/* Flaggen ausgeblendet: Erzwungene Dunkelmodi verfaelschen die Grafiken.
   Die Kuerzel DE/EN/FR im Umschalter bleiben lesbar. Zum Einblenden diese Zeile entfernen. */
.flag { display: none !important; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 170px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.85);
  z-index: 60;
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
}
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button.active { color: var(--accent); }
.lang-menu .tick { margin-left: auto; color: var(--accent); font-size: 0.8rem; }
.lang-dd { margin-left: auto; }
.brand-wiki { color: var(--text); }
/* ---- Startseite: Kacheln mit derselben Hover-Welle wie die Kategorie-Zeilen ---- */
@property --sweep {
  syntax: '<percentage>';
  inherits: false;
  initial-value: -60%;
}
.home .card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color .25s ease;
}
.home .card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top right, rgba(255,105,0,.32) calc(var(--sweep) - 20%), rgba(255,105,0,0) var(--sweep));
  transition: --sweep .2s ease-out;
}
.home .card:hover::before,
.home .card:focus-visible::before { --sweep: 32%; }
.home .card:hover,
.home .card:focus-visible { border-color: #FF6900; }
.home .card h3,
.home .card p,
.home .card .count { transition: color .25s ease; }
.home .card:hover h3,
.home .card:hover p,
.home .card:hover .count,
.home .card:focus-visible h3,
.home .card:focus-visible p,
.home .card:focus-visible .count { color: #fff; }
/* Gameserver-Anfrage und Community: gleiche Gestaltung wie die übrigen Kacheln */
.home .card.card-accent { background: var(--card); border-color: var(--border); }
.home .card.card-accent:hover,
.home .card.card-accent:focus-visible { border-color: #FF6900; }
/* Kompaktere Kacheln mit größerem Titel */
.home .card { padding: 14px 16px; }
.home .card h3 { font-size: 1.2rem; margin-bottom: 6px; }

/* Mauszeiger: Pawhost-Wolfskopf in Orange */
/* Easter Egg: erst nach fünfmal Klicken auf die Suche wird der Wolfskopf zum Mauszeiger */
html.wolf-on, html.wolf-on * {
  cursor: url('assets/cursor-wolf.svg') 22 10, auto;
}

/* ---- Artikel: Gliederung, Schritte, Listen, Hinweise und Tabellen lesbarer gestalten ---- */
main article h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 36px 0 12px; padding-top: 14px;
  border-top: 1px solid var(--surface-2);
}
main article h2::before {
  content: ""; flex: 0 0 4px; height: 1.1em; border-radius: 2px; background: var(--accent);
}
main article > h2:first-of-type { border-top: 0; padding-top: 0; }
main article h3 { color: var(--text); margin: 22px 0 8px; }

/* Schritte als nummerierte Karten */
main article ol { list-style: none; padding-left: 0; counter-reset: step; }
main article ol > li {
  counter-increment: step; position: relative;
  padding: 14px 16px 14px 56px; margin: 0 0 12px;
  background: var(--surface); border: 1px solid var(--surface-2); border-radius: 12px;
}
main article ol > li::before {
  content: counter(step); position: absolute; left: 14px; top: 14px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #1c0a00; font-weight: 700; font-size: 0.9rem;
}
main article ol > li > p:first-child { margin-top: 0; }

/* Aufzählungen mit Punkt */
main article ul { list-style: none; padding-left: 0; }
main article ul > li { position: relative; padding-left: 20px; margin: 8px 0; }
main article ul > li::before {
  content: ""; position: absolute; left: 4px; top: 0.6em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* Hinweise */
main article .note {
  margin: 18px 0; padding: 12px 16px 12px 16px;
  background: rgba(255, 105, 0, 0.08);
  border: 1px solid rgba(255, 105, 0, 0.35);
  border-left: 4px solid var(--accent);
  border-radius: 10px; color: #e2e8f0;
}

/* Codeblöcke */
main article pre {
  background: #0b1222; border: 1px solid var(--surface-2); border-radius: 10px;
  padding: 12px 14px; margin: 12px 0 16px; overflow-x: auto;
}
main article pre code { color: #e2e8f0; font-size: 0.9rem; }

/* Tabellen */
main article table.specs {
  width: 100%; margin: 12px 0 22px; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--surface-2); border-radius: 12px; overflow: hidden;
}
main article table.specs th, main article table.specs td {
  padding: 10px 14px; vertical-align: top; border-bottom: 1px solid var(--surface-2);
}
main article table.specs tr:last-child th, main article table.specs tr:last-child td { border-bottom: 0; }
main article table.specs tr:nth-child(odd) th, main article table.specs tr:nth-child(odd) td { background: rgba(255,255,255,0.02); }
main article table.specs th { width: 36%; color: var(--text); font-weight: 500; }
main article table.specs th code { white-space: nowrap; }

/* Schmale Bildschirme */
@media (max-width: 640px) {
  main article table.specs th { width: auto; }
  main article table.specs th, main article table.specs td { display: block; width: 100%; }
  main article table.specs th { border-bottom: 0; padding-bottom: 2px; }
  main article table.specs td { padding-top: 0; }
}

/* Einzelnes hervorgehobenes Wort im Fließtext */
main article .hl-word { color: var(--accent); font-weight: inherit; }

/* Hover wie auf der Startseite: Orange läuft diagonal ein (Rootserver-Liste) */
a.row.sweep { position: relative; overflow: hidden; isolation: isolate; transition: border-color .3s ease; }
a.row.sweep::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top right, rgba(255,105,0,.32) calc(var(--sweep) - 20%), rgba(255,105,0,0) var(--sweep));
  transition: --sweep .2s ease-out;
}
a.row.sweep strong, a.row.sweep small, a.row.sweep .chev { transition: color .3s ease; }
a.row.sweep:hover, a.row.sweep:focus-visible { border-color: #FF6900; }
a.row.sweep:hover::before, a.row.sweep:focus-visible::before { --sweep: 18%; }
a.row.sweep:hover strong, a.row.sweep:hover small, a.row.sweep:hover .chev,
a.row.sweep:focus-visible strong, a.row.sweep:focus-visible small, a.row.sweep:focus-visible .chev { color: #fff; }

/* Sprachschalter im Kopf */
/* Sprachschalter: zusammenhängende Auswahl mit Flaggen */
.lang-sw {
  display: inline-flex;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 999px;
}
.lang-sw a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.lang-sw a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.lang-sw a[aria-current="true"] {
  background: var(--accent);
  color: #1c0a00;
  box-shadow: 0 2px 10px rgba(255,105,0,0.35);
}
.lang-sw .flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
}
.lang-sw .flag svg { display: block; width: 100%; height: 100%; }

/* Startseite: alle Kacheln gleich groß, unabhängig vom Textumfang */
.home .cards > .card { height: 196px; }
@media (max-width: 460px) {
  .home .cards > .card { height: 188px; }
}

/* Startseite: Inhalt der Kacheln mittig ausgerichtet */
.home .card { text-align: center; align-items: center; }
.home .card h3 { justify-content: center; }

/* Startseite: Kategorien zeigen ohne Hover nur den Namen. Beim Hover wird er kleiner, die Beschreibung blendet darunter ein. */
.home .cat-card h3 {
  font-size: 1.25rem;
  margin: 0;
  transition: font-size .25s ease, margin .25s ease;
}
.home .cat-card p {
  max-height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease, margin .3s ease;
}
.home .cat-card:hover h3,
.home .cat-card:focus-visible h3 { font-size: 1rem; margin-bottom: 8px; }
.home .cat-card:hover p,
.home .cat-card:focus-visible p { max-height: 90px; opacity: 1; }
.home .cat-card .count {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease, margin .3s ease;
}
.home .cat-card:hover .count,
.home .cat-card:focus-visible .count { max-height: 30px; opacity: 1; margin-top: 6px; }
/* Geräte ohne Maus (Touch): Beschreibung immer sichtbar */
@media (hover: none) {
  .home .cat-card h3 { font-size: 1rem; margin-bottom: 8px; }
  .home .cat-card p { max-height: none; opacity: 1; }
  .home .cat-card .count { max-height: none; opacity: 1; margin-top: 6px; }
}

/* Honeypot-Feld des Anfrageformulars: für Menschen unsichtbar */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wish-status { margin-top: 10px; min-height: 1.2em; }

/* ---- Simuliertes Terminal (term-demo.js) ---- */
.term-demo { margin: 22px 0; }
.term-window { background: #020617; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.term-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.term-title { margin-left: 8px; font-size: 0.8rem; color: var(--muted); }
.term-screen { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; line-height: 1.5; padding: 14px 16px; min-height: 180px; max-height: 320px; overflow-y: auto; color: #cbd5e1; white-space: pre-wrap; }
.term-cmd { margin-top: 6px; }
.term-prompt { color: var(--accent); }
.term-typed { color: var(--text); }
.term-out { color: #94a3b8; margin: 2px 0 8px; }
.term-say { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 6px; color: var(--text); min-height: 3.2em; }
.term-controls { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.term-count { margin-right: auto; font-size: 0.85rem; color: var(--muted); }
.term-controls button:disabled { opacity: 0.4; cursor: default; }
.term-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.term-toolbar-label { font-size: 0.85rem; color: var(--muted); margin-right: 4px; }
.term-key.active { background: var(--accent); color: #1c0a00; border-color: var(--accent); }
