/* ---------- Schriften (selbst gehostet) ---------- */

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/satoshi-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Grundlagen ---------- */

:root {
  --bg: #ffffff;
  --ink: #0d0d0d;
  --muted: #707070;
  --line: #ececec;
  --red: #e10a1f;
  --pad: clamp(20px, 3.4vw, 56px);
  --sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

::selection {
  color: #fff;
  background: var(--red);
}

/* ---------- Seitenrahmen ---------- */

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--pad);
  padding-bottom: calc(var(--pad) * 0.75 + env(safe-area-inset-bottom));
}

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

.brand {
  display: block;
  line-height: 0;
  color: var(--ink);
}

.brand svg {
  height: clamp(22px, 1.9vw, 30px);
  width: auto;
  fill: currentColor;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

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

.site-footer a,
.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--ink);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
}

.site-footer a::after,
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.site-footer a:hover::after,
.site-footer a:focus-visible::after,
.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link[aria-current="page"]::after {
  background: var(--red);
  transform: scaleX(1);
}

/* ---------- Hero ---------- */

.hero {
  align-self: center;
  padding: 7vh 0;
  text-align: center;
}

.headline {
  margin: 0;
  font-size: clamp(2.5rem, 7.6vw, 8.5rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}

.line-inner {
  display: inline-block;
  white-space: nowrap;
}

.period {
  color: var(--red);
}

.intro {
  max-width: 34ch;
  text-wrap: balance;
  margin: clamp(1.75rem, 3.6vw, 3.25rem) auto 0;
  font-size: clamp(1.15rem, 1.75vw, 1.65rem);
  font-weight: 450;
  line-height: 1.38;
  letter-spacing: -0.01em;
}

.intro a {
  white-space: nowrap;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.intro a:hover,
.intro a:focus-visible {
  color: var(--red);
}

/* ---------- Kontakt ---------- */

.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.75rem, 6vw, 6rem);
  margin: clamp(2.5rem, 5.5vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-link {
  position: relative;
  padding-bottom: 0.15em;
  font-size: clamp(1.4rem, 2.7vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
}

.contact-link::before,
.contact-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
}

.contact-link::before {
  background: var(--line);
}

.contact-link::after {
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}

.contact-link:hover::after,
.contact-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Einblendung beim Laden ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .line-inner {
    transform: translateY(130%);
  }

  .js .intro,
  .js .contact-list,
  .js .site-header,
  .js .site-footer {
    opacity: 0;
  }

  .is-ready .line-inner {
    animation: line-up 1.4s var(--ease) forwards;
  }

  .is-ready .line:nth-child(2) .line-inner { animation-delay: 0.08s; }
  .is-ready .line:nth-child(3) .line-inner { animation-delay: 0.16s; }

  .is-ready .intro {
    animation: fade-up 1.2s var(--ease) 1.25s forwards;
  }

  .is-ready .contact-list {
    animation: fade-up 1.2s var(--ease) 1.4s forwards;
  }

  .is-ready .site-header,
  .is-ready .site-footer {
    animation: fade 1.2s var(--ease) 1.45s forwards;
  }
}

@keyframes line-up {
  from { transform: translateY(130%); }
  to   { transform: none; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade {
  to { opacity: 1; }
}

/* ---------- Unterseiten ---------- */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--pad);
  padding-bottom: 0;
}

.page-header-inner {
  display: contents;
}

.page-header .brand-link {
  display: inline-block;
  line-height: 0;
}

.page-header img {
  height: clamp(22px, 1.9vw, 30px);
  width: auto;
}

.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 7rem) var(--pad) 3rem;
  animation: fade-up 1s var(--ease) both;
}

.legal h1 {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.legal h1::after {
  content: ".";
  color: var(--red);
}

.legal h2 {
  margin: 2.5rem 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal h3 {
  margin: 1.6rem 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.legal .lead {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.facts {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr;
  gap: 0.65rem 1.5rem;
  margin: 0 0 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-weight: 500;
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

.legal p,
.legal ul {
  margin: 0 0 1rem;
}

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

.legal a {
  color: var(--ink);
  text-decoration-color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

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

.legal .meta {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.page-footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem var(--pad) calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  justify-content: flex-start;
  gap: 1.5rem;
}

/* ---------- Kleinere Bildschirme ---------- */

@media (max-width: 520px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .facts dd + dt {
    margin-top: 0.75rem;
  }

  .headline {
    font-size: 11.4vw;
  }

  .site-footer {
    font-size: 0.85rem;
  }
}
