/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --color-bg: #f8f7f4;
  --color-bg-alt: #1a2332;
  --color-bg-card: #ffffff;
  --color-text: #1a2332;
  --color-text-muted: #5a6474;
  --color-text-light: #e8eaed;
  --color-accent: #2d6a6a;
  --color-accent-light: #3d8a8a;
  --color-accent-warm: #c4a35a;
  --color-brand: #005eb8;
  --color-brand-dark: #004a94;
  --color-border: #e2e0db;
  --color-border-dark: #2d3a4d;

  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 35, 50, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 35, 50, 0.12);

  --transition: 0.25s ease;
  --header-height: 91px;
  --logo-height: 71px;
  --logo-width: min(calc(var(--logo-height) * 643 / 359), 40vw);
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.fonts-system,
.fonts-system body {
  --font-sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}

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

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

ul {
  list-style: none;
}

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ── Header ──────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  border-bottom: none;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
  overflow: visible;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: var(--header-height);
  overflow: visible;
  width: calc(100% - 150px - 1.25rem);
  max-width: none;
  margin-left: 150px;
  margin-right: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  display: block;
  height: var(--logo-height);
  width: auto;
  max-width: min(229px, 40vw);
}

.logo--footer .logo__img {
  height: 56px;
  max-width: 180px;
  filter: brightness(0) invert(1);
}

.header__tagline {
  flex: 0 1 auto;
  max-width: none;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.14rem, 1.68vw, 1.38rem);
  font-style: italic;
  line-height: 1.25;
  color: rgba(26, 35, 50, 0.45);
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-shadow: none;
}

.header--scrolled .header__tagline {
  color: rgba(26, 35, 50, 0.5);
  text-shadow: none;
}

.header__toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(26, 35, 50, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header--scrolled .header__toolbar {
  background: rgba(26, 35, 50, 0.04);
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.15rem;
  border: none;
  border-radius: 999px;
  background: rgba(26, 35, 50, 0.06);
  box-shadow: none;
}

.header--scrolled .lang-switch {
  background: rgba(26, 35, 50, 0.06);
  border: none;
  box-shadow: none;
}

.lang-switch__btn {
  appearance: none;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.lang-switch__btn:hover {
  color: var(--color-text);
}

.lang-switch__btn.is-active {
  background: #fff;
  color: var(--color-brand);
  box-shadow: 0 1px 4px rgba(26, 35, 50, 0.1);
}

.header--scrolled .lang-switch__btn.is-active {
  background: #fff;
  color: var(--color-brand);
}

.header__contact {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.header__contact:hover {
  color: var(--color-brand);
  background: rgba(255, 255, 255, 0.85);
}

.header--scrolled .header__contact {
  color: var(--color-text-muted);
}

.header--scrolled .header__contact:hover {
  color: var(--color-brand);
  background: rgba(255, 255, 255, 0.9);
}

.nav {
  position: fixed;
  top: var(--header-height);
  right: 0;
  left: auto;
  width: max-content;
  min-width: 13.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0.45rem 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  z-index: 120;
}

.nav--open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text);
  padding: 0.75rem 1.25rem;
  border-radius: 0;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.nav a:hover {
  color: var(--color-brand);
  background: rgba(26, 35, 50, 0.05);
}

.nav a[href*="impressum"],
.nav a[href*="datenschutz"] {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

.nav a[href*="impressum"] {
  margin-top: 0.25rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

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

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

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

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
}

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

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

.btn--ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-2xl);
  overflow: hidden;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 18, 28, 0.9) 0%, rgba(12, 18, 28, 0.68) 48%, rgba(12, 18, 28, 0.42) 100%),
    linear-gradient(to top, rgba(12, 18, 28, 0.65) 0%, transparent 48%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__content {
  max-width: 40rem;
  margin-left: calc(var(--logo-width) + var(--space-md));
  animation: hero-rise 0.9s ease both;
}

.hero__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-warm);
  margin-bottom: var(--space-sm);
  animation: hero-rise 0.9s ease 0.1s both;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  color: #fff;
  animation: hero-rise 0.9s ease 0.18s both;
}

.hero__title em {
  font-style: italic;
  color: #c8ddd8;
}

.hero__lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  margin-bottom: var(--space-lg);
  animation: hero-rise 0.9s ease 0.28s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  animation: hero-rise 0.9s ease 0.38s both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content,
  .hero__eyebrow,
  .hero__title,
  .hero__lead,
  .hero__actions {
    animation: none;
  }

  .hero__video {
    display: none;
  }

  .hero__media {
    background: var(--color-bg-alt) center / cover no-repeat;
    background-image: url('assets/hero-poster.jpg');
  }
}

/* ── Section Headers ─────────────────────────────────────────── */
.section-header {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.section-header--light .section-header__title {
  color: var(--color-text-light);
}

.section-header__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.section-header--light .section-header__eyebrow {
  color: var(--color-accent-warm);
}

.section-header__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.section-header__lead {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* ── Schwerpunkte ────────────────────────────────────────────── */
.schwerpunkte {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
}

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

.pillar {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform 0.4s ease;
}

.pillar:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pillar--featured {
  background: var(--color-bg-alt);
  border-color: var(--color-bg-alt);
  color: var(--color-text-light);
}

.pillar--featured .pillar__text {
  color: rgba(232, 234, 237, 0.75);
}

.pillar__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.pillar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pillar:hover .pillar__media img {
  transform: scale(1.04);
}

.pillar__body {
  padding: var(--space-lg);
  flex: 1;
}

.pillar__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.pillar__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Leistungen ──────────────────────────────────────────────── */
.leistungen {
  position: relative;
  padding: var(--space-2xl) 0;
  background:
    radial-gradient(ellipse 70% 55% at 0% 0%, rgba(0, 94, 184, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(45, 106, 106, 0.16), transparent 50%),
    var(--color-bg-alt);
  overflow: hidden;
}

.leistungen__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: var(--space-xl) clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.leistungen__header {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  margin-bottom: 0;
}

.leistungen__header .section-header__title {
  max-width: 11ch;
}

.services {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service {
  position: relative;
  margin: 0;
  padding: 1.6rem 0 1.6rem 1.25rem;
  border-bottom: 1px solid rgba(232, 234, 237, 0.1);
  background: transparent;
  transition: background 0.3s ease, padding-left 0.3s ease;
}

.service:first-child {
  border-top: 1px solid rgba(232, 234, 237, 0.1);
}

.service::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--color-brand);
  transform: translateY(-50%);
  transition: height 0.3s ease;
}

.service:hover,
.service:focus-within {
  background: rgba(255, 255, 255, 0.03);
  padding-left: 1.5rem;
  transform: none;
  border-color: rgba(232, 234, 237, 0.1);
}

.service:hover::before,
.service:focus-within::before {
  height: 55%;
  opacity: 1;
}

.service__content {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 0.75rem 1.75rem;
  align-items: baseline;
}

.service__title {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
}

.service__text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(232, 234, 237, 0.55);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .service,
  .service::before {
    transition: none;
  }
}

/* ── Referenzen ──────────────────────────────────────────────── */
.referenzen {
  padding: var(--space-2xl) 0;
}

.references {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.reference {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.reference:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.reference__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.reference__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.reference:hover .reference__media img {
  transform: scale(1.05);
}

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

.reference__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.reference__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ── Technologien ────────────────────────────────────────────── */
.technologien {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

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

.tech-group {
  padding: var(--space-lg) var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.tech-group:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
}

.tech-group__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
  color: var(--color-brand);
}

.tech-group__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tech-group__list li {
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.tech-group__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent-warm);
}

/* ── Kontakt ─────────────────────────────────────────────────── */
.kontakt {
  position: relative;
  padding: var(--space-2xl) 0;
  overflow: hidden;
  color: #fff;
}

.kontakt__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.kontakt__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 22, 34, 0.92) 0%, rgba(15, 22, 34, 0.78) 55%, rgba(15, 22, 34, 0.55) 100%);
}

.kontakt__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--space-xl);
  align-items: start;
}

.kontakt__content {
  max-width: 36rem;
}

.kontakt .section-header__eyebrow {
  color: var(--color-accent-warm);
}

.kontakt__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
  color: #fff;
}

.kontakt__lead {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-md);
  max-width: 28rem;
}

.kontakt__mail {
  display: inline-block;
  margin-right: 1.25rem;
  margin-bottom: 0.35rem;
  color: var(--color-accent-warm);
  font-weight: 600;
  border-bottom: 1px solid rgba(196, 163, 90, 0.45);
  transition: border-color var(--transition), color var(--transition);
}

.kontakt__mail:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.kontakt__quote {
  margin-top: var(--space-xl);
  padding: var(--space-md) 0 var(--space-md) var(--space-md);
  border-left: 3px solid var(--color-accent-warm);
}

.kontakt__quote p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.contact-form__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

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

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

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.7rem 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  resize: vertical;
  transition: border-color var(--transition);
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

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

.contact-form__field input:invalid:not(:placeholder-shown),
.contact-form__field textarea:invalid:not(:placeholder-shown) {
  border-bottom-color: rgba(232, 140, 140, 0.7);
}

.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.contact-form__consent input {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--color-accent-warm);
}

.contact-form__consent a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form__consent a:hover {
  color: var(--color-accent-warm);
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
}

.contact-form__status {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.contact-form__status.is-error {
  color: #f0b4b4;
}

.contact-form__status.is-success {
  color: #b8d4b0;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--color-bg-alt);
  color: var(--color-text-light);
}

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

.footer__tagline {
  font-size: 0.875rem;
  color: rgba(232, 234, 237, 0.5);
  margin-top: var(--space-xs);
}

.footer__tech-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(232, 234, 237, 0.35);
  margin-bottom: var(--space-sm);
}

.footer__tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer__tech-list li {
  font-size: 0.8125rem;
  color: rgba(232, 234, 237, 0.4);
}

.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-dark);
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: rgba(232, 234, 237, 0.35);
}

.footer__credits {
  letter-spacing: 0.02em;
}

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

.footer__legal a {
  font-size: 0.875rem;
  color: rgba(232, 234, 237, 0.65);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: #fff;
}

/* ── Legal pages ─────────────────────────────────────────────── */
.header--solid,
.page-legal .header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: none;
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}

.page-legal .nav-toggle span {
  background: var(--color-text);
  box-shadow: none;
}

.legal {
  padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-2xl);
  background: var(--color-bg);
}

.legal__inner {
  max-width: 760px;
}

.legal__back {
  margin-bottom: var(--space-lg);
}

.legal__back a {
  color: var(--color-brand);
  font-weight: 500;
}

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

.legal h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.legal h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal p,
.legal li {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: var(--space-md);
}

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

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

.legal__note {
  padding: var(--space-sm) var(--space-md);
  background: #fff6e8;
  border-left: 3px solid var(--color-accent-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text) !important;
  font-size: 0.9375rem;
}

.legal code {
  font-size: 0.875em;
  background: rgba(26, 35, 50, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* ── Consent banner ──────────────────────────────────────────── */
.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 640px;
  margin-inline: auto;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
}

.consent.is-visible {
  display: block;
}

.consent p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.consent a {
  color: var(--color-brand);
  font-weight: 600;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.consent__actions .btn {
  font-size: 0.8125rem;
  padding: 0.55rem 1rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .header__tagline {
    display: none;
  }

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

  .tech-groups {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  .leistungen__header {
    position: static;
  }

  .leistungen__header .section-header__title {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .header__toolbar {
    padding: 0.2rem;
  }

  .tech-groups {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 92vh;
    padding-bottom: var(--space-xl);
  }

  .hero__content {
    margin-left: 0;
  }

  .service {
    padding: 1.25rem 0 1.25rem 1rem;
  }

  .service:hover,
  .service:focus-within {
    padding-left: 1.2rem;
  }

  .service__content {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }
}
