/* stlyes */

/* fonts */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../assets/fonts/inter-900.woff2') format('woff2');
}

/* reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-white: #FFFFFF;
  --color-offwhite: #F7F5F2;
  --color-red: #E8453C;
  --color-red-dark: #C73830;
  --color-violet: #9B2FAD;
  --color-violet-dark: #7A2589;
  --color-dark: #1A1A1A;
  --color-gray: #6B6B6B;
  --color-gray-light: #A8A8A8;
  --color-border: #E5E2DE;
  --gradient: linear-gradient(135deg, var(--color-red), var(--color-violet));
  --gradient-hover: linear-gradient(135deg, var(--color-red-dark), var(--color-violet-dark));

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --fs-sm: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  --fs-base: clamp(0.9375rem, 0.875rem + 0.3vw, 1.0625rem);
  --fs-md: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  --fs-xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --fs-hero: clamp(2.5rem, 1.8rem + 4vw, 5.5rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --duration: 0.4s;
  --duration-fast: 0.2s;

  /* Border radius */
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* grain */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url('../assets/grain-texture.svg');
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-lg); }
}

/* util */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

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

/* nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              backdrop-filter var(--duration) var(--ease);
}

.nav--scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .nav__inner { padding: 0 var(--space-lg); }
}

.nav__logo {
  font-size: var(--fs-sm);
  font-weight: 900;
  letter-spacing: 0.15em;
  transition: opacity var(--duration-fast);
}

.nav__logo:hover { opacity: 0.7; }

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

/* sprachtoggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-gray);
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast);
}

.lang-toggle:hover {
  color: var(--color-dark);
}

.lang-toggle__separator {
  opacity: 0.4;
}

.lang-toggle__option {
  transition: color var(--duration-fast);
}

.lang-toggle__option--active {
  color: var(--color-dark);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--fs-sm);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
  letter-spacing: 0.02em;
  border-radius: 100px;
}

.btn--nav {
  padding: 0.5rem 1.25rem;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: var(--fs-xs);
}

.btn--nav:hover {
  background: var(--color-red);
}

.btn--primary {
  padding: 0.875rem 2rem;
  background: var(--gradient);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hover);
  opacity: 0;
  transition: opacity var(--duration-fast);
  border-radius: inherit;
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--primary span,
.btn--primary svg {
  position: relative;
  z-index: 1;
}

/* submit states */
.btn--submit .btn__sending,
.btn--submit .btn__sent {
  display: none;
}

.btn--submit.is-sending .btn__text,
.btn--submit.is-sent .btn__text { display: none; }
.btn--submit.is-sending .btn__sending { display: inline; }
.btn--submit.is-sent .btn__sent { display: inline; }

/* lade animtion */
.btn--submit.is-sending {
  background-image: linear-gradient(
    90deg,
    var(--color-red) 0%,
    var(--color-violet) 30%,
    rgba(255, 255, 255, 0.55) 50%,
    var(--color-violet) 70%,
    var(--color-red) 100%
  );
  background-size: 200% 100%;
  animation: btn-charge-sweep 0.95s linear infinite;
}

@keyframes btn-charge-sweep {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* erfolg puls */
.btn--submit.is-sent {
  animation: btn-success-pulse 0.55s var(--ease);
}

@keyframes btn-success-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(155, 47, 173, 0.18); }
  70%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

/* erfolg box */
.form-success {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
  background: linear-gradient(135deg,
    rgba(232, 69, 60, 0.06),
    rgba(155, 47, 173, 0.06)
  );
  border: 1px solid rgba(155, 47, 173, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 0.6s var(--ease),
              padding 0.6s var(--ease),
              opacity 0.5s var(--ease),
              transform 0.5s var(--ease);
}

.form-success.form-success--in {
  max-height: 200px;
  padding: var(--space-md);
  opacity: 1;
  transform: translateY(0);
}

.form-success__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 50%;
  color: var(--color-white);
}

.form-success.form-success--in .form-success__icon {
  animation: success-pop 0.6s var(--ease) 0.3s both;
}

@keyframes success-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.form-success__title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.25rem !important;
}

.form-success__note {
  font-size: var(--fs-sm);
  color: var(--color-gray) !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

/* hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.hero__sub {
  font-size: var(--fs-md);
  color: var(--color-gray);
  max-width: 540px;
  line-height: 1.6;
  margin: 0 auto var(--space-lg);
}

.hero__cta svg {
  transition: transform var(--duration-fast) var(--ease);
}
.hero__cta:hover svg {
  transform: translateY(3px);
}

/* content oben */
.hero > .container {
  position: relative;
  z-index: 1;
}

/* bg linien */
.hero__bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0.55;
}

.hero__bg-lines svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes bg-line-draw {
  0% {
    stroke-dasharray: 50 800;
    stroke-dashoffset: 800;
    opacity: 0;
  }
  8%  { opacity: 1; }
  72% { opacity: 1; }
  82% {
    stroke-dasharray: 20 800;
    stroke-dashoffset: 0;
    opacity: 0;
  }
  100% {
    stroke-dasharray: 20 800;
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

.bg-line {
  animation: bg-line-draw linear infinite;
  opacity: 0;
}

/* about */
.about {
  padding: var(--space-2xl) 0;
  background: var(--color-offwhite);
  position: relative;
}

.about__label,
.services__label,
.contact__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-sm);
}

.about__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.4;
  max-width: 700px;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.about__text {
  font-size: var(--fs-md);
  max-width: 700px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

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

@media (min-width: 640px) {
  .about__pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  padding: var(--space-md);
}

.pillar__icon {
  color: var(--color-red);
  margin-bottom: var(--space-sm);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 69, 60, 0.08);
  border-radius: var(--radius-sm);
}

.pillar__title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.pillar__text {
  font-size: var(--fs-sm);
  color: var(--color-gray);
  line-height: 1.7;
}

/* hscroll */
.hscroll {
  height: calc(4 * 100vh);
  scroll-snap-align: start;
}

.hscroll__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.hscroll__track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.hscroll__panel {
  flex-shrink: 0;
  width: 100vw;
  height: 100%;
  overflow: hidden;
}

/* about panel */
.hscroll .about {
  height: 100%;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + var(--space-lg)) 0 var(--space-lg);
  scroll-snap-align: none;
}

.hscroll .about .container {
  width: 100%;
}

/* projekte */
.hscroll__panel--project {
  background: var(--color-dark);
  display: flex;
  align-items: center;
}

/* dots */
.hscroll__nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hscroll__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--duration-fast), transform var(--duration-fast);
}

.hscroll__dot--active {
  background: var(--color-red);
  transform: scale(1.5);
}

/* vorschau layout */
.project-preview {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-xl);
  align-items: center;
  width: 100%;
}

.project-preview__info {
  display: flex;
  flex-direction: column;
}

.project-preview__num {
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: -0.75rem;
  user-select: none;
}

.project-preview__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-xs);
}

.project-preview__title {
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.project-preview__desc {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: var(--space-md);
}

.project-preview__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.project-preview__tags li {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

/* einblenden */
.hscroll__panel--project .project-preview__info,
.hscroll__panel--project .project-preview__mockup {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.hscroll__panel--project .project-preview__mockup {
  transition-delay: 0.09s;
}

.hscroll__panel--project.hscroll__panel--visible .project-preview__info,
.hscroll__panel--project.hscroll__panel--visible .project-preview__mockup {
  opacity: 1;
  transform: translateY(0);
}

/* browser */
.project-preview__mockup {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.project-preview__browser {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.project-preview__browser-bar {
  height: 38px;
  background: rgba(40, 40, 40, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  position: relative;
}

.pbb-dots {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  min-width: 44px;
}

.pbb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pbb-close { background: #FF5F57; }
.pbb-min   { background: #FFBD2E; }
.pbb-max   { background: #28C840; }

.pbb-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 3px 12px;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  min-width: 120px;
  text-align: center;
}

.project-preview__browser-screen {
  aspect-ratio: 16 / 10;
  background: rgba(10, 8, 18, 0.98);
  position: relative;
  overflow: hidden;
}

.project-preview__browser-screen--2 {
  background: linear-gradient(135deg,
    rgba(155, 47, 173, 0.2) 0%,
    rgba(232, 69, 60, 0.12) 50%,
    rgba(10, 8, 18, 0.96) 100%
  );
}

.project-preview__browser-screen--3 {
  background: linear-gradient(135deg,
    rgba(200, 53, 104, 0.2) 0%,
    rgba(155, 47, 173, 0.1) 50%,
    rgba(10, 8, 18, 0.96) 100%
  );
}

.project-preview__placeholder-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.08em;
  white-space: nowrap;
  pointer-events: none;
}

/* video */
.pv-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

a.project-preview__mockup {
  display: flex;
  text-decoration: none;
  cursor: pointer;
}

a.project-preview__mockup:hover .project-preview__browser {
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.75);
  transform: translateY(-3px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* services */
.services {
  min-height: 100vh;
  position: relative;
  background: var(--color-white);
  scroll-snap-align: start;
}

.services__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.services__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  width: 100%;
}

/* 3d visual */
.services__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.services__pieces {
  display: flex;
  flex-direction: column;
  gap: 3px;
  transform: perspective(900px) rotateX(14deg) rotateY(-24deg);
  transform-style: preserve-3d;
  width: 100%;
  max-width: 360px;
  padding: 1.5rem;
}

.service-piece {
  position: relative;
  height: 95px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform-style: preserve-3d;
  transform: translateZ(0px);
  transition: transform 0.65s var(--ease-out-expo);
  cursor: pointer;
  overflow: hidden;
}

.service-piece--1 {
  border-radius: 12px 12px 0 0;
  background: linear-gradient(120deg, #E8453C 0%, #C74060 100%);
}

.service-piece--2 {
  background: linear-gradient(120deg, #C15078 0%, #A33898 100%);
}

.service-piece--3 {
  border-radius: 0 0 12px 12px;
  background: linear-gradient(120deg, #9B2FAD 0%, #7A2589 100%);
}

/* aktiv */
.service-piece.is-active {
  transform: translateZ(55px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

/* overlay */
.service-piece::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14, 6, 20, 0);
  transition: background 0.65s var(--ease-out-expo);
  pointer-events: none;
  z-index: 1;
}

.service-piece:not(.is-active)::before {
  background: rgba(14, 6, 20, 0.48);
}

.service-piece__num {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  letter-spacing: -0.04em;
  line-height: 1;
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.service-piece__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  transition: color 0.4s var(--ease);
}

.service-piece.is-active .service-piece__label {
  color: rgba(255, 255, 255, 1);
}

/* optionen */
.services__nav {
  display: flex;
  flex-direction: column;
}

.services__title {
  font-size: var(--fs-xl);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.services__options {
  display: flex;
  flex-direction: column;
}

.service-opt {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: none;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  color: var(--color-dark);
  width: 100%;
  font-size: inherit;
  line-height: inherit;
}

.service-opt:first-child {
  border-top: 1px solid var(--color-border);
}

.service-opt__num {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-gray-light);
  letter-spacing: 0.1em;
  padding-top: 3px;
  min-width: 2em;
  transition: color var(--duration) var(--ease);
  flex-shrink: 0;
}

.service-opt--active .service-opt__num {
  color: var(--color-red);
}

.service-opt__body {
  flex: 1;
}

.service-opt__title {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color var(--duration) var(--ease);
}

.service-opt--active .service-opt__title {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-opt__detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.55s var(--ease-out-expo),
              opacity 0.4s var(--ease),
              margin-top 0.4s var(--ease);
}

.service-opt--active .service-opt__detail {
  max-height: 200px;
  opacity: 1;
  margin-top: var(--space-xs);
}

.service-opt__text {
  font-size: var(--fs-sm);
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.service-opt__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.service-opt__tags li {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--color-gray);
  background: var(--color-offwhite);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
}

.service-opt__arrow {
  color: var(--color-gray-light);
  transition: color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-opt--active .service-opt__arrow {
  color: var(--color-red);
  transform: rotate(90deg);
}

/* kontakt */
.contact {
  padding: var(--space-2xl) 0;
  scroll-snap-align: start;
}

.contact__title {
  font-size: var(--fs-xl);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
}

.contact__cycler {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
  padding-bottom: 0.3em;
  margin-bottom: -0.3em;
}

.contact__cycler__word {
  display: block;
  line-height: 1.1;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact__cycler__word--out {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  pointer-events: none;
}

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

@media (min-width: 768px) {
  .contact__content {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gray);
}

.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: var(--fs-base);
  color: var(--color-dark);
  background: var(--color-offwhite);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  transition: border-color var(--duration-fast),
              box-shadow var(--duration-fast);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(232, 69, 60, 0.1);
}

.form-group input.is-error,
.form-group textarea.is-error {
  border-color: var(--color-red);
  background: rgba(232, 69, 60, 0.03);
}

.btn--submit {
  align-self: flex-start;
  min-width: 200px;
  justify-content: center;
}

/* seite */
.contact__aside {
  padding-top: var(--space-md);
}

@media (min-width: 768px) {
  .contact__aside {
    padding-top: var(--space-xl);
  }
}

.contact__or {
  font-size: var(--fs-sm);
  color: var(--color-gray);
  margin-bottom: var(--space-sm);
}

.email-copy {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color var(--duration-fast),
              background var(--duration-fast);
  width: 100%;
}

.email-copy:hover {
  border-color: var(--color-dark);
  background: var(--color-offwhite);
}

.email-copy__address {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-dark);
  flex: 1;
  text-align: left;
}

.email-copy__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gray);
  transition: color var(--duration-fast);
}

.email-copy:hover .email-copy__label {
  color: var(--color-red);
}

.email-copy__copied {
  display: none;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-red);
}

.email-copy.is-copied .email-copy__label { display: none; }
.email-copy.is-copied .email-copy__copied { display: inline; }

/* footer */
.footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

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

.footer__brand {
  font-size: var(--fs-xs);
  font-weight: 900;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.25rem;
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--color-gray);
}

.footer__right {
  display: flex;
  gap: var(--space-md);
}

.footer__link {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--color-gray);
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--color-dark);
}

/* legal */
.legal-page {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

.legal-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--color-offwhite);
  border-bottom: 1px solid var(--color-border);
}

.legal-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray);
  text-decoration: none;
  margin-bottom: var(--space-md);
  transition: color var(--duration-fast);
}

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

.legal-hero__title {
  font-size: var(--fs-xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.legal-hero__nav {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.legal-hero__nav a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-gray);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--duration-fast), border-color var(--duration-fast);
}

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

.legal-content {
  padding: var(--space-xl) 0;
}

.legal-section {
  max-width: 740px;
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-section__heading {
  font-size: var(--fs-lg);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
}

.legal-block {
  margin-bottom: var(--space-md);
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.legal-block h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.legal-block p {
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-block p:last-child { margin-bottom: 0; }

.legal-block ul {
  list-style: none;
  margin: 0.5rem 0;
}

.legal-block ul li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1.5rem;
  color: var(--color-gray);
  line-height: 1.7;
}

.legal-block ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-red);
  font-weight: 700;
}

.legal-block a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-fast);
}

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

/* responsive */

/* mobil */
@media (max-width: 767px) {
  .hero {
    min-height: 85vh;
    padding-top: calc(var(--nav-height) + var(--space-lg));
  }

  .services {
    height: auto;
    min-height: auto;
  }

  .services__sticky {
    position: relative;
    height: auto;
    padding: var(--space-2xl) 0;
    overflow: visible;
  }

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

  .services__visual {
    order: 2;
  }

  .services__nav {
    order: 1;
  }

  .services__pieces {
    transform: perspective(600px) rotateX(8deg) rotateY(-15deg);
    max-width: 260px;
    margin: 0 auto;
    padding: 1rem;
  }

  .service-piece {
    height: 72px;
  }

  .about__pillars { gap: var(--space-sm); }
  .pillar { padding: var(--space-sm); }

  /* Hscroll mobile */
  .hscroll {
    height: calc(4 * 100svh);
  }
  .hscroll__sticky {
    height: 100svh;
  }
  .hscroll .about {
    padding: calc(var(--nav-height) + var(--space-md)) 0 var(--space-md);
  }
  .project-preview {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .project-preview__mockup {
    display: none;
  }
  .project-preview__num {
    font-size: 4rem;
  }
  .project-preview__title {
    font-size: var(--fs-lg);
  }

}

/* querformat */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--space-lg)) 0 var(--space-lg);
  }
}

/* groß */
@media (min-width: 1400px) {
  :root {
    --max-width: 1300px;
  }
}
