/* ==========================================================================
   Passwortschmiede – Stylesheet (helles Business-Design)
   Alle Schriften lokal gehostet (DSGVO: keine Verbindung zu Drittanbietern)
   ========================================================================== */

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --surface-2: #eef2f6;
  --line: #e2e7ed;
  --line-strong: #cbd3dd;
  --ink: #16233b;
  --text: #3a4658;
  --muted: #667385;
  --navy: #16233b;
  --primary: #2f5597;
  --primary-hover: #254680;
  --primary-soft: #eef2f8;
  --primary-line: #c8d3e6;
  --teal: #0e8a8c;
  --teal-hover: #0b7274;
  --teal-soft: #e9f7f6;
  --teal-line: #b3e0dd;
  --accent: #e0a01b;
  --accent-soft: #fff6e2;
  --blue: #2f5597;
  /* Werkzeugfarbe: Blau (Standard), Petrol auf den Teilen-Seiten */
  --tool: var(--primary);
  --tool-hover: var(--primary-hover);
  --tool-soft: var(--primary-soft);
  --tool-line: var(--primary-line);
  --green: #1f7a52;
  --amber: #a86b12;
  --red: #b4432a;

  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 68ch;
  --wrap: 1160px;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --shadow: 0 1px 2px rgba(22, 32, 51, 0.04), 0 8px 24px -12px rgba(22, 32, 51, 0.12);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--blue); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
::selection { background: #d5deee; color: var(--ink); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--primary); color: #fff;
  font-weight: 600; border-radius: var(--r-s);
}
.skip-link:focus { top: 1rem; color: #fff; }

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

/* ---------- Typografie ---------- */

h1, h2, h3 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
strong { color: var(--ink); font-weight: 650; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 44ch; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--navy); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand-name { font-size: 1.2rem; letter-spacing: -0.015em; font-weight: 400; color: var(--navy); }
.brand-name b { font-weight: 700; }
.brand:hover { color: var(--navy); }

.site-nav ul { display: flex; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 0.45rem 0.8rem; border-radius: var(--r-s);
  color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.site-nav a:hover { background: var(--surface); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

/* ---------- Hero ---------- */

.hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero .wrap, .page-hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
}
.hero-art img { width: 100%; border-radius: var(--r-l); border: 1px solid var(--line); }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  margin: 1.75rem 0 0; padding: 0; list-style: none;
  color: var(--text); font-size: 0.95rem;
}
.hero-facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-facts li::before {
  content: ""; width: 0.95rem; height: 0.95rem; flex: none;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.page-hero { padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(1.5rem, 3vw, 2.25rem); }
.page-hero .wrap { grid-template-columns: 1.25fr 0.75fr; }
.page-hero h1 { font-size: clamp(2rem, 3.8vw, 2.75rem); }

.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  list-style: none; margin: 0 0 1.1rem; padding: 0;
  font-size: 0.88rem; color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb a[aria-current="page"] { color: var(--ink); }

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

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; font-size: 1rem;
  color: #fff; background: var(--primary);
  border: 1px solid var(--primary); border-radius: var(--r-s);
  padding: 0.8rem 1.4rem; cursor: pointer; text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }

.btn-secondary, .btn-copy, .btn-ghost {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font: inherit; font-size: 0.92rem; font-weight: 600;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--r-s);
  padding: 0.55rem 0.95rem; cursor: pointer; white-space: nowrap;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.btn-secondary:hover, .btn-copy:hover, .btn-ghost:hover { border-color: var(--primary); }
.btn-copy svg { width: 1rem; height: 1rem; }
.btn-copy.is-copied, .btn-ghost.is-copied { color: var(--green); border-color: var(--green); background: #f0f8f4; }
.btn-copy:disabled, .btn-ghost:disabled { opacity: 0.5; cursor: default; }

.link-button {
  font: inherit; color: var(--primary); background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em;
}
.link-button:hover { color: var(--blue); }
.link-button:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* ---------- Werkzeug-Panel ---------- */

.generator { padding: 0 0 clamp(3rem, 6vw, 5rem); }

.vault {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow);
}
.vault-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 0.4rem 2rem; margin-bottom: 1.75rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.vault-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.01em; }
.vault-head p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.controls {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.5rem; border: 0; margin: 0; padding: 0;
}
.field label, .field-label {
  display: block; font-weight: 600; font-size: 0.93rem; color: var(--ink); margin-bottom: 0.5rem;
}
.field .hint { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.4rem; }
.length-row { display: flex; align-items: center; gap: 1rem; }

input[type="number"], input[type="text"], input[type="password"], textarea, select {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--r-s);
  padding: 0.6rem 0.8rem; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="number"] { width: 6.5rem; font-family: var(--mono); text-align: center; font-variant-numeric: tabular-nums; }
input:focus, textarea:focus, select:focus {
  border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(47, 92, 153, 0.18);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }

input[type="range"] {
  flex: 1; appearance: none; -webkit-appearance: none;
  height: 4px; border-radius: 2px; cursor: pointer;
  background: linear-gradient(90deg, var(--primary) var(--fill, 12%), var(--line-strong) var(--fill, 12%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary); box-shadow: 0 1px 3px rgba(22, 32, 51, 0.2);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--primary);
}

.charsets { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; }
.charsets legend { padding: 0; }
.toggle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; }
.toggle {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.75rem 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--r-m);
  background: #fff; cursor: pointer; transition: border-color 0.15s, background-color 0.15s;
}
.toggle:hover { border-color: var(--primary); }
.toggle input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 1.15rem; height: 1.15rem; margin: 0;
  border: 1.5px solid var(--line-strong); border-radius: 4px; background: #fff;
  display: grid; place-content: center; cursor: pointer;
}
.toggle input::before {
  content: ""; width: 0.65rem; height: 0.65rem;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  background: #fff; transform: scale(0); transition: transform 0.1s ease-out;
}
.toggle input:checked { background: var(--primary); border-color: var(--primary); }
.toggle input:checked::before { transform: scale(1); }
.toggle:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.toggle-text { display: flex; flex-direction: column; line-height: 1.3; }
.toggle-text strong { font-weight: 600; font-size: 0.93rem; }
.toggle-text span { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }

.specials { grid-column: 1 / -1; }
.specials[hidden] { display: none; }
#specialChars { font-family: var(--mono); letter-spacing: 0.16em; }
.specials-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem;
  margin-top: 0.45rem; font-size: 0.85rem; color: var(--muted);
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.form-error { margin: 0; color: var(--red); font-size: 0.93rem; font-weight: 500; }

.results { margin-top: 2rem; }
.results-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: 0.75rem; color: var(--muted); font-size: 0.9rem;
}
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.result {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.35rem 1rem;
  padding: 0.9rem 0.9rem 0.9rem 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
}
.result-pw {
  font-family: var(--mono); font-size: clamp(1rem, 2vw, 1.22rem); letter-spacing: 0.03em;
  color: #000; background: none; padding: 0;
  word-break: break-all; user-select: all; min-width: 0;
}
.strength { grid-column: 1 / 2; display: flex; align-items: center; gap: 0.75rem; font-size: 0.8rem; color: var(--muted); }
.strength-bar { flex: 0 1 140px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.strength-bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--c, var(--green)); border-radius: 2px; }
.result .btn-copy { grid-row: 1 / span 2; grid-column: 2; }

.privacy-note {
  display: flex; gap: 0.6rem; align-items: flex-start;
  margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--muted);
}
.privacy-note svg { width: 1rem; height: 1rem; flex: none; margin-top: 0.2rem; }

/* ---------- Startseite: Werkzeuge ---------- */

.tools { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--surface); border-block: 1px solid var(--line); }
.tools-head { margin-bottom: 1.5rem; }
.tools-head h2 { margin-bottom: 0.25em; }
.tools-head p { color: var(--muted); margin: 0; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.tool-link {
  display: grid; grid-template-columns: 150px 1fr; gap: 1.5rem; align-items: center;
  padding: 1.25rem; color: var(--text); text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-l);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tool-link:hover { color: var(--text); border-color: var(--line-strong); box-shadow: var(--shadow); }
.tool-link img { width: 150px; border-radius: var(--r-m); border: 1px solid var(--line); }
.tool-link h3 { font-size: 1.2rem; margin-bottom: 0.3em; }
.tool-link p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.7em; }
.tool-cta { font-weight: 600; font-size: 0.93rem; color: var(--primary); }
.tool-link:hover .tool-cta { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Ratgeber ---------- */

.guide { padding: clamp(3rem, 6vw, 5rem) 0; }
.generator + .guide { border-top: 1px solid var(--line); }
.guide .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.article { max-width: var(--measure); }
.article h2 { margin-top: 2em; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 1.6em; }
.article ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.article li { margin-bottom: 0.4em; }
.article li::marker { color: var(--muted); }
.article .pull {
  margin: 1.75rem 0; padding: 0.15rem 0 0.15rem 1.25rem;
  border-left: 3px solid var(--accent);
  font-size: 1.2rem; font-weight: 500; line-height: 1.45; color: var(--ink);
}

.checklist {
  position: sticky; top: 6rem;
  padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface);
}
.checklist h2 { font-size: 1.1rem; letter-spacing: -0.01em; margin-bottom: 1rem; }
.checklist ol {
  list-style: none; counter-reset: step; margin: 0; padding: 0;
  display: grid; gap: 0.85rem; font-size: 0.93rem; color: var(--text);
}
.checklist li { counter-increment: step; display: grid; grid-template-columns: 1.7rem 1fr; gap: 0.55rem; }
.checklist li::before {
  content: counter(step); display: grid; place-content: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-strong);
  color: var(--ink); font-size: 0.8rem; font-weight: 700;
}
.checklist a { display: inline-block; margin-top: 1.15rem; font-weight: 600; font-size: 0.93rem; }

/* ---------- FAQ ---------- */

.faq { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--surface); border-top: 1px solid var(--line); }
.faq-inner { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq details:first-of-type { border-top: 1px solid var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 0; font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.55rem; height: 0.55rem;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px); transition: transform 0.15s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { max-width: var(--measure); padding-bottom: 0.4rem; }

/* ---------- Einmal-Links ---------- */

textarea { min-height: 10rem; resize: vertical; line-height: 1.55; padding: 0.8rem 0.95rem; }
.textarea-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem;
  margin-top: 0.45rem; font-size: 0.85rem; color: var(--muted);
}
#charCount { font-variant-numeric: tabular-nums; }

select {
  width: auto; padding-right: 2.4rem; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}

.secret-options { display: flex; flex-wrap: wrap; align-items: end; gap: 1.25rem 2rem; margin-top: 1.5rem; }
.secret-options .field { margin: 0; }
#secretError { margin-top: 1rem; }

.result-title { font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 0.75em; }
.link-box {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: center;
  padding: 0.5rem 0.5rem 0.5rem 0.9rem;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-m);
}
.link-box input {
  border: 0; background: transparent; padding: 0.4rem 0;
  font-family: var(--mono); font-size: 0.9rem; color: var(--ink); text-overflow: ellipsis;
}
.link-box input:focus { box-shadow: none; }
.result-facts { display: grid; gap: 0.3rem; margin: 1rem 0 1.5rem; padding: 0; list-style: none; font-size: 0.93rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }

.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem;
  margin: 2rem 0 0; padding: 1.5rem 0 0; list-style: none; counter-reset: step;
  border-top: 1px solid var(--line);
}
.steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; font-size: 0.92rem; color: var(--muted); }
.steps li::before {
  content: counter(step); display: grid; place-content: center;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 0.85rem;
}
.steps strong { display: block; color: var(--ink); margin-bottom: 0.1rem; }

.reveal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); background: var(--surface); }
.reveal .wrap { max-width: 720px; }
.reveal-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.reveal-head img { width: 64px; border-radius: var(--r-m); border: 1px solid var(--line); }
.reveal-head h1 { font-size: 1.5rem; margin: 0; }
.reveal h2 { font-size: 1.3rem; letter-spacing: -0.01em; }
.reveal h2:focus { outline: none; }
.secret-out { min-height: 8rem; font-family: var(--mono); font-size: 0.98rem; background: var(--surface); margin: 0.25rem 0 1rem; }
.state-note { display: flex; gap: 0.55rem; align-items: flex-start; margin: 1.25rem 0 0; font-size: 0.88rem; color: var(--muted); }
.state-note svg { width: 1rem; height: 1rem; flex: none; margin-top: 0.2rem; }

/* ---------- Rechtstexte & Statistik ---------- */

.legal { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin-top: 2.2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal address { font-style: normal; margin-bottom: 1.1em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.35em; }
.legal .meta { color: var(--muted); font-size: 0.95rem; }
.placeholder { background: #fff4d6; border-bottom: 1px dashed var(--accent); padding: 0 0.2em; }
.notice {
  padding: 1rem 1.2rem; border: 1px solid var(--line); border-left: 3px solid var(--green);
  border-radius: var(--r-s); background: var(--surface); color: var(--ink);
}

.table-scroll { overflow-x: auto; }
.stats-table { width: 100%; max-width: 560px; border-collapse: collapse; margin: 1rem 0 1.5rem; font-variant-numeric: tabular-nums; }
.stats-table th, .stats-table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.stats-table td:last-child { text-align: right; font-weight: 700; color: var(--ink); }
.stats-table thead th { color: var(--muted); font-weight: 600; font-size: 0.88rem; background: var(--surface); }
.stats-table tfoot th, .stats-table tfoot td { border-bottom: 0; font-weight: 700; color: var(--ink); }
.stats-login { display: grid; gap: 0.75rem; max-width: 360px; }
.stats-login .btn-primary { justify-self: start; }

.notfound { padding: clamp(4rem, 10vw, 7rem) 0; text-align: center; }
.notfound img { width: 64px; margin: 0 auto 1.5rem; }
.notfound .lead { margin-inline: auto; }

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

.site-footer {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 2.75rem 0 1.75rem; font-size: 0.92rem; color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem 3rem; align-items: start; }
.footer-brand p { margin: 0.75rem 0 0; max-width: 38ch; }
.footer-brand .brand img { width: 28px; height: 28px; }
.footer-brand .brand-name { font-size: 1.08rem; }
.footer-nav h2 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0; color: var(--ink); margin: 0 0 0.6rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.85rem;
}

noscript .notice { margin-top: 1rem; }

/* ==========================================================================
   Farbakzente
   ========================================================================== */

.theme-teal {
  --tool: var(--teal);
  --tool-hover: var(--teal-hover);
  --tool-soft: var(--teal-soft);
  --tool-line: var(--teal-line);
}

/* Kopfbereiche mit sanftem Farbverlauf */
.hero {
  background:
    radial-gradient(900px 420px at 88% 10%, rgba(47, 85, 151, 0.10), transparent 70%),
    radial-gradient(700px 360px at 5% 100%, rgba(14, 138, 140, 0.07), transparent 70%),
    linear-gradient(180deg, #f6f8fc 0%, #ffffff 100%);
}
.page-hero {
  background:
    radial-gradient(800px 380px at 90% 0%, color-mix(in srgb, var(--tool) 11%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--tool-soft) 60%, #fff) 0%, #ffffff 100%);
}
.hero-art img, .page-hero .hero-art img { border-color: var(--tool-line); box-shadow: 0 20px 40px -24px rgba(47, 85, 151, 0.35); }
.theme-teal .page-hero .hero-art img { box-shadow: 0 20px 40px -24px rgba(14, 138, 140, 0.35); }

/* Aktuelle Seite in der Brotkrumen-Navigation */
.breadcrumb a[aria-current="page"] { color: var(--tool); font-weight: 600; }

/* Buttons und Formularelemente in Werkzeugfarbe */
.btn-primary { background: var(--tool); border-color: var(--tool); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--tool) 70%, transparent); }
.btn-primary:hover { background: var(--tool-hover); border-color: var(--tool-hover); }
.btn-secondary:hover, .btn-copy:hover, .btn-ghost:hover { border-color: var(--tool); color: var(--tool); }
.link-button { color: var(--tool); }
input:focus, textarea:focus, select:focus { border-color: var(--tool); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tool) 18%, transparent); }
input[type="range"] { background: linear-gradient(90deg, var(--tool) var(--fill, 12%), var(--line-strong) var(--fill, 12%)); }
input[type="range"]::-webkit-slider-thumb { border-color: var(--tool); }
input[type="range"]::-moz-range-thumb { border-color: var(--tool); }
.toggle:hover { border-color: var(--tool); }
.toggle input:checked { background: var(--tool); border-color: var(--tool); }
.toggle:has(input:checked) { border-color: var(--tool); background: var(--tool-soft); }

/* Navigation */
.site-nav a[aria-current="page"] { background: var(--tool-soft); color: var(--tool); }

/* Werkzeug-Panel mit farbiger Kopfleiste */
.vault { border-top: 4px solid var(--tool); }
.vault-head h2 { color: var(--ink); }
.results .result { border-left: 3px solid var(--tool-line); }
.link-box { border-color: var(--tool-line); background: var(--tool-soft); }

.steps li::before { background: var(--tool); color: #fff; }

/* Startseite: Werkzeuge in ihrer Farbe */
.tools { background: linear-gradient(180deg, #f6f8fc 0%, #f9fafc 100%); }
.tool-link { border-top: 4px solid var(--tool); }
.tool-link img { border-color: var(--tool-line); }
.tool-link .tool-cta { color: var(--tool); }
.tool-link:hover { border-color: var(--tool-line); border-top-color: var(--tool); }

/* Ratgeber */
.article h3 { color: var(--tool); }
.article li::marker { color: var(--tool); }
.article .pull { border-left-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft), transparent 80%); padding: 0.85rem 1rem 0.85rem 1.25rem; border-radius: 0 var(--r-s) var(--r-s) 0; }
.article a { color: var(--tool); }
.checklist { background: var(--tool-soft); border-color: var(--tool-line); }
.checklist li::before { background: var(--tool); border-color: var(--tool); color: #fff; }
.checklist a { color: var(--tool); }

/* FAQ */
.faq { background: linear-gradient(180deg, #f6f8fc, #fbfcfe); }
.faq summary:hover { color: var(--tool); }
.faq details[open] summary { color: var(--tool); }
.faq details[open] summary::after { border-color: var(--tool); }

/* Hinweis-Häkchen oben */
.hero-facts li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem 0.3rem 0.65rem; font-size: 0.9rem; }

/* Abruf-Seite */
.reveal { background: linear-gradient(180deg, var(--teal-soft) 0%, #ffffff 70%); }

/* Rechtstexte */
.legal h2 { padding-top: 0.2em; }
.legal a { color: var(--primary); }

/* Statistik */
.stats-table thead th { background: var(--primary-soft); color: var(--primary); }
.stats-table td:last-child { color: var(--primary); }

/* Footer: dunkles Blau */
.site-footer { background: var(--navy); border-top: 0; color: #aab6c8; }
.site-footer .brand, .site-footer .brand-name { color: #fff; }
.footer-nav h2 { color: #fff; }
.footer-nav a { color: #c3cddc; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.12); color: #8d9ab0; }
.site-footer :focus-visible { outline-color: #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap, .page-hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
  .page-hero .hero-art { display: none; }
  .toggle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide .wrap { grid-template-columns: 1fr; }
  .checklist { position: static; }
  .tools-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .site-header .wrap { flex-wrap: wrap; row-gap: 0.35rem; min-height: 0; padding-top: 0.75rem; }
  .site-nav { width: 100%; overflow-x: auto; scrollbar-width: none; margin: -0.25rem -0.8rem 0.45rem; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { white-space: nowrap; }
  .site-nav a { font-size: 0.9rem; }
  html { scroll-padding-top: 7rem; }
  .controls { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .toggle-grid { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr; }
  .result .btn-copy { grid-row: auto; grid-column: 1; justify-self: start; }
  .btn-primary { width: 100%; }
  .tool-link { grid-template-columns: 1fr; }
  .tool-link img { width: 100%; }
  .link-box { grid-template-columns: 1fr; }
  .link-box .btn-copy { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .generator, .checklist { display: none; }
}
