/* ═══════════════════════════════════════════════════════════════
   lumesec.ai · Minimal-Variante
   Absolute Reduktion · keine Sektionen · keine Grafik-Elemente.
   Only: Wordmark · Tagline · Contact · Theme-Toggle · Impressum-Link
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #fafafa;
  --fg:        #171717;
  --fg-muted:  #52525b;
  --hover:     #6219f3;
  --line:      rgba(23, 23, 23, 0.08);
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg:       #171717;
  --fg:       #fafafa;
  --fg-muted: #a1a1aa;
  --hover:    #8651f8;
  --line:     rgba(250, 250, 250, 0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 24px;
  transition: background 220ms ease, color 220ms ease;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 36px;
  max-width: 720px;
  text-align: center;
}

/* ── Logo-Lockup (Mark above Wordmark · stacked, tight) ─────── */
.logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.mark {
  height: 48px;
  width: auto;
  display: block;
}
.mark-dark { display: none; }
[data-theme="dark"] .mark-light { display: none; }
[data-theme="dark"] .mark-dark  { display: block; }

/* ── Wordmark (dark-fill for light mode, white-fill for dark) ── */
.logo {
  height: 28px;
  width: auto;
  display: block;
}
.logo-dark  { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark  { display: block; }

/* ── Tagline ── */
h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
  color: var(--fg);
  max-width: 640px;
}

/* ── Contact ── */
.contact {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: -0.005em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}
.contact:hover,
.contact:focus-visible {
  color: var(--hover);
  border-bottom-color: var(--hover);
}

/* ── Theme toggle (tiny, top-right) ── */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 160ms ease, background 160ms ease,
              color 160ms ease;
}
.theme-toggle:hover {
  border-color: var(--fg-muted);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ── Footer (tiny Impressum link) ── */
footer {
  padding-top: 32px;
}
footer a {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 160ms ease, color 160ms ease;
}
footer a:hover,
footer a:focus-visible {
  opacity: 1;
  color: var(--hover);
}

/* ── Accessibility ── */
:focus-visible {
  outline: 2px solid var(--hover);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
  }
}

/* ── Impressum (same file family, compact key-value) ────────── */

main.imprint {
  gap: 28px;
  max-width: 560px;
  width: 100%;
}

.imprint h1 {
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.imprint dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 28px;
  width: 100%;
  margin: 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}
.imprint dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 3px;
  margin: 0;
  font-weight: 500;
}
.imprint dd {
  margin: 0;
  color: var(--fg);
}
.imprint dd .dim {
  color: var(--fg-muted);
}
.imprint dd a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 160ms ease, border-color 160ms ease;
}
.imprint dd a:hover,
.imprint dd a:focus-visible {
  color: var(--hover);
  border-bottom-color: var(--hover);
}

.imprint .small {
  width: 100%;
  text-align: left;
  font-size: 12px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
  max-width: 520px;
}
.imprint .small + .small {
  margin-top: -14px;   /* zieht zwei aufeinanderfolgende .small-Absätze näher */
}
.imprint .small strong {
  color: var(--fg);
  font-weight: 500;
}
.imprint .small em {
  font-style: normal;
  color: var(--fg);
  font-weight: 500;
}
.imprint .small a {
  color: var(--fg-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 160ms ease;
}
.imprint .small a:hover,
.imprint .small a:focus-visible {
  color: var(--hover);
}

.imprint .back {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 160ms ease;
}
.imprint .back:hover,
.imprint .back:focus-visible {
  color: var(--hover);
}

/* ── Small screens ── */
@media (max-width: 520px) {
  body { padding: 32px 20px; }
  .theme-toggle { top: 12px; right: 12px; width: 36px; height: 36px; }
  main { gap: 28px; }
  .logo-lockup { gap: 10px; }
  .mark { height: 40px; }
  .logo { height: 22px; }

  .imprint dl {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .imprint dt { margin-top: 14px; padding-top: 0; }
  .imprint dt:first-of-type { margin-top: 0; }
}
