/* justbox – matzerunner8.github.io */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --text: #16181d;
  --muted: #5b6270;
  --line: #e2e5ea;
  --link: #2f5bd3;
  --accent: #3e63dd;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a20;
    --surface-2: #1e222a;
    --text: #e8eaee;
    --muted: #a0a7b4;
    --line: #2a2f39;
    --link: #8fb0ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
code {
  font: .88em/1.4 "Cascadia Mono", Consolas, ui-monospace, monospace;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .05em .35em;
  white-space: nowrap;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; margin: 0 0 .9rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.small { font-size: .88rem; color: var(--muted); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Kopfzeile */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand .mark { width: 26px; height: 26px; color: var(--accent); }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .95rem; }
nav a:hover { color: var(--text); background: var(--surface-2); }
nav a.lang { border: 1px solid var(--line); }

/* Start */
.hero { padding: 64px 16px 36px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0 0 16px; max-width: 18ch; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin: 0 0 22px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .9rem; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-bottom: 56px; }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; color: inherit; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card-shot {
  aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2);
  border-bottom: 3px solid var(--accent); display: flex; align-items: center; justify-content: center;
}
.card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-head h3 { margin: 0; font-size: 1.3rem; }
.card-short { font-weight: 600; margin: 10px 0 4px; }
.card-body p { margin: 0 0 6px; color: var(--muted); }
.card-body .card-short { color: var(--text); }
.more { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; }

/* Funktionstasten statt Bildschirmfoto (Total Kopierer) */
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; width: 100%; }
.key {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-bottom-width: 4px; border-radius: 10px;
  padding: 8px 4px; font-size: .78rem; color: var(--muted); text-align: center;
}
.key b { color: var(--accent); font-size: 1.1rem; }
.keys.big { grid-template-columns: repeat(6, 1fr); max-width: 900px; margin: 8px 0 40px; padding: 0; }
.keys.big .key { padding: 16px 6px; font-size: .9rem; }
.keys.big .key b { font-size: 1.5rem; }

.about { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; padding-bottom: 64px; align-items: start; }
.kofi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.kofi p { margin-top: 0; }

/* Werkzeugseite */
.crumbs { padding-top: 22px; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.tool-hero { padding-top: 18px; padding-bottom: 26px; }
.tool-title { display: flex; align-items: center; gap: 18px; }
.tool-title .icon { width: 72px; height: 72px; flex: none; }
.tool-title h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0; }
.tagline { margin: 4px 0 0; font-size: 1.15rem; color: var(--muted); }
.intro { font-size: 1.1rem; max-width: 70ch; margin: 20px 0; }
.badges { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: .86rem; color: var(--muted); }
.badges li:first-child { border-color: var(--accent); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.wide { width: 100%; margin-top: 8px; }

figure { margin: 0; }
figure img { border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface-2); }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.hero-shot { margin-bottom: 44px; }
.hero-shot img { max-height: 760px; width: auto; margin: 0 auto; }
.hero-shot figcaption { text-align: center; }

section.wrap { margin-bottom: 44px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.features { padding: 0; margin: 0; list-style: none; }
.features li { position: relative; padding: 0 0 12px 28px; }
.features li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px;
  border-radius: 3px; background: var(--accent);
}
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 80px; }
.box h2 { font-size: 1.15rem; }
.box ul { padding-left: 18px; margin: 0 0 12px; }
.plain { padding-left: 20px; max-width: 80ch; }
.plain li { margin-bottom: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; align-items: start; }
.disclaimer { font-size: .88rem; color: var(--muted); max-width: 80ch; }
.others { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.others a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.others a:hover { border-color: var(--accent); }
.others span { display: flex; flex-direction: column; line-height: 1.3; }
.others small { color: var(--muted); }
.nf > div { margin-bottom: 32px; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 26px 0 30px; }
.site-footer p { margin: 0 0 6px; }

@media (max-width: 820px) {
  .split, .about { grid-template-columns: 1fr; }
  .box { position: static; }
  .keys.big { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-top: 40px; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .tool-title .icon { width: 56px; height: 56px; }
  nav a { padding: 6px 7px; }
}
