/* Independent Software — angelehnt an professionelle Agentur-Standards */

:root {
  --bg: #f0e6d8;
  --bg-soft: #e5d7c6;
  --ink: #1f1812;
  --muted: #6a5d50;
  --line: #d4c4b2;
  --accent: #9a4f2a;
  --accent-2: #c47a32;
  --accent-3: #6e7f55;
  --surface: #f7efe6;
  --ink-deep: #15110e;
  --font: "Satoshi", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --max: 1240px;
  --header-h: 5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

::selection {
  background: rgba(196, 122, 50, 0.28);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 10% -10%, rgba(196, 122, 50, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(110, 127, 85, 0.12), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

/* Header */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.header.is-scrolled {
  background: rgba(247, 239, 230, 0.9);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  z-index: 2;
  transition: transform 0.35s var(--ease);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.45s var(--ease-spring);
}

.logo:hover img {
  transform: rotate(-6deg) scale(1.06);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:not(.nav-cta):hover {
  color: var(--ink);
}

.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta).is-active::after {
  transform: scaleX(1);
}

.nav a:not(.nav-cta).is-active {
  color: var(--ink);
}

.nav-cta,
.nav-btn {
  color: var(--bg) !important;
  background: var(--ink) !important;
  padding: 0.65rem 1.25rem !important;
  border-radius: 999px;
}

.nav-cta:hover,
.nav-btn:hover {
  opacity: 0.85;
}

.menu-btn {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.4rem auto;
  background: var(--ink);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), opacity 0.2s ease, box-shadow 0.3s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-dark {
  background: var(--ink);
  color: var(--bg);
}

.btn-dark:hover { opacity: 0.92; box-shadow: 0 12px 40px rgba(154, 79, 42, 0.28); }

.btn-glass {
  background: rgba(247, 239, 230, 0.65);
  border: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn-shine:hover::after { transform: translateX(120%); }

/* Cursor glow — desktop only */

.fx-cursor {
  position: fixed;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 122, 50, 0.16), rgba(154, 79, 42, 0.07) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: multiply;
}

.fx-cursor.is-active { opacity: 1; }

.fx-cursor.is-hot {
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  transition: opacity 0.4s ease, width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease);
}

/* Scroll progress */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transform-origin: left;
  pointer-events: none;
}

/* Hero */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) clamp(1.5rem, 5vw, 3rem) 3rem;
  max-width: calc(var(--max) + 6rem);
  margin: 0 auto;
  isolation: isolate;
}

.hero-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orb-drift 14s ease-in-out infinite;
}

.orb-a {
  width: 45%;
  height: 45%;
  top: -5%;
  right: 5%;
  background: rgba(196, 122, 50, 0.28);
}

.orb-b {
  width: 35%;
  height: 35%;
  bottom: 10%;
  left: -5%;
  background: rgba(154, 79, 42, 0.18);
  animation-delay: -5s;
}

.orb-c {
  width: 25%;
  height: 25%;
  top: 40%;
  right: 30%;
  background: rgba(110, 127, 85, 0.2);
  animation-delay: -8s;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, -4%) scale(1.05); }
  66% { transform: translate(-2%, 3%) scale(0.96); }
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-tag {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-brand {
  margin: 0 0 1.25rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-line { display: block; }

.hero h1,
.hero-line--main {
  margin: 0 0 1.35rem;
  font-size: clamp(2.1rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
  max-width: 14ch;
  color: var(--ink);
}

.hero-line--main em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

.hero-usps {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.hero-usps li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  opacity: 0;
  transform: translateX(-12px);
  animation: usp-in 0.7s var(--ease) forwards;
}

.hero-usps li:nth-child(1) { animation-delay: 0.55s; }
.hero-usps li:nth-child(2) { animation-delay: 0.65s; }
.hero-usps li:nth-child(3) { animation-delay: 0.75s; }
.hero-usps li:nth-child(4) { animation-delay: 0.85s; }

@keyframes usp-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-usps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

[data-hero-in] {
  opacity: 0;
  transform: translateY(28px);
  animation: hero-in 0.9s var(--ease) forwards;
}

[data-hero-in]:nth-child(1) { animation-delay: 0.05s; }
[data-hero-in]:nth-child(2) { animation-delay: 0.15s; }
[data-hero-in]:nth-child(3) { animation-delay: 0.25s; }
[data-hero-in]:nth-child(4) { animation-delay: 0.35s; }
[data-hero-in]:nth-child(6) { animation-delay: 0.55s; }
[data-hero-in]:nth-child(7) { animation-delay: 0.65s; }

@keyframes hero-in {
  to { opacity: 1; transform: none; }
}

/* Hero floating previews */

.hero-visual {
  position: relative;
  min-height: 340px;
  perspective: 900px;
}

.float-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-height: 160px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s var(--ease);
  will-change: transform;
}

.float-card--back {
  width: 72%;
  right: 0;
  top: 8%;
  transform: rotateY(-8deg) rotateX(4deg);
  opacity: 0.85;
  animation: float-y 6s ease-in-out infinite;
}

.float-card--main {
  width: 82%;
  left: 0;
  bottom: 0;
  transform: rotateY(6deg) rotateX(-3deg);
  animation: float-y 5s ease-in-out infinite reverse;
}

.float-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  animation: shine-sweep 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float-y {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes shine-sweep {
  0%, 100% { opacity: 0; transform: translateX(-30%); }
  50% { opacity: 1; transform: translateX(30%); }
}

/* Marquee */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink-deep);
  color: #f7efe6;
  padding: 0.85rem 0;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  will-change: transform;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.85;
  flex-shrink: 0;
}

.marquee-track span::before {
  content: "◆";
  margin-right: 3rem;
  opacity: 0.35;
  font-size: 0.5rem;
  vertical-align: middle;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* Stats — wie sitegeist Kennzahlen */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 4rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats > div {
  padding: 2rem 1.5rem 2rem 0;
  border-right: 1px solid var(--line);
}

.stats > div:last-child { border-right: none; }

.stats dt {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stats dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
  max-width: 12rem;
}

/* Section headers */

.block-head {
  max-width: var(--max);
  margin: 0 auto 3rem;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.block-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.block-head p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.6;
}

/* Projects — Karten wie sitegeist Referenzen */

.projects {
  padding: clamp(5rem, 12vw, 8rem) 0;
  background: var(--bg-soft);
}

.project-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
  will-change: transform;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.project-card:hover::before { opacity: 1; }

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(154, 79, 42, 0.14);
  border-color: transparent;
}

.project-card-visual {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.device-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
}

.device-dots {
  display: flex;
  gap: 0.25rem;
}

.device-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
}

.device-dots i:nth-child(1) { background: #ff5f57; }
.device-dots i:nth-child(2) { background: #febc2e; }
.device-dots i:nth-child(3) { background: #28c840; }

.card-preview-body {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.card-preview-body strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.preview-arch {
  background: linear-gradient(160deg, #f5f0e8, #d4c8b8);
  color: #2a2520;
}

.preview-consult {
  background: linear-gradient(160deg, #f3ebe0, #d4c0a8);
  color: #2a2218;
}

.preview-tech {
  background: linear-gradient(160deg, #2a1c14, #6b3a22);
  color: #fff;
}

.preview-tech .device-bar {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.project-card-text {
  padding: 1.35rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-text h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.project-card-text p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.project-link {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  align-self: flex-start;
  padding-bottom: 2px;
}

/* Services */

.services {
  padding: clamp(5rem, 12vw, 8rem) clamp(1.5rem, 5vw, 3rem);
  max-width: var(--max);
  margin: 0 auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.service-grid article {
  padding: 2rem 2rem 2.25rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.25s ease;
}

.service-grid article:nth-child(2n) { border-right: none; }
.service-grid article:nth-last-child(-n+2) { border-bottom: none; }

.service-grid article:hover {
  background: var(--bg-soft);
}

.service-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 28rem;
}

.services-disclaimer {
  margin: 2rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.services-disclaimer strong { color: var(--ink); }

/* Promise / Festpreis */

.promise {
  padding: clamp(5rem, 12vw, 8rem) clamp(1.5rem, 5vw, 3rem);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.promise-grid article {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem 1.75rem 2rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.promise-grid article:hover {
  border-color: rgba(154, 79, 42, 0.3);
  box-shadow: 0 16px 40px rgba(154, 79, 42, 0.1);
}

.promise-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.promise-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA band */

.cta-band {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-deep);
  color: #f7efe6;
}

.cta-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Product */

.product {
  padding: clamp(4rem, 10vw, 6rem) clamp(1.5rem, 5vw, 3rem);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.product-grid {
  max-width: 40rem;
}

.product-card {
  display: block;
  padding: 1.75rem 1.75rem 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}

.product-card:hover {
  border-color: rgba(154, 79, 42, 0.35);
  box-shadow: 0 16px 40px rgba(154, 79, 42, 0.1);
  transform: translateY(-2px);
}

.product-domain {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.product-card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.product-card:hover .product-link {
  letter-spacing: 0.08em;
}

.product-link {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  transition: letter-spacing 0.3s var(--ease);
}

/* Process */

.process {
  padding: clamp(5rem, 12vw, 8rem) clamp(1.5rem, 5vw, 3rem);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.process-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.process-item {
  border-bottom: 1px solid var(--line);
}

.process-toggle {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.35rem 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.process-toggle:hover .process-title {
  color: var(--accent);
}

.process-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.process-title {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
  transition: color 0.2s ease;
}

.process-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  margin-right: 0.25rem;
}

.process-detail {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 0 0 4rem;
  opacity: 0;
  transition: grid-template-rows 0.4s var(--ease), opacity 0.35s ease, padding 0.35s ease;
}

.process-detail > p {
  overflow: hidden;
  margin: 0;
  max-width: 36rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.process-detail.is-open {
  grid-template-rows: 1fr;
  padding: 0 0 1.5rem 4rem;
  opacity: 1;
}

.process-item.is-open .process-toggle .process-num {
  color: var(--accent);
}

.process-item.is-open .process-chevron {
  transform: rotate(180deg);
}

/* Contact — sitegeist-style Person + Formular */

.contact {
  position: relative;
  padding: clamp(5rem, 12vw, 8rem) clamp(1.5rem, 5vw, 3rem);
  background: var(--ink-deep);
  color: #f7efe6;
  overflow: hidden;
}

.contact-fx {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(196, 122, 50, 0.28), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(154, 79, 42, 0.22), transparent 40%);
  animation: contact-pulse 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes contact-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.contact-grid {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.contact-person h2 {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.person-name {
  margin: 0 0 0.15rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.person-role {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.contact-note {
  margin: 0 0 1.75rem;
  max-width: 22rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.contact-detail {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.25rem;
}

.contact-detail span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
}

.contact-detail a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  width: fit-content;
}

.contact-detail a:hover {
  border-bottom-color: #fff;
}

.contact-form {
  background: var(--surface);
  color: var(--ink);
  padding: 2rem;
  border-radius: 4px;
}

.form-intro {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-row label { margin-bottom: 0; }

.contact-form label span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.label-optional {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
}

.form-consent {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem !important;
}

.contact-form .form-consent input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  margin: 0.2rem 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-consent span {
  display: block;
  flex: 1;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.45;
  color: var(--muted) !important;
}

.form-consent a {
  color: var(--ink);
  text-decoration: underline;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  background: var(--bg);
  outline: none;
  resize: vertical;
  font-size: 16px;
  line-height: 1.45;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
}

.contact-form .btn-dark {
  margin-top: 0.5rem;
  width: 100%;
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-note.is-error { color: #dc2626; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.5rem, 5vw, 3rem);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  flex: 1;
}

.footer nav a {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.footer nav a:hover { color: var(--ink); }

.footer p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal][data-stagger] {
  opacity: 1;
  transform: none;
}

[data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--stagger, 0ms);
}

[data-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

.service-grid article {
  position: relative;
  overflow: hidden;
}

.service-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196,122,50,0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-grid article:hover::after { opacity: 1; }

/* Legal pages */

.legal-page {
  max-width: 44rem;
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) clamp(1.5rem, 5vw, 3rem) 4rem;
}

.legal-page h1 {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.legal-note { color: var(--muted); margin-bottom: 1.5rem; }

.legal-page section {
  margin: 1.5rem 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.legal-page h2 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.legal-page p { color: var(--muted); }
.legal-page a { color: var(--ink); text-decoration: underline; }

/* Responsive */

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 280px;
    max-width: 24rem;
    margin: 0 auto;
  }

  .fx-cursor { display: none !important; }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats > div:nth-child(2) { border-right: none; }
  .stats > div:nth-child(1),
  .stats > div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .project-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .menu-btn { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
  }

  .nav a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta,
  .nav-btn {
    background: transparent !important;
    color: var(--ink) !important;
    padding: 0 !important;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stats > div {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 0;
  }

  .stats > div:last-child { border-bottom: none; }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article {
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .service-grid article:last-child { border-bottom: none !important; }

  .process-detail,
  .process-detail.is-open {
    padding-left: 0;
  }

  .form-row { grid-template-columns: 1fr; }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .orb,
  .float-card,
  .float-card-shine,
  .contact-fx {
    animation: none !important;
  }

  /* Marquee bewusst aktiv — nicht mit den Deko-Animationen abschalten */
  .marquee-track {
    animation: marquee 28s linear infinite !important;
  }

  .float-card--back,
  .float-card--main {
    transform: none;
  }

  .hero-visual {
    min-height: 220px;
  }
}

@media (pointer: coarse) {
  .fx-cursor { display: none !important; }

  .orb,
  .float-card,
  .float-card-shine {
    animation: none !important;
  }

  .marquee-track {
    animation: marquee 28s linear infinite !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .fx-cursor,
  .orb,
  .marquee-track,
  .float-card,
  .float-card-shine,
  .contact-fx { animation: none !important; }

  [data-hero-in] {
    opacity: 1;
    transform: none;
    animation: none;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-usps li {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .scroll-progress {
    display: none;
  }

  .process-detail {
    transition: none !important;
  }
}
