/* Software Dahl – gemeinsames Stylesheet. Keine externen Schriften, keine Cookies. */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --line: #dddddd;
  --link: #1a1a1a;
  --surface: #f4f4f4;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161616;
    --text: #e8e8e8;
    --muted: #a0a0a0;
    --line: #333333;
    --link: #e8e8e8;
    --surface: #202020;
  }
}

:root[data-theme="dark"] {
  --bg: #161616;
  --text: #e8e8e8;
  --muted: #a0a0a0;
  --line: #333333;
  --link: #e8e8e8;
  --surface: #202020;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

header.site a.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

header.site img {
  width: 48px;
  height: 48px;
  display: block;
  flex: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  flex: none;
}

.lang-switch button {
  appearance: none;
  background: none;
  border: 0;
  margin: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.5rem;
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lang-switch span {
  color: var(--line);
}

/* Sprachen: lang.js setzt data-lang auf <html>; ohne JavaScript bleiben beide sichtbar. */
html[data-lang="en"] .l-de,
html[data-lang="de"] .l-en { display: none; }

main { padding: 2rem 0 3rem; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.05rem; line-height: 1.35; margin: 1.5rem 0 0.25rem; }

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }

a { color: var(--link); text-underline-offset: 2px; }

.muted { color: var(--muted); }

.box {
  background: var(--surface);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
}

.box p:last-child, .box ul:last-child { margin-bottom: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

address { font-style: normal; margin-bottom: 1rem; }

footer.site {
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

footer.site a { color: var(--muted); }

@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  main { padding-top: 1.5rem; }
}
