/* Website-Rahmen: Tokens, Grundstile, Kopf, Inhalt, Fuss. Schriften selbst gehostet, keine externen Ressourcen. */

/* Inter (Fliesstext) und Space Grotesk (Überschriften), variable Schnitte, Lizenz SIL OFL 1.1 (assets/fonts/LICENSE-*.txt) */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-wght.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

/* Immer dunkel: die Website ist auf das dunkle Logo abgestimmt. */
:root {
  color-scheme: dark;
  --bg: #0c0e14;
  --surface: #1a1e24;
  --surface-2: #232830;
  --text: #e8eaee;
  --muted: #a3abb8;
  --border: #343b46;
  --border-strong: #6b7483;
  --primary: #7aa2ff;
  --primary-contrast: #0b1020;
  --primary-soft: #1e2a44;
  --focus: #fbbf24;
  --success: #4ade80;
  --success-soft: #12301d;
  --danger: #f87171;
  --danger-soft: #3a1616;
  --warn-soft: #3a2e0e;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.2), 0 4px 16px rgb(0 0 0 / 0.25);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Ganz dunkler Verlauf mit einem Hauch der Logofarben (Violett oben rechts, Türkis unten links) */
  --bg-gradient:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgb(139 92 246 / 0.13), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgb(72 214 232 / 0.07), transparent 70%),
    linear-gradient(160deg, #0b0e14 0%, #110e1d 55%, #0d0b12 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-optical-sizing: auto; font-size: 1rem; line-height: 1.55; color: var(--text); background-color: var(--bg); background-image: var(--bg-gradient); background-attachment: fixed; min-height: 100vh; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2rem, 1440px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--primary); color: var(--primary-contrast); border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; padding: 0.55rem 1.1rem; font: inherit; font-weight: 600; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.btn:hover { border-color: var(--primary); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary { color: var(--primary-contrast); background: var(--primary); border-color: var(--primary); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--danger { color: var(--danger); }
.btn-icon { min-width: 44px; min-height: 44px; font-size: 1.4rem; line-height: 1; color: var(--muted); background: none; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.btn-icon:hover { color: var(--danger); border-color: var(--border); }
.link-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; font: inherit; font-weight: 600; color: var(--primary); text-decoration: underline; background: none; border: 0; cursor: pointer; }
.app-footer__example { font-weight: 400; color: var(--muted); }
.app-footer__example:hover { color: var(--primary); }
/* Hinweis auf NetActive: Logo (weiss, 2× für scharfe Darstellung) neben dem Text, auf schmalen Bildschirmen darüber. */
.generator-footer__agency { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0 0 1rem; padding: 0.25rem 0 0.25rem 1rem; font-size: 1rem; line-height: 1.5; font-weight: 500; color: var(--text); border-left: 3px solid var(--primary); }
.generator-footer__agency p { flex: 1 1 18rem; margin: 0; }
.generator-footer__agency p a { color: var(--primary); text-decoration: underline; }
.generator-footer__logo { display: inline-flex; flex: none; min-height: 0; }
.generator-footer__logo img { display: block; width: 105px; height: 24px; }
h1, h2, h3, .brand { font-family: var(--font-display); letter-spacing: -0.01em; }

/* Kopfbereich */
.site-header { background: rgb(12 14 20 / 0.6); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.75rem; }
.brand { font-size: 1.25rem; font-weight: 700; color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__logo { display: block; width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.25rem; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--primary); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--primary); }
.lang-switch { margin: 0; color: var(--muted); }
.lang-switch a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; color: var(--primary); font-weight: 600; }
.nav-toggle { min-height: 44px; padding: 0.5rem 1rem; font: inherit; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; cursor: pointer; }
.has-nav-toggle .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-bottom: 0.75rem; }
.has-nav-toggle .site-nav.is-open { display: flex; }
.has-nav-toggle .site-nav ul { flex-direction: column; }

/* Generator-Einstieg */
.generator-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.5rem 0; }
.generator-intro h1 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.2; }
.generator-intro p { margin: 0.35rem 0 0; color: var(--muted); max-width: 60ch; }
.generator-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.75rem; padding-block: 0 2rem; font-size: 0.85rem; color: var(--muted); }

/* Inhaltsseiten */
.content { max-width: 70ch; margin-inline: auto; padding: 2rem 1rem 4rem; line-height: 1.7; }
.content h1 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); line-height: 1.2; margin: 0 0 1rem; }
.content h2 { margin: 2.5rem 0 0.75rem; font-size: 1.4rem; line-height: 1.3; }
.content h3 { margin: 1.75rem 0 0.5rem; font-size: 1.1rem; }
.content a { color: var(--primary); }
.content .toc { padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.placeholder-notice { padding: 1rem; background: var(--warn-soft); border-radius: 8px; }

/* Fusszeile */
.site-footer { margin-top: 2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1rem 2rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.site-footer a:hover { color: var(--primary); }
.site-footer p { margin: 0; }
main:focus { outline: none; }
.site-footer__meta p { line-height: 1.5; }
.site-footer__meta a { display: inline; min-height: 0; text-decoration: underline; }
