/* =========================================================================
   PRÜFSERVICE — components.css
   Header, footer, buttons, cards, hero, plakette, ablauf, faq, forms,
   cookie banner, whatsapp FAB, modal.
   ========================================================================= */

/* ============================== BUTTONS ================================= */

.btn {
  --btn-bg: var(--signal-600);
  --btn-fg: var(--white);
  --btn-bg-hover: var(--signal-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r-3);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: var(--fs-16);
  letter-spacing: var(--ls-snug);
  transition: background var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { /* default */ }

.btn--cta {
  --btn-bg: var(--safety);
  --btn-fg: var(--ink-900);
  --btn-bg-hover: var(--safety-600);
  font-weight: 700;
  box-shadow: var(--shadow-cta);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--steel-900);
  --btn-bg-hover: var(--steel-100);
  border-color: var(--steel-200);
}
.section--steel .btn--ghost {
  --btn-fg: var(--white);
  --btn-bg-hover: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

.btn--whatsapp {
  --btn-bg: #25D366;
  --btn-fg: #FFFFFF;
  --btn-bg-hover: #128C7E;
}

.btn--lg { min-height: 56px; padding: 0 var(--s-6); font-size: var(--fs-18); }
.btn--sm { min-height: 36px; padding: 0 var(--s-4); font-size: var(--fs-14); }

.btn-arrow { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============================== HEADER ================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(245, 247, 250, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-3) var(--ease-out),
              background var(--dur-3) var(--ease-out);
}
.site-header.is-stuck {
  border-bottom-color: var(--steel-100);
  background: rgba(245, 247, 250, 0.98);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--steel-900);
}
.brand__mark { width: 36px; height: 36px; flex: 0 0 auto; }
.brand__wordmark { font-weight: 800; letter-spacing: var(--ls-tight); font-size: var(--fs-20); }
.brand__wordmark span { color: var(--signal-600); }

.nav { margin-left: auto; }
.nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: var(--s-2);
}
.nav__link {
  display: inline-flex;
  align-items: center;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-3);
  color: var(--steel-700);
  font-weight: 500;
  font-size: var(--fs-14);
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] {
  background: var(--steel-100);
  color: var(--steel-900);
}

.header-cta { display: inline-flex; align-items: center; gap: var(--s-3); }
.header-tel {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: var(--fs-14);
  color: var(--steel-700);
  padding: var(--s-2) var(--s-3); border-radius: var(--r-3);
}
.header-tel:hover { background: var(--steel-100); color: var(--steel-900); }

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--steel-200);
  border-radius: var(--r-3);
  background: var(--white);
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--steel-900);
  position: relative;
  transition: transform var(--dur-3) var(--ease-out), top var(--dur-2) var(--ease-out);
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; left: 0; }
.nav-toggle span::after  { content: ""; position: absolute; top:  6px; left: 0; }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 72px 0 0 0;
    background: var(--white);
    transform: translateX(100%);
    transition: transform var(--dur-3) var(--ease-out);
    padding: var(--s-5);
    overflow-y: auto;
    margin-left: 0;
  }
  .site-header.nav-open .nav { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: var(--s-4);
    border-bottom: 1px solid var(--steel-100);
    font-size: var(--fs-18);
    border-radius: 0;
  }
  .header-cta { margin-left: auto; }
  .header-tel { display: none; }
}

/* ============================== HERO ==================================== */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--steel-900) 0%, var(--steel-800) 100%);
  color: var(--white);
  overflow: hidden;
  padding: clamp(64px, 10vw, 128px) 0 clamp(80px, 12vw, 144px);
  border-bottom: 1px solid var(--steel-700);
}
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image: url("../assets/patterns/blueprint-grid.svg");
  background-size: 56px 56px;
  will-change: transform;
  opacity: 0.18;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 60% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, black 30%, transparent 75%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw + 1rem, 4.75rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: var(--s-5);
  text-wrap: balance;
}
.hero h1 .accent { color: var(--safety); }
.hero h1 .pipe   { display: inline-block; width: 3px; height: 0.85em; background: var(--safety); vertical-align: -0.05em; margin: 0 0.18em; }

.hero__lead {
  font-size: clamp(1.1rem, 0.6vw + 0.95rem, 1.375rem);
  line-height: 1.55;
  color: var(--steel-200);
  max-width: 56ch;
  margin-bottom: var(--s-6);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__meta {
  margin-top: var(--s-7);
  display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-6);
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  color: var(--steel-300);
  letter-spacing: var(--ls-mono);
}
.hero__meta-item { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero__meta-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok-500); }

/* Plakette stamp */
.hero__plakette-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 360px;
}
.hero__plakette {
  width: clamp(240px, 30vw, 380px);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.35));
  will-change: transform, opacity;
  transform-origin: center;
}

/* ============================== TRUST BAR =============================== */

.trust-bar {
  background: var(--steel-900);
  color: var(--steel-300);
  border-top: 1px solid var(--steel-700);
  padding: var(--s-5) 0;
}
.trust-bar__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-3) var(--s-7);
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  letter-spacing: var(--ls-mono);
  justify-content: center;
}
.trust-bar__list li {
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.trust-bar__list li::before {
  content: "";
  width: 14px; height: 14px;
  background: url("../assets/icons/check-circle.svg") center/contain no-repeat;
  filter: invert(60%) sepia(70%) saturate(400%) hue-rotate(170deg);
}

/* ============================== CARDS =================================== */

.card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--r-4);
  padding: var(--s-6);
  transition: transform var(--dur-3) var(--ease-out),
              box-shadow var(--dur-3) var(--ease-out),
              border-color var(--dur-3) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
  border-color: var(--steel-200);
}
.card__icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--signal-100);
  color: var(--signal-700);
  border-radius: var(--r-3);
  margin-bottom: var(--s-4);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--fs-20); margin-bottom: var(--s-3); }
.card p { color: var(--ink-500); font-size: var(--fs-16); }
.card__link {
  display: inline-flex; align-items: center; gap: var(--s-2);
  margin-top: var(--s-4);
  font-weight: 600;
  font-size: var(--fs-14);
}
.card__link::after {
  content: "→";
  transition: transform var(--dur-2) var(--ease-out);
}
.card:hover .card__link::after { transform: translateX(4px); }

/* Service card with hover plakette */
.service-card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--r-4);
  padding: var(--s-6);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-3) var(--ease-out),
              border-color var(--dur-3) var(--ease-out);
  display: flex; flex-direction: column;
  min-height: 360px;
}
.service-card { will-change: transform; }
.service-card:hover { transform: translateY(-4px); border-color: var(--signal-300); }
.service-card__plakette {
  position: absolute;
  top: var(--s-5); right: var(--s-5);
  width: 64px; height: 64px;
  opacity: 0;
  transform: rotate(-12deg) scale(0.6);
  transition: opacity var(--dur-3) var(--ease-out),
              transform var(--dur-stamp) var(--ease-out);
}
.service-card:hover .service-card__plakette {
  opacity: 1;
  transform: rotate(8deg) scale(1);
}
.service-card__title { font-size: var(--fs-24); margin-top: var(--s-5); margin-bottom: var(--s-3); }
.service-card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: var(--ls-mono);
  color: var(--signal-600);
}
.service-card__list {
  list-style: none; padding: 0; margin: var(--s-4) 0 0;
  font-size: var(--fs-14);
  color: var(--ink-500);
}
.service-card__list li {
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--steel-100);
  display: flex; align-items: center; gap: var(--s-2);
}
.service-card__list li::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--signal-500);
  border-radius: 50%;
  flex: 0 0 auto;
}
.service-card__cta {
  margin-top: auto; padding-top: var(--s-5);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: var(--signal-600);
}

/* Branche card */
.branche-card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--r-3);
  padding: var(--s-5);
  text-align: center;
  transition: all var(--dur-3) var(--ease-out);
  text-decoration: none;
  color: var(--steel-900);
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
}
.branche-card:hover {
  border-color: var(--signal-400);
  background: var(--signal-100);
  color: var(--steel-900);
  transform: translateY(-2px);
}
.branche-card__icon { width: 40px; height: 40px; color: var(--signal-700); }
.branche-card__title { font-size: var(--fs-16); font-weight: 600; }

/* ============================== ABLAUF (process) ======================== */

.ablauf {
  position: relative;
}
.ablauf__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-4);
  position: relative;
}
.ablauf__steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--steel-200) 0 8px,
    transparent 8px 14px
  );
  z-index: 0;
}
.ablauf__step {
  position: relative; z-index: 1;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
  will-change: opacity;
}
.ablauf__num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--steel-200);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--fs-20);
  color: var(--signal-700);
  position: relative;
  transition: all var(--dur-3) var(--ease-out);
}
.ablauf__step.is-active .ablauf__num,
.ablauf__step:hover .ablauf__num {
  background: var(--safety);
  border-color: var(--safety-600);
  color: var(--ink-900);
  box-shadow: var(--shadow-cta);
}
.ablauf__title { font-weight: 600; font-size: var(--fs-16); color: var(--steel-900); }
.ablauf__desc  { font-size: var(--fs-14); color: var(--ink-500); max-width: 22ch; }

@media (max-width: 900px) {
  .ablauf__steps { grid-template-columns: 1fr; gap: var(--s-5); }
  .ablauf__steps::before { display: none; }
  .ablauf__step { flex-direction: row; text-align: left; max-width: 460px; margin: 0 auto; }
  .ablauf__num { flex: 0 0 auto; }
}

/* ============================== TESTIMONIAL ============================= */

.testimonial {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--r-4);
  padding: var(--s-6);
  position: relative;
}
.testimonial__quote {
  font-size: var(--fs-18);
  color: var(--ink-700);
  margin: 0 0 var(--s-5);
  line-height: 1.55;
  quotes: "„" "“" "‚" "‘";
}
.testimonial__quote::before { content: open-quote; color: var(--signal-400); margin-right: 2px; }
.testimonial__quote::after  { content: close-quote; color: var(--signal-400); margin-left: 2px; }
.testimonial__author {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-14);
}
.testimonial__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--steel-300), var(--steel-500));
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.testimonial__name { font-weight: 600; color: var(--steel-900); }
.testimonial__role { color: var(--ink-500); }

/* ============================== STATS / COUNTER ========================= */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--steel-700);
  border-bottom: 1px solid var(--steel-700);
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
}
.stat__num {
  font-size: clamp(2.25rem, 4vw + 0.5rem, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__num .unit { color: var(--safety); margin-left: 0.15em; }
.stat__label { color: var(--steel-300); margin-top: var(--s-3); font-size: var(--fs-14); }

/* ============================== FAQ ===================================== */

.faq {
  border-top: 1px solid var(--steel-100);
}
.faq__item { border-bottom: 1px solid var(--steel-100); }
.faq__btn {
  width: 100%;
  background: transparent;
  border: 0;
  padding: var(--s-5) 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  text-align: left;
  font-size: var(--fs-18);
  font-weight: 600;
  color: var(--steel-900);
}
.faq__btn .icon {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border: 1px solid var(--steel-200);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--dur-3) var(--ease-out), background var(--dur-2) var(--ease-out);
}
.faq__btn[aria-expanded="true"] .icon {
  background: var(--safety);
  border-color: var(--safety-600);
  transform: rotate(45deg);
}
.faq__panel {
  /* Высота управляется JS (GSAP height auto, либо instant fallback в reduced-motion).
     CSS-transition убран — max-height обрезает длинные DE-ответы и рвётся при resize. */
  height: 0; overflow: hidden;
  will-change: height;
}
.faq__panel-inner { padding: 0 0 var(--s-5); color: var(--ink-500); max-width: 75ch; }

/* ============================== KONTAKT FORM ============================ */

.form { display: grid; gap: var(--s-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label {
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--steel-700);
}
.field label .req { color: var(--err-500); }
.field input,
.field select,
.field textarea {
  border: 1px solid var(--steel-200);
  background: var(--white);
  border-radius: var(--r-3);
  padding: var(--s-3) var(--s-4);
  min-height: 48px;
  font-size: var(--fs-16);
  transition: border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--signal-500);
  outline: none;
  box-shadow: 0 0 0 3px var(--signal-100);
}
.field--error input,
.field--error select,
.field--error textarea { border-color: var(--err-500); }
.field__error { color: var(--err-500); font-size: var(--fs-12); display: none; }
.field--error .field__error { display: block; }

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--fs-14);
  color: var(--ink-500);
}
.field--check input { min-height: auto; width: 18px; height: 18px; margin-top: 4px; flex: 0 0 auto; }
.field--check label { font-weight: 400; color: var(--ink-500); }

.form__success {
  display: none;
  padding: var(--s-5);
  background: var(--ok-100);
  border: 1px solid var(--ok-500);
  border-radius: var(--r-3);
  color: #0F5631;
}
.form.is-success .form__success { display: block; }
.form.is-success > *:not(.form__success) { display: none; }

/* CTA Section */
.cta-section {
  background: var(--steel-900);
  color: var(--white);
  border-radius: var(--r-5);
  padding: clamp(var(--s-7), 6vw, var(--s-9));
  position: relative; overflow: hidden;
}
.cta-section__grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-8);
  position: relative; z-index: 1;
}
@media (max-width: 1024px) { .cta-section__grid { grid-template-columns: 1fr; } }
.cta-section::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/patterns/blueprint-grid.svg") center/56px 56px;
  opacity: 0.12;
  pointer-events: none;
}

/* Contact channels */
.channels { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.channel {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4);
  background: var(--steel-800);
  border: 1px solid var(--steel-700);
  border-radius: var(--r-3);
  text-decoration: none;
  color: var(--white);
  transition: background var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.channel:hover { background: var(--steel-700); border-color: var(--steel-600); color: var(--white); }
.channel__icon {
  width: 40px; height: 40px;
  border-radius: var(--r-2);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--signal-600);
  color: var(--white);
  flex: 0 0 auto;
}
.channel--whatsapp .channel__icon { background: #25D366; }
.channel__label { font-size: var(--fs-12); color: var(--steel-300); font-family: var(--font-mono); letter-spacing: var(--ls-mono); }
.channel__value { font-size: var(--fs-18); font-weight: 600; color: var(--white); }

/* ============================== FOOTER ================================== */

.site-footer {
  background: var(--steel-900);
  color: var(--steel-300);
  padding: var(--s-9) 0 var(--s-6);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/patterns/blueprint-grid.svg") center/56px 56px;
  opacity: 0.06;
}
.site-footer .container { position: relative; z-index: 1; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--steel-700);
}
@media (max-width: 1024px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand .brand__wordmark { color: var(--white); }
.footer__brand p { color: var(--steel-400); margin-top: var(--s-3); font-size: var(--fs-14); }

.footer__title {
  color: var(--white);
  font-size: var(--fs-14);
  font-weight: 600;
  margin: 0 0 var(--s-4);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.footer__list a {
  color: var(--steel-300);
  font-size: var(--fs-14);
  transition: color var(--dur-2) var(--ease-out);
}
.footer__list a:hover { color: var(--white); }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  justify-content: space-between;
  padding-top: var(--s-5);
  font-size: var(--fs-12);
  color: var(--steel-400);
  font-family: var(--font-mono);
}

/* ============================== WHATSAPP FAB ============================ */

.fab {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-3);
  background: #25D366;
  color: var(--white);
  border: 0;
  border-radius: var(--r-pill);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35), 0 4px 8px rgba(0,0,0,0.15);
  font-weight: 600;
  font-size: var(--fs-14);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.fab:hover { transform: translateY(-2px) scale(1.02); color: var(--white); }
.fab__icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.fab__icon svg { width: 18px; height: 18px; }
.fab__pulse {
  position: absolute; inset: -2px;
  border-radius: var(--r-pill);
  border: 2px solid #25D366;
  animation: fab-pulse 2.4s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.18); opacity: 0; }
}
@media (max-width: 640px) {
  .fab__label { display: none; }
  .fab { padding: var(--s-3); }
}

/* Mobile sticky bar */
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: var(--z-fab);
  background: var(--white);
  border-top: 1px solid var(--steel-100);
  padding: var(--s-3) var(--s-4);
  gap: var(--s-2);
  justify-content: space-around;
}
.mobile-cta a {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-3);
  border-radius: var(--r-3);
  background: var(--steel-100);
  color: var(--steel-900);
  font-weight: 600;
  font-size: var(--fs-14);
}
.mobile-cta a.primary { background: var(--safety); color: var(--ink-900); }
.mobile-cta a.whatsapp { background: #25D366; color: var(--white); }
@media (max-width: 720px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
  .fab { display: none; }
}

/* ============================== COOKIE BANNER =========================== */

.cookie {
  position: fixed;
  left: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: var(--z-cookie);
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-3);
  padding: var(--s-5);
  max-width: 720px;
  display: none;
}
.cookie.is-open { display: block; }
.cookie h3 { margin: 0 0 var(--s-2); font-size: var(--fs-18); }
.cookie p  { margin: 0 0 var(--s-4); font-size: var(--fs-14); color: var(--ink-500); }
.cookie__actions {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
}
.cookie__actions .btn { min-height: 44px; padding: 0 var(--s-4); font-size: var(--fs-14); }
.cookie__actions .btn--cta { order: 0; }
.cookie__actions .btn--ghost { order: 1; }
@media (max-width: 640px) {
  .cookie__actions .btn { flex: 1; }
}

/* ============================== MODAL =================================== */

.modal {
  position: fixed; inset: 0;
  z-index: var(--z-modal);
  background: rgba(15,26,36,0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
}
.modal.is-open { display: flex; }
.modal__dialog {
  background: var(--white);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-3);
  max-width: 480px;
  width: 100%;
  padding: var(--s-7);
  position: relative;
}
.modal__close {
  position: absolute; top: var(--s-3); right: var(--s-3);
  width: 36px; height: 36px;
  border: 0; background: transparent; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.modal__close:hover { background: var(--steel-100); }
.modal h3 { margin: 0 0 var(--s-3); }
.modal p  { font-size: var(--fs-14); color: var(--ink-500); }
.modal__actions { display: flex; gap: var(--s-3); margin-top: var(--s-5); flex-wrap: wrap; }
.modal__actions .btn { flex: 1; }

/* ============================== ANIMATIONS BASE ========================= */
/*  Fail-graceful: only hide [data-reveal] when JS has confirmed it can
    animate. If the page is opened via file:// (ES-modules blocked) or
    JS fails for any reason, content stays visible. main.js adds the
    .js-anim class on <html> as its first action.                         */

html.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out);
  will-change: opacity, transform;
}
html.js-anim [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Page hero (for inner pages) */
.page-hero {
  background: var(--steel-900);
  color: var(--white);
  padding: var(--s-9) 0 var(--s-7);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--steel-700);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/patterns/blueprint-grid.svg") center/56px 56px;
  opacity: 0.08;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); max-width: 22ch; }
.page-hero .lead { color: var(--steel-200); max-width: 60ch; }

.breadcrumb {
  font-family: var(--font-mono); font-size: var(--fs-12);
  color: var(--steel-300);
  letter-spacing: var(--ls-mono);
  margin-bottom: var(--s-5);
}
.breadcrumb a { color: var(--steel-300); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb__sep { margin: 0 var(--s-2); color: var(--steel-500); }

/* Pricing card */
.price-card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--r-4);
  padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.price-card.is-featured { border-color: var(--safety); position: relative; }
.price-card.is-featured::before {
  content: "Empfohlen";
  position: absolute; top: -12px; left: var(--s-5);
  background: var(--safety); color: var(--ink-900);
  font-size: var(--fs-12); font-weight: 700;
  padding: var(--s-1) var(--s-3); border-radius: var(--r-pill);
  font-family: var(--font-mono); letter-spacing: var(--ls-mono);
}
.price-card__price {
  font-size: var(--fs-48); font-weight: 800;
  color: var(--steel-900);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-card__price .unit { font-size: var(--fs-16); color: var(--ink-500); font-weight: 500; }
.price-card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); font-size: var(--fs-14); color: var(--ink-700); }
.price-card__list li { padding-left: var(--s-5); position: relative; }
.price-card__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ok-500); font-weight: 700;
}

/* Image placeholder */
.placeholder-img {
  background:
    linear-gradient(135deg, var(--steel-200) 0%, var(--steel-100) 100%),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(0,0,0,0.04) 8px 9px);
  border: 1px dashed var(--steel-400);
  border-radius: var(--r-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--steel-500);
  font-family: var(--font-mono); font-size: var(--fs-12);
  letter-spacing: var(--ls-mono);
  text-align: center;
  padding: var(--s-5);
  min-height: 160px;
}

/* Multi-step form */
.steps-indicator {
  display: flex; gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.steps-indicator__item {
  flex: 1; height: 4px;
  background: var(--steel-200);
  border-radius: var(--r-pill);
}
.steps-indicator__item.is-active { background: var(--safety); }
.steps-indicator__item.is-done   { background: var(--signal-500); }

.fset { border: 0; padding: 0; margin: 0; display: none; }
.fset.is-active { display: block; }
.fset legend { font-size: var(--fs-24); font-weight: 700; color: var(--steel-900); margin-bottom: var(--s-3); }

/* Pill choices */
.pills { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--steel-200);
  border-radius: var(--r-pill);
  background: var(--white);
  cursor: pointer;
  font-size: var(--fs-14);
  transition: all var(--dur-2) var(--ease-out);
}
.pill input { display: none; }
.pill:has(input:checked),
.pill.is-active {
  background: var(--signal-100);
  border-color: var(--signal-500);
  color: var(--signal-700);
}
