/* ==========================================================================
   Digitalwerk-Nord — Stylesheet
   Eine Marke der NextServ UG (haftungsbeschränkt)
   Dark Mode only. Keine Frameworks, kein Build-Step.
   ========================================================================== */

@import url("https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700,800,900&f[]=satoshi@300,400,500,700,900&f[]=jetbrains-mono@400,500&display=swap");

/* --------------------------------------------------------------------------
   1. Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Farben (HSL-Komponenten, damit Alpha-Varianten möglich sind) */
  --background: 0 0% 4%;
  --foreground: 48 20% 97%;
  --surface: 0 0% 7%;
  --muted-foreground: 40 3% 55%;
  --border: 0 0% 16%;
  --brand: 38 90% 55%;

  /* Typografie */
  --font-heading: "Cabinet Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Satoshi", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Layout */
  --wrap: 1400px;
  --pad: 1.5rem;
  --radius: 1rem;

  color-scheme: dark;
}

@media (min-width: 768px) {
  :root {
    --pad: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   2. Reset & Basis
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Offset für den fixierten Header bei Ankersprüngen */
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* Filmkorn-Overlay über der gesamten Seite */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 200 200%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.85%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url%28%23n%29%27/%3E%3C/svg%3E");
}

/* Sprungmarke für Screenreader / Tastatur */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: hsl(var(--brand));
  color: #000;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 0 0 0.5rem 0;
}

.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout-Helfer
   -------------------------------------------------------------------------- */
.wrap {
  margin-inline: auto;
  max-width: var(--wrap);
  padding-inline: var(--pad);
  width: 100%;
}

.section {
  padding-block: 6rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 9rem;
  }
}

/* Invertierte Sektionen (heller Grund, dunkle Schrift) */
.section--invert {
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
}

/* --------------------------------------------------------------------------
   4. Typografie-Bausteine
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.section--invert .eyebrow {
  color: hsl(var(--background) / 0.5);
}

.eyebrow::before {
  content: "";
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 50%;
  background: hsl(var(--brand));
  flex: none;
}

.h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}

.lead {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

@media (min-width: 768px) {
  .lead {
    font-size: 1.125rem;
  }
}

/* Unterstrich, der beim Hover von links nach rechts wächst */
.link-underline {
  background-image: linear-gradient(hsl(var(--brand)), hsl(var(--brand)));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-underline:hover,
.link-underline:focus-visible {
  background-size: 100% 2px;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: gap 0.3s ease, background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

.btn:hover {
  gap: 0.75rem;
}

.btn svg {
  transition: transform 0.3s ease;
}

.btn--brand {
  background: hsl(var(--brand));
  color: #000;
}

.btn--brand:hover svg {
  transform: rotate(45deg);
}

.btn--ghost {
  border-color: hsl(var(--border));
  font-weight: 500;
  gap: 0.5rem;
}

.btn--ghost:hover {
  border-color: hsl(var(--foreground));
}

.btn--ghost:hover svg {
  transform: translate(2px, -2px);
}

.btn--solid {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  padding: 0.625rem 1.25rem;
  font-weight: 500;
}

.btn--solid:hover {
  background: hsl(var(--brand));
  color: #000;
}

/* --------------------------------------------------------------------------
   6. Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.7);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
}

.site-header__inner {
  margin-inline: auto;
  max-width: var(--wrap);
  padding-inline: var(--pad);
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .site-header__inner {
    height: 5rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.brand img {
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.5rem;
}

.brand__name {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .brand__name {
    font-size: 1.125rem;
  }
}

.brand__dash {
  color: hsl(var(--brand));
}

.nav {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

.nav a {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: hsl(var(--foreground) / 0.8);
  transition: color 0.25s ease;
}

.nav a:hover {
  color: hsl(var(--foreground));
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__cta {
  display: none;
}

@media (min-width: 640px) {
  .header__cta {
    display: inline-flex;
  }
}

.menu-toggle {
  height: 2.25rem;
  width: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: transparent;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Mobiles Menü */
.mobile-nav {
  display: none;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-nav.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-nav.is-open {
    display: none;
  }
}

.mobile-nav ul {
  margin-inline: auto;
  max-width: var(--wrap);
  padding: 1rem var(--pad) 1.5rem;
  display: grid;
  gap: 0.25rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  border-bottom: 1px solid hsl(var(--border));
}

.mobile-nav a:hover {
  color: hsl(var(--brand));
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-top: 6rem;
}

.hero__glyph {
  pointer-events: none;
  user-select: none;
  position: absolute;
  right: -1.5rem;
  top: 6rem;
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1;
  font-size: 36vw;
  color: hsl(var(--brand) / 0.1);
}

@media (min-width: 768px) {
  .hero__glyph {
    right: 1.5rem;
    top: 7rem;
    font-size: 26vw;
  }
}

.hero__inner {
  position: relative;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .hero__inner {
    padding-bottom: 6rem;
  }
}

.hero__label {
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.92;
  font-size: 13vw;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 6rem;
  }
}

.line-mask {
  display: block;
  overflow: hidden;
}

.line-mask > span {
  display: block;
}

.text-brand {
  color: hsl(var(--brand));
}

.hero__bottom {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hero__bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.hero__bottom p {
  max-width: 28rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   8. Laufband (Marquee)
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  background: hsl(var(--brand));
  color: #000;
  padding-block: 1rem;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .marquee {
    padding-block: 1.25rem;
  }
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-x 22s linear infinite;
  will-change: transform;
}

.marquee__item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.marquee__item span:first-child {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .marquee__item span:first-child {
    font-size: 1.5rem;
  }
}

.marquee__item span:last-child {
  font-size: 1.125rem;
  opacity: 0.6;
}

@keyframes marquee-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   9. Leistungen
   -------------------------------------------------------------------------- */
.section__head {
  max-width: 48rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .section__head {
    margin-bottom: 6rem;
  }
}

.services__grid {
  display: grid;
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.service {
  position: relative;
  height: 100%;
  background: hsl(var(--surface));
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: background-color 0.5s ease;
}

@media (min-width: 768px) {
  .service {
    padding: 2.5rem;
  }
}

.service:hover {
  background: hsl(var(--brand));
}

.service__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.service__no {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.3s ease;
}

.service__top svg {
  color: hsl(var(--muted-foreground));
  transition: color 0.3s ease, transform 0.3s ease;
}

.service:hover .service__no {
  color: rgba(0, 0, 0, 0.6);
}

.service:hover .service__top svg {
  color: #000;
  transform: translate(4px, -4px);
}

.service h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .service h3 {
    font-size: 1.875rem;
  }
}

.service p {
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.service:hover h3 {
  color: #000;
}

.service:hover p {
  color: rgba(0, 0, 0, 0.75);
}

.service ul {
  margin-top: auto;
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
  transition: border-color 0.3s ease;
}

.service:hover ul {
  border-color: rgba(0, 0, 0, 0.15);
}

.service li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.service li::before {
  content: "";
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: hsl(var(--brand));
  flex: none;
  transition: background-color 0.3s ease;
}

.service:hover li {
  color: #000;
}

.service:hover li::before {
  background: #000;
}

/* --------------------------------------------------------------------------
   10. Referenzen
   -------------------------------------------------------------------------- */
.work__head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .work__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 5rem;
  }
}

.work__head .h2 {
  max-width: 42rem;
}

.work__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .work__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .work__grid > *:nth-child(1) {
    grid-column: span 7;
  }
  .work__grid > *:nth-child(2) {
    grid-column: span 5;
  }
  .work__grid > *:nth-child(3) {
    grid-column: span 5;
  }
  .work__grid > *:nth-child(4) {
    grid-column: span 7;
  }
}

.work-card {
  position: relative;
  display: block;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: #000;
}

@media (min-width: 768px) {
  .work-card {
    min-height: 340px;
  }
}

.work-card__img {
  position: absolute;
  inset: 0;
  height: 116%;
  width: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.work-card:hover .work-card__img {
  transform: scale(1.05);
  opacity: 0.9;
}

.work-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.2) 50%,
    transparent
  );
}

.work-card__body {
  position: relative;
  height: 100%;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: inherit;
}

@media (min-width: 768px) {
  .work-card__body {
    padding: 2rem;
  }
}

.tag {
  align-self: flex-start;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
}

.work-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.work-card__foot h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: #fff;
}

@media (min-width: 768px) {
  .work-card__foot h3 {
    font-size: 1.875rem;
  }
}

.work-card__arrow {
  height: 2.75rem;
  width: 2.75rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: hsl(var(--brand));
  color: #000;
  transition: transform 0.3s ease;
}

.work-card:hover .work-card__arrow {
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   11. Manifest
   -------------------------------------------------------------------------- */
.manifest-item {
  display: grid;
  gap: 1rem;
  align-items: start;
  border-top: 1px solid hsl(var(--background) / 0.15);
  padding-block: 2rem;
  transition: border-color 0.3s ease;
}

@media (min-width: 768px) {
  .manifest-item {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem;
    padding-block: 3rem;
  }
}

.manifest-item:hover {
  border-color: hsl(var(--brand));
}

.manifest-item__no {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: hsl(var(--background) / 0.25);
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .manifest-item__no {
    grid-column: span 2;
    font-size: 4.5rem;
  }
}

.manifest-item:hover .manifest-item__no {
  color: hsl(var(--brand));
}

.manifest-item h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .manifest-item h3 {
    grid-column: span 4;
    font-size: 1.875rem;
  }
}

.manifest-item p {
  color: hsl(var(--background) / 0.6);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .manifest-item p {
    grid-column: span 6;
    font-size: 1.125rem;
  }
}

/* --------------------------------------------------------------------------
   12. Studio
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5rem;
  }
}

.about__grid .h2 {
  margin-bottom: 2rem;
}

.about__text {
  max-width: 36rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  border-top: 1px solid hsl(var(--border));
  padding-top: 2.5rem;
}

.stats__value {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.875rem;
  letter-spacing: -0.045em;
  color: hsl(var(--brand));
}

@media (min-width: 768px) {
  .stats__value {
    font-size: 3rem;
  }
}

.stats__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  margin-top: 0.5rem;
}

.about__collage {
  position: relative;
  height: 440px;
}

@media (min-width: 768px) {
  .about__collage {
    height: 560px;
  }
}

.about__collage figure {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
}

.about__collage figure img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.about__collage .fig-a {
  right: 0;
  top: 0;
  width: 70%;
  height: 68%;
}

.about__collage .fig-b {
  left: 0;
  bottom: 0;
  width: 58%;
  height: 52%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.about__collage .glow {
  position: absolute;
  left: 10%;
  top: 6%;
  height: 4rem;
  width: 4rem;
  border-radius: 50%;
  background: hsl(var(--brand));
  filter: blur(40px);
  opacity: 0.4;
}

/* --------------------------------------------------------------------------
   13. Kontakt
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 5rem;
  }
  .contact__intro {
    grid-column: span 5;
  }
  .contact__form {
    grid-column: span 7;
  }
}

.contact__intro .h2 {
  margin-bottom: 1.5rem;
}

.contact__intro .lead {
  max-width: 28rem;
}

.contact__mail {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .contact__mail {
    font-size: 1rem;
  }
}

.contact__form {
  display: grid;
  gap: 2rem;
}

.field-row {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid hsl(var(--border));
  padding-block: 0.875rem;
  font-family: var(--font-body);
  font-size: 1.125rem;
  transition: border-color 0.3s ease;
}

.field textarea {
  resize: vertical;
}

.field select {
  cursor: pointer;
  border-radius: 0;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, hsl(var(--muted-foreground)) 50%),
    linear-gradient(135deg, hsl(var(--muted-foreground)) 50%, transparent 50%);
  background-position: right 8px center, right 3px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field select option {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.field input::placeholder,
.field textarea::placeholder {
  color: hsl(var(--muted-foreground) / 0.6);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: hsl(var(--brand));
}

/* Honeypot gegen Spam-Bots — für Menschen unsichtbar */
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.consent input {
  margin-top: 0.2rem;
  height: 1rem;
  width: 1rem;
  flex: none;
  accent-color: hsl(var(--brand));
}

.consent a {
  color: hsl(var(--foreground));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-note {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.form-note[data-state="ok"] {
  color: hsl(var(--brand));
}

.form-note[data-state="error"] {
  color: #ef6f6f;
}

.contact__form .btn {
  justify-self: start;
  padding: 1rem 1.75rem;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  overflow: hidden;
}

.site-footer__inner {
  margin-inline: auto;
  max-width: var(--wrap);
  padding: 5rem var(--pad) 2.5rem;
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  border-bottom: 1px solid hsl(var(--background) / 0.15);
  padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .site-footer__top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.site-footer__brand {
  max-width: 24rem;
}

.site-footer__brand .brand {
  margin-bottom: 1.25rem;
}

.site-footer__brand img {
  height: 2.5rem;
  width: 2.5rem;
}

.site-footer__brand p {
  color: hsl(var(--background) / 0.6);
  line-height: 1.7;
}

.site-footer__claim {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--background) / 0.5);
}

@media (min-width: 768px) {
  .site-footer__claim {
    text-align: right;
  }
}

/* Wortmarke: als SVG gesetzt, damit sie in jeder Viewport-Breite exakt
   von Kante zu Kante läuft — unabhängig davon, ob der Webfont geladen ist. */
.site-footer__wordmark {
  padding-top: 2.5rem;
  user-select: none;
}

.site-footer__wordmark svg {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer__wordmark text {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.045em;
  fill: hsl(var(--background) / 0.9);
}

.site-footer__wordmark .dash {
  fill: hsl(var(--brand));
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--background) / 0.45);
}

@media (min-width: 640px) {
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.legal-nav a {
  transition: color 0.25s ease;
}

.legal-nav a:hover {
  color: hsl(var(--brand));
}

/* --------------------------------------------------------------------------
   15. Rechtstexte (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */
.legal {
  padding-top: 9rem;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .legal {
    padding-top: 12rem;
  }
}

.legal__inner {
  max-width: 52rem;
}

.legal h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 3rem;
}

.legal h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
  .legal h2 {
    font-size: 1.875rem;
  }
}

.legal__inner > h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.legal h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal p,
.legal li {
  color: hsl(var(--muted-foreground));
  line-height: 1.8;
}

.legal p + p {
  margin-top: 1rem;
}

.legal ul {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

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

.legal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: hsl(var(--brand));
}

.legal address {
  font-style: normal;
  color: hsl(var(--foreground));
  line-height: 1.8;
  margin-top: 1rem;
}

.legal a {
  color: hsl(var(--brand));
  text-underline-offset: 3px;
}

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

.legal strong {
  color: hsl(var(--foreground));
  font-weight: 700;
}

.legal__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground));
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

/* Hinweisbox für Werte, die noch ergänzt werden müssen */
.todo {
  display: inline-block;
  background: hsl(var(--brand) / 0.15);
  border: 1px dashed hsl(var(--brand) / 0.6);
  color: hsl(var(--brand));
  padding: 0.05rem 0.45rem;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.8em;
}

/* --------------------------------------------------------------------------
   16. Scroll-Reveal & Reduced Motion
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee__track {
    animation: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* JS deaktiviert: Inhalte trotzdem sichtbar */
.no-js .reveal {
  opacity: 1;
  transform: none;
}
