/* studio loh.: schwarz auf weiß, eine Linienfarbe, keine Schatten. Wie im Backend. */
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --muted: #6b6b68;
  --line: #e2e2e0;
  --pad: clamp(20px, 4vw, 56px);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Startseite */

html {
  scroll-behavior: smooth;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  padding: var(--pad);
  overflow-x: clip;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem clamp(0.9rem, 3vw, 1.75rem);
  margin-bottom: clamp(2.5rem, 7vh, 5rem);
  font-size: 0.9375rem;
}

.nav a {
  padding: 0.5rem 0;
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

.intro h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2.25rem, 5.4vw, 4.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

@media (max-width: 600px) {
  .intro h1 {
    font-size: 2rem;
    text-wrap: balance;
  }
  .intro h1 br {
    display: none;
  }
}

.intro p {
  margin: 1.75rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  text-wrap: pretty;
}

.intro p a {
  white-space: nowrap;
  color: var(--ink);
}

.wordmark {
  margin: 3rem 0 0;
  font-size: 16.6vw; /* Rückfall; das Skript passt die Größe exakt an die Breite an */
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.06em;
  white-space: nowrap;
  user-select: none;
}

.wordmark span {
  display: inline-block;
}

.dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin: 0 0 0 0.05em;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: scale 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
  animation: set-dot 1.1s 0.35s cubic-bezier(0.3, 0, 0.7, 1) backwards;
}

.dot:hover {
  scale: 1.25;
}

.dot:focus-visible {
  outline-color: var(--ink);
  outline-offset: 6px;
}

/* Der Punkt fällt ans Satzende und setzt sich. */
@keyframes set-dot {
  0% {
    translate: 0 -100svh;
  }
  55% {
    translate: 0 0;
    animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1);
  }
  72% {
    translate: 0 -0.22em;
    animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4);
  }
  86% {
    translate: 0 0;
    animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1);
  }
  93% {
    translate: 0 -0.05em;
  }
  100% {
    translate: 0 0;
  }
}

/* Abschnitte: links die Überschrift, rechts der Inhalt. */

.section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
  border-top: 1px solid var(--line);
  scroll-margin-top: 0;
}

@media (min-width: 900px) {
  .section {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
  }
}

.section-wash {
  background: #f6f6f5;
}

.section h2,
.end h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.section p,
.section dd {
  margin: 0.5rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  text-wrap: pretty;
}

.steps,
.prices {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps {
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.steps li:first-child,
.prices li:first-child,
.facts div:first-child {
  padding-top: 0;
  border-top: 0;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.steps li > * {
  grid-column: 2;
}

.facts {
  margin: 0;
}

.facts div {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.prices li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.prices li > div {
  flex: 1 1 16rem;
}

.section .price {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.section .note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: none;
  font-size: 0.875rem;
}

.prose p {
  margin: 0;
  color: var(--ink);
  font-size: 1.125rem;
}

.prose p + p {
  margin-top: 1.25rem;
}

/* Schluss: Kontakt auf Schwarz, wie hinter dem Punkt. */

.end {
  padding: clamp(4rem, 9vw, 8rem) var(--pad) var(--pad);
  background: var(--ink);
  color: var(--paper);
}

.end h2 {
  max-width: none;
  font-size: clamp(2.25rem, 5.4vw, 4.75rem);
}

.end-body p {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  color: #b4b4b0;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.foot a {
  text-decoration: none;
}

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

.end .foot {
  margin-top: clamp(4rem, 9vw, 8rem);
  border-top-color: #3a3a38;
  color: #b4b4b0;
}

.end .foot a:hover {
  color: var(--paper);
}

/* Kontakt: der Punkt wächst über die ganze Seite. */

.contact {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--pad);
  border: 0;
  background: var(--ink);
  color: var(--paper);
  clip-path: circle(0 at var(--x, 50%) var(--y, 100%));
  transition: clip-path 0.75s cubic-bezier(0.7, 0, 0.2, 1);
}

.contact.is-open {
  clip-path: circle(150vmax at var(--x, 50%) var(--y, 100%));
}

.contact::backdrop {
  background: transparent;
}

.contact-inner {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.contact-close {
  justify-self: end;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 1px solid var(--paper);
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.contact-close:hover {
  background: var(--paper);
  color: var(--ink);
}

.contact-body {
  align-self: end;
}

.contact-body h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5.4vw, 4.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.contact-body p {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  color: #b4b4b0;
}

.contact-mail {
  display: inline-block;
  margin-top: clamp(2rem, 6vh, 4rem);
  font-size: clamp(1.5rem, 6.4vw, 6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.045em;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.14em;
}

.contact-mail:hover {
  text-decoration-thickness: 0.1em;
}

/* Rechtliches */

.legal {
  max-width: 44rem;
  padding: var(--pad);
}

.legal .back {
  display: inline-block;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.25rem;
  text-decoration: none;
}

.legal h1 {
  margin: 4rem 0 0;
  font-size: clamp(2.25rem, 5.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

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

.legal h3 {
  margin: 2rem 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.legal p {
  margin: 0.75rem 0 0;
}

.legal mark {
  background: #ffd9d4;
  color: #a4161a;
  padding: 0 0.25em;
  font-weight: 600;
}

.legal .foot {
  margin-top: 4rem;
}

@media (prefers-reduced-motion: reduce) {
  .dot {
    animation: none;
    transition: none;
  }
  .contact {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
