/* Farben und Schrift aus dem 0xCC-Logo-Paket (README.txt). */

@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/JetBrainsMono-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

/* Die Seite ist immer dunkel, unabhängig von der Systemeinstellung. */
:root {
  color-scheme: dark;
  --bg: #0B0E12;
  --text: #E6EDF3;
  --muted: #9AA7B4;
  --accent: #F85149;
  --font: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

main {
  flex: 1;
  width: 100%;
  padding: 1.5rem 1rem;
}

a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

header,
footer {
  padding: 1.5rem 1rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  font-size: 0.875rem;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

/* Startseite: Logo und Kontakt, mittig */

.start {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  text-align: center;
}

.start h1,
.start p {
  margin: 0;
}

.start h1 {
  line-height: 0;
}

.start img {
  display: block;
  width: min(70vw, 26rem);
  height: auto;
}

.kontakt {
  overflow-wrap: anywhere;
}

/* Textseiten (Impressum) */

.logo {
  display: inline-block;
  line-height: 0;
}

.logo img {
  display: block;
  height: 2rem;
  width: auto;
}

.text {
  max-width: 40rem;
  margin: 0 auto;
}

.text h1,
.text h2 {
  line-height: 1.2;
  letter-spacing: -0.037em; /* Laufweite des Logos */
  font-weight: 800;
}

.text h1 {
  margin: 1rem 0 2rem;
  font-size: 2rem;
}

.text h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1rem;
}

.text p,
.text address {
  margin: 0 0 1rem;
  font-style: normal;
}
