/* ==========================================================================
   Vetter Digital — Design Tokens
   Minimal system: one signature color circle, giant typography, hairlines
   instead of boxes/shadows.
   ========================================================================== */

:root {
  /* Color tokens */
  --ink: #15130f;
  --ink-soft: #2a261f;
  --paper: #f6f4ef;
  --paper-raised: #ffffff;
  --accent-orange: #de7a22;
  /* Dunklere Stufe derselben Farbe, nur fuer Text und Symbole auf hellem
     Grund. Das Signalorange erreicht dort nur 2,76:1 und faellt damit unter
     die WCAG-AA-Grenze von 4,5:1. Diese Stufe erreicht 4,54:1. */
  --accent-orange-text: #a85c19;
  --accent-blue: #2e4b8f;
  --accent-blue-light: #7d9cf0;
  --accent-burgundy: #8c2f39;
  --stone: #6b6862;
  --stone-light: #a39e93;
  /* Zwei dunklere Papierstufen, nur fuer die vertiefte Flaeche hinter den
     Geraete-Mockups. */
  --paper-sunk-top: #eeebe3;
  --paper-sunk-bottom: #e2ded2;
  --border: rgba(21, 19, 15, 0.12);
  --border-dark: rgba(246, 244, 239, 0.16);

  /* Typography */
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Scale */
  --step-hero: clamp(3.5rem, 8vw, 8rem);
  --step-h2: clamp(2rem, 4.5vw, 3.4rem);
  --step-h3: clamp(1.25rem, 2.2vw, 1.6rem);
  --step-body: 1.05rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 5rem;
  --space-xl: 9rem;

  --radius: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: var(--space-sm);
}

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

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-xl);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: var(--space-sm);
}

.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 1px;
  background: var(--accent-orange);
  display: inline-block;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--step-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Buttons: thin border/pill, no hard shadow */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9rem 1.7rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--on-dark {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.btn--on-dark:hover {
  background: transparent;
  color: var(--paper);
}

.btn--link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  border: none;
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  text-underline-offset: 3px;
  text-decoration: underline;
  text-decoration-color: var(--accent-orange);
  text-decoration-thickness: 2px;
}

.btn--link:hover {
  transform: none;
  text-decoration-color: currentColor;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: padding 0.25s var(--ease), border-color 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(246, 244, 239, 0.85);
  backdrop-filter: blur(10px);
  z-index: -1;
}

.site-header.is-condensed {
  border-bottom-color: var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.4rem;
  transition: padding 0.25s var(--ease);
}

.site-header.is-condensed .container {
  padding-block: 0.9rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.wordmark__chip {
  color: var(--accent-orange-text);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__links {
  display: flex;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__links a {
  position: relative;
  padding-block: 0.2rem;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  padding: 0.55rem 1.2rem;
  font-size: 0.72rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
}

.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ==========================================================================
   Portrait + circle: the site's recurring signature motif
   ========================================================================== */

.portrait {
  position: relative;
  width: 100%;
}

.portrait__circle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-orange);
  opacity: 0.92;
}

.portrait__img {
  position: relative;
  z-index: 1;
  display: block;
  margin-inline: auto;
  object-fit: cover;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  overflow: visible;
}

.hero-pin-track {
  position: relative;
}

.hero-pin {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.hero-pin .container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.hero__top {
  display: grid;
  grid-template-columns: 0.9fr 1.05fr;
  gap: var(--space-xl);
  align-items: start;
}

.hero__content {
  position: relative;
}

/* Nudged down to roughly match the headline's own top (the eyebrow
   above it, plus the headline's margin-top, take up this much space). */
.hero__preview {
  margin-top: 3rem;
}

.hero__headline {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--step-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-align: left;
}

/* Sized to its own clamp (not --step-hero) so the three manual line
   breaks below each stay on their own line within the narrower text
   column, instead of wrapping again into a 4th line. Desktop only —
   the mobile headline is a different element (.hero__headline--mobile)
   and keeps the shared --step-hero size. */
.hero__headline--desktop {
  margin-top: var(--space-sm);
  font-size: clamp(2.6rem, 4vw, 4.5rem);
}

.hero__headline--desktop em {
  font-style: normal;
  color: var(--accent-orange-text);
}

/* Mobile has its own headline text/wrapping; hidden by default, swapped
   in for .hero__headline--desktop below the 1024px breakpoint. */
.hero__headline--mobile {
  display: none;
}

.hero__lede {
  margin-top: var(--space-md);
  color: var(--ink-soft);
  max-width: 42ch;
}

/* Browser-frame video preview, same visual language as the portfolio's
   .device-preview. Desktop only — see the 1024px breakpoint. */
.hero-video-frame {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(21, 19, 15, 0.14);
}

.hero-video-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
}

.hero-video-frame__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stone-light);
}

.hero-video-frame__bar em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(246, 244, 239, 0.55);
  letter-spacing: 0.02em;
}

.hero-video-frame__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.hero-video__expand {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(21, 19, 15, 0.72);
  backdrop-filter: blur(6px);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.hero-video__expand:hover {
  background: rgba(21, 19, 15, 0.88);
}

.hero__bottom {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: clamp(1.5rem, 5vh, 3.5rem);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

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

.hero__meta {
  display: flex;
  gap: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-transform: none;
}

/* Mobile-only social row below .hero__meta — hidden on desktop, see the
   1024px breakpoint for the mobile layout. */
.hero-social {
  display: none;
}

/* Desktop-only social row under the video, aligned with .hero__actions —
   hidden by default, shown and positioned in the 1025px breakpoint. */
.hero__preview-social {
  display: none;
}

.hero-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.hero-social__link:hover,
.hero-social__link:focus-visible {
  border-color: var(--accent-orange);
  color: var(--accent-orange-text);
}

/* ==========================================================================
   Problem / Lösung
   ========================================================================== */

.problem {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--space-lg);
}

.problem .eyebrow {
  color: var(--stone-light);
}

.problem .eyebrow::before {
  background: var(--accent-orange);
}

.problem .lede {
  color: rgba(246, 244, 239, 0.65);
}

.problem h2 {
  color: var(--paper);
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.compare__col {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-dark);
}

.compare__heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.compare__col--bad .compare__heading {
  color: rgba(246, 244, 239, 0.5);
}

.compare__col--good .compare__heading {
  color: var(--accent-orange);
}

.compare__row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--border-dark);
}

.compare__row:first-of-type {
  border-top: none;
}

.compare__row span:last-child {
  color: rgba(246, 244, 239, 0.8);
}

.compare__mark {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 0.15em;
  color: rgba(246, 244, 239, 0.35);
}

.compare__col--good .compare__mark {
  color: var(--accent-orange);
}

/* ==========================================================================
   Services (Leistungen): minimal stacked rows, not color blocks
   ========================================================================== */

.service-row {
  display: grid;
  grid-template-columns: 60px 1.1fr 1fr;
  gap: var(--space-lg);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--border);
  align-items: start;
}

.service-row:last-child {
  border-bottom: 1px solid var(--border);
}

.service-row__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
}

.service-row__icon svg {
  width: 20px;
  height: 20px;
}

.service-row--orange .service-row__icon {
  background: var(--accent-orange);
}

.service-row--blue .service-row__icon {
  background: var(--accent-blue);
}

.service-row--burgundy .service-row__icon {
  background: var(--accent-burgundy);
}

.service-row__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.6rem;
}

.service-row__title {
  max-width: 20ch;
}

.service-row__text {
  color: var(--ink-soft);
  max-width: 42ch;
}

.service-row__list {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--stone);
}

.service-row__list li {
  display: flex;
  gap: 0.6em;
}

.service-row__list li::before {
  content: "\2192";
  color: var(--accent-orange-text);
}

/* ==========================================================================
   Portfolio
   ========================================================================== */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.work-grid--compact {
  grid-template-columns: repeat(2, 1fr);
}

.work-note {
  margin-top: -1.5rem;
  margin-bottom: var(--space-md);
  color: var(--stone);
  max-width: 60ch;
}

.work-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.work-card__link:hover {
  text-decoration: underline;
}

/* Reference-client CTA card */
/* Referenzkunden-Aufruf. Zwillingskarte zur Referenzkarte daneben: gleiche
   Huelle, gleiche Zweiteilung aus Panel und Meta-Zone, gleiche Innenabstaende
   und dieselbe Mono-Typografie in der Beschriftung. */

.work-cta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.work-cta__panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, var(--paper-sunk-top) 0%, var(--paper-sunk-bottom) 100%);
  border-bottom: 1px solid var(--border);
}

.work-cta__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-orange-text);
}

.work-cta__headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.6rem 0 0;
}

.work-cta__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.work-cta__meta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  /* Zeilenlaenge so gewaehlt, dass der Absatz etwa dort endet, wo die
     Ueberschrift im Panel darueber endet. */
  max-width: 58ch;
}

/* Der Aufruf endet wie die Referenzkarte mit einem schlichten Mono-Link statt
   einer Pille. Pfeil nach rechts statt schraeg, weil er auf dieselbe Seite
   springt und nicht nach aussen fuehrt. */
.work-cta__meta .work-card__link {
  margin-top: 1.1rem;
}

.work-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-raised);
  box-shadow: 0 24px 48px rgba(21, 19, 15, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 60px rgba(21, 19, 15, 0.1);
}

/* Device preview: real screenshots in a browser + phone frame */
.device-preview {
  position: relative;
  padding: 1.5rem 1.5rem 2.5rem;
  background: linear-gradient(180deg, var(--paper-sunk-top) 0%, var(--paper-sunk-bottom) 100%);
  border-bottom: 1px solid var(--border);
}

.device-preview__browser {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(21, 19, 15, 0.12);
  background: #fff;
}

.device-preview__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.7rem;
  background: var(--ink);
}

.device-preview__bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stone-light);
}

.device-preview__bar em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(246, 244, 239, 0.55);
  letter-spacing: 0.02em;
}

.device-preview__browser img {
  display: block;
  width: 100%;
  height: auto;
}

.device-preview__phone {
  position: absolute;
  right: 1.5rem;
  bottom: -0.5rem;
  width: 78px;
  height: 152px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 14px 28px rgba(21, 19, 15, 0.22);
  transform: rotate(-3deg);
  transition: transform 0.3s var(--ease);
}

.device-preview__phone::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: rgba(246, 244, 239, 0.5);
  z-index: 2;
}

.device-preview__phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.work-card--shot:hover .device-preview__phone {
  transform: rotate(0deg) translateY(-6px);
}

.work-card__meta {
  padding: 1.1rem 1.25rem 1.4rem;
}

.work-card__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.work-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.work-card__year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--stone);
  margin-top: 0.2rem;
  display: block;
}

/* ==========================================================================
   Referenzkunden-Badge
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-orange);
  color: var(--ink);
  padding: 0.45em 0.85em;
  border-radius: 999px;
}

/* ==========================================================================
   Preise: minimal spec-sheet columns
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.price-col {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(21, 19, 15, 0.06);
}

.price-col--featured {
  border-color: var(--accent-orange);
}

.price-col__name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

.price-col__figure {
  margin-top: var(--space-sm);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.price-col__old {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  text-decoration: line-through;
  color: var(--stone);
}

.price-col__amount {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.price-col__period {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--stone);
}

.price-col__note {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 34ch;
}

.price-col__list {
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.price-col__list li {
  display: flex;
  gap: 0.6em;
}

.price-col__list li::before {
  content: "\2713";
  color: var(--accent-orange-text);
  font-weight: 700;
}

.price-col .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ==========================================================================
   Process
   ========================================================================== */

.process-list {
  display: flex;
  flex-direction: column;
}

.process-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-top: 1px solid var(--border);
  align-items: start;
}

.process-step:last-child {
  border-bottom: 1px solid var(--border);
}

.process-step__num {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-orange-text);
  letter-spacing: 0.05em;
}

.process-step__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.process-step__text {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ==========================================================================
   About
   ========================================================================== */

.about .container {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px);
  gap: var(--space-xl);
  align-items: center;
}

.about-portrait {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
}

.about-portrait .portrait__img {
  width: 100%;
  height: 100%;
  margin-inline: 0;
  border-radius: 24px;
  object-position: 50% 20%;
}

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

.about__signature {
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.about__role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
  display: block;
}

/* ==========================================================================
   Contact
   ========================================================================== */

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

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact h2 {
  color: var(--paper);
}

.contact .eyebrow {
  color: var(--stone-light);
}

.contact .eyebrow::before {
  background: var(--accent-orange);
}

.contact__lede {
  margin-top: var(--space-sm);
  color: rgba(246, 244, 239, 0.7);
  max-width: 40ch;
}

.contact__info {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__info dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-light);
}

.contact__info dd {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
}

.contact__info a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent-orange);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 244, 239, 0.6);
}

.form__field input,
.form__field textarea {
  background: none;
  border: none;
  border-bottom: 1.5px solid rgba(246, 244, 239, 0.3);
  border-radius: 0;
  padding: 0.6rem 0;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: rgba(246, 244, 239, 0.4);
}

.form__field input:focus,
.form__field textarea:focus {
  border-color: var(--accent-orange);
  outline: none;
}

.form button {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.form__error {
  background: rgba(140, 47, 57, 0.18);
  border: 1px solid rgba(140, 47, 57, 0.45);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: rgba(246, 244, 239, 0.9);
}

.form__error a {
  color: var(--accent-orange);
  text-decoration: underline;
}

/* Honeypot gegen Spam-Bots. Fuer Menschen unsichtbar und nicht per Tab
   erreichbar, fuer automatisierte Skripte ein normales Pflichtfeld.
   Kein display:none, weil manche Bots genau darauf pruefen. */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__note {
  display: block;
  margin-top: 0.35rem;
}

.form__privacy,
.contact__note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(246, 244, 239, 0.6);
}

.form__privacy a,
.contact__note a {
  color: var(--accent-orange);
  text-decoration: underline;
}

/* Submit button loading state */

.btn__spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(21, 19, 15, 0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

.btn.is-loading {
  cursor: default;
  opacity: 0.85;
  pointer-events: none;
}

.btn.is-loading .btn__label {
  display: none;
}

.btn.is-loading .btn__spinner {
  display: inline-block;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success state */

.form-wrap {
  position: relative;
}

.form-success {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border: 1px dashed rgba(246, 244, 239, 0.3);
  border-radius: 14px;
}

.form-success h3 {
  margin-top: var(--space-sm);
  color: var(--paper);
}

.form-success p {
  margin-top: 0.6rem;
  color: rgba(246, 244, 239, 0.75);
  max-width: 38ch;
  margin-inline: auto;
}

.success-check {
  margin-inline: auto;
}

.success-check__circle {
  stroke: var(--accent-orange);
  stroke-width: 2;
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  animation: draw-circle 0.5s ease forwards;
}

.success-check__mark {
  stroke: var(--accent-orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: draw-check 0.3s ease forwards 0.45s;
}

@keyframes draw-circle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer .wordmark__chip {
  color: var(--accent-orange);
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--border-dark);
  padding-block: var(--space-lg) var(--space-md);
}

.site-footer .wordmark {
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-lg);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-light);
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: rgba(246, 244, 239, 0.75);
}

.footer-col a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent-orange);
}

.footer-tagline {
  margin-top: var(--space-sm);
  color: rgba(246, 244, 239, 0.65);
  max-width: 32ch;
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(246, 244, 239, 0.5);
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal {
  padding-block: var(--space-lg) var(--space-xl);
}

.legal .container {
  max-width: 780px;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: var(--space-lg);
  margin-bottom: 0.75rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  max-width: 68ch;
}

.legal ul {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 1025px) {
  /* Matches .hero__top's 0.9fr/1.05fr text/video split exactly, so the
     actions/stats bar lines up under the text column instead of
     spanning the full width under the video too. */
  .hero__bottom {
    position: relative;
    max-width: calc((100% - var(--space-xl)) * 0.9 / 1.95);
    margin-top: var(--space-lg);
    padding-top: 0;
    border-top: none;
    justify-content: flex-start;
  }

  /* Positioned outside .hero__bottom's own max-width, centered under the
     video column, at the same height as .hero__actions. left:100% jumps
     from .hero__bottom's own right edge (which lines up exactly with the
     text column's edge) to the start of the grid gap — a plain percentage
     calc here would otherwise resolve against .hero__bottom's own
     (already-narrowed) width instead of the true container width. From
     there, margin-left adds the gap, then half the video column's width
     (58.333% = 50% × 1.05/0.9, the video:text ratio), then subtracts half
     this row's own width (3 × 48px icons + 2 × 0.75rem gaps = 10.5rem) to
     land centered instead of left-aligned. */
  .hero__preview-social {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: calc(var(--space-xl) + 58.333% - 5.25rem);
    gap: 0.75rem;
  }

  /* Matches .btn's rendered height so the icons sit at the same size
     as the actions row next to them. */
  .hero__preview-social .hero-social__link {
    width: 48px;
    height: 48px;
  }

  .section-head {
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
  }

  .section-head .eyebrow {
    justify-content: center;
  }

  .section-head .lede {
    max-width: 60ch;
    margin-inline: auto;
  }

  /* Forced line breaks in the section headlines are a mobile-wrapping
     aid; on desktop the wider .section-head lets them wrap naturally. */
  .section-head__break {
    display: none;
  }

  .work-note {
    max-width: 60ch;
    margin-inline: auto;
    text-align: center;
  }

  /* Referenzen: headline fits on one line (needs more width than the
     shared .section-head cap), and the rhythm around the intro text
     matches .preise — tighter gap above it, wider gap to the cards. */
  #referenzen .section-head {
    max-width: none;
  }

  .section-head__nowrap {
    white-space: nowrap;
  }

  #referenzen .work-note {
    margin-top: -3.5rem;
    margin-bottom: var(--space-lg);
  }

  /* Each service becomes its own card instead of a hairline-divided
     row, to make the individual services stand out more — still
     stacked, just with visible edges. */
  .service-row {
    padding: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--paper-raised);
    box-shadow: 0 20px 40px rgba(21, 19, 15, 0.06);
  }

  .service-row + .service-row {
    margin-top: var(--space-md);
  }

  /* Process timeline: a center spine that fills as you scroll, with
     steps alternating left/right of it. .process-line__fill's height
     is scroll-driven, set in main.js. */
  .process-list {
    position: relative;
  }

  .process-step {
    position: relative;
    display: block;
    width: calc(50% - var(--space-lg));
    padding-block: var(--space-sm);
    border-top: none;
  }

  .process-step:last-child {
    border-bottom: none;
  }

  .process-step:nth-child(odd) {
    margin-right: auto;
    text-align: right;
  }

  .process-step:nth-child(even) {
    margin-left: auto;
    text-align: left;
  }

  .process-step__num {
    display: block;
    margin-bottom: 0.4rem;
  }

  .process-step__text {
    max-width: 40ch;
  }

  .process-step:nth-child(odd) .process-step__text {
    margin-left: auto;
  }

  .process-step::before {
    content: "";
    position: absolute;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--accent-orange);
  }

  .process-step:nth-child(odd)::before {
    right: calc(-1 * var(--space-lg) - 5px);
  }

  .process-step:nth-child(even)::before {
    left: calc(-1 * var(--space-lg) - 5px);
  }

  .process-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
  }

  .process-line__fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--accent-orange);
  }
}

@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Each list turns into its own card, matching .work-card, instead of
     relying on hairline dividers between stacked rows. */
  .compare__col {
    background: rgba(246, 244, 239, 0.05);
    border: 1px solid var(--border-dark);
    border-radius: 14px;
    padding: var(--space-md);
  }

  /* Mobile hero: static, just the left-aligned headline and the
     actions/stats bar below it. The lede paragraph and video preview
     are desktop-only (see .hero__top below). */
  /* Fills exactly the remaining screen below the header, so the hero is
     the only thing visible on load — nothing from the next section peeks
     in. 74px approximates the header's own height (padding + wordmark). */
  .hero-pin-track {
    height: auto;
    min-height: calc(100vh - 74px);
    min-height: calc(100dvh - 74px);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
  }

  .hero-pin {
    position: static;
    flex: 1 1 auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
    padding-block: clamp(0.75rem, 4vw, 1.25rem) clamp(2.5rem, 10vw, 4rem);
  }

  .hero__lede,
  .hero__preview {
    display: none;
  }

  .hero__top {
    display: block;
  }

  .hero__headline--desktop {
    display: none;
  }

  .hero__headline--mobile {
    display: block;
  }

  .hero__headline--mobile em {
    font-style: normal;
    color: var(--accent-orange-text);
  }

  .hero__bottom {
    margin-top: clamp(3rem, 10vw, 4.5rem);
    padding-top: 4rem;
    gap: 2.25rem;
    justify-content: center;
    text-align: center;
  }

  .hero__actions {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.6rem;
  }

  .hero__actions .btn {
    padding: 0.65rem 1.1rem;
    font-size: 0.7rem;
  }

  .hero__meta {
    justify-content: center;
  }

  /* Only the referral price stays visible on mobile, centered on its own. */
  .hero__meta > div:nth-child(2),
  .hero__meta > div:nth-child(3) {
    display: none;
  }

  .hero-social {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    background: var(--paper-raised);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(21, 19, 15, 0.06);
    padding: var(--space-md);
  }

  .service-row + .service-row {
    margin-top: var(--space-sm);
  }

  .about .container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-portrait {
    order: -1;
    margin-inline: auto;
    max-width: 280px;
  }

  .contact .container {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .contact__info,
  .form-wrap {
    background: rgba(246, 244, 239, 0.05);
    border: 1px solid var(--border-dark);
    border-radius: 14px;
    padding: var(--space-md);
  }

  .contact__info {
    margin-top: var(--space-md);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    inset: 0 0 0 30%;
    top: 64px;
    flex-direction: column;
    background: var(--paper);
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-md);
    font-size: 1.1rem;
    transform: translateX(110%);
    transition: transform 0.3s var(--ease);
    border-left: 1px solid var(--border);
  }

  .site-header.nav-open .nav__links {
    transform: translateX(0);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  /* Tighter, phone-appropriate section rhythm instead of the desktop
     9rem block padding — also wins over .problem's own override since
     it's declared later in the cascade at equal specificity. */
  .section {
    padding-block: clamp(2.75rem, 9vw, 4rem);
  }

  .work-grid,
  .work-grid--compact,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    gap: var(--space-md);
  }

  .price-col__amount {
    font-size: 2.8rem;
  }

  .process-step {
    grid-template-columns: 60px 1fr;
    background: var(--paper-raised);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(21, 19, 15, 0.06);
    padding: var(--space-md);
  }

  .process-step + .process-step {
    margin-top: var(--space-sm);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .hero__meta {
    flex-wrap: wrap;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
