/*
 * Projektseite pBlock.
 *
 * Gestalterische Richtung: redaktionell statt Produktseite. Große Serifen-freie
 * Überschrift mit kursiver Betonung, viel Weißraum, eine einzige Akzentfarbe.
 * Bewusst keine Bühnenbilder mit Verlaufsblasen und keine erfundenen
 * Nutzerstimmen — beides stand auf der alten Seite und war schlicht ausgedacht.
 *
 * Keine externen Schriften, keine Bibliothek, kein Skript außer der Jahreszahl.
 * Die Seite lädt damit ohne einzige Fremdanfrage — was für ein Projekt, das mit
 * Privatsphäre wirbt, das Mindeste ist.
 */

:root {
  color-scheme: dark;

  --bg: oklch(16% 0.008 265);
  --bg-raised: oklch(20% 0.009 265);
  --bg-sunken: oklch(13% 0.008 265);

  --line: oklch(27% 0.01 265);
  --line-strong: oklch(35% 0.012 265);

  --ink: oklch(95% 0.004 265);
  --ink-soft: oklch(74% 0.008 265);
  --ink-muted: oklch(58% 0.009 265);

  --accent: oklch(64% 0.19 22);
  --accent-soft: oklch(64% 0.19 22 / 0.13);

  --font:
    system-ui, -apple-system, 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue',
    sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;

  --measure: 62ch;
  --radius: 14px;
  --gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --section-space: clamp(4rem, 2.5rem + 6vw, 8rem);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: oklch(99% 0.002 265);
    --bg-raised: oklch(100% 0 0);
    --bg-sunken: oklch(96% 0.003 265);
    --line: oklch(91% 0.004 265);
    --line-strong: oklch(83% 0.006 265);
    --ink: oklch(20% 0.01 265);
    --ink-soft: oklch(42% 0.012 265);
    --ink-muted: oklch(56% 0.012 265);
    --accent: oklch(54% 0.2 22);
    --accent-soft: oklch(54% 0.2 22 / 0.09);
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ==================== Kopf ==================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 1rem clamp(1rem, 5vw, 4rem);
  background: color-mix(in oklch, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: 0.875rem;
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.site-header nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/*
 * Auf schmalen Fenstern schrumpft die Navigation, statt Einträge auszublenden.
 * Einzelne Links wegzulassen führt sonst dazu, dass ausgerechnet der am
 * wenigsten nützliche übrig bleibt.
 */
@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-inline: 1rem;
  }

  .site-header nav {
    width: 100%;
    gap: 1rem;
    font-size: 0.8125rem;
    /* Notfalls seitlich scrollen statt umbrechen — bleibt eine Zeile. */
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .site-header nav a {
    white-space: nowrap;
  }
}

/* ==================== Aufmacher ==================== */

.hero {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(3rem, 2rem + 6vw, 7rem) clamp(1rem, 5vw, 4rem) var(--section-space);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 1.6rem + 5.5vw, 5.5rem);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

/* Die kursive zweite Zeile trägt die eigentliche Aussage. */
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  margin-top: 1.75rem;
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.5rem;
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.hero__facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero__facts dd {
  margin-top: 0.25rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ==================== Schaltflächen ==================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 140ms ease,
    border-color 140ms ease;
}

.button:hover {
  background: var(--bg-raised);
  border-color: var(--ink-muted);
}

.button--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: oklch(100% 0 0);
}

.button--primary:hover {
  filter: brightness(0.92);
  background: var(--accent);
}

/* ==================== Abschnitte ==================== */

.section {
  max-width: 68rem;
  margin: 0 auto;
  padding: var(--section-space) clamp(1rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.section--accent {
  background: var(--bg-sunken);
  max-width: none;
  border-top: 1px solid var(--line);
}

.section--accent > * {
  max-width: 68rem;
  margin-inline: auto;
}

.section--quiet {
  text-align: center;
}

.section--quiet .hero__actions {
  justify-content: center;
}

.section__title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.section__title em {
  font-style: italic;
  color: var(--accent);
}

.section__lede {
  max-width: var(--measure);
  margin: -1.5rem auto 2rem;
  color: var(--ink-soft);
}

.section__note {
  margin-top: 2.5rem;
  max-width: var(--measure);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.section__note a {
  color: var(--accent);
}

/* ==================== Raster ==================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--gap);
}

.card {
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Eine Karte bricht bewusst aus dem gleichförmigen Raster aus. */
.card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 60rem) {
  .card--wide {
    grid-column: span 2;
  }
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.625rem;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ==================== Negativliste ==================== */

.negatives {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.negatives li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Ein durchgestrichener Kreis statt eines Häkchens — hier geht es um Auslassung. */
.negatives li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 1px),
    var(--accent) calc(50% - 1px),
    var(--accent) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}

.negatives strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.125rem;
}

/* ==================== Installation ==================== */

.install {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: var(--gap);
}

.install__option {
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.install__option h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.install__option p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.install__note {
  font-size: 0.8125rem !important;
  color: var(--ink-muted) !important;
  margin-top: auto;
}

pre {
  width: 100%;
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: 10px;
}

code {
  font-family: var(--mono);
  font-size: 0.8125rem;
}

p code {
  padding: 0.125rem 0.375rem;
  background: var(--bg-sunken);
  border-radius: 4px;
}

/* ==================== Fuß ==================== */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ==================== Rechtstexte ==================== */

.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3rem, 2rem + 4vw, 5rem) clamp(1rem, 5vw, 4rem) var(--section-space);
}

.legal h1 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  font-weight: 640;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.legal > p:first-of-type {
  color: var(--ink-muted);
  font-size: 0.875rem;
  margin-bottom: 3rem;
}

.legal h2 {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.375rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.legal h3 {
  margin-top: 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.legal p,
.legal li {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal a {
  color: var(--accent);
}

.legal address {
  margin-top: 1rem;
  font-style: normal;
  color: var(--ink-soft);
}

.legal .back {
  display: inline-block;
  margin-top: 3rem;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.legal .back:hover {
  color: var(--ink);
}

/* ==================== Bewegung ==================== */

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

html {
  scroll-behavior: smooth;
  /* Damit Sprungmarken nicht unter dem klebenden Kopf landen. */
  scroll-padding-top: 5rem;
}
