/* samolokid – Basis-Stylesheet (Handy zuerst) */

:root {
  --bg: #1B1E29;
  --surface: #2A2E3D;
  --surface-2: #323748;
  --line: #3B4053;
  --text: #FFFFFF;
  --text-muted: #BFC4D0;
  --accent: #E07A3F;
  --accent-hover: #EB8E58;
  --radius: 12px;
  --max: 70rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.125rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 40rem) { .container { padding: 0 1.5rem; } }

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 30, 41, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(27, 30, 41, 0.82); backdrop-filter: blur(8px); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { height: 2.25rem; width: auto; }

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}
.nav-toggle-bars { display: inline-block; width: 1.1rem; vertical-align: middle; margin-right: 0.4rem; }
.nav-toggle-bars span { display: block; height: 2px; background: currentColor; margin: 3px 0; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.97rem;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

/* Mobil: Menü per Button (nur wenn JS aktiv; ohne JS bleibt das Menü sichtbar) */
@media (max-width: 52rem) {
  .js .nav-toggle { display: inline-block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; padding-bottom: 0.75rem; }
  .js .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 0.7rem 0.5rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 0.9rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-secondary { border-color: var(--line); color: var(--text); }
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Sektionen ---------- */

.section { padding: 3.5rem 0; }
@media (min-width: 52rem) { .section { padding: 5rem 0; } }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 40rem; }
.section-head { margin-bottom: 2rem; max-width: 44rem; }
.section-head p { color: var(--text-muted); }

.more-link { display: inline-block; margin-top: 1.5rem; font-weight: 600; }

/* Hero */
.hero { padding: 3.5rem 0 3rem; }
@media (min-width: 52rem) { .hero { padding: 6rem 0 5rem; } }
.hero h1 { max-width: 46rem; }
.hero .lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); }
.hero-points {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}
.hero-points li::before { content: "→ "; color: var(--accent); font-family: var(--mono); }
@media (min-width: 40rem) { .hero-points { grid-template-columns: repeat(3, auto); justify-content: start; gap: 0.5rem 2rem; } }

/* Karten */
.grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 52rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40rem) and (max-width: 51.99rem) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card-num { font-family: var(--mono); color: var(--accent); font-size: 0.85rem; margin-bottom: 0.5rem; display: block; }

/* Infobox DSGVO */
.infobox {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.infobox p { margin: 0; color: var(--text-muted); }
.infobox strong { color: var(--text); }
.infobox svg { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; color: var(--accent); margin-top: 0.1rem; }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

/* Projekte */
.project { display: flex; flex-direction: column; gap: 0.75rem; }
.project-card { display: flex; flex-direction: column; height: 100%; }
.project-card .platform { font-family: var(--mono); font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.project-card p { flex: 1; }
.project-card .card-link { margin-top: 1rem; font-weight: 600; }
.badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-family: var(--mono);
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}
.ai-notice {
  background: #2A2E3D;
  border: 2px solid #E07A3F;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  text-align: center;
}
.ai-notice p { margin: 0; }
.ai-notice .ai-notice-title { color: #FFFFFF; font-weight: 700; }
.ai-notice .ai-notice-sub { color: #E07A3F; font-size: 0.95rem; }

/* CTA */
.cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
}
@media (min-width: 52rem) { .cta { padding: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; } .cta .btn-row { margin-top: 0; flex-shrink: 0; } }
.cta p { color: var(--text-muted); margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}
.footer-inner { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 40rem) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }

/* Platzhalter für noch fehlende Links/Seiten */
.link-pending { color: var(--text-muted); font-weight: 400; font-style: italic; }
.wip { max-width: 40rem; }
.wip .lead { margin-bottom: 0; }
