/* YATB-Website - ein Stylesheet, keine externen Schriften, Hell/Dunkel nach Systemeinstellung */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0f1a2e;
  --muted: #55627a;
  --border: #dbe2ee;
  --accent: #1f6fd6;
  --accent-soft: #e6f0fd;
  --code-bg: #eef2f8;
  --warn-bg: #fff4d6;
  --warn-text: #6b4b00;
  --radius: 12px;
  --max: 1040px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #121c30;
    --text: #e6edf7;
    --muted: #9eabc2;
    --border: #24324d;
    --accent: #5aa9ff;
    --accent-soft: #15284a;
    --code-bg: #1a2640;
    --warn-bg: #3a2d08;
    --warn-text: #ffdf8a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--code-bg);
  padding: .1em .35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 1.2rem 0 .6rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1.2rem 0 .3rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); font-size: .92rem; }
section { margin: 0 0 1rem; }

/* Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: .02em; }
.nav { margin-left: auto; }
.nav ul, .langs ul { list-style: none; margin: 0; padding: 0; }
.nav ul { display: flex; gap: .3rem; }
.nav a { display: block; padding: .45rem .75rem; border-radius: 8px; color: var(--text); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { background: var(--accent-soft); color: var(--accent); }
.menu-toggle, .menu-button { display: none; }
.langs { position: relative; }
.langs summary { cursor: pointer; list-style: none; padding: .45rem .7rem; border: 1px solid var(--border); border-radius: 8px; font-size: .9rem; }
.langs summary::-webkit-details-marker { display: none; }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 10rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .35rem;
  box-shadow: 0 10px 30px rgb(0 0 0 / .18);
}
.langs a { display: block; padding: .4rem .7rem; border-radius: 6px; color: var(--text); text-decoration: none; }
.langs a:hover, .langs a[aria-current] { background: var(--accent-soft); color: var(--accent); }

@media (max-width: 720px) {
  .menu-button {
    display: block; margin-left: auto; cursor: pointer;
    padding: .45rem .7rem; border: 1px solid var(--border); border-radius: 8px; font-size: .9rem;
  }
  .nav { display: none; order: 10; width: 100%; margin: 0 0 .6rem; }
  .menu-toggle:checked ~ .nav { display: block; }
  .nav ul { flex-direction: column; }
}

/* Startseite */
.hero { display: flex; align-items: center; gap: 2.5rem; padding: 2.5rem 0 1rem; }
.hero-logo { width: 220px; flex: none; filter: drop-shadow(0 0 28px rgb(64 150 255 / .45)); }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.badges li { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: .25rem .8rem; font-size: .9rem; font-weight: 600; }
@media (max-width: 720px) {
  .hero { flex-direction: column; text-align: center; gap: 1rem; padding-top: 1.5rem; }
  .hero-logo { width: 160px; }
  .badges { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
}

/* Beispiel im Discord-Stil (immer dunkel) */
.example {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem;
  margin: 1.5rem 0; padding: 0;
}
.example figcaption { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
.chan { background: #313338; color: #dbdee1; border-radius: var(--radius); padding: .8rem 1rem 1rem; height: 100%; }
.chan-name { color: #949ba4; font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.msg { display: flex; gap: .75rem; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #5865f2; color: #fff; display: grid; place-items: center; font-weight: 700; }
.author { color: #f2f3f5; font-weight: 600; }
.tag { color: #949ba4; font-weight: 500; font-size: .85rem; }
.mention { background: rgb(88 101 242 / .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.arrow { font-size: 1.6rem; color: var(--accent); }
@media (max-width: 720px) {
  .example { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
}

/* Karten, Listen, Hinweise */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; }
.card h3 { margin-top: .2rem; }
.card p { margin: .3rem 0; }
.note { background: var(--accent-soft); border-radius: var(--radius); padding: .4rem 1.2rem .6rem; margin: 1.5rem 0; }
.note h2 { margin-top: .9rem; }
.steps { padding-left: 1.4rem; }
.steps li, .chain li { margin: .5rem 0; }
.rule { margin: .6rem 0; padding: .6rem .9rem; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 8px 8px 0; font-size: .95rem; }
.placeholder { background: var(--warn-bg); color: var(--warn-text); padding: .6rem .9rem; border-radius: 8px; font-weight: 600; }
details { border-bottom: 1px solid var(--border); padding: .4rem 0; }
details summary { cursor: pointer; font-weight: 600; }
.langs { border: 0; padding: 0; }

/* Tabellen */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: .55rem .8rem; border-bottom: 1px solid var(--border); }
th { font-size: .9rem; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.tags td:first-child { white-space: nowrap; width: 1%; }

/* Key-Seite */
.toc ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.toc a { display: block; padding: .3rem .8rem; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; }
.provider { margin: 1.2rem 0; scroll-margin-top: 80px; }
.provider h2 { margin-top: .3rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.badge { font-size: .75rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: .15rem .6rem; }
.button {
  display: inline-block; padding: .5rem 1rem; border-radius: 8px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
}
@media (prefers-color-scheme: dark) { .button { color: #0b1220; } }

/* Fußzeile */
.foot { margin-top: 3rem; border-top: 1px solid var(--border); padding: 1.2rem 0 2rem; }
.foot-links a { color: var(--text); }
.kofi {
  display: inline-flex; align-items: center; gap: .4rem; margin: .3rem 0;
  padding: .45rem .9rem; border-radius: 999px; background: #ff5e5b; color: #fff; font-weight: 600; text-decoration: none;
}
.support { text-align: center; margin: 2.5rem 0 1rem; }
