@import url('https://fonts.bunny.net/css?family=poppins:400,600,700&display=swap');

:root {
  --dark: #0b211d;
  --dark-2: #14382f;
  --dark-3: #08251f;
  --gema_gruen: #388e7e;
  --gema_violett: #933CD6;
  --purple-card: #642297;
  --gema_orange: #dc7318;
  --lime: #d1dc6a;
  --gold: #f2bd57;
  --white: #ffffff;
  --gema_weiss: #ffffff;
  --gema_textgruen: #2B5E5F;
  --gema_backtotop: #ffffff;
  --panel-text: var(--white);
  --soft-white: rgba(255,255,255,.88);
  --section-x: clamp(32px, 6vw, 96px);
  --header-h: 72px;
  --headline-size: clamp(2rem, 2.75vw, 3.35rem);
  --transition: 780ms cubic-bezier(.22,.72,.2,1);
  --font: 'Poppins', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-snap-type: y mandatory;
  scroll-behavior: auto;
  background: var(--dark);
  overscroll-behavior-y: none;
}
body {
  margin: 0;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-p);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; }
button, input, textarea { font: inherit; }
button { font-weight: 600; }

/* Hide the floating Cookiebot widget badge — consent is reopened via the
   footer "COOKIES" link (Cookiebot.show()). */
#CookiebotWidget { display: none !important; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 3000;
  padding: 10px 14px;
  background: var(--lime);
  color: var(--dark);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Header ------------------------------------------------------------------- */
.main-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 48px;
  background: transparent;
  border-bottom: 1px solid var(--white);
  box-shadow: 0 1px 0 rgba(5, 24, 20, .18);
  transition: transform .3s ease, opacity .3s ease;
}
/* Gradient backdrop that extends to twice the header height (fades out below it) */
.main-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--header-h) * 1.5);
  background: linear-gradient(to bottom, rgba(5, 24, 20, .54), rgba(5, 24, 20, 0));
  pointer-events: none;
  z-index: -1;
}
.main-header.is-hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}
.brand img { display: block; height: 41px; width: auto; }
.header-right { display: flex; align-items: center; gap: 22px; }
.main-nav { display: flex; align-items: center; }
/* Language switcher (dropdown) */
.lang-switch { position: relative; }
.lang-switch__toggle {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  text-transform: uppercase;
  font-size: .74rem;
  letter-spacing: .05em;
  opacity: .8;
  transition: opacity .2s ease;
}
.lang-switch__toggle:hover,
.lang-switch[open] .lang-switch__toggle { opacity: 1; }
.lang-switch__toggle::-webkit-details-marker { display: none; }
.lang-switch__caret { width: 11px; height: 8px; transition: transform .2s ease; }
.lang-switch[open] .lang-switch__caret { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,.34);
  z-index: 1100;
}
.lang-switch__link {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--white);
  text-decoration: none;
  font-size: .82rem;
  opacity: .78;
  transition: opacity .2s ease, background .2s ease;
}
.lang-switch__link:hover,
.lang-switch__link:focus-visible { opacity: 1; background: rgba(255,255,255,.08); }
.lang-switch__link.is-current { opacity: 1; font-weight: 700; }
.main-nav a {
  padding: 0 13px;
  border-left: 1px solid rgba(255,255,255,.88);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-size: .84rem;
  font-weight: 400;
}
.main-nav a:first-child { border-left: 0; }
.main-nav a.active,
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--white); font-weight: 700; }

/* Story scroll mechanic ---------------------------------------------------- */
.story { position: relative; }
.columns {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: rgba(255,255,255,.14);
}
.column { position: relative; overflow: hidden; }
.column__track {
  will-change: transform;
  transform: translate3d(0,0,0);
}
.panel {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  overflow: hidden;
}
.story-steps {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.story-step {
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Panel content ------------------------------------------------------------ */
.section-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100%;
  padding: calc(var(--header-h) + 24px) var(--section-x) 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.section-content--top { justify-content: flex-start; padding-top: calc(var(--header-h) + 42px); }
/* symmetric top/bottom padding so centered content sits in the true middle
   (the top padding clears the fixed header) */
.section-content--center { justify-content: center; padding-bottom: calc(var(--header-h) + 24px); }
/* First row still shows the fixed header, so centre within the area below it
   (top padding − header height). Other rows have no header → symmetric above. */
.panel[data-screen="0"] .section-content--center { padding-bottom: 24px; }
.section-content--bottom { justify-content: flex-end; padding-bottom: clamp(48px, 8vh, 92px); }

/* Auto-fit wrapper: groups the stacked modules so the auto-fit script can
   uniformly scale the whole block (CSS zoom) down to fit inside the panel,
   below the fixed header. Inert (zoom 1) when auto-fit is off or not needed. */
.section-fit { width: 100%; }
/* Auto-fit fallback: if a block is still too tall at the minimum scale, align it
   to the top (header-clearance line) so it can never spill up under the header. */
.section-content.is-fit-clip { justify-content: flex-start; }

/* Content modules stacked inside a content panel */
.content-module { width: 100%; }
.content-module > :last-child { margin-bottom: 0; }
/* quote directly following a quote: fixed gap */
.content-module--storyquote + .content-module--storyquote { margin-top: 100px; }
/* LinkedIn follow: pinned to the very bottom (out of flow) so the rest of the
   panel content (e.g. the contact form) stays vertically centred above it. */
.section-content .content-module--storylinkedin {
  position: absolute;
  left: var(--section-x);
  right: var(--section-x);
  bottom: 52px;
  margin-top: 0;
}

/* Legal text blocks (Privacy / Imprint) */
.richtext > :last-child { margin-bottom: 0; }
.imprint__subheading { margin: 0 0 6px; }
.imprint__section + .imprint__section { margin-top: 26px; }
/* Legal panels: stay vertically centred, but scroll (from the top, no clipping)
   when the text is taller than the screen. "safe center" avoids the flexbox
   overflow-cutoff of plain center. */
.section-content:has(.content-module--storyprivacy),
.section-content:has(.content-module--storyimprint) { justify-content: safe center; overflow-y: auto; }

/* Dedicated legal pages (Imprint / Privacy): a single Content-Panel + footer */
.legal-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
/* No scroll-snapping on legal pages: the footer snap point fought scrolling
   through long legal text (page kept snapping back to the bottom). */
.legal-page .closing-strip { scroll-snap-align: none; scroll-snap-stop: normal; }
.legal-page .panel { flex: 1 0 auto; height: auto; }   /* panel grows, footer stays at the bottom */
.legal-page .section-content { min-height: 0; }
/* keep the legal text readable inside the full-width panel */
.legal-page .content-module { max-width: 760px; }
/* Privacy: cap the text column at 160 characters */
.legal-page .content-module--storyprivacy,
.legal-page .content-module--storyprivacy .richtext p { max-width: 160ch; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 600; }
h1 { font-size: var(--fs-h1); }
.display-heading {
  max-width: 24ch;
  margin-bottom: 18px;
  font-size: var(--fs-display);
  line-height: 1.2;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.display-heading--stage {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: var(--fs-hero);
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,.28);
}
/* Main content-module heading (h1 level) */
.content-module .display-heading--h2 { max-width: none; font-size: var(--fs-h1); }
h3 { margin-bottom: 8px; font-size: var(--fs-h3); line-height: 1.3; }
p { max-width: 66ch; margin-bottom: 14px; color: var(--soft-white); font-size: var(--fs-p); line-height: 1.8; }
/* Body/Lead text in content modules should fill the panel width (columns are already half-width) */
.content-module > p { max-width: none; }
/* No extra space after an h2 (e.g. "##" headings in body/legal text) */
h2 { margin-bottom: 0; font-size: var(--fs-h2); line-height: 1.3; }
.lead { color: var(--white); font-size: var(--fs-lead); font-weight: 400; line-height: 1.55; }

/* Panel backgrounds -------------------------------------------------------- */
.panel--dark { background: linear-gradient(155deg, var(--dark-2), var(--dark) 68%); --accent: var(--dark); }
.panel--teal { background: var(--gema_gruen); --accent: var(--gema_gruen); }
.panel--teal-dots { background: var(--gema_gruen); --accent: var(--gema_gruen); }
.panel--purple { background: var(--gema_violett); --accent: var(--gema_violett); }
.panel--purple-dots { background: var(--gema_violett); --accent: var(--gema_violett); }
.panel--orange { background: var(--gema_orange); --accent: var(--gema_orange); }
.panel--orange-dots { background: var(--gema_orange); --accent: var(--gema_orange); }
.panel--orange-lines { background: var(--gema_orange); --accent: var(--gema_orange); }

/* White profile: white background with a green dot-grid overlay + dark text */
.panel--white { background: var(--gema_weiss); color: var(--gema_textgruen); --accent: var(--gema_gruen); --panel-text: var(--gema_gruen); }
.panel--white::before,
.panel--teal-dots::before,
.panel--purple-dots::before,
.panel--orange-dots::before,
.panel--orange-lines::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: top left;
  background-size: auto;
  opacity: .35;
  pointer-events: none;
}
.panel--white::before,
.panel--teal-dots::before { background-image: url('../images/ge_website_texture_dots.svg'); }
.panel--teal-dots::before { opacity: 1; }
.panel--purple-dots::before { background-image: url('../images/ge_website_texture_dots_purple.svg'); opacity: 1; }
.panel--orange-dots::before { background-image: url('../images/ge_website_texture_dots_orange.svg'); opacity: 1; }
.panel--orange-lines::before { background-image: url('../images/ge_website_texture_lines.svg'); background-size: 100% 100%; opacity: 1; }
.panel--white .display-heading,
.panel--white h2,
.panel--white h3,
.panel--white .lead { color: var(--gema_textgruen); }
.panel--white p { color: var(--gema_textgruen); }
/* Numbered list on the white panel: green text, and a green badge with a
   white (= panel background) number so it stays legible. */
.panel--white .numbered-list__title,
.panel--white .numbered-list__body p { color: var(--gema_textgruen); }
.panel--white .numbered-list__title::before { color: var(--gema_weiss); }

/* Content panel with an optional background image */
.panel--has-image { background-repeat: no-repeat; background-size: cover; }
.panel--has-image .section-content { text-shadow: 0 2px 22px rgba(0,0,0,.34); }

.panel--image { background-repeat: no-repeat; background-size: cover; background-position: center; }
.panel--image .section-content { text-shadow: 0 2px 22px rgba(0,0,0,.34); }
/* Image-panel heading: full width (no 24ch limit), hero size */
.panel--image .display-heading { max-width: none; font-size: var(--fs-hero); }
/* Merged heading of the first row's sibling panel — only shown on mobile */
.image-content__merged { display: none; }
/* Optional mobile-only heading override (see storyimage) */
.heading--mobile-only { display: none; }

/* Error page: two-column split (content | image) */
.row-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  height: 100vh;
  height: 100dvh;
  background: rgba(255,255,255,.14);
}
.row-columns .panel { height: 100%; }

/* Image panel: anchor overlay content to the vertical middle line.
   top    -> content sits in the upper half, bottom edge on the middle line
   bottom -> content sits in the lower half, top edge on the middle line */
@media (min-width: 761px) {
  .panel--image .section-content--top,
  .panel--image .section-content--bottom {
    display: grid;
    grid-template-rows: 1fr 1fr;
    padding-top: 0;
    padding-bottom: 0;
  }
  .panel--image .section-content--top .image-content { grid-row: 1; align-self: end; margin-bottom: var(--midline-gap, 50px); }
  .panel--image .section-content--bottom .image-content { grid-row: 2; align-self: start; margin-top: var(--midline-gap, 50px); }

  /* Content panel, align "unten": content begins at the vertical middle line */
  .panel:not(.panel--image) .section-content--bottom {
    justify-content: flex-start;
    padding-top: 50vh;
    padding-top: 50dvh;
    padding-bottom: 34px;
  }

  /* Image panel in the right column: right-align its overlay text */
  .column--right .panel--image .section-content {
    align-items: flex-end;
    justify-items: end;
    text-align: right;
  }
}

/* Back-to-top chevron (bottom-right corner of right panels) */
.back-to-top {
  position: absolute;
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(20px, 3vw, 40px);
  z-index: 3;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--gema_backtotop) 60%, transparent);
  border-radius: 50%;
  background: transparent;
  color: var(--gema_backtotop);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.back-to-top svg { width: 22px; height: 22px; display: block; }
.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--gema_backtotop);
  border-color: var(--gema_backtotop);
  color: var(--dark);
  transform: translateY(-2px);
}

.panel__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.panel__shade--strong { background: radial-gradient(ellipse at center, rgba(7,29,25,0) 44%, rgba(7,29,25,.08) 78%, rgba(7,29,25,.16) 100%); }
.panel__shade--soft { background: radial-gradient(ellipse at center, rgba(7,29,25,0) 48%, rgba(7,29,25,.06) 82%, rgba(7,29,25,.12) 100%); }
.panel__shade--lake { background: radial-gradient(ellipse at center, rgba(7,29,25,.02) 34%, rgba(7,29,25,.10) 70%, rgba(7,29,25,.18) 100%); }
.panel__shade--product-hero { background: linear-gradient(90deg, rgba(7,29,25,.56) 0%, rgba(7,29,25,.18) 42%, rgba(7,29,25,.22) 100%); }

/* Accordion ---------------------------------------------------------------- */
/* full-bleed dividers: break out of the section padding to span the whole panel */
.accordion { margin: 12px calc(-1 * var(--section-x)) 0; }
.accordion__item { border-bottom: 1px solid rgba(255,255,255,.72); }
.accordion__title { margin: 0; font-size: var(--fs-accordion-title); }
.accordion__trigger {
  position: relative;
  width: 100%;
  padding: 14px calc(var(--section-x) + 36px) 14px var(--section-x);
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
  font-size: var(--fs-accordion-title);
  font-weight: 600;
  cursor: pointer;
}
.accordion__trigger::before,
.accordion__trigger::after {
  content: '';
  position: absolute;
  right: var(--section-x);
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--white);
  transition: transform .22s ease;
}
.accordion__trigger::after { transform: rotate(90deg); }
.accordion__trigger[aria-expanded="true"]::after { transform: rotate(0); }
.accordion__panel { overflow: hidden; max-height: 0; transition: max-height .42s ease; }
.accordion__panel p { margin: 0; padding: 0 calc(var(--section-x) + 36px) 15px var(--section-x); font-size: var(--fs-accordion-text); line-height: 1.45; max-width: none; }
.accordion__panel strong { color: var(--white); font-weight: 600; }

/* Architecture list -------------------------------------------------------- */
.architecture-list { width: 100%; margin-top: 12px; border-top: 1px solid rgba(255,255,255,.72); }
.architecture-list article { padding: 17px 0 15px; border-bottom: 1px solid rgba(255,255,255,.72); }
.architecture-list h3 { margin: 0 0 5px; color: var(--white); }
.architecture-list p { margin: 0; font-size: var(--fs-architecture); }

/* Numbered list ------------------------------------------------------------ */
.numbered-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: n;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.numbered-list__item {
  counter-increment: n;
}
/* Badge sits in the title row, vertically centred on the title */
.numbered-list__title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 4px;
  color: var(--white);
  font-size: var(--fs-numbered-title);
  font-weight: 600;
  line-height: 1.25;
}
.numbered-list__title::before {
  content: counter(n);
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-text, var(--white));
  color: var(--accent, var(--dark));
  font-weight: 600;
  font-size: var(--fs-numbered-num);
  text-shadow: none;
}
/* Description aligns under the title text (past the badge + gap) */
.numbered-list__body p { margin: 0; color: var(--soft-white); max-width: none; padding-left: calc(40px + 16px); }

/* Product slider ----------------------------------------------------------- */
.slider {
  width: 100%;
  margin-top: 20px;
}
.slider__card {
  padding: 34px 36px 18px;
  border-radius: 18px;
  background: var(--gema_gruen);
}
/* slider text is always white, regardless of the surrounding panel colour */
.slider .slide h3,
.slider .slide p,
.slider .platform-icon { color: var(--white); }
.slider__viewport { overflow: hidden; outline: none; }
.slider__viewport:focus-visible { box-shadow: 0 0 0 2px var(--lime); }
.slider__track { display: flex; transition: transform .54s cubic-bezier(.22,.72,.2,1); will-change: transform; }
.slide { flex: 0 0 100%; min-height: 300px; padding-right: 10px; }
.slide h3 { max-width: 40ch; margin-bottom: 16px; font-size: var(--fs-slide-title); line-height: 1.18; }
.slide p { margin-bottom: 0; max-width: 64ch; font-size: var(--fs-slide-text); }
.platform-icons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 26px;
  margin: 18px 0 6px;
}
.platform-icon {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  color: var(--white);
  font-size: .92rem;
  line-height: 1.2;
}
.platform-icon img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Platform-Icons grid module (columns + text position configurable) */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(var(--platform-cols, 4), minmax(0, 1fr));
  gap: 24px 26px;
  width: 100%;
  margin: 18px 0 6px;
}
.platform-grid__item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--white);
  font-size: .92rem;
  line-height: 1.2;
}
.platform-grid__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
/* Intro text of the platform grid module */
.content-module--storyplatformicons .lead { font-size: var(--fs-platform-lead); }
/* Text position relative to the icon (default: below) */
.platform-grid--text-below  .platform-grid__item { flex-direction: column; }
.platform-grid--text-above  .platform-grid__item { flex-direction: column-reverse; }
.platform-grid--text-left   .platform-grid__item { flex-direction: row-reverse; }
.platform-grid--text-right  .platform-grid__item { flex-direction: row; }
.slider__navigation { margin-top: 16px; }
.slider__dots { display: flex; justify-content: center; gap: 10px; }
.slider__dot { width: 14px; height: 14px; padding: 0; border: 1px solid var(--gema_gruen); border-radius: 50%; background: var(--gema_gruen); cursor: pointer; }
.slider__dot[aria-current="true"] { background: transparent; }

/* Quote -------------------------------------------------------------------- */
.quote-content { justify-content: flex-end; padding-left: clamp(48px, 7vw, 110px); padding-bottom: clamp(84px, 16vh, 170px); }
.quote { text-align: center; }
.quote-rule,
.quote-main { max-width: 19ch; margin-inline: auto; color: var(--white); line-height: 1.2; text-shadow: 0 2px 20px rgba(0,0,0,.3); font-size: var(--fs-quote); }
.quote-rule { margin-bottom: 8px; font-weight: 600; }
.quote-main { margin-bottom: 0; font-weight: 400; }

/* Contact panel ------------------------------------------------------------ */
.text-block--left { text-align: left; }
.text-block--center { text-align: center; }
.text-block--right { text-align: right; }
.text-block p,
.text-block .lead { max-width: none; }
/* Text module: the lead uses the global h2 font size */
.text-block .lead { font-size: var(--fs-h2); line-height: 1.35; }
/* Error module: small gap under the code, larger gap under the heading */
.error-code { margin-bottom: 4px; }
.error-heading { margin-bottom: 14px; }

.contact-content { max-width: none; display: flex; }
.contact-content--left { justify-content: flex-start; }
.contact-content--center { justify-content: center; }
.contact-content--right { justify-content: flex-end; }
.contact-content .lead { max-width: 48ch; }
/* Button-Link: arrow + text, optional bold + oval frame */
.contact-cta {
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: gap .2s ease, background .2s ease, color .2s ease;
}
.contact-cta--bold { font-weight: 700; }
.contact-cta__arrow { font-size: 1.25em; line-height: 1; }
/* non-oval buttons: arrow slides on hover */
.contact-cta:not(.contact-cta--oval):hover,
.contact-cta:not(.contact-cta--oval):focus-visible { gap: 18px; }

/* optional oval frame */
.contact-cta--oval {
  padding: 11px 20px;
  border: 2px solid currentColor;
  border-radius: 999px;
}
/* oval button (e.g. form submit): invert only on hover */
.contact-cta--oval:hover,
.contact-cta--oval:focus-visible {
  background: var(--white);
  color: var(--dark);
}
/* form submit on a coloured panel: white bg + panel accent (e.g. orange) */
.story-form .contact-cta--oval:hover,
.story-form .contact-cta--oval:focus-visible {
  color: var(--accent, var(--dark));
}

/* Contact form panel ------------------------------------------------------- */
.story-form { width: 100%; margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; row-gap: 6px; align-items: start; }
/* Full-width form parts span both columns */
.story-form__field--full,
.story-form__hp,
.story-form__consent,
.story-form__actions { grid-column: 1 / -1; }
/* Honeypot: kept in the DOM but off-screen and out of the tab order */
.story-form__hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.story-form__field { position: relative; display: block; border-bottom: 1px solid rgba(255,255,255,.55); }
.story-form__field input,
.story-form__field textarea {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  padding: 16px 42px 12px 0;
  outline: none;
}
.story-form__field textarea { resize: vertical; min-height: 92px; }
.story-form__field input::placeholder,
.story-form__field textarea::placeholder { color: var(--white); opacity: 1; }
/* Check mark: hidden by default, shown (green) only when the field is valid */
.story-form__check {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: none;
  place-items: center;
  color: var(--check-solved);
  pointer-events: none;
}
.story-form__check svg { width: 22px; height: 22px; display: block; }
.story-form__field.is-solved .story-form__check { display: grid; }
.story-form__field--multi .story-form__check { top: auto; bottom: 12px; transform: none; }
.story-form__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; }
.story-form__actions--center { align-items: center; text-align: center; }
.story-form__actions .contact-cta { margin-top: 0; }
.story-form__status { margin: 0; font-size: .88rem; color: var(--white); max-width: 60ch; }

/* consent checkbox */
.story-form__consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; color: var(--soft-white); font-size: .85rem; cursor: pointer; }
.story-form__consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--white);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}
/* checked: white box with a green check mark */
.story-form__consent input:checked {
  background-color: var(--white);
  border-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23388e7e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
}
.story-form__consent span { max-width: none; }

/* Follow us on LinkedIn (module) */
.linkedin-follow {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-linkedin);
}
.linkedin-follow--center { display: flex; width: fit-content; margin-inline: auto; }
.linkedin-follow__icon { display: block; width: 40px; height: 40px; flex: 0 0 40px; }
.linkedin-follow__icon svg { width: 100%; height: 100%; display: block; }
.linkedin-follow:hover .linkedin-follow__label,
.linkedin-follow:focus-visible .linkedin-follow__label { text-decoration: underline; }

/* Contacts module (focus contact + thumbnail switcher) --------------------- */
.contacts { width: 100%; }
/* Own background => full-width box (edge to edge of the panel); the thumbnail
   row straddles the box's bottom edge (half inside, half below). */
.contacts--boxed {
  --pad: clamp(32px, 4vw, 56px);
  --thumb: 66px;
  position: relative;
  width: auto;
  margin-inline: calc(var(--section-x) * -1);
  padding: var(--pad) var(--section-x) calc(var(--pad) + var(--thumb) / 2);
}
.contacts--boxed .contacts__thumbs {
  position: absolute;
  left: var(--section-x);
  right: var(--section-x);
  bottom: 0;
  margin: 0;
  transform: translateY(50%);
}
.contacts__stage { position: relative; }
.contact-feature { display: none; grid-template-columns: auto 1fr; gap: 44px; align-items: center; }
.contact-feature.is-active { display: grid; }
.contact-feature__portrait {
  width: 230px; height: 230px; flex: 0 0 230px;
  border-radius: 50%; overflow: hidden;
  background: rgba(255, 255, 255, .08);
}
.contact-feature__portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-feature__name { margin: 0 0 4px; font-size: var(--fs-h1); line-height: 1.1; }
.contact-feature__role { margin: 0 0 20px; font-weight: 700; }
.contact-feature__desc p { margin: 0 0 14px; opacity: .92; }
.contact-feature__desc > :last-child { margin-bottom: 0; }
/* CTA uses the shared .contact-cta style (same as the other pages) */
.contacts__thumbs { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-start; margin-top: 44px; }
.contact-thumb {
  width: 66px; height: 66px; padding: 0; border-radius: 50%; overflow: hidden;
  border: 3px solid transparent; background: rgba(255, 255, 255, .08); cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.contact-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-thumb:hover { transform: translateY(-2px); }
.contact-thumb.is-active { border-color: var(--white); }
.contact-thumb:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

@media (max-width: 760px) {
  .contact-feature { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
  .contact-feature__portrait { width: 168px; height: 168px; flex-basis: 168px; }
  .contact-feature .contact-cta { justify-content: center; }
  .contacts__thumbs { margin-top: 30px; gap: 14px; justify-content: center; }
  .contact-thumb { width: 56px; height: 56px; }
  /* Full-bleed matches the mobile section padding (28px), not --section-x (60) */
  .contacts--boxed { margin-inline: -28px; padding-inline: 28px; }
  /* mobile header scrolls away → region selector back to the top */
  .story-map__regions { top: 14px; }
  .contacts--boxed .contacts__thumbs { left: 28px; right: 28px; }
}

/* KPI module (stats row: icon + figure + text, centred) -------------------- */
.kpi-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--kpi-count, 4), minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .35);
}
.kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 34px 22px 6px;
  border-left: 1px solid rgba(255, 255, 255, .35);
}
.kpi:first-child { border-left: 0; }
.kpi__icon { width: 46px; height: 46px; display: block; }
.kpi__figure { font-size: var(--fs-kpi-figure); font-weight: 800; line-height: 1; }
.kpi__text { font-size: var(--fs-p); line-height: 1.32; opacity: .95; }

@media (max-width: 760px) {
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .kpi { border-left: 0; padding: 24px 14px 0; }
  .kpi:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .35); }
}

/* Partner module (heading + intro + country selector + partner card) -------- */
.partner { width: 100%; }
.partner__heading { margin-bottom: 14px; }
.partner__lead { margin-bottom: 8px; max-width: 60ch; }
/* Custom country select (CSS checkbox-hack): the selected value is the button;
   the options expand in place below it. Replaces the native select. */
.partner__select { position: relative; width: 100%; max-width: 460px; margin: 30px 0 40px; }
.partner__select-switch { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.partner__select-box { display: block; margin: 0; cursor: pointer; }
.partner__select-selected {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--gema_orange, #dc7318); color: #fff;
  border-radius: 999px; padding: 15px 26px; font-weight: 600; line-height: 1.2;
}
.partner__select-switch:focus-visible + .partner__select-box .partner__select-selected {
  outline: 2px solid var(--gema_textgruen, #2B5E5F); outline-offset: 2px;
}
.partner__select-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partner__select-chevron { flex: 0 0 18px; transition: transform .28s ease; }
.partner__select-switch:checked + .partner__select-box .partner__select-chevron { transform: rotate(180deg); }
/* Options overlay the content below (absolute) so opening never pushes the
   text down; hidden (collapsed) by default, expand when the switch is checked */
.partner__select-options {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 30;
  list-style: none; margin: 0; padding: 0;
  max-height: 0; overflow: hidden; opacity: 0;
  background: var(--gema_weiss, #fff); border-radius: 18px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0);
  transition: max-height .3s ease, opacity .25s ease, box-shadow .3s ease;
}
.partner__select-switch:checked + .partner__select-box .partner__select-options {
  max-height: 60vh; opacity: 1;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .16);
}
.partner__select-option {
  padding: 16px 26px; cursor: pointer; color: var(--gema_textgruen, #2B5E5F); font-weight: 600;
  border-top: 1px solid rgba(43, 94, 95, .12); transition: background .15s ease;
}
.partner__select-option:first-child { border-top: 0; }
.partner__select-option:hover { background: rgba(43, 94, 95, .06); }
.partner__select-option[aria-selected="true"] { background: rgba(220, 115, 24, .14); }
.partner-card { display: none; }
.partner-card.is-active { display: block; }
.partner-card__logo { display: block; height: 44px; width: auto; max-width: 260px; margin-bottom: 16px; object-fit: contain; }
.partner-card__country { margin: 0 0 20px; font-weight: 700; font-size: var(--fs-h3); }
.partner-card__text { max-width: 66ch; }
.partner-card__text > :last-child { margin-bottom: 0; }
.partner-card__rule { border: 0; border-top: 1px solid currentColor; opacity: .3; margin: 30px 0; max-width: none; }
.partner-card__meta { margin-top: 22px; }
.partner-card__label { margin: 0 0 4px; font-weight: 700; }
.partner-card__value { margin: 0; max-width: none; }
.partner-card__value a { text-decoration: none; }
.partner-card__value a:hover { text-decoration: underline; }
/* At the "top" alignment the partner heading would sit close to the fixed
   header (some widths reduce the top padding to header + 16px). Start the block
   at a full two-header clearance instead. Specific enough to beat the width
   media queries; desktop only (mobile stacks and the header is not fixed). */
@media (min-width: 761px) {
  .section-content--top:has(.partner) { padding-top: calc(var(--header-h) * 2); }
}

/* Map module (Leaflet + OpenStreetMap) ------------------------------------- */
/* The map fills its whole panel: drop the section padding and let the canvas
   grow to the full panel height (edge to edge, no rounded corners). */
.content-module--storymap { display: flex; flex-direction: column; }
.panel:has(.story-map) .section-content { padding: 0; }
.panel:has(.story-map) .content-module--storymap { flex: 1 1 auto; min-height: 0; }
.story-map { position: relative; width: 100%; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
/* Region selector (overlay, top-left of the map). Cleared below the sticky
   desktop header; on mobile the header scrolls away, so no offset is needed. */
.story-map__regions { position: absolute; top: calc(var(--header-h) + 14px); left: 14px; z-index: 500; display: flex; flex-wrap: wrap; gap: 8px; }
.story-map__region {
  padding: 8px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(5, 24, 20, .7); color: #fff; font-weight: 600; font-size: 14px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .15s ease;
}
.story-map__region:hover { background: rgba(5, 24, 20, .9); }
.story-map__region.is-active { background: var(--gema_orange, #dc7318); }
.story-map__region:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.story-map__heading { margin: 0; padding: 18px 24px 12px; font-size: var(--fs-h3); }
.story-map__canvas {
  width: 100%;
  flex: 1 1 auto;
  min-height: 240px;
  overflow: hidden;
  z-index: 0;
}
.story-map__dot { cursor: pointer; transition: fill .12s ease, stroke .12s ease; }

/* Round brand controls (zoom / recenter), bottom-right */
.story-map__ctrl { display: flex; flex-direction: column; gap: 10px; margin: 0 14px 14px 0; }
.story-map__ctrl-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--gema_orange, #dc7318); color: #fff;
  font-size: 24px; line-height: 1; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .28);
}
.story-map__ctrl-btn:hover { filter: brightness(1.07); }
.story-map__ctrl-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.story-map__ctrl-btn svg { display: block; }

/* Info box (styled Leaflet popup) — white card, teal title */
.story-map__box .leaflet-popup-content-wrapper {
  background: var(--gema_weiss, #fff);
  color: #3a4a47;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
}
.story-map__box .leaflet-popup-content { margin: 14px 18px; font-size: var(--fs-mapbox-text); line-height: 1.5; }
.story-map__box .leaflet-popup-tip { background: var(--gema_weiss, #fff); }
.story-map__box-inner { display: grid; gap: 2px; }
.story-map__box-title { font-size: var(--fs-mapbox-title); font-weight: 700; color: var(--gema_gruen, #388e7e); }
.story-map__box-place { color: #6a7a76; margin-bottom: 8px; }
.story-map__box-row a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.story-map__box-row a:hover,
.story-map__box-row a:focus-visible { color: var(--gema_gruen, #388e7e); }

/* Closing strip (footer) --------------------------------------------------- */
.closing-strip {
  position: relative;
  z-index: 3;
  scroll-snap-align: end;
  scroll-snap-stop: always;
}
.site-footer {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 clamp(32px, 7vw, 110px);
  background: var(--gema_orange_footer);
  color: var(--white);
}
.site-footer nav { display: flex; align-items: center; justify-content: center; }
.site-footer nav a {
  padding: 0 24px;
  border-left: 1px solid var(--white);
  color: var(--white);
  text-decoration: none;
  font-size: var(--fs-footer);
  font-weight: 400;
  text-transform: uppercase;
}
.site-footer nav a:first-child { border-left: 0; }
.site-footer nav a.active,
.site-footer nav a:hover,
.site-footer nav a:focus-visible { color: var(--white); font-weight: 700; }


/* Responsive --------------------------------------------------------------- */
@media (max-width: 1120px) {
  :root { --section-x: clamp(28px, 5vw, 60px); --headline-size: clamp(1.9rem, 3vw, 3rem); }
  .main-header { padding-inline: 28px; }
  .main-nav a { padding-inline: 9px; font-size: .76rem; }
  .section-content { padding-top: calc(var(--header-h) + 16px); }
  /* keep centered panels symmetric at this width too */
  .section-content--center { padding-bottom: calc(var(--header-h) + 16px); }
  .panel[data-screen="0"] .section-content--center { padding-bottom: 16px; }
  .slide { min-height: 250px; }
}

@media (max-width: 760px) {
  html { scroll-snap-type: none; overscroll-behavior-y: auto; }
  .main-header { position: absolute; padding: 12px 18px; }
  .brand img { height: 34px; }
  .main-nav a { display: none; }
  .main-nav a.active { display: block; border: 0; padding: 0; }

  .story { height: auto !important; }
  .columns { position: static; display: grid; grid-template-columns: 1fr; height: auto; overflow: visible; }
  .column { display: contents; overflow: visible; }

  .row-columns { grid-template-columns: 1fr; height: auto; }
  .row-columns .panel { height: 70vh; }
  .column__track { display: contents; transform: none !important; }
  .story-steps { display: none; }
  .panel { height: auto; min-height: 72vh; order: var(--mobile-order, 0); }
  /* Optional: image-backed panel shown as a 1:1 square (crop chosen in the
     panel). Applies to image panels and content panels with a background image.
     !important overrides the inline desktop background-position. */
  .panel--image.panel--mobile-square,
  .panel--has-image.panel--mobile-square {
    min-height: 0;
    aspect-ratio: 1 / 1;
    background-position: var(--bg-pos-mobile, center center) !important;
  }

  /* Symmetric top/bottom: the absolute mobile header only overlaps the first
     panel (data-screen 0 has its own rule), so no header clearance is needed
     on the stacked panels below. */
  .section-content { min-height: inherit; padding: 42px 28px 42px; }
  .section-content--top { padding-top: 42px; }
  /* Tighter gap between two stacked quotes on mobile (desktop uses 100px). */
  .content-module--storyquote + .content-module--storyquote { margin-top: 40px; }
  /* accordion full-bleed dividers match the mobile section padding (28px) */
  .accordion { margin-inline: -28px; }
  .accordion__trigger { padding-left: 28px; padding-right: 64px; }
  .accordion__trigger::before,
  .accordion__trigger::after { right: 28px; }
  .accordion__panel p { padding-left: 28px; padding-right: 64px; }
  .display-heading { max-width: 20ch; text-wrap: pretty; }
  /* Font sizes for hero/h1/h2/h3/p come from the panel-driven --fs-* variables
     (mobile values injected in the <head> media query). */
  /* First row collapses to one panel: keep the left image, hide the right
     panel, and show its heading (merged into the left panel). */
  .column--right .panel[data-screen="0"] { display: none; }
  /* First row (mobile): one panel. Split the two headings around the middle of
     the area BELOW the header (top padding = header height, no bottom padding):
     first just above, merged (second) just below, 40px gap to the middle line. */
  .panel[data-screen="0"] .section-content { display: grid; grid-template-rows: 1fr 1fr; grid-template-columns: minmax(0, 1fr); padding-top: var(--header-h); padding-bottom: 0; }
  .panel[data-screen="0"] .image-content { display: contents; }
  .panel[data-screen="0"] .display-heading { font-size: var(--fs-h1); }
  .panel[data-screen="0"] .image-content > .display-heading:not(.image-content__merged) {
    grid-row: 1; align-self: end; margin: 0 0 40px;
  }
  .image-content__merged { display: block; text-align: right; }
  .panel[data-screen="0"] .image-content__merged { grid-row: 2; align-self: start; margin: 40px 0 0; }
  /* Mobile-only heading override: swap desktop <-> mobile heading */
  .heading--desktop-only { display: none; }
  .heading--mobile-only { display: block; }
  /* Second panel ("Leistungsstarkes UEM …"): 40px top/bottom content spacing */
  .panel[data-screen="1"] .section-content { padding-top: 40px; padding-bottom: 40px; }
  /* Third row: show the content first, the image as the second panel */
  .column--right .panel[data-screen="2"] { order: 5; }
  .column--left  .panel[data-screen="2"] { order: 6; }
  /* Fifth row: swap the two panels (right first, left second) */
  .column--right .panel[data-screen="4"] { order: 9; }
  .column--left  .panel[data-screen="4"] { order: 10; }
  .quote-content { justify-content: flex-end; padding-bottom: 74px; }
  .slider__card { padding-inline: 22px; }
  .slide { min-height: 290px; }
  .platform-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .contact-cta { max-width: 100%; }
  /* Contact form collapses to a single column on mobile */
  .story-form { grid-template-columns: 1fr; }
  /* Panels are auto-height on mobile -> keep the LinkedIn in normal flow */
  .section-content .content-module--storylinkedin { position: static; left: auto; right: auto; margin-top: 24px; }

  .closing-strip { display: block; }
  .site-footer { justify-content: center; gap: 22px; padding: 16px 28px; }
  .site-footer nav { flex-wrap: wrap; justify-content: center; gap: 12px 0; }
  .site-footer nav a { padding: 0 14px; }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Landscape on phones is not supported -> full-screen "rotate to portrait" overlay */
@media (orientation: landscape) and (max-height: 500px) {
  body::after {
    content: var(--rotate-msg, "Bitte drehen Sie Ihr Gerät ins Hochformat.");
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 32px 40px;
    text-align: center;
    background: var(--dark);
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
  }
}
