@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&display=swap');

/* ---- Farbdefinitionen (Dark Mode standard) ---- */
:root {
  --bg: #0e0e0f;
  --fg: #e8e8e8;
  --accent: #8ee1ff;
  --muted: #a0a0a0;
}

/* ---- Light Mode ---- */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f8;
    --fg: #111;
    --accent: #0077cc;
    --muted: #555;
  }
}

/* ---- Overrides, wenn manuell Light/Dark gewählt ---- */
[data-theme="light"] {
  --bg: #f7f7f8;
  --fg: #111;
  --accent: #0077cc;
  --muted: #555;
}

[data-theme="dark"] {
  --bg: #0e0e0f;
  --fg: #e8e8e8;
  --accent: #8ee1ff;
  --muted: #a0a0a0;
}

/* ---- Layout ---- */
body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: "Inconsolata", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transition: background-color 0.3s, color 0.3s;
}

.page {
  max-width: 720px;
  padding: 2rem;
  text-align: center;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 span {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: .3rem;
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--muted);
  transition: opacity 0.2s ease, color 0.2s ease;
  opacity: 0.6;
  padding: 0.25rem;
  margin-left: 0.5rem;
}

#theme-toggle:hover {
  opacity: 1;
  color: var(--fg);
}

.intro {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 1rem 0 2rem 0;
  color: var(--fg);
}

.links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  transition: color 0.3s ease;
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

footer {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2rem;
}
