/**
 * Hegauwerk – Designsystem
 * Keine externen Fonts. System-UI-Stack.
 */

:root {
  --bg-base: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #000000;
  --text-secondary: #212121;
  --border: #d9d9dd;
  --accent-blue: #1863dc;
  --accent-violet: #5c3a7f;
  --accent-blue-soft: #f4f7ff;
  --accent-violet-soft: #f5f0fa;
  --surface-muted: #fafafa;
  --surface-canvas: #ffffff;
  --surface-slab: #fafafa;
  --code-bg: #05080f;
  --code-text: #e8eaef;
  --success: #22c55e;
  --shadow-sm: none;
  --shadow-md: 0 16px 48px rgba(8, 13, 22, 0.09);
  --shadow-lg: 0 28px 72px rgba(8, 13, 22, 0.12);
  --shadow-code: 0 36px 96px rgba(3, 6, 12, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.07) inset, 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-card: none;
  --shadow-card-hover: none;
  --border-card: 1px solid #f2f2f2;
  --pad-card-y: clamp(2rem, 2.8vw, 2.4rem);
  --pad-card-x: clamp(1.75rem, 2.5vw, 2.25rem);
  --radius-card: 22px;
  --radius-btn: 999px;
  --radius-panel: 22px;
  --max-w: 1200px;
  --pad-x-desktop: clamp(28px, 4vw, 40px);
  --pad-x-mobile: clamp(18px, 4vw, 20px);
  --section-y-desktop: clamp(104px, 11vw, 132px);
  --section-y-tablet: clamp(80px, 9vw, 100px);
  --section-y-mobile: clamp(60px, 10vw, 76px);
  --font: "Inter", "Arial", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  --font-mono: "Cascadia Code", "Consolas", "Courier New", monospace;
  --header-h: 80px;
  --transition: 0.22s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #3d66e6;
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  left: var(--pad-x-mobile);
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x-desktop);
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: #d9d9dd;
  box-shadow: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x-desktop);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0;
  padding-block: 2px;
}

.logo:hover {
  color: var(--text-primary);
}

.logo__icon {
  flex-shrink: 0;
  opacity: 0.92;
}

.logo__image {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(54vw, 230px);
  object-fit: contain;
}

.logo__text {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-feature-settings: "ss01" on;
  letter-spacing: inherit;
}

/* Wortmarke: Hegau = geerdet klar, werk = präziser – ohne Farbspaltung */
.logo__hegau {
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text-primary);
}

.logo__werk {
  font-weight: 800;
  letter-spacing: -0.048em;
  color: #070b14;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-desktop a {
  color: #17171c;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.nav-desktop a:hover {
  color: var(--text-primary);
  border-bottom-color: rgba(79, 124, 255, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.45rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.site-header .btn--primary {
  min-height: 46px;
  padding: 0 1.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: none;
}

.btn--primary {
  background: #17171c;
  color: #fff;
  box-shadow: none;
}

.btn--primary:hover {
  background: #000;
  color: #fff;
  box-shadow: none;
}

.btn--secondary {
  background: transparent;
  color: #000;
  border: 1px solid transparent;
  box-shadow: none;
}

.btn--secondary:hover {
  border-color: transparent;
  color: var(--accent-blue);
  opacity: 0.82;
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle__bars span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(247, 248, 252, 0.97);
  backdrop-filter: blur(10px);
  padding: 1.5rem var(--pad-x-mobile);
  z-index: 899;
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.mobile-nav .btn {
  margin-top: 1rem;
  width: 100%;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: clamp(78vh, 86vh, 92vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + clamp(1.25rem, 3vh, 2.5rem)) 0 clamp(2.5rem, 5vh, 4rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 40% 20%, rgba(255, 255, 255, 0.7), transparent 55%);
  pointer-events: none;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 55% 65%, rgba(124, 92, 255, 0.04), transparent 38%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(180, 192, 214, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 192, 214, 0.45) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 70%, transparent 100%);
}

.hero__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  isolation: isolate;
}

.hero__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__content {
  max-width: 36rem;
  padding-right: clamp(0.75rem, 2.5vw, 2rem);
  align-self: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #93939f;
  background: transparent;
  border: 1px solid #e5e7eb;
  box-shadow: none;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #93939f;
  box-shadow: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 400;
  margin: 0 0 1.7rem;
  color: #070b14;
  text-wrap: balance;
  max-width: 15em;
}

.hero__h1-br {
  display: none;
}

@media (min-width: 640px) {
  .hero__h1-br {
    display: block;
  }
}

.hero__lead {
  font-size: clamp(1.0625rem, 0.35vw + 1rem, 1.125rem);
  color: var(--text-secondary);
  margin: 0 0 2.15rem;
  max-width: 35rem;
  line-height: 1.64;
}

.hero .btn {
  min-height: 54px;
  padding: 0 1.7rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero .btn--secondary {
  border-color: rgba(200, 210, 228, 0.95);
  box-shadow: 0 2px 12px rgba(8, 13, 22, 0.04);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px 16px;
  margin-bottom: 1.65rem;
}

.hero__meta {
  margin: 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid rgba(180, 192, 214, 0.5);
  max-width: 35rem;
}

.hero__meta-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7c8aa0;
  margin-bottom: 12px;
}

.hero__meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4a5d75;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.hero__meta-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__meta-list li:not(:last-child)::after {
  content: "·";
  margin-left: 9px;
  margin-right: 2px;
  color: #b8c4d4;
  font-weight: 500;
}

/* Hero visual / code panel */
.hero__visual {
  position: relative;
  z-index: 0;
  min-height: clamp(380px, 54vh, 560px);
  padding: 1rem 0.5rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  isolation: isolate;
}

.hero__status {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(71, 85, 105, 0.92);
  pointer-events: none;
}

.hero__status--tl {
  top: 4%;
  left: 0;
}

.hero__status--tr {
  top: 22%;
  right: 2%;
}

.hero__status--bl {
  bottom: 8%;
  left: 4%;
}

.hero__status-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(210, 220, 235, 0.95);
  box-shadow: 0 6px 24px rgba(8, 13, 22, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: hero-chip-float 8s ease-in-out infinite;
  letter-spacing: 0.01em;
}

.hero__status--tl .hero__status-item:nth-child(2) {
  animation-delay: -2s;
}

.hero__status--tr .hero__status-item {
  animation-delay: -3.5s;
}

.hero__status--bl .hero__status-item {
  animation-delay: -1.2s;
}

@keyframes hero-chip-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__status-item {
    animation: none;
  }
}

.hero__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__status-dot--ok {
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.hero__status-dot--idle {
  background: #94a3b8;
  opacity: 0.7;
}

#hero-code-panel {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 580px;
  margin-inline: 0 0;
  margin-left: auto;
  border-radius: calc(var(--radius-panel) + 2px);
  background: linear-gradient(168deg, #101722 0%, var(--code-bg) 40%, #020509 100%);
  box-shadow: var(--shadow-code);
  overflow: hidden;
}

#hero-code-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.hero-code__chrome {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(14, 18, 28, 0.98) 0%, rgba(6, 9, 14, 0.92) 100%);
}

.hero-code__dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.hero-code__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.hero-code__dots span:nth-child(1) {
  background: #ff5f57;
}

.hero-code__dots span:nth-child(2) {
  background: #febc2e;
}

.hero-code__dots span:nth-child(3) {
  background: #28c840;
}

.hero-code__title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 0.65625rem;
  font-weight: 800;
  color: rgba(200, 210, 225, 0.52);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.hero-snippet-view {
  position: relative;
  padding: 24px 24px 28px;
  min-height: clamp(308px, 39vh, 412px);
  max-height: 432px;
  overflow: hidden;
  /* Undurchsichtige Basis verhindert, dass Hero-Grid/Glow „durchscheint“ */
  background-color: #05080f;
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -10%, rgba(79, 124, 255, 0.085), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 28%);
}

.hero-snippet-view pre {
  margin: 0;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: clamp(0.74rem, 0.38vw + 0.68rem, 0.90625rem);
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--code-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.hero-snippet-view code {
  display: block;
}

#hero-code-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--accent-blue);
  animation: hero-cursor-blink 1.1s step-end infinite;
}

.hero-snippet-view.has-cursor #hero-code-cursor {
  animation: hero-cursor-blink 1.1s step-end infinite;
}

@keyframes hero-cursor-blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero-code-cursor {
    animation: none;
    opacity: 1;
  }
}

.hero-snippet-view.is-changing {
  opacity: 0.35;
  transition: opacity 0.35s ease;
}

/* Syntax (hero code) – harmonisiert, ruhig lesbar */
.code-keyword {
  color: #c7b8fc;
}

.code-class {
  color: #7db3fc;
}

.code-method {
  color: #7ee0a8;
}

.code-string {
  color: #f5d78a;
}

.code-comment {
  color: #6b7c94;
  font-style: italic;
}

.code-punct {
  color: #8a9bb0;
}

.code-default {
  color: #e8ecf1;
}

.hero-code--mobile-static .hero-snippet-view {
  min-height: auto;
  max-height: none;
}

/* —— Sections generic —— */
.section {
  padding-block: var(--section-y-desktop);
}

.section--alt {
  background: #fafafa;
  border-block: 1px solid #d9d9dd;
}

.section--canvas {
  background: var(--surface-canvas);
  border-block: 1px solid #e5e7eb;
  box-shadow: none;
}

.section--slate {
  background: #fafafa;
  border-block: 1px solid #e5e7eb;
}

.section--contrast {
  background: linear-gradient(165deg, #2b183a 0%, #1b1930 48%, #17171c 100%);
  border-block: 1px solid #312a43;
}

.section__head {
  max-width: 42rem;
  margin-bottom: clamp(2.75rem, 5vw, 4rem);
}

.section__head.center {
  text-align: center;
  margin-inline: auto;
  max-width: 44rem;
}

.section__eyebrow {
  font-size: 0.875rem;
  font-family: var(--font-mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #93939f;
  margin: 0 0 0.85rem;
}

.section h2 {
  font-size: clamp(2rem, 2.8vw + 1rem, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 1.05rem;
  line-height: 1.14;
  color: #070b14;
}

.section__intro {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.section--contrast .section__eyebrow,
.section--contrast h2,
.section--contrast .section__intro {
  color: #fff;
}

/* Leistungen grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.35rem, 2.5vw, 2rem);
}

.card {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-card);
  padding: var(--pad-card-y) var(--pad-card-x);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: #d9d9dd;
}

@media (prefers-reduced-motion: reduce) {
  .card:hover,
  .case:hover,
  .fit-card:hover,
  .step:hover {
    transform: none;
  }
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--accent-blue-soft);
  color: var(--accent-blue);
  box-shadow: 0 4px 14px rgba(79, 124, 255, 0.12);
}

.card:nth-child(3n + 2) .card__icon {
  background: var(--accent-violet-soft);
  color: var(--accent-violet);
}

.card:nth-child(3n + 3) .card__icon {
  background: #ecfdf5;
  color: #059669;
}

.card h3 {
  font-size: 1.1875rem;
  font-weight: 800;
  margin: 0 0 0.8rem;
  letter-spacing: -0.021em;
  line-height: 1.2;
  color: #070b14;
}

.card p {
  margin: 0;
  font-size: 0.96875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* System / case modules */
.grid-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.case {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-card);
  padding: 0;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.case:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 124, 255, 0.22);
  box-shadow: var(--shadow-card-hover);
}

.case--module {
  border-radius: var(--radius-card);
  min-height: 520px;
}

.case--module:nth-child(1) {
  border-left: 4px solid var(--accent-blue);
  background: linear-gradient(135deg, #fafcff 0%, #fff 55%);
}

.case--module:nth-child(2) {
  border-left: 4px solid var(--accent-violet);
  background: linear-gradient(135deg, #fcfbff 0%, #fff 55%);
}

.case--module:nth-child(3) {
  border-left: 4px solid #0d9488;
  background: linear-gradient(135deg, #f6fcfb 0%, #fff 55%);
}

.case__inner {
  padding: var(--pad-card-y) var(--pad-card-x) calc(var(--pad-card-y) * 0.92);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case__cat {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-blue);
  margin: 0 0 0.75rem;
}

.case--module:nth-child(2) .case__cat {
  color: var(--accent-violet);
}

.case--module:nth-child(3) .case__cat {
  color: #0f766e;
}

.case h3 {
  font-size: clamp(1.45rem, 1.8vw, 1.7rem);
  font-weight: 800;
  margin: 0 0 0.55rem;
  letter-spacing: -0.032em;
  line-height: 1.12;
  color: #070b14;
}

.case__tagline {
  font-size: 0.96875rem;
  font-weight: 600;
  color: #334155;
  margin: 0 0 1.25rem;
  line-height: 1.55;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(210, 220, 235, 0.9);
}

.case__body p {
  margin: 0 0 0.95rem;
  font-size: 0.96875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.case__body p:last-child {
  margin-bottom: 0;
}

.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.4rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid rgba(210, 220, 235, 0.75);
  list-style: none;
}

.case__tags li {
  font-size: 0.71875rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  color: #3d4f63;
  border: 1px solid rgba(215, 224, 238, 0.95);
  letter-spacing: 0.01em;
}

.case .btn {
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 0;
  min-height: 48px;
  padding: 0 1.4rem;
  font-weight: 700;
}

/* Sektion: Passende Projekte */
.fit-section {
  background: linear-gradient(180deg, #fff 0%, #f2f5fb 50%, #eef2f9 100%);
  border-block: 1px solid rgba(220, 227, 239, 0.75);
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.2vw, 1.65rem);
}

.fit-card {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-card);
  padding: calc(var(--pad-card-y) * 0.78) calc(var(--pad-card-x) * 0.88);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.fit-card:hover {
  transform: translateY(-2px);
  border-color: #d9d9dd;
  box-shadow: var(--shadow-card-hover);
}

.fit-card h3 {
  font-size: 1.03125rem;
  font-weight: 800;
  margin: 0 0 0.55rem;
  letter-spacing: -0.021em;
  line-height: 1.22;
  color: #070b14;
}

.fit-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.62;
}

/* System visual mockups */
.system-mockups {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mockup {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(23, 23, 28, 0.05);
}

.mockup__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #17171c;
}

.ui-content,
.ui-automation {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
}

.ui-content__sidebar,
.ui-job-list {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0.75rem;
  background: #fafafa;
}

.ui-content__sidebar p,
.ui-job-list p,
.ui-log p {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: #93939f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ui-content__sidebar ul,
.ui-job-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
}

.ui-content__main,
.ui-compare,
.ui-lead,
.ui-log,
.ui-admin {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0.75rem;
  background: #fff;
}

.ui-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
}

.ui-toolbar button {
  border: 1px solid #d9d9dd;
  border-radius: 999px;
  background: #fff;
  color: #212121;
  font-size: 0.74rem;
  padding: 0.2rem 0.6rem;
}

.ui-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.ui-list li,
.ui-job-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.ui-badge {
  border: 1px solid #d9d9dd;
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  font-size: 0.68rem;
  color: #212121;
  background: #fafafa;
}

.ui-badge--ok {
  border-color: #c9ddd0;
}

.ui-compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.ui-compare th,
.ui-compare td {
  text-align: left;
  padding: 0.35rem 0.2rem;
  border-bottom: 1px solid #f2f2f2;
}

.ui-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.ui-steps span {
  border: 1px solid #d9d9dd;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  color: #93939f;
}

.ui-steps .is-active {
  color: #17171c;
  border-color: #17171c;
}

.ui-form-grid {
  display: grid;
  gap: 0.45rem;
}

.ui-form-grid label {
  display: block;
  font-size: 0.68rem;
  color: #93939f;
  margin-bottom: 0.2rem;
}

.ui-field {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.4rem 0.5rem;
  font-size: 0.76rem;
  color: #212121;
  background: #fafafa;
}

.ui-log pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.5;
  color: #17171c;
}

.ui-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9d9dd;
  flex-shrink: 0;
}

.ui-dot--ok {
  background: #59a66d;
}

.ui-dot--warn {
  background: #b28d3a;
}

.ui-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.ui-kpis div {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.45rem;
  background: #fafafa;
}

.ui-kpis span {
  display: block;
  font-size: 0.68rem;
  color: #93939f;
}

.ui-kpis strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: #17171c;
}

.ui-admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ui-admin-nav span {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  color: #212121;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.35rem, 2.6vw, 1.85rem);
  position: relative;
}

@media (min-width: 1025px) {
  .steps::before {
    content: "";
    position: absolute;
    left: 5%;
    right: 5%;
    top: 2.65rem;
    height: 2px;
    background: linear-gradient(90deg, transparent 2%, rgba(79, 124, 255, 0.22) 22%, rgba(124, 92, 255, 0.2) 78%, transparent 98%);
    z-index: 0;
    pointer-events: none;
    border-radius: 2px;
  }
}

.step {
  position: relative;
  z-index: 1;
  padding: calc(var(--pad-card-y) * 0.92) calc(var(--pad-card-x) * 0.95);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: var(--border-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: #d9d9dd;
}

.step__num {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(148deg, var(--accent-blue-soft) 0%, #d8e4ff 100%);
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  box-shadow: 0 4px 14px rgba(79, 124, 255, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 0 0.8rem;
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: #070b14;
}

.step p {
  margin: 0;
  font-size: 0.96875rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

/* Compare */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 2.35rem);
  align-items: stretch;
}

.compare__col {
  border-radius: var(--radius-card);
  padding: clamp(2.15rem, 4.2vw, 2.9rem);
  border: var(--border-card);
}

.compare__col--left {
  background: linear-gradient(180deg, #e2e7f0 0%, #eef1f7 100%);
  border-style: dashed;
  border-color: rgba(130, 145, 168, 0.42);
  box-shadow: 0 4px 20px rgba(8, 13, 22, 0.035) inset;
}

.compare__col--right {
  background: linear-gradient(152deg, #dfe8ff 0%, #f0f3ff 38%, #fff 100%);
  border: 1px solid rgba(79, 124, 255, 0.32);
  box-shadow: var(--shadow-card-hover), 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

.compare__col h3 {
  margin: 0 0 1.65rem;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.026em;
  line-height: 1.18;
  color: #070b14;
}

.compare__col--left h3 {
  color: #334155;
}

.compare__col--right h3 {
  color: #0c1222;
}

.compare ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare li {
  position: relative;
  padding-left: 1.55rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.58;
}

.compare li:last-child {
  margin-bottom: 0;
}

.compare li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.compare__col--left li::before {
  background: #94a3b8;
}

.compare__col--right li::before {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Tech stack */
.tech-stack {
  max-width: 72rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

@media (max-width: 900px) {
  .tech-stack {
    grid-template-columns: 1fr;
  }
}

.tech-group {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 2.6vw, 2.25rem) clamp(1.75rem, 2.8vw, 2.3rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.tech-group:hover {
  border-color: rgba(79, 124, 255, 0.16);
  box-shadow: var(--shadow-card-hover);
}

@media (prefers-reduced-motion: reduce) {
  .tech-group:hover {
    box-shadow: var(--shadow-card);
    border-color: inherit;
  }
}

.tech-group__label {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #5c6b82;
  margin: 0 0 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(210, 220, 235, 0.9);
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 12px;
  list-style: none;
  margin: 0;
  padding-top: 0.35rem;
  padding: 0;
  align-content: flex-start;
}

.tech-pills > li {
  margin: 0;
  padding: 0;
}

.tech-pill {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid rgba(215, 224, 238, 0.95);
  color: #2d3d4f;
  letter-spacing: -0.01em;
}

.tech-group--fe .tech-pill {
  background: var(--accent-blue-soft);
  border-color: rgba(79, 124, 255, 0.22);
  color: #1e3a8a;
}

.tech-group--sys .tech-pill {
  background: var(--accent-violet-soft);
  border-color: rgba(124, 92, 255, 0.22);
  color: #5b21b6;
}

.tech-group--ops .tech-pill {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.25);
  color: #065f46;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: clamp(3.5rem, 9.5vw, 5.85rem) clamp(2.25rem, 5.5vw, 3.75rem);
  border-radius: var(--radius-panel);
  background: linear-gradient(170deg, #2a1b3d 0%, #201d35 58%, #17171c 100%);
  border: 1px solid #41335c;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: radial-gradient(circle at 28% 18%, rgba(155, 96, 170, 0.26), transparent 42%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw + 1rem, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  margin: 0 0 1.25rem;
  line-height: 1.1;
  color: #fff;
}

.cta-band p {
  margin: 0 auto 2.15rem;
  max-width: 33rem;
  color: #d5d6de;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.65;
}

.cta-band .btn--secondary {
  color: #fff;
}

.cta-band__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.cta-band__btns .btn {
  min-height: 54px;
  padding: 0 1.75rem;
  font-size: 1rem;
  font-weight: 700;
}

/* Footer */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0a0e18 0%, #060912 55%, #04060d 100%);
  color: #e2e8f0;
  padding: clamp(4.5rem, 8.5vw, 5.75rem) 0 2.5rem;
  margin-top: var(--section-y-desktop);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(79, 124, 255, 0.55), rgba(124, 92, 255, 0.45), transparent);
  opacity: 0.9;
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr 0.95fr 1.05fr;
  gap: clamp(2.25rem, 5.5vw, 3.25rem);
  padding-bottom: 3.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.site-footer__brand {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  font-size: 1.3125rem;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  line-height: 1.2;
}

.site-footer__brand .logo__hegau {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #cbd5e1;
}

.site-footer__brand .logo__werk {
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #fff;
}

.site-footer__desc {
  margin: 0;
  font-size: 0.96875rem;
  line-height: 1.72;
  color: #a8b4c4;
  max-width: 23rem;
}

.site-footer h4 {
  font-size: 0.65625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #7b8a9e;
  margin: 0 0 1.35rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.65rem;
}

.site-footer li:last-child {
  margin-bottom: 0;
}

.site-footer li a {
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.site-footer__bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #7c8a9e;
  letter-spacing: 0.015em;
}

/* Cookie banner & modal */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9500;
  padding: 0 max(18px, env(safe-area-inset-left)) max(22px, calc(12px + env(safe-area-inset-bottom))) max(18px, env(safe-area-inset-right));
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  background: transparent;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner__inner {
  max-width: min(var(--max-w), calc(100vw - 36px));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  border: 1px solid rgba(200, 212, 230, 0.95);
  border-radius: calc(var(--radius-panel) - 2px);
  box-shadow:
    0 8px 40px rgba(8, 13, 22, 0.1),
    0 24px 56px rgba(8, 13, 22, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.88) inset;
  padding: 1.5rem 1.65rem 1.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  flex: 1;
  min-width: min(100%, 280px);
}

.cookie-banner__text strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.cookie-banner__text p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.62;
  max-width: 52rem;
}

.cookie-banner__text a {
  font-weight: 600;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-banner__actions .btn {
  min-height: 46px;
  padding-inline: 1.15rem;
}

.cookie-banner__actions .btn--primary {
  box-shadow: 0 4px 16px rgba(79, 124, 255, 0.28);
}

.cookie-modal[hidden] {
  display: none !important;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9600;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cookie-modal__dialog {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  padding: 2rem 1.85rem;
}

.cookie-modal__dialog h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cookie-modal__dialog > p {
  margin: 0 0 1.35rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cookie-cat {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.75rem;
  background: var(--surface-muted);
}


.cookie-cat__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-cat h3 {
  margin: 0;
  font-size: 0.9375rem;
}

.cookie-cat p {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.cookie-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__ui {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.cookie-toggle__ui::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.cookie-toggle input:checked + .cookie-toggle__ui {
  background: var(--accent-blue);
}

.cookie-toggle input:checked + .cookie-toggle__ui::after {
  transform: translateX(18px);
}

.cookie-toggle input:disabled + .cookie-toggle__ui {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* Contact page */
.contact-hero {
  padding: clamp(1.1rem, 2.2vw, 1.75rem) 0 clamp(2rem, 4vw, 2.8rem);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-muted) 0%, var(--bg-base) 55%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  grid-template-areas:
    "intro form"
    "content form";
  gap: 40px;
  align-items: start;
}

.contact-intro {
  grid-area: intro;
  max-width: 500px;
}

.contact-intro h1 {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}

.contact-hero__lead {
  margin: 0;
  max-width: 420px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
}

.contact-form-column {
  grid-area: form;
  position: relative;
}

.contact-form-wrap.contact-form-wrap--focus {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  box-shadow: 0 16px 42px rgba(8, 13, 22, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.contact-form-column .contact-form-wrap--focus {
  position: sticky;
  top: 110px;
}

.contact-form__submit {
  height: 42px;
  min-height: 42px;
  width: 100%;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 999px;
}

.contact-below {
  margin-top: 40px;
  padding-block: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-below__block {
  max-width: 52rem;
  padding: 20px;
}

.contact-below__muted {
  margin: 0.75rem 0 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.page-hero {
  padding: clamp(2.75rem, 6vw, 4.25rem) 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-muted) 0%, var(--bg-base) 55%);
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.page-hero .page-hero__lead {
  margin: 0 0 0.35rem;
  max-width: 38rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.page-hero .page-hero__sub {
  margin: 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.55;
}

.contact-context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-context {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.contact-context h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111827;
  margin: 0 0 10px;
}

.contact-context h3 {
  font-size: 18px;
}

.contact-context ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.contact-context ul li {
  margin-bottom: 0.35rem;
}

.contact-context p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-context a {
  font-weight: 600;
}

.form-privacy-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

/* Alte Kontakt-Aside-Struktur entfernt: jetzt ein gemeinsames 2-Spalten-Grid */

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-md);
  font-size: 15px;
  line-height: 1.6;
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  height: 44px;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.2);
  background: #fff;
}

.form-row textarea {
  min-height: 120px;
  height: auto;
  resize: vertical;
}

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.form-check input {
  width: auto;
  height: auto;
  margin-top: 4px;
}

.form-check label {
  font-weight: 400;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.alert--success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.faq-mini {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.faq-mini h2 {
  font-size: 24px;
  margin: 0 0 10px;
}

.faq-mini h3 {
  font-size: 18px;
}

.faq-mini details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--bg-card);
}

.faq-mini summary {
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.faq-mini p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Legal pages */
.legal-page {
  padding-bottom: var(--section-y-desktop);
}

.legal-page__hero {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-muted) 0%, var(--bg-base) 100%);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.legal-page__hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 800;
  margin: 0 0 0.85rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal-page__hero .legal-page__intro {
  margin: 0;
  max-width: 40rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.legal {
  padding-block: 0 2rem;
  max-width: 42rem;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
}

.legal h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2.25rem 0 0.85rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  letter-spacing: -0.01em;
}

.legal h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal p,
.legal li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal code {
  font-size: 0.9em;
  background: var(--surface-muted);
  padding: 2px 6px;
  border-radius: 6px;
}

.placeholder {
  display: inline;
  padding: 2px 6px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
  border-radius: 4px;
}

/* Danke page: zentrierter Inhaltsblock im Wrap, Text/Buttons linksbündig */
.thank-page {
  padding-top: calc(var(--header-h) + clamp(0.25rem, 1.2vw, 0.65rem));
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.thank-section {
  /* Mittige Layoutspur: Block horizontal zentriert, Inhalt darin links */
  width: 100%;
  max-width: min(40.5rem, 100%);
  margin-inline: auto;
  padding-block: clamp(3rem, 7.5vw, 5.25rem);
  text-align: left;
}

.thank-section h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #070b14;
  text-align: left;
}

.thank-section__lead {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: none;
  text-align: left;
}

.thank-section__sub {
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  color: #6b7280;
  text-align: left;
}

.thank-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-start;
  align-items: center;
}

/* Kontakt section */
.kontakt-section {
  padding: 100px 20px;
  background: #fff;
}

.kontakt-section h2 {
  font-size: 28px;
  margin: 0 0 10px;
}

.kontakt-section .subline {
  color: #666;
  margin: 0 0 30px;
}

.kontakt-form {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.kontakt-form input,
.kontakt-form textarea {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.kontakt-form textarea {
  min-height: 120px;
  resize: vertical;
}

.kontakt-form button {
  padding: 14px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.kontakt-form button:hover {
  opacity: 0.9;
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
