:root {
  --navy-950: #032542;
  --navy-900: #053d6c;
  --navy-800: #075789;
  --blue-700: #0874b1;
  --blue-500: #10a7db;
  --blue-300: #66d4f5;
  --focus: #064f7c;
  --cta: #0874b1;
  --cta-hover: #075789;
  --blue-100: #ddf7ff;
  --ice: #f4f9fc;
  --paper: #ffffff;
  --ink: #102131;
  --muted: #647587;
  --line: #dbe6ee;
  --success: #17795c;
  --shadow: 0 22px 60px rgba(6, 21, 36, 0.13);
  --radius-xl: 2rem;
  --radius-lg: 1.35rem;
  --radius-md: 0.95rem;
  --container: min(1180px, calc(100% - 40px));
  --header-h: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

picture {
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy-950);
  font-weight: 700;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  display: none;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-300), var(--blue-500));
}

.scroll-progress.active {
  display: block;
}

.scroll-progress::after {
  position: absolute;
  top: 50%;
  right: -8px;
  width: 17px;
  height: 17px;
  content: "";
  transform: translateY(-50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff url("../images/logo-vorobis.jpeg") center / cover no-repeat;
  box-shadow: 0 2px 8px rgba(3, 37, 66, 0.24);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-sm {
  padding: 76px 0;
}

.section-dark {
  overflow: hidden;
  color: #fff;
  background: var(--navy-950);
}

.section-ice {
  background: var(--ice);
}

.section-grid-bg::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.09;
  background-image:
    linear-gradient(rgba(102, 212, 245, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 212, 245, 0.5) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

/* Long-form page rhythm */
.longform-page .section-major {
  padding-block: clamp(118px, 11vw, 168px);
}

.longform-page .section-support {
  padding-block: clamp(72px, 7vw, 96px);
}

.longform-page .section-support .section-head {
  margin-bottom: 38px;
}

.longform-page .section-support .section-head h2 {
  max-width: 680px;
  font-size: clamp(2.05rem, 3.8vw, 3.45rem);
}

.longform-page .section-highlight {
  box-shadow: inset 0 3px 0 rgba(102, 212, 245, 0.7);
}

.longform-page .section-proof {
  padding-block: clamp(126px, 12vw, 176px);
  border-top: 1px solid rgba(102, 212, 245, 0.35);
}

.longform-page .section-cta {
  padding-block: clamp(78px, 8vw, 108px);
  background: linear-gradient(180deg, #fff 0%, var(--ice) 100%);
}

.longform-page .section-cta .cta-panel {
  min-height: 460px;
}

.card-grid-compact .info-card {
  min-height: 238px;
  padding: 26px;
}

.card-grid-compact .info-card-number,
.card-grid-compact .info-card-icon {
  margin-bottom: 34px;
}

.card-grid-editorial {
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.card-grid-editorial .info-card:nth-child(odd) {
  grid-column: span 7;
}

.card-grid-editorial .info-card:nth-child(even) {
  grid-column: span 5;
}

.reference-list-rhythmic {
  gap: clamp(96px, 11vw, 150px);
}

.reference-list-rhythmic .reference-project {
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.reference-list-rhythmic .reference-project:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

.section-sequence .process-grid {
  margin-top: 48px;
}

.reference-list-evidence {
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.reference-list-evidence .reference-project {
  grid-template-columns: 0.6fr 1.4fr;
  padding-block: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.reference-list-evidence .reference-summary {
  position: static;
}

/* Certificate course page */
.course-jump-nav {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.course-jump-nav .container {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 18px;
}

.course-jump-nav a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.course-jump-nav a:hover {
  color: var(--blue-700);
}

.course-jump-nav a:last-child {
  margin-left: auto;
  color: var(--blue-700);
}

.course-offer-start {
  scroll-margin-top: 90px;
  box-shadow: inset 0 4px 0 var(--blue-500);
}

.course-intro .split-media,
.course-intro .split-media img {
  min-height: 420px;
}

.course-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.course-spec-grid > div {
  min-width: 0;
  padding: 20px;
  background: #fff;
}

.course-spec-grid span,
.course-content-summary > span,
.course-detail-label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.course-spec-grid strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.95rem;
  line-height: 1.35;
}

.course-content-summary {
  margin-top: 26px;
  padding: 22px 0 2px 24px;
  border-left: 3px solid var(--blue-300);
}

.course-content-summary p {
  margin: 0 0 12px;
}

.course-detail-label {
  margin-top: 30px;
}

.course-actions {
  align-items: center;
  gap: 20px;
}

.course-offer-end {
  border-bottom: 1px solid var(--line);
}

.course-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.course-feature {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.course-feature > span {
  display: block;
  margin-bottom: 34px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 700;
}

.course-feature p {
  color: var(--muted);
  font-size: 0.9rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.trust-card {
  display: grid;
  gap: 26px;
  align-content: start;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: var(--navy-900);
}

.trust-card:first-child {
  grid-column: 1 / -1;
  grid-template-columns: 1fr 0.72fr;
}

.trust-card h3 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
}

.trust-card-copy > div:last-child > p,
.trust-card-copy > div:last-child > ul {
  color: rgba(255, 255, 255, 0.66);
}

.trust-card .check-list {
  gap: 7px;
  margin-top: 14px;
}

.trust-card .check-list li {
  padding: 11px 12px 11px 38px;
  font-size: 0.82rem;
}

.trust-card .check-list li::before {
  left: 13px;
}

.trust-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-self: start;
}

.trust-gallery .gallery-item,
.trust-gallery .gallery-item:first-child {
  min-height: 180px;
  grid-column: auto;
}

.trust-gallery .gallery-item img {
  padding: 14px;
  object-fit: contain;
  background: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: currentColor;
}

.section-dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--blue-300);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--navy-950);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.hero h1,
.page-hero h1 {
  color: #fff;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 4.25rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.lead {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.section-dark .lead,
.hero .lead,
.page-hero .lead {
  color: rgba(255, 255, 255, 0.74);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 54px;
}

.section-head > div:first-child {
  max-width: 760px;
}

.section-head .lead {
  max-width: 640px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

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

.btn-primary:hover {
  background: var(--cta-hover);
}

.btn-light {
  background: #fff;
  color: var(--navy-950);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline {
  border-color: var(--line);
  color: var(--navy-900);
  background: transparent;
}

.btn svg,
.text-link svg {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.btn:hover svg,
.text-link:hover svg {
  transform: translateX(3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-700);
  font-weight: 700;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 900;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-h);
  color: #fff;
  transition: background 220ms ease, box-shadow 220ms ease, height 220ms ease;
}

.site-header.scrolled,
.site-header.solid {
  height: 72px;
  background: rgba(6, 21, 36, 0.95);
  box-shadow: 0 12px 35px rgba(6, 21, 36, 0.18);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  width: var(--container);
  height: 100%;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 7px;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 8px 24px rgba(3, 37, 66, 0.16);
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.brand-word {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 1.34rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.brand-word i {
  color: var(--blue-300);
  font-style: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.main-nav a {
  position: relative;
  padding: 10px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.main-nav .nav-cta {
  margin-left: 8px;
  padding-inline: 18px;
  color: #fff;
  background: var(--cta);
}

.main-nav .nav-cta:hover {
  background: var(--cta-hover);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 19px;
  height: 2px;
  content: "";
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle span::before {
  transform: translateY(-6px);
}

.menu-toggle span::after {
  transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(0) rotate(45deg);
}

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

/* Hero */
.hero,
.page-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 100svh;
  align-items: end;
  color: #fff;
  background: var(--navy-950);
}

.page-hero {
  min-height: 72svh;
}

.hero-media,
.page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero-media picture,
.split-media picture {
  width: 100%;
  height: 100%;
}

.hero-media img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: lead-image-drift 12s cubic-bezier(.45, 0, .55, 1) infinite alternate;
  will-change: transform;
}

@keyframes lead-image-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-0.7%, -0.4%, 0); }
}

.hero-media::after,
.page-hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 21, 36, 0.94) 0%, rgba(6, 21, 36, 0.68) 45%, rgba(6, 21, 36, 0.16) 78%),
    linear-gradient(0deg, rgba(6, 21, 36, 0.76), transparent 44%);
}

.page-hero-media::after {
  background: linear-gradient(90deg, rgba(6, 21, 36, 0.93), rgba(6, 21, 36, 0.4)), linear-gradient(0deg, rgba(6, 21, 36, 0.72), transparent 45%);
}

body[data-page="zertifikatslehrgang"] .course-hero .page-hero-media img {
  object-position: 34% 35%;
  animation: none;
  will-change: auto;
}

body[data-page="zertifikatslehrgang"] .course-hero .page-hero-media::after {
  background:
    linear-gradient(90deg, rgba(6, 21, 36, 0.96) 0%, rgba(6, 21, 36, 0.8) 48%, rgba(6, 21, 36, 0.35) 82%),
    linear-gradient(0deg, rgba(6, 21, 36, 0.74), transparent 48%);
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin-inline: auto;
  padding: calc(var(--header-h) + 80px) 0 82px;
}

.hero-copy,
.page-hero-copy {
  max-width: 900px;
}

.hero h1 {
  max-width: 880px;
}

.hero h1 .accent,
.page-hero h1 .accent {
  color: var(--blue-300);
}

.hero-meta {
  position: absolute;
  right: 0;
  bottom: 88px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  width: 330px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(6, 21, 36, 0.42);
  backdrop-filter: blur(16px);
}

.hero-stat {
  padding: 22px;
  background: rgba(6, 21, 36, 0.26);
}

.hero-stat strong {
  display: block;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 1.35rem;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-scroll::before {
  width: 1px;
  height: 36px;
  content: "";
  background: linear-gradient(#fff, transparent);
}

.page-hero h1 {
  max-width: 960px;
  font-size: clamp(3.1rem, 6vw, 6rem);
}

.page-hero .lead {
  max-width: 720px;
}

.hero-index {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 26px;
  color: rgba(255, 255, 255, 0.48);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

/* Intro */
.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(50px, 9vw, 128px);
  align-items: start;
}

.intro-aside {
  position: sticky;
  top: 110px;
}

.intro-logo {
  width: 100%;
  height: auto;
}

.intro-aside .wordmark-large {
  display: block;
  color: var(--navy-900);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.8;
}

.intro-aside .wordmark-large i {
  color: var(--blue-700);
  font-style: normal;
}

.intro-copy h2 {
  max-width: 830px;
}

.intro-copy p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Video insights */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.video-card {
  margin: 0;
}

.video-card video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.video-card figcaption {
  margin-top: 18px;
}

.video-card h3 {
  margin: 0;
}

.micro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.micro-item {
  padding-top: 18px;
  border-top: 2px solid var(--navy-950);
}

.micro-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy-950);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
}

.micro-item span {
  color: var(--muted);
  font-size: 0.83rem;
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.service-card {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 510px;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-xl);
  color: #fff;
  isolation: isolate;
}

.service-card:nth-child(2),
.service-card:nth-child(3) {
  min-height: 390px;
}

.service-card:nth-child(3) {
  grid-column: 1 / -1;
  min-height: 430px;
}

.service-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(.2,.7,.2,1);
}

.service-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(6, 21, 36, 0.94), rgba(6, 21, 36, 0.04) 72%);
}

.service-card:hover img {
  transform: scale(1.035);
}

.service-content {
  padding: 38px;
}

.service-index {
  position: absolute;
  top: 26px;
  left: 30px;
  color: rgba(255, 255, 255, 0.64);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 0.82rem;
}

.service-card h3 {
  color: #fff;
  font-size: clamp(1.9rem, 3.8vw, 3.45rem);
}

.service-card p {
  max-width: 640px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.service-card .text-link {
  margin-top: 22px;
  color: var(--blue-300);
}

/* Projects */
.project-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-teaser {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 540px;
  grid-column: span 6;
  align-items: end;
  border-radius: var(--radius-xl);
  isolation: isolate;
}

.project-teaser:nth-child(2),
.project-teaser:nth-child(3) {
  min-height: 420px;
}

.project-teaser:nth-child(2) {
  grid-column: span 5;
}

.project-teaser:nth-child(3) {
  grid-column: span 7;
}

.project-teaser:nth-child(4) {
  grid-column: span 12;
  min-height: 490px;
}

.project-teaser img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms ease;
}

.project-teaser-placeholder {
  position: absolute;
  z-index: -2;
  inset: 0;
  border: 1px dashed rgba(102, 212, 245, 0.55);
  background:
    linear-gradient(135deg, rgba(102, 212, 245, 0.16), transparent 58%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 22px),
    var(--navy-800);
}

.project-teaser::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(6, 21, 36, 0.92), transparent 68%);
}

.project-teaser:hover img {
  transform: scale(1.04);
}

.project-teaser:focus-visible img {
  transform: scale(1.04);
}

.project-caption {
  width: 100%;
  padding: 32px;
  color: #fff;
}

.project-caption small {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-300);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-caption h3 {
  color: #fff;
}

.project-caption p {
  max-width: 680px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.45;
}

.project-caption .project-detail-button {
  margin-top: 20px;
}

/* Process */
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.process-grid.process-sequence {
  border-top: 0;
}

.process-grid.process-sequence::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  background: rgba(255, 255, 255, 0.26);
  transition: transform 460ms cubic-bezier(.22, .61, .36, 1);
}

.process-grid.process-sequence.process-visible::after {
  transform: scaleX(1);
}

.process-grid.process-sequence .process-step {
  transition-delay: calc(360ms + var(--process-delay, 0ms));
}

.process-step {
  position: relative;
  padding: 42px 28px 10px 0;
}

.process-step::before {
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  content: "";
  border: 2px solid var(--navy-950);
  border-radius: 50%;
  background: var(--blue-300);
  box-shadow: 0 0 0 6px rgba(102, 212, 245, 0.13);
}

.process-grid.process-sequence .process-step::before {
  opacity: 0;
  transform: scale(.7);
  transition: opacity 180ms ease, transform 180ms ease;
  transition-delay: calc(360ms + var(--process-delay, 0ms));
}

.process-grid.process-sequence.process-visible .process-step::before {
  opacity: 1;
  transform: scale(1);
}

.process-step span {
  color: var(--blue-300);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 0.8rem;
}

.process-step h3 {
  margin-top: 18px;
  font-size: 1.35rem;
}

.process-step p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

/* Image/text */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: var(--radius-xl);
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.split-media-note {
  position: absolute;
  right: 22px;
  bottom: 22px;
  max-width: 250px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #fff;
  background: rgba(6, 21, 36, 0.75);
  font-size: 0.82rem;
  backdrop-filter: blur(12px);
}

.split-copy p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 16px 18px 16px 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--navy-900);
  background: #fff;
  font-weight: 600;
}

.check-list li::before {
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  content: "✓";
  border-radius: 50%;
  color: #fff;
  background: var(--cta);
  font-size: 0.72rem;
}

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 34px 20px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border: 0;
}

.metric strong {
  display: block;
  color: var(--navy-900);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.team-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.team-photo {
  position: relative;
  overflow: hidden;
  height: 410px;
  background: var(--navy-900);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.team-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.team-photo-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(145deg, var(--navy-900), #153754);
}

.team-placeholder-icon {
  position: relative;
  width: 150px;
  height: 168px;
  opacity: 0.72;
}

.team-placeholder-icon::before,
.team-placeholder-icon::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.55);
}

.team-placeholder-icon::before {
  top: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
}

.team-placeholder-icon::after {
  bottom: 0;
  width: 150px;
  height: 78px;
  border-radius: 78px 78px 24px 24px;
}

.team-card:hover .team-photo img {
  transform: scale(1.03);
}

.team-role-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 21, 36, 0.78);
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.team-body {
  padding: 28px;
}

.team-body h3 {
  font-size: 1.65rem;
}

.team-body > p {
  min-height: 52px;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.team-tags span,
.tag {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 0.68rem;
  font-weight: 700;
}

.contact-mini {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-mini a:hover {
  color: var(--blue-700);
}

.contact-mini .linkedin-button {
  justify-self: start;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: #0a66c2;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.contact-mini .linkedin-button:hover {
  color: #fff;
  background: #084f96;
  transform: translateY(-1px);
}

/* Values and jobs */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  position: relative;
  min-height: 290px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.info-card.dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--navy-900);
}

.info-card-number,
.info-card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 56px;
  border-radius: 50%;
  color: #fff;
  background: var(--cta);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 0.82rem;
}

.info-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.info-card.dark p {
  color: rgba(255, 255, 255, 0.62);
}

.job-list {
  display: grid;
  gap: 12px;
}

.job-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color 180ms ease, transform 180ms ease;
}

.job-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-300);
}

.job-card small {
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.job-card h3 {
  margin-top: 8px;
}

.job-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.job-card .circle-arrow {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue-700);
}

/* References */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 38px;
}

.filter-btn {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition: 180ms ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--navy-900);
  color: #fff;
  background: var(--navy-900);
}

.reference-list {
  display: grid;
  gap: 80px;
}

.reference-project {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 42px;
  scroll-margin-top: 100px;
}

.reference-project[hidden] {
  display: none;
}

.reference-summary {
  position: sticky;
  top: 100px;
  align-self: start;
}

.project-no {
  color: var(--blue-700);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 0.8rem;
}

.reference-summary h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3.55rem);
}

.reference-summary p {
  color: var(--muted);
}

.project-facts {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  transition: border-color 200ms ease;
}

.fact {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  font-size: 0.82rem;
}

.fact span {
  color: var(--muted);
  transition: color 200ms ease;
}

.fact strong {
  color: var(--navy-900);
  transition: color 200ms ease, transform 200ms ease;
}

.reference-project:hover .project-facts,
.reference-project:focus-within .project-facts {
  border-color: var(--blue-300);
}

.reference-project:hover .fact span,
.reference-project:focus-within .fact span {
  color: var(--navy-900);
}

.reference-project:hover .fact strong,
.reference-project:focus-within .fact strong {
  color: var(--blue-700);
  transform: translateX(2px);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: stretch;
}

.project-gallery .gallery-item {
  height: 260px;
  min-height: 0;
}

.project-gallery .gallery-item:first-child {
  height: 440px;
}

.project-gallery .gallery-item picture,
.project-detail-gallery .gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item,
.gallery-placeholder {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--ice);
}

.gallery-item:first-child {
  min-height: 440px;
  grid-column: 1 / -1;
}

.gallery-item {
  cursor: zoom-in;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
  object-fit: cover;
  object-position: center center;
  transition: transform 500ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.02);
}

.reference-project .gallery-item:first-child picture,
.project-detail-gallery .gallery-item:first-child picture {
  width: 100%;
  height: 100%;
  animation: reference-image-drift 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes reference-image-drift {
  from { transform: scale(1); }
  to { transform: scale(1.012); }
}

.project-gallery .gallery-item.plan-image img,
.project-detail-gallery .gallery-item.plan-image img {
  object-fit: contain;
  object-position: center center;
  background: #fff;
}

body[data-page="zertifikatslehrgang"] .certificate-gallery {
  align-items: start;
}

body[data-page="zertifikatslehrgang"] .certificate-gallery .gallery-item,
body[data-page="zertifikatslehrgang"] .certificate-gallery .gallery-item:first-child {
  min-height: 0;
  grid-column: auto;
}

body[data-page="zertifikatslehrgang"] .certificate-gallery .gallery-item img {
  display: block;
  height: auto;
  min-height: 0;
}

.reference-detail-link {
  display: inline-flex;
  max-width: 100%;
  min-height: 58px;
  margin-top: 30px;
  padding: 16px 26px;
  box-shadow: 0 12px 28px rgba(0, 133, 183, 0.24);
  font-size: 0.98rem;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.reference-detail-link:hover {
  box-shadow: 0 16px 34px rgba(0, 133, 183, 0.34);
}

.reference-detail-link:focus-visible {
  box-shadow: 0 0 0 4px rgba(126, 219, 244, 0.34), 0 16px 34px rgba(0, 133, 183, 0.3);
}

.project-detail-hero .page-hero-media img {
  object-position: center 55%;
}

.project-detail-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.project-detail-copy {
  max-width: 650px;
}

.project-detail-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.project-detail-facts {
  margin-top: 36px;
}

.project-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.project-detail-gallery .gallery-item {
  height: 330px;
  min-height: 0;
}

.project-detail-gallery .gallery-item:first-child {
  height: 560px;
  min-height: 0;
}

.project-detail-gallery .gallery-item:first-child picture {
  height: 100%;
}

.project-detail-gallery .gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
  object-fit: cover;
  object-position: center center;
}

.project-story-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-top: clamp(34px, 5vw, 60px);
}

.project-story-media {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: transparent;
  aspect-ratio: 4 / 3;
}

.project-story-media button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: zoom-in;
}

.project-story-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
  object-fit: cover;
  object-position: center center;
}

.gallery-item img[src*="lemmchen-stuetze-schaden"],
.project-story-media img[src*="lemmchen-tiefgarage-riss-stuetzenfuss"] {
  object-position: center 68%;
}

.gallery-item img[src*="lemmchen-pruefung-bohrkern"],
.project-story-media img[src*="lemmchen-tiefgarage-bohrtiefe"],
.project-story-media img[src*="parkdeck-trier-bohrkern-korrosionsspur"] {
  object-position: center 48%;
}

.gallery-item img[src*="parkdeck-bb-korrosion-gelaender"] {
  object-position: center 58%;
}

.gallery-item::after {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  content: "+";
  border-radius: 50%;
  color: #fff;
  background: rgba(6, 21, 36, 0.72);
  font-size: 1.35rem;
  backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 1;
}

.gallery-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1px dashed #b7cad7;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(102, 212, 245, 0.12), transparent),
    var(--ice);
  text-align: center;
}

.gallery-placeholder span {
  display: block;
  margin-bottom: 7px;
  color: var(--blue-700);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(3, 12, 22, 0.94);
}

.lightbox:not([open]) {
  display: none;
}

.lightbox::backdrop {
  background: rgba(3, 12, 22, 0.94);
}

.lightbox picture {
  display: grid;
  place-items: center;
}

.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 84vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 1.4rem;
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-caption {
  position: absolute;
  right: 20px;
  bottom: 16px;
  left: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  text-align: center;
}

.form-error {
  margin: 6px 0 0;
  color: #a32020;
  font-size: 0.88rem;
  font-weight: 650;
}

.form-field [aria-invalid="true"] {
  border-color: #a32020;
  box-shadow: 0 0 0 2px rgba(163, 32, 32, 0.14);
}

.form-direct-contact {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-direct-contact a {
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Forms/contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(38px, 8vw, 110px);
  align-items: start;
}

.contact-details {
  position: sticky;
  top: 110px;
}

.contact-block {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-block small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-block strong,
.contact-block a {
  color: var(--navy-900);
  font-size: 1.06rem;
  font-weight: 700;
}

.contact-block a:hover {
  color: var(--blue-700);
}

body[data-page="kontakt"] .contact-linkedin {
  margin-top: 22px;
}

.form-card {
  padding: clamp(26px, 5vw, 54px);
  border-radius: var(--radius-xl);
  background: var(--ice);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--navy-900);
  font-size: 0.8rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--blue-700);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(16, 167, 219, 0.12);
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-check label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 500;
  line-height: 1.5;
}

.form-field.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
}

.form-check a {
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.form-status {
  display: none;
  grid-column: 1 / -1;
  padding: 13px 15px;
  border-radius: 10px;
  color: var(--success);
  background: #e5f7f0;
  font-size: 0.82rem;
  font-weight: 700;
}

.form-status.show {
  display: block;
}

.map-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: var(--radius-xl);
  color: #fff;
  background: var(--navy-900);
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(102, 212, 245, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 212, 245, 0.3) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(500px) rotateX(48deg) scale(1.4);
}

.map-marker {
  position: absolute;
  top: 40%;
  left: 55%;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 10px solid rgba(102, 212, 245, 0.18);
  border-radius: 50%;
  background: var(--cta);
  box-shadow: 0 0 0 16px rgba(102, 212, 245, 0.08);
}

.map-content {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.map-content h3 {
  color: #fff;
}

.map-content p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

/* FAQ */
.accordion {
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-button {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 23px 0;
  border: 0;
  color: var(--navy-900);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
}

.accordion-button::after {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  content: "+";
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}

.accordion-button[aria-expanded="true"]::after {
  content: "−";
  color: #fff;
  border-color: var(--blue-700);
  background: var(--cta);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms ease;
}

.accordion-panel[hidden] {
  display: none;
}

.accordion-panel > div {
  overflow: hidden;
}

.accordion-panel p {
  max-width: 820px;
  margin: 0;
  padding: 0 0 24px;
  color: var(--muted);
}

.accordion-button[aria-expanded="true"] + .accordion-panel {
  grid-template-rows: 1fr;
}

/* CTA */
.cta-panel {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 510px;
  place-items: center;
  padding: 60px 30px;
  border-radius: var(--radius-xl);
  color: #fff;
  background: var(--navy-950);
  text-align: center;
  isolation: isolate;
}

.cta-panel::before,
.cta-panel::after {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  content: "";
  border-radius: 50%;
  filter: blur(15px);
}

.cta-panel::before {
  top: -240px;
  right: -80px;
  background: rgba(16, 167, 219, 0.38);
}

.cta-panel::after {
  bottom: -290px;
  left: -60px;
  background: rgba(102, 212, 245, 0.24);
}

.cta-content {
  max-width: 830px;
}

.cta-panel h2 {
  color: #fff;
}

.cta-panel p {
  max-width: 620px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.66);
}

.cta-panel .button-row {
  justify-content: center;
}

/* Footer */
.site-footer {
  color: #fff;
  background: #04101d;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
  gap: 54px;
  padding: 76px 0 54px;
}

.footer-brand .brand {
  margin-bottom: 20px;
}

.footer-brand .brand-logo {
  width: 56px;
  height: 56px;
}

.footer-brand p {
  max-width: 330px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.88rem;
}

.footer-col h3 {
  margin-bottom: 20px;
  color: #fff;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col nav,
.footer-col address {
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
  font-style: normal;
}

.footer-col a:hover {
  color: var(--blue-300);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.73rem;
}

.footer-legal {
  display: flex;
  gap: 18px;
}

/* Legal */
.legal-content {
  max-width: 840px;
}

.legal-content h2 {
  margin: 46px 0 18px;
  font-size: 2rem;
}

.legal-content h3 {
  margin: 30px 0 12px;
  font-size: 1.25rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-note {
  margin-bottom: 34px;
  padding: 18px;
  border-left: 4px solid var(--blue-500);
  color: var(--navy-900);
  background: var(--blue-100);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms cubic-bezier(.22, .61, .36, 1), transform 420ms cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition-delay: 0ms !important;
  }
  .hero-media img,
  .page-hero-media img,
  .reference-project .gallery-item:first-child picture,
  .project-detail-gallery .gallery-item:first-child picture {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }
  .process-grid.process-sequence::after,
  .process-grid.process-sequence .process-step::before {
    opacity: 1;
    transform: none !important;
    transition-delay: 0ms !important;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 74px;
  }

  .section { padding: 88px 0; }

  .longform-page .section-major { padding-block: 96px; }
  .longform-page .section-support { padding-block: 76px; }
  .longform-page .section-proof { padding-block: 104px; }
  .longform-page .section-cta { padding-block: 76px; }

  .card-grid-editorial .info-card:nth-child(n) {
    grid-column: span 1;
  }

  .reference-list-rhythmic .reference-project:nth-child(even),
  .reference-list-evidence .reference-project {
    grid-template-columns: 1fr;
  }

  .course-jump-nav .container {
    overflow-x: auto;
    white-space: nowrap;
  }

  .course-jump-nav a:last-child {
    margin-left: 0;
  }

  .trust-grid,
  .trust-card:first-child {
    grid-template-columns: 1fr;
  }

  .trust-card:first-child {
    grid-column: auto;
  }

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

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(420px, 92vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    padding: 90px 28px 34px;
    overflow-y: auto;
    transform: translateX(100%);
    background: var(--navy-950);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
    transition: transform 240ms ease;
  }

  .main-nav.open { transform: translateX(0); }

  .main-nav a {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
    font-size: 1.28rem;
  }

  .main-nav .nav-cta {
    margin: 18px 0 0;
    border: 0;
    border-radius: 999px;
    text-align: center;
  }

  .menu-toggle { z-index: 2; }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .hero-meta { display: none; }

  .hero-copy { max-width: 760px; }

  .intro-grid,
  .reference-project,
  .project-detail-intro,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .intro-aside,
  .reference-summary,
  .contact-details {
    position: static;
  }

  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:first-child { grid-column: 1 / -1; }

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

  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

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

@media (max-width: 720px) {
  :root {
    --container: min(100% - 28px, 1180px);
    --radius-xl: 1.35rem;
  }

  body { font-size: 15px; overflow-x: clip; }

  body[data-page="zertifikatslehrgang"] .course-hero .page-hero-media img {
    object-position: 22% center;
  }

  body[data-page="zertifikatslehrgang"] .course-hero .page-hero-media::after {
    background:
      linear-gradient(90deg, rgba(6, 21, 36, 0.94), rgba(6, 21, 36, 0.7)),
      linear-gradient(0deg, rgba(6, 21, 36, 0.78), rgba(6, 21, 36, 0.18) 62%);
  }

  .section { padding: 58px 0; }
  .section-sm { padding: 44px 0; }

  .longform-page .section-major { padding-block: 64px; }
  .longform-page .section-support { padding-block: 50px; }
  .longform-page .section-proof { padding-block: 68px; }
  .longform-page .section-cta { padding-block: 50px; }

  .course-spec-grid,
  .course-feature-grid {
    grid-template-columns: 1fr;
  }

  .course-intro .split-media,
  .course-intro .split-media img {
    min-height: 240px;
  }

  .trust-card {
    gap: 20px;
    padding: 20px;
  }

  .trust-gallery .gallery-item,
  .trust-gallery .gallery-item:first-child {
    min-height: 128px;
  }

  h1 { font-size: clamp(2.35rem, 11vw, 3.7rem); }
  h2 { font-size: clamp(1.85rem, 8vw, 2.75rem); }
  h3 { font-size: clamp(1.25rem, 6vw, 1.7rem); }

  .lead { margin-top: 18px; }

  .section-head {
    display: block;
    margin-bottom: 28px;
  }

  .section-head > .text-link { margin-top: 16px; }

  .intro-logo {
    width: min(100%, 320px);
  }

  .hero { min-height: max(560px, 82svh); }
  .page-hero { min-height: clamp(500px, 68svh, 620px); }

  .hero-content,
  .page-hero-content {
    padding: calc(var(--header-h) + 42px) 0 50px;
  }

  .hero .lead,
  .page-hero .lead {
    font-size: 1rem;
  }

  .hero-scroll { display: none; }
  .hero-index { display: none; }

  .button-row { gap: 10px; margin-top: 26px; }
  .btn { min-height: 50px; padding-inline: 20px; }
  .button-row > * { max-width: 100%; }

  .reference-detail-link {
    width: 100%;
    min-height: 56px;
    margin-top: 26px;
    padding: 15px 18px;
  }

  .micro-grid,
  .video-grid,
  .service-grid,
  .team-grid,
  .card-grid,
  .process-grid,
  .split,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(2),
  .service-card:nth-child(3) {
    min-height: 350px;
    grid-column: auto;
  }

  .service-content { padding: 22px; }

  .project-strip { display: grid; grid-template-columns: 1fr; }
  .project-teaser,
  .project-teaser:nth-child(2),
  .project-teaser:nth-child(3),
  .project-teaser:nth-child(4) {
    min-height: 330px;
    grid-column: auto;
  }

  .project-caption { padding: 22px; }
  .project-caption p { font-size: 0.8rem; }

  .process-grid { gap: 0; border-top: 0; }
  .process-step {
    padding: 22px 0 22px 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
  }
  .process-step::before { top: 28px; left: -6px; }

  .process-grid.process-sequence::after {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: 1px;
    height: auto;
    transform: scaleY(0);
    transform-origin: center top;
  }

  .process-grid.process-sequence.process-visible::after {
    transform: scaleY(1);
  }

  .process-grid.process-sequence .process-step {
    border-left: 0;
  }

  .split.reverse .split-media { order: 0; }
  .split-media,
  .split-media img { min-height: 320px; }

  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding: 22px 12px; }

  .team-photo { height: 300px; }

  .info-card,
  .card-grid-compact .info-card,
  .course-feature { min-height: 0; padding: 22px; }
  .info-card-number, .info-card-icon,
  .card-grid-compact .info-card-number,
  .card-grid-compact .info-card-icon { margin-bottom: 26px; }

  .job-card { grid-template-columns: 1fr; padding: 22px; }
  .job-card .circle-arrow { display: none; }

  .reference-list { gap: 48px; }
  .reference-project { gap: 22px; }
  .project-gallery { grid-template-columns: 1fr; gap: 8px; }
  .project-gallery .gallery-item { height: 190px; }
  .project-gallery .gallery-item:first-child { height: 280px; }
  .gallery-item:first-child { min-height: 280px; grid-column: auto; }
  .gallery-item, .gallery-placeholder { min-height: 190px; }
  .trust-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-detail-gallery { grid-template-columns: 1fr; }
  .project-detail-gallery .gallery-item { height: 220px; min-height: 0; grid-column: auto; }
  .project-detail-gallery .gallery-item:first-child { height: 280px; min-height: 0; grid-column: auto; }

  .split-copy,
  .reference-project,
  .trust-card,
  .contact-layout > * {
    min-width: 0;
  }

  h1,
  h2,
  h3,
  .btn,
  .fact strong,
  .contact-block a {
    overflow-wrap: anywhere;
  }

  .lightbox { padding: 12px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 55px; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }

  .form-field.full,
  .form-note,
  .form-status { grid-column: auto; }

  .map-content { display: block; }
  .map-content .btn { margin-top: 18px; }

  .cta-panel,
  .longform-page .section-cta .cta-panel {
    min-height: 360px;
    padding: 42px 20px;
  }

  .cta-panel p { margin-top: 16px; }

  .footer-main { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .section { padding-block: 52px; }
  .longform-page .section-major { padding-block: 58px; }
  .longform-page .section-support { padding-block: 46px; }
  .longform-page .section-proof { padding-block: 60px; }
  .longform-page .section-cta { padding-block: 44px; }

  h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  h2 { font-size: clamp(1.75rem, 7.8vw, 2.35rem); }

  .hero { min-height: max(540px, 78svh); }
  .page-hero { min-height: clamp(470px, 64svh, 560px); }

  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .btn { width: 100%; }

  .service-card,
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .project-teaser,
  .project-teaser:nth-child(2),
  .project-teaser:nth-child(3),
  .project-teaser:nth-child(4) {
    min-height: 310px;
  }

  .split-media,
  .split-media img { min-height: 280px; }

  .course-intro .split-media,
  .course-intro .split-media img { min-height: 220px; }

  .gallery-item:first-child { min-height: 240px; }
  .gallery-item,
  .gallery-placeholder { min-height: 170px; }
  .project-gallery .gallery-item { height: 170px; min-height: 0; }
  .project-gallery .gallery-item:first-child { height: 240px; min-height: 0; }
  .project-detail-gallery .gallery-item { height: 210px; min-height: 0; }
  .project-detail-gallery .gallery-item:first-child { height: 250px; min-height: 0; }
  .trust-gallery .gallery-item,
  .trust-gallery .gallery-item:first-child { min-height: 112px; }

  .cta-panel,
  .longform-page .section-cta .cta-panel {
    min-height: 330px;
    padding: 34px 16px;
  }

  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:nth-child(3) { border-bottom: 1px solid var(--line); }
  .footer-legal { flex-wrap: wrap; }
}
