/* ==========================================================================
   Foitek Bauberatung GmbH: Bauherrenberatung & Baumanagement
   Design system: lime wash · night blue · brick
   Motif: the Foitek mark, a circle with a running-bond brick pattern
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --kalk: #F3F2EE;
  --kalk-2: #E8E7E1;
  --white: #FBFBF9;
  --ink: #142230;
  --ink-2: #1B2C3D;
  --ink-3: #25394D;
  --ink-deep: #0D1822;
  --brick: #B5552C;
  --brick-text: #9F451E;
  --brick-light: #E3916A;
  --stone: #8B939A;
  --muted: #55606B;
  --muted-light: #A4AFB9;
  --line: rgba(20, 34, 48, .14);
  --line-strong: rgba(20, 34, 48, .28);
  --line-light: rgba(243, 242, 238, .16);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 118%;
  --semi-wide: 110%;

  --container: 1320px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --section: clamp(88px, 11vw, 160px);
  --header-h: 84px;
  --radius: 20px;
  --radius-sm: 12px;

  --ease: cubic-bezier(.2, .7, .15, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--kalk);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-open { overflow: hidden; }

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

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

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

::selection { background: var(--brick-light); color: var(--ink); }

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  color: inherit;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.skip-link {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--kalk);
  font-size: .875rem;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); position: relative; }
.section--stone { background: var(--kalk-2); }
.section--dark { background: var(--ink); color: var(--kalk); }

/* ---------- Typography ---------- */

.display {
  font-size: clamp(2.6rem, 1rem + 4.9vw, 5.6rem);
  font-stretch: var(--wide);
  font-weight: 620;
  line-height: .96;
  letter-spacing: -.035em;
}

.h2 {
  font-size: clamp(2rem, 1.2rem + 2.7vw, 3.6rem);
  font-stretch: var(--wide);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.03em;
}

.h3 {
  font-size: clamp(1.18rem, 1.05rem + .4vw, 1.4rem);
  font-stretch: var(--semi-wide);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.012em;
}

/* The accent echoes the light wordmark of the logo */
.accent {
  font-style: normal;
  font-weight: 300;
  color: var(--brick-text);
}
.section--dark .accent,
.on-dark .accent { color: var(--brick-light); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brick-text);
}
/* a single brick instead of a rule */
.eyebrow::before {
  content: "";
  width: 16px;
  height: 8px;
  border-radius: 2px;
  background: var(--brick);
  flex: none;
}
.section--dark .eyebrow,
.on-dark .eyebrow { color: var(--brick-light); }
.on-dark .eyebrow::before { background: var(--brick-light); }

.lead {
  font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem);
  line-height: 1.6;
  color: var(--muted);
}
.section--dark .lead { color: var(--muted-light); }

.muted { color: var(--muted); }

/* ---------- Buttons & links ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--kalk);
  --btn-fill: var(--brick);
  --btn-fill-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 28px;
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .005em;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 110%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--btn-fill);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .6s var(--ease);
}
.btn:hover::before,
.btn:focus-visible::before { transform: translate(-50%, -50%) scale(1.2); }
.btn:hover,
.btn:focus-visible { color: var(--btn-fill-fg); border-color: var(--btn-fill); }

.btn .arrow { transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-fill: var(--ink);
  --btn-fill-fg: var(--kalk);
  border-color: var(--line-strong);
}

.btn--brick {
  --btn-bg: var(--brick);
  --btn-fg: #fff;
  --btn-fill: var(--kalk);
  --btn-fill-fg: var(--ink);
}

.arrow { width: 18px; height: 10px; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: .9375rem;
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.link-arrow:hover { background-size: 100% 1px; color: var(--brick-text); }
.link-arrow .arrow { transition: transform .45s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), opacity .3s;
}
.round-btn svg { width: 18px; height: 18px; }
.round-btn--next svg { transform: rotate(180deg); }
.round-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--kalk); }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn:disabled:hover { background: transparent; color: var(--ink); border-color: var(--line-strong); }

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-name {
  font-size: 1.62rem;
  font-stretch: 125%;
  font-weight: 330;
  letter-spacing: .015em;
  line-height: .86;
}
.brand-sub {
  margin-top: 5px;
  font-size: .545rem;
  font-weight: 450;
  letter-spacing: .5em;
  margin-right: -.5em;
  text-transform: uppercase;
}
.on-dark .brand { color: var(--kalk); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height .45s var(--ease), background-color .45s var(--ease), transform .5s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.site-header.is-scrolled {
  height: 70px;
  background: rgba(243, 242, 238, .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
.site-header.is-scrolled::after { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); }

.nav-list {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  position: relative;
  font-size: .9rem;
  font-weight: 500;
  padding-block: 8px;
  opacity: .8;
  transition: opacity .3s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--brick);
  transform: scale(0);
  transition: transform .45s var(--ease-pop);
}
.nav-list a:hover,
.nav-list a.is-active { opacity: 1; }
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scale(1); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.header-phone svg { width: 16px; height: 16px; color: var(--brick); transition: color .35s; }
.header-phone:hover { background: var(--ink); border-color: var(--ink); color: var(--kalk); }
.header-phone:hover svg { color: var(--brick-light); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch button {
  min-width: 36px;
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  color: var(--muted);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--kalk); }
.lang-switch button:not([aria-pressed="true"]):hover { color: var(--ink); }

.menu-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .45s var(--ease), top .45s var(--ease), width .45s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 28px; width: 16px; }
body.nav-open .menu-toggle span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { top: 23.5px; width: 24px; transform: rotate(-45deg); }

/* Mobile navigation overlay, opens as an expanding circle */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 20px) var(--gutter) 32px;
  background: var(--kalk);
  overflow-y: auto;
  visibility: hidden;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .8s var(--ease), visibility 0s linear .8s;
}
body.nav-open .mobile-nav {
  visibility: visible;
  clip-path: circle(150% at calc(100% - 40px) 40px);
  transition: clip-path .8s var(--ease), visibility 0s;
}
.mobile-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: m;
}
.mobile-nav li {
  counter-increment: m;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
body.nav-open .mobile-nav li { opacity: 1; transform: none; }
body.nav-open .mobile-nav li:nth-child(1) { transition-delay: .15s; }
body.nav-open .mobile-nav li:nth-child(2) { transition-delay: .2s; }
body.nav-open .mobile-nav li:nth-child(3) { transition-delay: .25s; }
body.nav-open .mobile-nav li:nth-child(4) { transition-delay: .3s; }
body.nav-open .mobile-nav li:nth-child(5) { transition-delay: .35s; }
.mobile-nav li a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 15px 0;
  font-size: clamp(1.8rem, 7.4vw, 2.5rem);
  font-stretch: var(--wide);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.mobile-nav li a::before {
  content: "0" counter(m);
  font-size: .75rem;
  font-stretch: 100%;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--brick-text);
}
.mobile-nav-foot {
  display: grid;
  gap: 14px;
  font-size: .95rem;
  color: var(--muted);
}
.mobile-nav-foot .lang-switch { justify-self: start; margin-bottom: 6px; }
.mobile-nav-line { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.mobile-nav-line svg { width: 18px; height: 18px; color: var(--brick); }
.mobile-nav-foot .btn { justify-content: center; margin-top: 8px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: var(--header-h);
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: center;
  min-height: min(calc(100svh - var(--header-h) - 150px), 760px);
  padding-block: clamp(36px, 6vh, 80px) clamp(28px, 4vh, 56px);
}
.hero-content { grid-column: 1 / span 7; position: relative; z-index: 2; }
.hero .display { margin-bottom: clamp(22px, 2.6vw, 34px); }
.hero .display .line { display: block; }
.hero .lead { max-width: 33em; margin-bottom: clamp(30px, 3.6vw, 44px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.owner-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 7px 7px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 18px 40px -28px rgba(20, 34, 48, .35);
  transition: border-color .35s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
}
.owner-chip img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.owner-chip-text { display: grid; line-height: 1.25; padding-right: 10px; }
.owner-chip-text small {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brick-text);
}
.owner-chip-text strong { font-size: .98rem; font-stretch: var(--semi-wide); }
.owner-chip-text span { font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.owner-chip-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--kalk);
  flex: none;
  transition: background-color .35s var(--ease);
}
.owner-chip-icon svg { width: 18px; height: 18px; }
.owner-chip:hover { border-color: var(--brick); transform: translateY(-2px); box-shadow: 0 22px 44px -26px rgba(20, 34, 48, .45); }
.owner-chip:hover .owner-chip-icon { background: var(--brick); }

.hero-visual {
  grid-column: 8 / -1;
  justify-self: end;
  position: relative;
  /* grows only into the right margin, never into the text column */
  width: min(calc(100% + var(--gutter) * .35), 640px);
  aspect-ratio: 1;
  margin-right: calc(var(--gutter) * -.35);
}
.hero-photo {
  position: absolute;
  inset: 10.5%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--kalk-2);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hero-ring-line {
  fill: none;
  stroke: var(--brick);
  stroke-width: 1.4;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.hero-ring-text {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .1em;
  fill: var(--stone);
  transform-origin: 300px 300px;
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-seal {
  position: absolute;
  left: 1%;
  bottom: 9%;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  width: clamp(108px, 9.4vw, 136px);
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 50%;
  background: var(--brick);
  color: #fff;
  text-align: center;
  font-size: .72rem;
  line-height: 1.2;
  box-shadow: 0 24px 48px -24px rgba(117, 46, 16, .55);
}
.hero-seal-mark { width: 28px; height: 28px; opacity: .9; }
.hero-seal strong {
  display: block;
  font-size: .92rem;
  font-stretch: var(--semi-wide);
  letter-spacing: -.01em;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 26px 0 clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.facts dt {
  margin-bottom: 4px;
  font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem);
  font-stretch: var(--wide);
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.facts dd { margin: 0; max-width: 17em; font-size: .84rem; line-height: 1.45; color: var(--muted); }

/* ---------- Frames ---------- */

.frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--kalk-2);
}
.frame--round { border-radius: var(--radius); }
.section--stone .frame { background: #DCDBD4; }
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Wer wir sind ---------- */

.intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 56px;
  align-items: start;
}
.intro-media { grid-column: 1 / span 5; margin: 0; position: sticky; top: 104px; }
.intro-media .frame { aspect-ratio: 4 / 5; }
.intro-media img { object-position: 38% 50%; }
.intro-body { grid-column: 7 / span 6; }
.intro-body .h2 { margin-bottom: 28px; }
.intro-body .lead { color: var(--ink); margin-bottom: 20px; }
.intro-body > p:not(.lead):not(.eyebrow) { color: var(--muted); }

.principles {
  list-style: none;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.principle {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.principle-icon {
  box-sizing: content-box;
  width: 30px;
  height: 30px;
  padding: 13px;
  border-radius: 50%;
  background: var(--white);
  color: var(--brick);
}
.principle .h3 { margin-bottom: 8px; }
.principle p { color: var(--muted); font-size: 1rem; }

/* ---------- Section head ---------- */

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: end;
  margin-bottom: clamp(44px, 5.5vw, 80px);
}
.section-head > :first-child { grid-column: 1 / span 7; }
.section-head > :last-child:not(:first-child) { grid-column: 9 / span 4; }

/* ---------- Leistungen (tabs) ---------- */

.tab-list { display: none; }
.js .tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: clamp(36px, 4.5vw, 56px);
  padding: 6px;
  border-radius: 999px;
  background: var(--kalk);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
.tab-num {
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--brick-text);
  transition: color .45s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--kalk); }
.tab[aria-selected="true"] .tab-num { color: var(--brick-light); }

.tab-panel {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 40px;
  align-items: start;
}
.tab-panel[hidden] { display: none; }
.tab-panel + .tab-panel { margin-top: clamp(72px, 9vw, 120px); }
.js .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel:focus-visible { outline-offset: 12px; border-radius: var(--radius); }

.panel-media { grid-column: 1 / span 5; position: sticky; top: 104px; }
.panel-media .frame { aspect-ratio: 4 / 5; }
.panel-body { grid-column: 7 / span 6; }
#panel-beratung .panel-media img { object-position: 42% 50%; }
#panel-management .panel-media img { object-position: 55% 50%; }
#panel-weitere .panel-media img { object-position: 72% 50%; }

.panel-tag {
  margin-bottom: 12px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brick-text);
}
.panel-title {
  margin-bottom: 22px;
  font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem);
  font-stretch: var(--wide);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.panel-body .lead { color: var(--ink); margin-bottom: 36px; }
.panel-list-title {
  margin-bottom: 4px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel-body .link-arrow { margin-top: 32px; }

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.checklist li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.5;
}
.checklist svg { width: 18px; height: 18px; margin-top: 3px; color: var(--brick); }

/* Panel change */
@keyframes panel-rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes panel-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.tab-panel.is-entering .panel-body > * { animation: panel-rise .7s var(--ease) both; }
.tab-panel.is-entering .panel-body > :nth-child(2) { animation-delay: .05s; }
.tab-panel.is-entering .panel-body > :nth-child(3) { animation-delay: .1s; }
.tab-panel.is-entering .panel-body > :nth-child(4) { animation-delay: .15s; }
.tab-panel.is-entering .panel-body > :nth-child(5) { animation-delay: .2s; }
.tab-panel.is-entering .panel-body > :nth-child(6) { animation-delay: .25s; }
.tab-panel.is-entering .panel-media .frame { animation: panel-wipe .9s var(--ease) both; }

/* ---------- Für wen ---------- */

.audiences {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}
.audience {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease);
}
.audience:hover {
  transform: translateY(-4px);
  border-color: rgba(181, 85, 44, .4);
  box-shadow: 0 30px 60px -40px rgba(20, 34, 48, .45);
}
.audience-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 36px;
  padding: 12px;
  border-radius: 50%;
  background: var(--kalk);
  color: var(--brick);
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.audience:hover .audience-icon { background: var(--brick); color: #fff; }
.audience .h3 { margin-bottom: 12px; }
.audience p { color: var(--muted); font-size: .98rem; }
.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 24px 0 0;
  list-style: none;
}
.audience-tags li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 500;
  color: var(--muted);
}
.audience-tags--light li { border-color: var(--line-light); color: var(--kalk); }

/* ---------- Statement band ---------- */

.statement {
  position: relative;
  min-height: clamp(500px, 82vh, 820px);
  display: flex;
  align-items: flex-end;
  color: var(--kalk);
  overflow: hidden;
  background: var(--ink);
}
.statement-media { position: absolute; inset: -12% 0; }
.statement-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: saturate(.75) contrast(1.04);
  will-change: transform;
}
.statement::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 24, 34, .3) 0%, rgba(13, 24, 34, 0) 35%, rgba(13, 24, 34, .82) 100%),
    linear-gradient(90deg, rgba(13, 24, 34, .6) 0%, rgba(13, 24, 34, 0) 72%);
}
.statement .container { position: relative; z-index: 2; padding-bottom: clamp(56px, 8vw, 112px); }
.statement blockquote { margin: 0; }
.statement-mark { width: 52px; height: 52px; margin-bottom: 28px; color: var(--brick-light); }
.statement blockquote p {
  max-width: 14em;
  font-size: clamp(1.85rem, 1.05rem + 3vw, 3.9rem);
  font-stretch: var(--wide);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -.032em;
}
.statement blockquote footer {
  margin-top: 26px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brick-light);
}

/* ---------- Vorgehen: a course of bricks ---------- */

.process-wrap { position: relative; }
.course {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  margin-bottom: 10px;
}
.course + .course { margin-bottom: 40px; }
.brick {
  height: 22px;
  border-radius: 4px;
  background: var(--brick);
}
/* the lower course is offset by half a brick: a running bond */
.course--base {
  grid-template-columns: .5fr repeat(4, minmax(0, 1fr)) .5fr;
}
.course--base .brick {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step { position: relative; }
.step-num {
  display: block;
  margin-bottom: 12px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--brick-text);
}
.step .h3 { margin-bottom: 10px; }
.step p { font-size: .96rem; color: var(--muted); }

/* ---------- Referenzen ---------- */

.card-meta {
  margin-bottom: 10px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brick-text);
}

/* Before / after */
.compare-feature {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 40px;
  align-items: center;
}
.compare {
  --pos: 50%;
  grid-column: 1 / span 5;
  position: relative;
  aspect-ratio: 444 / 593;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.compare-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-label {
  position: absolute;
  top: 16px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 24, 34, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  pointer-events: none;
}
.compare-label--before { left: 16px; }
.compare-label--after { right: 16px; }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  pointer-events: none;
}
.compare-handle > span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(13, 24, 34, .6);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), background-color .3s;
}
.compare-handle svg { width: 16px; height: 16px; }
.compare-handle svg + svg { transform: rotate(180deg); margin-left: -4px; }
.compare.is-dragging .compare-handle > span,
.compare:hover .compare-handle > span { transform: translate(-50%, -50%) scale(1.08); }
.compare:has(.compare-range:focus-visible) .compare-handle > span { outline: 2px solid var(--brick); outline-offset: 3px; }
.compare-range {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.compare.is-swapping .compare-img { animation: fade-in .6s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.compare-body { grid-column: 7 / span 6; }
.compare-title { margin-bottom: 20px; }
.compare-body .lead { margin-bottom: 36px; max-width: 30em; }
.compare-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
}
.compare-thumbs button {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}
.compare-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 0 var(--brick);
  opacity: .72;
  transition: box-shadow .35s var(--ease), opacity .35s var(--ease), transform .45s var(--ease);
}
.compare-thumbs button:hover img { opacity: 1; transform: translateY(-2px); }
.compare-thumbs button[aria-pressed="true"] { color: var(--ink); }
.compare-thumbs button[aria-pressed="true"] img { opacity: 1; box-shadow: 0 0 0 2px var(--kalk-2), 0 0 0 4px var(--brick); }

/* Mandates */
.mandates {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: clamp(48px, 5vw, 72px);
  margin-top: clamp(80px, 9vw, 136px);
}
.mandate { grid-column: span 4; }
.mandate--wide { grid-column: span 7; }
.mandate--wide + .mandate { grid-column: span 5; }

.mandate-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: zoom-in;
}
.mandate-media .frame { aspect-ratio: 1; }
.mandate--wide .mandate-media .frame,
.mandate--wide + .mandate .mandate-media .frame { aspect-ratio: auto; height: clamp(300px, 34vw, 470px); }
.mandate-media img { transition: transform 1.2s var(--ease); }
.mandate-media:hover img { transform: scale(1.045); }
.mandate-count {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(251, 251, 249, .94);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 600;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.mandate-count svg { width: 16px; height: 16px; }
.mandate-media:hover .mandate-count,
.mandate-media:focus-visible .mandate-count { background: var(--brick); color: #fff; }
.mandate-body { padding-top: 20px; }
.mandate-body .h3 { margin-bottom: 8px; }
.mandate-body p:not(.card-meta) { font-size: .96rem; color: var(--muted); }

/* Career scroller */
.career {
  margin-top: clamp(88px, 10vw, 144px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line-strong);
}
.career-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: 32px;
}
.career-title {
  margin-bottom: 8px;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  font-stretch: var(--wide);
  letter-spacing: -.025em;
}
.career-head .muted { max-width: 38em; }
.scroller-nav { display: flex; gap: 10px; }
.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(250px, 27vw, 360px);
  gap: clamp(14px, 1.6vw, 22px);
  margin: 0 calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 20px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.scroller:focus-visible { outline-offset: -2px; }
.career-item { scroll-snap-align: start; }
.career-item .frame { aspect-ratio: 4 / 3; }
.career-item img { transition: transform 1.2s var(--ease); }
.career-item:hover img { transform: scale(1.04); }
.career-item p { display: grid; padding-top: 14px; line-height: 1.35; }
.career-item strong { font-weight: 600; }
.career-item span { font-size: .9rem; color: var(--muted); }

.projects-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 40px;
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
}
.projects-foot .link-arrow { color: var(--ink); }

/* ---------- Über uns ---------- */

.profile {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 56px;
  align-items: start;
}
.profile-visual { grid-column: 1 / span 5; position: sticky; top: 104px; }
.frame--portrait { aspect-ratio: 4 / 5; background: #3A3D40; }
.profile-badge {
  position: absolute;
  right: clamp(-28px, -2vw, -12px);
  bottom: 36px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--kalk);
  font-size: .82rem;
  font-weight: 600;
  box-shadow: 0 24px 48px -24px rgba(13, 24, 34, .6);
}
.profile-badge svg { width: 34px; height: 34px; color: var(--brick-light); }
.profile-body { grid-column: 7 / span 6; }
.profile-body .h2 { margin-bottom: 36px; }
.profile-body > p { color: var(--muted); }
.profile-body > p + p { margin-top: 18px; }
.profile-body .lead { color: var(--ink); }

.person-head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.person-name {
  font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem);
  font-stretch: var(--wide);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.person-role { margin-top: 4px; font-size: .92rem; font-weight: 500; color: var(--brick-text); }

.private-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  align-items: baseline;
  margin: 36px 0 44px;
  padding: 22px 26px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}
.private-note-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brick-text);
}
.private-note p { color: var(--ink); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.timeline li:first-child { border-top: 1px solid var(--line-strong); }
.timeline time {
  font-size: .92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--brick-text);
}
.timeline strong { display: block; font-weight: 600; font-size: 1rem; }
.timeline span { display: block; font-size: .92rem; color: var(--muted); }
.timeline li.is-current strong::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--brick);
  vertical-align: middle;
  box-shadow: 0 0 0 4px rgba(181, 85, 44, .18);
}

.person-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.person-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.person-contact svg { width: 17px; height: 17px; color: var(--brick); transition: color .35s; }
.person-contact a:hover { background: var(--ink); border-color: var(--ink); color: var(--kalk); }
.person-contact a:hover svg { color: var(--brick-light); }

.team-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 24px;
  margin-top: clamp(80px, 9vw, 128px);
}
.member {
  grid-column: 1 / span 7;
  display: grid;
  grid-template-columns: clamp(140px, 14vw, 200px) 1fr;
  gap: clamp(20px, 2.4vw, 36px);
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.member-photo {
  align-self: start;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-body .person-role { margin-bottom: 16px; }
.member-body > p:not(.person-name):not(.person-role) { font-size: .98rem; color: var(--muted); }
.member-body .person-contact { margin-top: 22px; }
.member-body .person-contact a { padding: 8px 16px 8px 12px; font-size: .86rem; }

.partners {
  grid-column: 8 / -1;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--kalk);
}
.partners-mark { width: 56px; height: 56px; margin-bottom: 32px; color: var(--brick-light); }
.partners .h3 { margin-bottom: 12px; }
.partners p { color: var(--muted-light); font-size: .98rem; }

/* ---------- Kontakt ---------- */

.contact { position: relative; overflow: hidden; }
/* oversized mark, drawn faintly behind the form */
.contact::before {
  content: "";
  position: absolute;
  right: -12vw;
  top: -10vw;
  width: 56vw;
  aspect-ratio: 1;
  background: url("../img/logo-mark-line.svg") center / contain no-repeat;
  opacity: .05;
  pointer-events: none;
}
.contact .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 64px;
}
.contact-info { grid-column: 1 / span 5; }
.contact-form-wrap { grid-column: 7 / span 6; }

.contact-info .h2 { margin-bottom: 26px; }
.contact-info .lead { margin-bottom: 40px; }

.contact-people { display: grid; gap: 12px; margin-bottom: 36px; }
.contact-person {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line-light);
  border-radius: 18px;
  background: rgba(27, 44, 61, .6);
}
.contact-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #fff; }
.contact-person div { display: grid; line-height: 1.45; font-size: .94rem; }
.contact-person strong { font-size: 1.02rem; font-stretch: var(--semi-wide); }
.contact-person span { margin-bottom: 6px; font-size: .82rem; color: var(--muted-light); }
.contact-person a { width: fit-content; font-variant-numeric: tabular-nums; }
.contact-person a,
.contact-list a {
  background: linear-gradient(var(--brick-light), var(--brick-light)) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.contact-person a:hover,
.contact-list a:hover { background-size: 100% 1px; color: var(--brick-light); }

.contact-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-light); }
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: .96rem;
}
.contact-list .label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding-top: 3px;
}
.contact-list .map-link { display: inline-block; margin-top: 8px; font-size: .88rem; color: var(--brick-light); }

.regions { margin-top: 36px; }
.regions-title {
  display: block;
  margin-bottom: 14px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 7px 14px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: .82rem;
}

.form-card {
  padding: clamp(28px, 3.6vw, 52px);
  border: 1px solid var(--line-light);
  border-radius: 24px;
  background: var(--ink-2);
}
.form-card h3 { margin-bottom: 8px; }
.form-card > p { color: var(--muted-light); font-size: .95rem; margin-bottom: 28px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.field { position: relative; display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  padding-top: 18px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(243, 242, 238, .26);
  border-radius: 0;
  background: transparent;
  color: var(--kalk);
  font-size: 1rem;
  outline: none;
  transition: border-color .3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23E3916A' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 24px;
}
.field select option { background: var(--ink); color: var(--kalk); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(243, 242, 238, .34); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--brick-light); }
.field.has-error input,
.field.has-error textarea { border-bottom-color: #F08E77; }
.field-error {
  min-height: 1.2em;
  margin-top: 6px;
  font-size: .78rem;
  color: #F5A592;
}

.consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  margin-top: 20px;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--muted-light);
  cursor: pointer;
}
.consent input {
  display: grid;
  place-content: center;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  border: 1px solid rgba(243, 242, 238, .4);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .3s, border-color .3s;
}
.consent input::after {
  content: "";
  width: 10px; height: 6px;
  border-left: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform .25s var(--ease);
}
.consent input:checked { background: var(--brick); border-color: var(--brick); }
.consent input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent.has-error input { border-color: #F08E77; }
.consent a { color: var(--kalk); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(243, 242, 238, .4); }

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 30px;
}
.form-hint { font-size: .8rem; color: var(--muted-light); }

.form-status {
  display: none;
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(227, 145, 106, .1);
  font-size: .95rem;
}
.form-status.is-visible { display: flex; }
.form-status.is-error { background: rgba(240, 142, 119, .12); }
.form-status.is-error svg { display: none; }
.consent-error { grid-column: 1 / -1; margin: 6px 0 0 34px; }
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--brick-light); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-deep);
  color: var(--muted-light);
  padding-top: clamp(64px, 8vw, 104px);
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 48px;
  padding-bottom: clamp(56px, 7vw, 88px);
}
.footer-brand { grid-column: 1 / span 4; }
.footer-brand p { margin-top: 24px; max-width: 26em; line-height: 1.6; }
.footer-social {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: 24px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: var(--kalk);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.footer-social svg { width: 17px; height: 17px; }
.footer-social:hover { background: var(--brick); border-color: var(--brick); }
.footer-col:nth-of-type(2) { grid-column: 6 / span 2; }
.footer-col:nth-of-type(3) { grid-column: 8 / span 3; }
.footer-col:nth-of-type(4) { grid-column: 11 / span 2; }
.footer-col h4 {
  margin-bottom: 18px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--kalk);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--brick-light); }
.footer-col address { font-style: normal; line-height: 1.7; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px;
  border-top: 1px solid var(--line-light);
  font-size: .8rem;
}
.footer-bottom a:hover { color: var(--brick-light); }
.to-top { display: inline-flex; align-items: center; gap: 10px; color: var(--kalk); }
.to-top svg { width: 10px; height: 14px; transition: transform .4s var(--ease); }
.to-top:hover svg { transform: translateY(-3px); }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(13, 24, 34, .97);
  color: var(--kalk);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { animation: fade-in .35s var(--ease) both; }
.lightbox-inner {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  padding: 72px 96px 40px;
}
.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}
.lightbox-img {
  width: auto;
  max-width: min(1200px, 100%);
  max-height: calc(100dvh - 190px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  touch-action: pan-y;
}
.lightbox-img { transition: opacity .25s var(--ease); }
.lightbox-img.is-loading { opacity: .25; }
.lightbox-img.is-changing { animation: fade-in .45s var(--ease) both; }
.lightbox figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  width: 100%;
  margin-top: 18px;
  font-size: .95rem;
}
.lightbox-count { color: var(--muted-light); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lightbox .round-btn { position: absolute; border-color: var(--line-light); color: var(--kalk); }
.lightbox .round-btn:hover { background: var(--kalk); color: var(--ink); border-color: var(--kalk); }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close { right: 24px; top: 20px; }

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: calc(var(--header-h) + clamp(56px, 8vw, 120px)) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.legal-hero .h2 { max-width: 14em; }
.legal-hero p { margin-top: 20px; max-width: 40em; color: var(--muted); }
.legal {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  padding-block: clamp(48px, 7vw, 104px);
}
.legal-body { grid-column: 4 / span 7; }
.legal-body h2 {
  margin: 52px 0 14px;
  font-size: clamp(1.2rem, 1.1rem + .45vw, 1.5rem);
  font-stretch: var(--semi-wide);
  letter-spacing: -.015em;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p,
.legal-body li { color: var(--muted); }
.legal-body p + p { margin-top: 14px; }
.legal-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brick); }
.legal-body dl { margin: 0; display: grid; grid-template-columns: 200px 1fr; border-top: 1px solid var(--line); }
.legal-body dt, .legal-body dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.legal-body dt { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brick-text); padding-top: 19px; }
.legal-body dd { color: var(--ink); }
.legal-aside { grid-column: 1 / span 2; font-size: .85rem; }
.legal-aside a { display: inline-flex; gap: 10px; align-items: center; font-weight: 500; }
.legal-aside a:hover { color: var(--brick-text); }
.legal-aside .arrow { transform: rotate(180deg); }

/* ==========================================================================
   Motion: reveal on scroll
   Hidden states only apply when JS is running (html.js) and the user has
   not asked for reduced motion.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
      opacity 1.1s var(--ease) var(--delay, 0s),
      transform 1.2s var(--ease) var(--delay, 0s);
  }
  .js [data-reveal="fade"] { transform: none; }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }

  /* Image reveal: wipe from the left, like a trowel stroke */
  .js [data-reveal="image"] {
    opacity: 1;
    transform: none;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.4s var(--ease) var(--delay, 0s);
  }
  .js [data-reveal="image"] img {
    transform: scale(1.12);
    transition: transform 2s var(--ease) var(--delay, 0s);
  }
  .js [data-reveal="image"].is-visible { clip-path: inset(0 0 0 0); }
  .js [data-reveal="image"].is-visible img { transform: scale(1); }

  /* Hero photo opens like an iris, the circle of the logo */
  .js [data-reveal="circle"] {
    opacity: 1;
    transform: none;
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 1.6s var(--ease) var(--delay, 0s);
  }
  .js [data-reveal="circle"] img {
    transform: scale(1.18);
    transition: transform 2.4s var(--ease) var(--delay, 0s);
  }
  .js [data-reveal="circle"].is-visible { clip-path: circle(50% at 50% 50%); }
  .js [data-reveal="circle"].is-visible img { transform: scale(1); }

  .js .hero-ring-line { stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease) .5s; }
  .js .hero-photo.is-visible ~ .hero-ring .hero-ring-line { stroke-dashoffset: 0; }
  .js .hero-ring-text text { opacity: 0; transition: opacity 1.6s var(--ease) 1.2s; }
  .js .hero-photo.is-visible ~ .hero-ring .hero-ring-text text { opacity: 1; }

  .js [data-reveal="pop"] { transform: scale(.4); transition: opacity .6s var(--ease) var(--delay, 0s), transform .9s var(--ease-pop) var(--delay, 0s); }
  .js [data-reveal="pop"].is-visible { transform: none; }

  /* Headline lines rise out of a mask */
  .js .reveal-lines .line { overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
  .js .reveal-lines .line > span {
    display: inline-block;
    transform: translate3d(0, 105%, 0);
    transition: transform 1.2s var(--ease);
  }
  .js .reveal-lines .line:nth-child(2) > span { transition-delay: .12s; }
  .js .reveal-lines.is-visible .line > span { transform: none; }

  /* Bricks are laid one after the other */
  .js .course--top .brick {
    opacity: 0;
    transform: translate3d(0, -26px, 0);
    transition: opacity .5s var(--ease), transform .8s var(--ease-pop);
  }
  .js .process-wrap.is-visible .course--top .brick { opacity: 1; transform: none; }
  .js .process-wrap.is-visible .course--top .brick:nth-child(2) { transition-delay: .25s; }
  .js .process-wrap.is-visible .course--top .brick:nth-child(3) { transition-delay: .5s; }
  .js .process-wrap.is-visible .course--top .brick:nth-child(4) { transition-delay: .75s; }
  .js .process-wrap.is-visible .course--top .brick:nth-child(5) { transition-delay: 1s; }
  .js .process .step {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity .8s var(--ease), transform .9s var(--ease);
  }
  .js .process-wrap.is-visible .step { opacity: 1; transform: none; }
  .js .process-wrap.is-visible .step:nth-child(1) { transition-delay: .15s; }
  .js .process-wrap.is-visible .step:nth-child(2) { transition-delay: .4s; }
  .js .process-wrap.is-visible .step:nth-child(3) { transition-delay: .65s; }
  .js .process-wrap.is-visible .step:nth-child(4) { transition-delay: .9s; }
  .js .process-wrap.is-visible .step:nth-child(5) { transition-delay: 1.15s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-ring-text { animation: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1240px) {
  .header-phone span { display: none; }
  .header-phone { padding: 10px; }
}

@media (max-width: 1180px) {
  .nav-list { gap: 18px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
}

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

  .nav-list,
  .nav .lang-switch { display: none; }
  .menu-toggle { display: block; }
  .header-phone span { display: inline; }
  .header-phone { padding: 9px 14px; }

  .hero-grid { min-height: 0; row-gap: 40px; padding-top: clamp(28px, 6vw, 48px); }
  .hero-content { grid-column: 1 / -1; }
  .hero-visual {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 520px);
    margin-right: 0;
  }
  .owner-chip { margin-top: 32px; }

  .intro-media,
  .intro-body { grid-column: 1 / -1; }
  .intro-media { position: relative; top: 0; }
  .intro-media .frame { aspect-ratio: 4 / 3; }

  .section-head > :first-child,
  .section-head > :last-child:not(:first-child) { grid-column: 1 / -1; }
  .section-head > :last-child:not(:first-child) { margin-top: 20px; }

  .js .tab-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    width: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .js .tab-list::-webkit-scrollbar { display: none; }
  .tab { border: 1px solid var(--line-strong); }
  .tab[aria-selected="true"] { border-color: var(--ink); }
  .panel-media,
  .panel-body { grid-column: 1 / -1; }
  .panel-media { position: relative; top: 0; }
  .panel-media .frame { aspect-ratio: 16 / 10; }

  .audiences { grid-template-columns: 1fr; }
  .audience-icon { margin-bottom: 24px; }

  .course,
  .process { grid-template-columns: 1fr; }
  .course { display: none; }
  .process { gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 16px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
  }
  .step:last-child { border-bottom: 1px solid var(--line); }
  .step-num {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 52px;
    height: 26px;
    margin: 0;
    border-radius: 4px;
    background: var(--brick);
    color: #fff;
    letter-spacing: .08em;
  }
  .step:nth-child(even) .step-num { margin-left: 12px; }
  .step .h3 { margin-bottom: 6px; }

  .compare { grid-column: 1 / -1; width: min(100%, 480px); justify-self: center; }
  .compare-body { grid-column: 1 / -1; }

  .mandate,
  .mandate--wide,
  .mandate--wide + .mandate { grid-column: span 6; }
  .mandate--wide { grid-column: 1 / -1; }
  .mandate--wide .mandate-media .frame { height: auto; aspect-ratio: 3 / 2; }
  .mandate--wide + .mandate .mandate-media .frame { height: auto; aspect-ratio: 1; }

  .profile-visual,
  .profile-body { grid-column: 1 / -1; }
  .profile-visual { position: relative; top: 0; width: min(100%, 460px); }
  .profile-badge { right: -12px; }

  .member,
  .partners { grid-column: 1 / -1; }

  .contact-info,
  .contact-form-wrap { grid-column: 1 / -1; }
  .contact::before { width: 110vw; right: -40vw; top: -20vw; }

  .footer-brand { grid-column: 1 / -1; }
  .footer-col,
  .footer-col:nth-of-type(n) { grid-column: span 4; }

  .legal-body { grid-column: 1 / -1; }
  .legal-aside { grid-column: 1 / -1; margin-bottom: 32px; }

  .lightbox-inner { padding: 72px 16px 104px; }
  .lightbox-prev,
  .lightbox-next { top: auto; bottom: 28px; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
  .lightbox-img { max-height: calc(100dvh - 240px); }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }

  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .owner-chip { display: flex; }
  .owner-chip-text { flex: 1; }
  .hero-seal { width: 100px; font-size: .64rem; bottom: 4%; left: -2%; }
  .hero-seal strong { font-size: .8rem; }
  .hero-seal-mark { width: 22px; height: 22px; }
  .hero-ring-text { font-size: 15px; }

  .facts { grid-template-columns: 1fr; gap: 0; padding-top: 0; border-top: 0; }
  .facts > div {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 16px;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .facts dt { margin: 0; font-size: 1.1rem; }

  .principle { grid-template-columns: 1fr; gap: 14px; }

  .compare-thumbs { gap: 8px; }
  .compare-thumbs button { font-size: .74rem; }

  .mandate,
  .mandate--wide + .mandate { grid-column: 1 / -1; }
  .mandate-media .frame,
  .mandate--wide + .mandate .mandate-media .frame { aspect-ratio: 4 / 3; }

  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .private-note { grid-template-columns: 1fr; padding: 20px; }

  .member { grid-template-columns: 1fr; }
  .member-photo { width: 140px; }

  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; justify-content: center; }

  .contact-list li { grid-template-columns: 1fr; gap: 4px; }

  .footer-col,
  .footer-col:nth-of-type(n) { grid-column: 1 / -1; }

  .legal-body dl { grid-template-columns: 1fr; }
  .legal-body dt { padding-bottom: 0; border-bottom: 0; }
  .legal-body dd { padding-top: 6px; }
}

@media (max-width: 420px) {
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1.36rem; }
  .brand-sub { font-size: .47rem; }
  .header-phone span { display: none; }
  .header-phone { padding: 10px; }
}

@media print {
  .site-header, .mobile-nav, .contact-form-wrap, .to-top, .lightbox, .scroller-nav { display: none !important; }
  .section--dark, .site-footer, .partners { background: #fff; color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
