/* ========== Reset & Base ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #058d7b;
  --teal-dark: #003d2b;
  --teal-light: #55ddcb;
  --ink: #030303;
  --off-white: #fafafa;
  --white: #ffffff;
  --max-width: 1200px;
  --font: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

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

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

svg { fill: currentColor; }

h1, h2, h3, h4, h5, h6 { line-height: 1.15; font-weight: 700; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: #fff; color: var(--teal); border-color: var(--teal); }

.btn--outline { background: transparent; color: #fff; border-color: #fff; }
.btn--outline:hover { background: #fff; color: var(--teal); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--outline-light:hover { background: #fff; color: var(--teal-dark); border-color: #fff; }

.btn--light { background: #fff; color: var(--teal); }
.btn--light:hover { background: var(--teal-dark); color: #fff; }

/* ========== Dividers (wave shapes) ========== */
.divider { line-height: 0; }
.divider svg { width: 100%; height: 70px; display: block; }
.divider path { fill: var(--off-white); }
.divider--flip svg { transform: rotate(180deg); }

/* ========== Header ========== */
.header { position: sticky; top: 0; z-index: 100; }

.topbar { background: var(--teal); color: #fff; font-size: 14px; }
.topbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.topbar__list { display: flex; align-items: center; gap: 24px; list-style: none; }
.topbar__list a { display: inline-flex; align-items: center; gap: 8px; }
.topbar__list svg { width: 14px; height: 14px; }
.topbar__list--right { gap: 18px; }

.topbar__lang { position: relative; }
.topbar__lang-btn {
  background: none; border: none; color: #fff; font: inherit; font-size: 14px; cursor: pointer;
}
.topbar__lang-menu {
  display: none;
  position: absolute;
  top: 100%; right: 0;
  background: #fff;
  color: var(--ink);
  list-style: none;
  min-width: 120px;
  border: 1px solid var(--teal);
  border-radius: 4px;
  overflow: hidden;
  z-index: 10;
}
.topbar__lang-menu li a { display: block; padding: 8px 14px; }
.topbar__lang-menu li a:hover { background: var(--off-white); color: var(--teal); }
.topbar__lang.is-open .topbar__lang-menu { display: block; }

.navbar { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.navbar__logo img { width: 160px; height: auto; }

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.navbar__burger span { width: 26px; height: 2px; background: var(--ink); transition: 0.3s; }

.navbar__nav { display: flex; align-items: center; gap: 32px; flex: 1; justify-content: flex-end; }

.navbar__menu { display: flex; list-style: none; gap: 30px; }
.navbar__link {
  font-weight: 500;
  font-size: 15px;
  padding: 10px 0;
  position: relative;
}
.navbar__link:hover { color: var(--teal); }

.navbar__cta { white-space: nowrap; padding: 12px 26px; }

/* Mega menu */
.has-mega { position: relative; }
.mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 30px;
  gap: 30px;
  width: 720px;
  max-width: 90vw;
  z-index: 50;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega { display: flex; }

.mega__col { flex: 1; }
.mega__col h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 14px;
  font-weight: 700;
}
.mega__item {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.mega__item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}
.mega__item-img--contain {
  object-fit: contain;
  background: #fff;
  padding: 10px;
}
.mega__item:hover span { color: var(--teal); }
.mega__item--row { padding: 8px 0; border-bottom: 1px solid #eee; }
.mega__item--row:last-child { border-bottom: none; }

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--teal-dark);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,20,15,0.55), rgba(0,20,15,0.65));
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 900px;
  padding: 0 24px;
}
.hero__content h1 { font-size: clamp(28px, 5vw, 46px); margin-bottom: 32px; }
.hero__buttons { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ========== Feature intro ========== */
.feature-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-intro__image img { border-radius: 12px; }
.feature-intro__text h2 { font-size: 34px; margin-bottom: 18px; }
.feature-intro__text p { font-size: 18px; margin-bottom: 14px; color: #333; }
.feature-intro__text .btn { margin-top: 12px; }

/* ========== Tagline ========== */
.tagline { background: var(--teal-dark); padding: 60px 0; }
.tagline__typed {
  color: var(--teal-light);
  text-align: center;
  font-size: clamp(24px, 5vw, 44px);
  font-weight: 600;
  min-height: 1.3em;
  margin-bottom: 4px;
}
.tagline__cursor {
  display: inline-block;
  margin-left: 3px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.tagline__static {
  color: #fff;
  text-align: center;
  font-size: clamp(32px, 7vw, 70px);
  font-weight: 600;
}
.tagline__hash { color: var(--teal-light); }

/* ========== History ========== */
.history { background: var(--off-white); }
.history__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}
.history__image img { border-radius: 12px; }
.history__text h3 { font-size: 30px; margin-bottom: 18px; }
.history__text p { font-size: 18px; line-height: 1.75; color: #333; margin-bottom: 20px; }
.history__closing {
  text-align: center;
  font-size: clamp(24px, 4vw, 36px);
  color: var(--teal);
}

/* ========== Stacking scroll cards ========== */
.stack-cards { position: relative; }

.stack-card {
  height: 100vh;
  height: 100dvh;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  background: var(--teal);
  color: #fff;
  overflow: hidden;
}
.stack-card:nth-of-type(1) { z-index: 1; }
.stack-card:nth-of-type(2) { z-index: 2; }
.stack-card:nth-of-type(3) { z-index: 3; }

.stack-card__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.stack-card__icon svg { width: 100%; max-width: 320px; height: auto; margin: 0 auto; display: block; }
.stack-card__icon svg circle,
.stack-card__icon svg path,
.stack-card__icon svg line { fill: none; }
.stack-card__icon svg polygon { fill: #fff; }

.stack-card__num { font-size: 20px; opacity: 0.7; font-weight: 700; letter-spacing: 0.05em; }
.stack-card__content h3 { font-size: clamp(30px, 4vw, 44px); margin: 10px 0 14px; }
.stack-card__lead { font-size: 18px; opacity: 0.9; margin-bottom: 22px; }

.stack-card__list { list-style: none; margin-bottom: 30px; }
.stack-card__list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  font-size: 15px;
  opacity: 0.95;
  line-height: 1.5;
}
.stack-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ========== Tabs ========== */
.tabs { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.tabs__nav { display: flex; flex-direction: column; gap: 4px; }
.tabs__btn {
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid #e5e5e5;
  padding: 22px 10px;
  cursor: pointer;
  font-family: inherit;
}
.tabs__nav .tabs__btn:last-child { border-bottom: 1px solid #e5e5e5; }
.tabs__btn-title {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.tabs__btn-desc {
  display: none;
  font-size: 15px;
  color: #444;
  margin-top: 10px;
  max-width: 480px;
}
.tabs__btn-more {
  display: none;
  color: var(--teal);
  font-weight: 600;
  margin-top: 10px;
}
.tabs__btn.is-active .tabs__btn-title { color: var(--teal); }
.tabs__btn.is-active .tabs__btn-desc,
.tabs__btn.is-active .tabs__btn-more { display: block; }

.tabs__images { position: relative; aspect-ratio: 4/3; }
.tabs__images { background: var(--off-white); border-radius: 16px; }

.tabs__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.tabs__image.is-active { opacity: 1; position: relative; }

/* ========== Stats ========== */
.stats { background: var(--teal-dark); color: #fff; text-align: center; }
.stats__heading { font-size: clamp(30px, 5vw, 48px); margin-bottom: 50px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}
.stats__number { font-size: clamp(36px, 6vw, 56px); font-weight: 800; color: var(--teal-light); }
.stats__item p { margin-top: 8px; font-size: 16px; opacity: 0.85; }
.stats__cta h3 { font-size: 28px; margin-bottom: 12px; }
.stats__cta p { max-width: 560px; margin: 0 auto 24px; opacity: 0.85; }

/* ========== Suppliers / Logos / Testimonials ========== */
.suppliers__heading { text-align: center; font-size: clamp(24px, 4vw, 36px); margin-bottom: 40px; }

.logo-slider { overflow: hidden; margin-bottom: 60px; }
.logo-slider__track {
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.logo-slider__track img { filter: grayscale(1); opacity: 0.7; transition: 0.25s; }
.logo-slider__track img:hover { filter: none; opacity: 1; }

.testimonials { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonials__track { position: relative; min-height: 140px; }
.testimonials__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  font-size: 19px;
  font-style: italic;
  color: #333;
}
.testimonials__item.is-active { opacity: 1; position: relative; }
.testimonials__dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.testimonials__dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; background: #ccc; cursor: pointer; padding: 0;
}
.testimonials__dots button.is-active { background: var(--teal); }

/* ========== CTA ========== */
.cta { background: var(--teal); color: #fff; text-align: center; }
.cta h2 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 14px; }
.cta p { font-size: 24px; margin-bottom: 30px; opacity: 0.95; }
.cta .btn { margin-top: 10px; }

/* ========== About intro (Über uns) ========== */
.about-intro__inner { max-width: 780px; text-align: center; }
.about-intro__inner h1 {
  text-transform: uppercase;
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 20px;
}
.about-intro__inner p { font-size: 19px; color: #333; }

/* ========== About content grid ========== */
.about-content { background: var(--off-white); }
.about-content__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-content__image img { border-radius: 12px; }
.about-content__text h2 { font-size: 30px; margin-bottom: 18px; }
.about-content__text p { font-size: 18px; line-height: 1.75; color: #333; }

/* ========== Responsibility (Unternehmensverantwortung) ========== */
.responsibility--alt { background: var(--off-white); }
.responsibility__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.responsibility__grid--reverse .responsibility__image { order: 2; }
.responsibility__grid--reverse .responsibility__text { order: 1; }

.responsibility__image img { width: 100%; height: auto; display: block; border-radius: 12px; }

.responsibility__text h2 { font-size: 30px; margin-bottom: 20px; }
.responsibility__text > p { font-size: 16px; line-height: 1.75; color: #333; margin-bottom: 14px; }

.responsibility__item { margin-bottom: 18px; }
.responsibility__item h3 { font-size: 17px; margin-bottom: 6px; }
.responsibility__item p { font-size: 15px; line-height: 1.7; color: #555; }

.responsibility__list { margin: 4px 0 20px; }
.responsibility__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
.responsibility__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  margin-top: 4px;
}
.link-arrow svg { width: 15px; height: 15px; fill: var(--teal); transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ========== Stat cards ========== */
.stat-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.stat-card {
  background: var(--teal);
  color: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
}
.stat-card__number { font-size: 42px; font-weight: 700; margin-bottom: 12px; }
.stat-card p { opacity: 0.9; }

/* ========== Strategy blocks ========== */
.strategy--alt { background: var(--off-white); }
.strategy__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.strategy__left h2 { font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 28px; }

.strategy__grid--reverse { grid-template-columns: 1.15fr 0.85fr; }
.strategy__grid--reverse .strategy__left { order: 2; }
.strategy__grid--reverse .strategy__right { order: 1; }

.strategy__tab-nav { display: flex; gap: 26px; border-bottom: 1px solid #e2e2e2; margin-bottom: 20px; }
.strategy__tab-btn {
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  color: #999;
  padding: 0 0 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.strategy__tab-btn.is-active { color: var(--teal); border-color: var(--teal); }

.strategy__tab-panel { display: none; }
.strategy__tab-panel.is-active { display: block; }
.strategy__tab-panel p { font-size: 16px; line-height: 1.75; color: #333; }

.strategy__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.strategy__card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.strategy__icon {
  width: 60px;
  height: 60px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.strategy__icon svg { width: 26px; height: 26px; fill: #fff; }
.strategy__card h3 { font-size: 17px; margin-bottom: 10px; }
.strategy__card p { font-size: 14px; line-height: 1.6; color: #555; }

/* ---- Strategy circle (hover icons reveal center text) ---- */
.strategy__circle {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1 / 1;
  margin: 40px auto;
}
.strategy__circle-ring {
  position: absolute;
  inset: 0;
  border: 1px solid #ddd;
  border-radius: 50%;
}
.strategy__circle-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 65px;
}
.strategy__circle-content h3 { font-size: 17px; margin-bottom: 10px; color: #1a1a1a; }
.strategy__circle-content p { font-size: 14px; line-height: 1.6; color: #555; }

.strategy__circle-icon {
  position: absolute;
  width: 78px;
  height: 78px;
}
.strategy__circle-icon--top { top: 0; left: 50%; transform: translate(-50%, -50%); }
.strategy__circle-icon--right { top: 50%; left: 100%; transform: translate(-50%, -50%); }
.strategy__circle-icon--bottom { top: 100%; left: 50%; transform: translate(-50%, -50%); }
.strategy__circle-icon--left { top: 50%; left: 0; transform: translate(-50%, -50%); }

.strategy__circle-icon-btn {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.strategy__circle-icon-btn svg { width: 30px; height: 30px; fill: #fff; }
.strategy__circle-icon-btn:hover,
.strategy__circle-icon-btn:focus-visible,
.strategy__circle-icon-btn.is-active {
  background: var(--teal-dark);
  transform: scale(1.1);
}

/* ========== Quote ========== */
.quote { text-align: center; }
.quote h2 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--teal);
  line-height: 1.5;
}

/* ========== Footer ========== */
.footer { background: #111; color: #ccc; padding: 60px 0 30px; text-align: center; }
.footer__logo { display: inline-block; margin-bottom: 24px; filter: brightness(0) invert(1); }
.footer__social { display: flex; justify-content: center; gap: 16px; margin-bottom: 24px; }
.footer__social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal);
  border-radius: 50%;
  color: #fff;
}
.footer__social svg { width: 16px; height: 16px; }
.footer__social a:hover { background: var(--teal-dark); }

.footer__links { margin-bottom: 18px; font-size: 14px; }
.footer__links a { color: var(--teal-light); text-decoration: underline; }
.footer__links span { color: #555; margin: 0 6px; }

.footer__copyright { font-size: 13px; color: #777; }

/* ========== Certification hero (Zertifizierung) ========== */
.cert-hero__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: center;
}
.cert-hero__media { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.cert-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0, 0, 0.2, 1);
}
.cert-hero__media:hover img { transform: scale(1.08); }

.cert-hero__eyebrow { text-transform: uppercase; color: var(--teal); font-weight: 700; letter-spacing: 0.05em; font-size: 14px; margin-bottom: 12px; }
.cert-hero__text h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 18px; }
.cert-hero__text h1 span { font-weight: 400; }
.cert-hero__text > p { font-size: 16px; line-height: 1.75; color: #333; margin-bottom: 24px; }

.cert-hero__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  font-weight: 600;
}
.cert-hero__link svg { width: 16px; height: 16px; fill: var(--teal); }
.cert-hero__link::before,
.cert-hero__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
}
.cert-hero__link::before {
  background: #e0e0e0;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s;
}
.cert-hero__link::after {
  background: var(--teal);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.cert-hero__link:hover::before {
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.cert-hero__link:hover::after {
  transform: scaleX(1);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s;
}

/* ========== Certification stack cards (sticky scroll) ========== */
.cert-stack-intro { text-align: center; padding-bottom: 0; }
.cert-stack-intro h2 { font-size: clamp(26px, 3.5vw, 36px); }

.cert-stack { position: relative; }

.cert-card {
  height: 100vh;
  height: 100dvh;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  background: #fff;
  overflow: hidden;
}
.cert-card:nth-of-type(even) { background: var(--off-white); }
.cert-card:nth-of-type(1) { z-index: 1; }
.cert-card:nth-of-type(2) { z-index: 2; }
.cert-card:nth-of-type(3) { z-index: 3; }
.cert-card:nth-of-type(4) { z-index: 4; }
.cert-card:nth-of-type(5) { z-index: 5; }
.cert-card:nth-of-type(6) { z-index: 6; }
.cert-card:nth-of-type(7) { z-index: 7; }

.cert-card__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cert-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  border-radius: 12px;
  overflow: hidden;
}
.cert-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cert-card__media--contain { background: #fff; }
.cert-card__media--contain img { object-fit: contain; }
.cert-card__num {
  position: absolute;
  right: -10px;
  top: 16px;
  font-size: 120px;
  font-weight: 800;
  color: #1d1d1d;
  opacity: 0.15;
  line-height: 1;
}

.cert-card__tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin-bottom: 14px;
}
.cert-card__tagline-line { width: 30px; height: 2px; background: var(--teal); display: inline-block; }
.cert-card__content h3 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
.cert-card__content > p { font-size: 16px; line-height: 1.7; color: #555; margin-bottom: 26px; max-width: 480px; }

.cert-card__btn { display: inline-block; }
.cert-card__btn-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: #fff;
  padding: 15px 28px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: background 0.3s ease;
}
.cert-card__btn-inner svg { width: 16px; height: 16px; fill: #fff; flex-shrink: 0; }
.cert-card__btn:hover .cert-card__btn-inner { background: var(--teal-dark); }

.cert-card__btn-text { position: relative; display: inline-block; transition: transform 0.65s cubic-bezier(0.15, 0.85, 0.31, 1); }
.cert-card__btn:hover .cert-card__btn-text { transform: translateY(-200%); }
.cert-card__btn-text::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(200%);
  opacity: 0;
  white-space: nowrap;
  transition: transform 0.8s cubic-bezier(0.15, 0.85, 0.31, 1), opacity 0.5s ease;
}
.cert-card__btn:hover .cert-card__btn-text::before { transform: translateY(0); opacity: 1; }

/* ========== FAQ accordion (Zertifizierung) ========== */
.faq__inner { max-width: 850px; }
.faq__intro { text-align: center; margin-bottom: 40px; }
.faq__intro h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 14px; }
.faq__intro p { color: #333; line-height: 1.6; }
.faq__intro a { color: var(--teal); font-weight: 600; }

.faq__item { border: 1px solid #ddd; border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 18px 20px;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease;
}
.faq__icon { width: 14px; height: 14px; fill: #fff; flex-shrink: 0; transition: transform 0.3s ease; }
.faq__item.is-open .faq__icon { transform: rotate(180deg); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  background: var(--teal);
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
  padding: 0 20px;
}
.faq__answer p { color: #fff; font-size: 15px; line-height: 1.6; }
.faq__item.is-open .faq__answer { max-height: 500px; padding: 18px 20px; }

/* ========== Certification CTA banner ========== */
.cert-cta {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding: 110px 0;
  text-align: center;
}
.cert-cta__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.cert-cta__content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cert-cta__content h2 { color: #fff; font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 16px; }
.cert-cta__content p { color: #fff; font-size: 18px; margin-bottom: 26px; opacity: 0.95; }
.cert-cta__btn { transition: transform 0.3s ease; }
.cert-cta__btn:hover { transform: scale(1.03); }

/* ========== Service cards (Dienstleistungen) ========== */
.about-intro__cta { margin-top: 24px; }

.services-cards { background: var(--off-white); text-align: center; }
.services-cards__eyebrow { text-transform: uppercase; color: var(--teal); font-weight: 700; letter-spacing: 0.05em; font-size: 14px; margin-bottom: 10px; }
.services-cards__heading { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 50px; }
.services-cards__heading span { color: var(--teal); }

.services-cards__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}
.services-card {
  background: #fff;
  border-radius: 8px;
  padding: 40px 24px 30px;
  transition: box-shadow 0.25s ease;
}
.services-card:hover { box-shadow: 0 0 40px rgba(51, 51, 51, 0.1); }
.services-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(5, 141, 123, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.services-card__icon svg { width: 28px; height: 28px; fill: var(--teal); }
.services-card h3 { font-size: 19px; margin-bottom: 14px; }
.services-card p { font-size: 15px; line-height: 1.6; color: #696969; margin-bottom: 22px; }

/* ========== Service tabber (Dienstleistungen) ========== */
.svc-tabber__lead { text-align: center; font-size: 18px; color: #333; max-width: 700px; margin: 0 auto 50px; }

.svc-tabber__panel { display: none; grid-template-columns: 0.9fr 1.1fr; gap: 45px; align-items: center; margin-bottom: 40px; }
.svc-tabber__panel.is-active { display: grid; }
.svc-tabber__image { max-width: 380px; margin: 0 auto; }
.svc-tabber__image img { border-radius: 12px; width: 100%; height: auto; }
.svc-tabber__content h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.svc-tabber__content p { font-size: 16px; line-height: 1.7; color: #333; }

.svc-tabber__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; }
.svc-tabber__nav-btn {
  background: none;
  border: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.svc-tabber__nav-btn.is-active,
.svc-tabber__nav-btn:hover { color: var(--teal); border-color: var(--teal); }

/* ========== Offer highlight card (Dienstleistungen) ========== */
.offer { background: var(--off-white); }
.offer-card {
  max-width: 750px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.offer-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 141, 123, 0.1);
  border-radius: 50%;
}
.offer-card__icon svg { width: 32px; height: 32px; fill: var(--teal); }
.offer-card p { font-size: 16px; line-height: 1.75; color: #333; }

/* ========== Shop (eBay-Anbindung) ========== */
.shop-grid { background: var(--off-white); }
.shop-grid__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.shop-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.shop-card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); transform: translateY(-3px); }

.shop-card__media { aspect-ratio: 1 / 1; background: #fff; padding: 20px; display: flex; align-items: center; justify-content: center; }
.shop-card__media img { width: 100%; height: 100%; object-fit: contain; }

.shop-card__body { padding: 0 20px; flex: 1; }
.shop-card__body h3 { font-size: 16px; line-height: 1.4; margin-bottom: 10px; min-height: 44px; }
.shop-card__stock { display: inline-block; font-size: 12px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; }
.shop-card__rating { color: #f5b400; font-size: 14px; margin-bottom: 14px; }

.shop-card__footer { padding: 16px 20px 20px; border-top: 1px solid #eee; margin-top: auto; }
.shop-card__price { display: block; font-size: 20px; font-weight: 700; color: var(--ink); }
.shop-card__price small { font-size: 12px; font-weight: 400; color: #777; }

.shop-card__actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.shop-card__more,
.shop-card__buy {
  flex: 1;
  min-width: 110px;
  text-align: center;
  border-radius: 4px;
  padding: 9px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.shop-card__more { background: none; border: 1px solid #ddd; color: var(--ink); }
.shop-card__more:hover { border-color: var(--teal); color: var(--teal); }
.shop-card__buy { background: var(--teal); color: #fff; border: 1px solid var(--teal); }
.shop-card__buy:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

/* ---- Shop product modal ---- */
body.no-scroll { overflow: hidden; }

.shop-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.shop-modal[hidden] { display: none; }
.shop-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }

.shop-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
}
.shop-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f2f2f2;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  transition: background 0.2s ease;
}
.shop-modal__close:hover { background: #e5e5e5; }

.shop-modal__body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.shop-modal__main-image {
  aspect-ratio: 1 / 1;
  background: var(--off-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 14px;
}
.shop-modal__main-image img { width: 100%; height: 100%; object-fit: contain; }

.shop-modal__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-modal__thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  border: 2px solid transparent;
  padding: 4px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.shop-modal__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop-modal__thumb.is-active { border-color: var(--teal); }

.shop-modal__info h3 { font-size: 22px; margin-bottom: 12px; }
.shop-modal__price { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.shop-modal__vat { font-size: 13px; font-weight: 400; color: #777; }
.shop-modal__condition { margin: 14px 0; font-size: 14px; color: #444; }
.shop-modal__condition p { margin-bottom: 4px; }
.shop-modal__desc { font-size: 15px; line-height: 1.7; color: #333; margin: 14px 0 20px; }
.shop-modal__buy { display: inline-block; margin-bottom: 20px; }
.shop-modal__disclaimer { font-size: 12px; line-height: 1.5; color: #999; }

/* ========== Legal pages (Impressum, Datenschutz, AGB) ========== */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h1 { text-align: center; font-size: clamp(28px, 4vw, 38px); margin-bottom: 40px; }
.legal-content h2 { font-size: 24px; margin: 40px 0 16px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 18px; margin: 26px 0 10px; }
.legal-content p { margin-bottom: 14px; font-size: 15px; line-height: 1.75; color: #333; }
.legal-content address { font-style: normal; margin-bottom: 20px; line-height: 1.75; font-size: 15px; color: #333; }
.legal-content a { color: var(--teal); text-decoration: underline; }
.legal-content ul { margin: 0 0 14px 20px; }
.legal-content li { margin-bottom: 6px; font-size: 15px; line-height: 1.7; color: #333; }

/* ========== Location (Standort) ========== */
.location-map { padding-top: 0; }
.location-map__frame {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.location-map__frame iframe { display: block; width: 100%; height: 600px; border: 0; }
@media (max-width: 900px) {
  .location-map__frame iframe { height: 450px; }
}
@media (max-width: 600px) {
  .location-map__frame iframe { height: 350px; }
}

/* ========== Contact form (Kontakt) ========== */
.contact { background: var(--off-white); }
.contact__inner { max-width: 640px; margin: 0 auto; }
.contact__inner h2 { text-align: center; font-size: clamp(24px, 3.5vw, 30px); margin-bottom: 30px; }

.contact-alert { border-radius: 8px; padding: 22px 24px; margin-bottom: 30px; }
.contact-alert strong { display: block; margin-bottom: 6px; font-size: 16px; }
.contact-alert p { font-size: 15px; line-height: 1.6; margin: 0; }
.contact-alert ul { margin: 6px 0 0 20px; font-size: 15px; line-height: 1.6; }
.contact-alert--success { background: #e3f5f0; color: var(--teal-dark); border: 1px solid #b7e4d8; }
.contact-alert--success a { color: var(--teal-dark); text-decoration: underline; }
.contact-alert--error { background: #fdecea; color: #7a271a; border: 1px solid #f5c6c0; }

.contact-form { background: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form__field { margin-bottom: 20px; }
.contact-form__field label,
.contact-form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.contact-form__field input[type="text"],
.contact-form__field input[type="email"],
.contact-form__field input[type="tel"],
.contact-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.contact-form__field textarea { resize: vertical; min-height: 120px; }

.contact-form__radios { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.contact-form__radio { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 400; color: #333; cursor: pointer; }
.contact-form__radio input { width: auto; accent-color: var(--teal); }

.contact-form .btn { width: 100%; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .feature-intro__grid,
  .history__grid,
  .tabs { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: 40px; }
  .tabs__images { order: -1; }

  .about-content__grid,
  .strategy__grid,
  .responsibility__grid { grid-template-columns: 1fr; }
  .responsibility__grid--reverse .responsibility__image,
  .responsibility__grid--reverse .responsibility__text { order: initial; }
  .strategy__grid--reverse .strategy__left,
  .strategy__grid--reverse .strategy__right { order: initial; }
  .stat-cards__grid { grid-template-columns: 1fr; }
  .strategy__cards { grid-template-columns: 1fr; }

  .strategy__circle { width: min(340px, 100%); }
  .strategy__circle-content { padding: 70px 45px; }
  .strategy__circle-icon { width: 62px; height: 62px; }
  .strategy__circle-icon-btn svg { width: 24px; height: 24px; }

  .stack-card { height: auto; min-height: 100vh; min-height: 100dvh; position: relative; padding: 70px 0; }
  .stack-card__inner { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .stack-card__icon svg { max-width: 200px; }
  .stack-card__list { text-align: left; }

  .cert-hero__grid { grid-template-columns: 1fr; }

  .cert-card { height: auto; min-height: 100vh; min-height: 100dvh; position: relative; padding: 60px 0; }
  .cert-card__inner { grid-template-columns: 1fr; }
  .cert-card__media { aspect-ratio: 16 / 9; height: auto; }
  .cert-card__num { font-size: 80px; top: -10px; }

  .services-cards__grid { grid-template-columns: repeat(2, 1fr); }
  .svc-tabber__panel { grid-template-columns: 1fr; text-align: center; }
  .svc-tabber__image { max-width: 260px; }

  .shop-modal__dialog { padding: 30px 20px; }
  .shop-modal__body { grid-template-columns: 1fr; gap: 24px; }

  .contact-form { padding: 28px 20px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 560px) {
  .services-cards__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .topbar__list:not(.topbar__list--right) { display: none; }

  .navbar__burger { display: flex; }

  .navbar__nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 90px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  }
  .navbar__nav.is-open { right: 0; }

  .navbar__menu { flex-direction: column; gap: 4px; width: 100%; }
  .navbar__link { display: block; padding: 14px 0; width: 100%; border-bottom: 1px solid #eee; }

  .mega {
    display: none;
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    padding: 10px 0 10px 14px;
    flex-direction: column;
    gap: 20px;
  }
  .has-mega.is-open .mega { display: flex; }
  .has-mega:hover .mega { display: none; }
  .has-mega.is-open:hover .mega { display: flex; }

  .navbar__cta { margin-top: 20px; width: 100%; text-align: center; }
}
