/* =============================================================================
   LeadShield About — /about/index.html
   Light-Side · Editorial, long-form
   ============================================================================= */


/* -----------------------------------------------------------------------------
   1. BASE & LAYOUT
   --------------------------------------------------------------------------- */

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

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

section { position: relative; padding-block: var(--section-y); }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }


/* -----------------------------------------------------------------------------
   2. TYPOGRAPHY HELPERS
   --------------------------------------------------------------------------- */

.label {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}


/* -----------------------------------------------------------------------------
   3. BUTTONS & LINKS
   --------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--text-primary);
  --btn-fg: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.95rem 1.5rem 0.95rem 1.75rem;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-16);
  letter-spacing: -0.01em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out);
  will-change: transform;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn__arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--coral { --btn-bg: var(--accent-coral); --btn-fg: #fff; }
.btn--coral:hover { --btn-bg: #FF7E5E; }


/* -----------------------------------------------------------------------------
   4. HEADER / NAV
   --------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: var(--space-4); height: 72px;
}

.header__logo { display: inline-flex; align-items: center; }
.header__logo img { height: 32px; width: auto; }

.header__nav {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: center;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--fs-16);
  color: var(--text-primary);
  position: relative; padding: 0.25rem 0;
  transition: color var(--dur-base) var(--ease-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px; background: currentColor;
  transition: right var(--dur-base) var(--ease-out);
}
.nav-link:hover::after { right: 0; }

.nav-link[data-path="sites"]  { color: var(--accent-coral-ink); font-weight: var(--fw-bold); }
.nav-link[data-path="filter"] { color: var(--accent-ink);        font-weight: var(--fw-bold); }
.nav-link[data-path="sites"]:hover  { color: #92240F; }
.nav-link[data-path="filter"]:hover { color: #004F5C; }

.nav-link[aria-current="page"] {
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 1px;
}
.nav-link[aria-current="page"]::after { display: none; }

.nav-link--cta {
  padding: 0.5rem 1rem;
  background: var(--text-primary); color: var(--bg);
  border-radius: var(--radius-sm);
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover  { background: #1F2530; color: var(--bg); }

.header__menu {
  display: none; width: 36px; height: 36px;
  border: 0; background: transparent; padding: 0; cursor: pointer;
  flex-direction: column; gap: 5px; justify-content: center; align-items: center;
}
.header__menu span {
  display: block; width: 20px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.header__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* -----------------------------------------------------------------------------
   5. ABOUT HERO
   --------------------------------------------------------------------------- */

.about-hero {
  padding-block: clamp(4rem, 9vw, 8rem) clamp(3rem, 6vw, 6rem);
}

.about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: end;
}

.about-hero__photo-frame {
  aspect-ratio: 4 / 5;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-hero__photo-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(0, 184, 212, 0.06), transparent 60%);
  pointer-events: none;
}

.about-hero__placeholder {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.04em;
  color: var(--text-primary);
  text-align: center;
  position: relative; z-index: 1;
}

.about-hero__placeholder small {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 8px;
}

.about-hero__pre {
  margin-bottom: var(--space-3);
}

.about-hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

.about-hero__lead {
  font-size: var(--fs-18);
  line-height: var(--lh-normal);
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0;
}


/* -----------------------------------------------------------------------------
   6. EDITORIAL BODY
   --------------------------------------------------------------------------- */

.about-body {
  max-width: 72ch;
  margin-inline: auto;
  padding-block: clamp(4rem, 8vw, 8rem);
}

.about-section {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.about-section:first-child { padding-top: 0; }

.about-section__num {
  margin-bottom: var(--space-3);
}

.about-section__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

.about-section__body {
  font-family: var(--font-body);
  font-size: var(--fs-18);
  line-height: var(--lh-loose);
  color: var(--text-muted);
}

.about-section__body p {
  margin: 0 0 var(--space-3);
}

.about-section__body p:last-child { margin: 0; }

.about-section__body strong {
  color: var(--text-primary);
  font-weight: var(--fw-medium);
}


/* -----------------------------------------------------------------------------
   7. CONTACT SECTION
   --------------------------------------------------------------------------- */

.about-contact {
  background: var(--text-primary);
  color: #FFFFFF;
  padding-block: clamp(4rem, 8vw, 8rem);
}

.about-contact__inner {
  max-width: 56ch;
  margin-inline: auto;
  text-align: center;
}

.about-contact__pre { color: rgba(255,255,255,0.5); margin-bottom: var(--space-3); }

.about-contact__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: #FFFFFF;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

.about-contact__sub {
  font-size: var(--fs-18);
  line-height: var(--lh-normal);
  color: rgba(255,255,255,0.65);
  margin: 0 0 var(--space-6);
}

.about-contact__email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-18);
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.about-contact__email:hover { color: #FFFFFF; border-color: #FFFFFF; }

.about-product-links {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.about-product-link {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--fs-16);
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--dur-base) var(--ease-out);
}
.about-product-link:hover { color: #FFFFFF; }
.about-product-link--coral:hover { color: var(--accent-coral); }
.about-product-link--cyan:hover  { color: var(--accent-glow); }


/* -----------------------------------------------------------------------------
   8. FOOTER
   --------------------------------------------------------------------------- */

.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding-block: var(--space-12) var(--space-6);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo {
  width: 160px; height: auto;
  margin-bottom: var(--space-3);
}

.footer__tag {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  color: #FFFFFF;
  font-size: var(--fs-18);
  margin: 0 0 var(--space-3);
  max-width: 22rem;
  line-height: var(--lh-snug);
}

.footer__address {
  font-style: normal;
  font-size: var(--fs-14);
  color: rgba(255,255,255,0.55);
  line-height: var(--lh-relaxed);
}

.footer__head { color: rgba(255,255,255,0.45); margin-bottom: var(--space-3); }
.footer__list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__list a {
  color: rgba(255,255,255,0.85);
  font-size: var(--fs-16);
  transition: color var(--dur-base) var(--ease-out);
}
.footer__list a:hover { color: var(--accent-glow); }

.footer__micro {
  padding-top: var(--space-4);
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}


/* -----------------------------------------------------------------------------
   9. REVEAL ANIMATIONS + BRIDGE OVERLAY
   --------------------------------------------------------------------------- */

.bridge-overlay {
  position: fixed; inset: 0;
  background: #090909;
  z-index: var(--z-modal);
  opacity: 0; pointer-events: none; display: none;
}

body.menu-open { overflow: hidden; }

.js-on [data-anim="reveal-up"] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
  transition-delay: calc(var(--index, 0) * 90ms);
}

.js-on [data-anim="reveal-up"].is-revealed {
  opacity: 1;
  transform: translateY(0);
}


/* -----------------------------------------------------------------------------
   10. RESPONSIVE
   --------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .about-hero__grid { grid-template-columns: 1fr 1.4fr; gap: var(--space-4); }
}

@media (max-width: 720px) {
  .header__nav { display: none; }
  .header__menu { display: inline-flex; }

  .header__nav--open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: var(--space-4) var(--container-pad) var(--space-6);
    z-index: var(--z-overlay);
    overflow-y: auto;
    animation: menuSlide var(--dur-base) var(--ease-out) both;
  }

  @keyframes menuSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .header__nav--open .nav-link {
    font-size: var(--fs-24);
    font-weight: var(--fw-bold);
    padding: 0.9rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .header__nav--open .nav-link:first-child { border-top: 1px solid var(--border); }

  .header__nav--open .nav-link--cta {
    margin-top: var(--space-4);
    width: auto;
    background: var(--text-primary);
    color: var(--bg);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    font-size: var(--fs-18);
  }

  .about-hero__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .about-hero__photo-frame { max-width: 22rem; }
  .about-hero__title { font-size: clamp(2.25rem, 10vw, 4rem); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .about-product-links { flex-direction: column; align-items: center; }
}

@media (max-width: 420px) {
  .about-body { padding-inline: 0; }
}


/* -----------------------------------------------------------------------------
   N. BEFORE / AFTER SLIDER  (Hero media — Frankfurt skyline)
   Draggable vertical split between two images. Fills the parent
   .about-hero__media-frame (16:9). Pointer + touch + keyboard.
   --position is the slider position in percent (0–100), set by JS.
   --------------------------------------------------------------------------- */

.ba-slider {
  --position: 50%;
  --line-color: var(--accent);
  --handle-size: 40px;

  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.ba-slider:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(0, 184, 212, 0.55);
}

.ba-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.ba-slider__img--overlay {
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--position)) 0 0);
  will-change: clip-path;
  transition: clip-path var(--dur-base) var(--ease-out);
}

.ba-slider__line,
.ba-slider__handle {
  transition: left var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.ba-slider.is-dragging .ba-slider__img--overlay,
.ba-slider.is-auto .ba-slider__img--overlay,
.ba-slider.is-dragging .ba-slider__line,
.ba-slider.is-auto .ba-slider__line,
.ba-slider.is-dragging .ba-slider__handle,
.ba-slider.is-auto .ba-slider__handle {
  transition: none;
}

.ba-slider__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 2px;
  margin-left: -1px;
  background: var(--line-color);
  box-shadow: 0 0 12px rgba(0, 184, 212, 0.45);
  pointer-events: none;
  will-change: left;
}

.ba-slider__handle {
  position: absolute;
  top: 50%;
  left: var(--position);
  width: var(--handle-size);
  height: var(--handle-size);
  margin: calc(var(--handle-size) / -2) 0 0 calc(var(--handle-size) / -2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid var(--line-color);
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow:
    0 1px 2px rgba(11, 14, 20, 0.10),
    0 8px 24px -8px rgba(11, 14, 20, 0.20),
    0 0 0 0 rgba(0, 184, 212, 0.0);
  cursor: ew-resize;
  pointer-events: none;
  transition:
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
  will-change: left, transform;
  font-family: var(--font-mono);
}

.ba-slider__handle::before {
  /* Larger invisible hit target for touch (>= 44px). The hit target sits
     under the visible handle but the slider container takes pointer events,
     so this is mainly an a11y/comfort hint — the whole frame is draggable. */
  content: "";
  position: absolute;
  inset: -8px;
}

.ba-slider:hover .ba-slider__handle,
.ba-slider:focus-visible .ba-slider__handle {
  box-shadow:
    0 1px 2px rgba(11, 14, 20, 0.10),
    0 10px 28px -8px rgba(11, 14, 20, 0.25),
    0 0 0 6px rgba(0, 184, 212, 0.18);
  transform: scale(1.05);
}

.ba-slider.is-dragging .ba-slider__handle {
  transform: scale(0.96);
}

@media (max-width: 720px) {
  .ba-slider { --handle-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .ba-slider__handle,
  .ba-slider__clip,
  .ba-slider__line { transition: none !important; }
}


/* -----------------------------------------------------------------------------
   N+1. PILL CTAs  (Kontakt section — operator subpage only)
   Outlined pill on dark surface, dot + label + arrow, glowing border.
   Variants: --coral (LeadShield Websites) · --cyan (LeadShield Filter).
   --------------------------------------------------------------------------- */

.about-contact__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.btn-pill {
  --pill-color:   var(--accent-coral);
  --pill-glow:    rgba(255, 107, 74, 0.55);
  --pill-glow-soft: rgba(255, 107, 74, 0.18);
  --pill-bg:      rgba(10, 12, 18, 0.55);

  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.5rem 0.95rem 1.25rem;
  border: 1.5px solid var(--pill-color);
  border-radius: var(--radius-pill);
  background: var(--pill-bg);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-16);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.20),
    0 0 22px -2px var(--pill-glow-soft),
    inset 0 0 18px -8px var(--pill-glow-soft);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.btn-pill--coral {
  --pill-color:     #FF7A3D;
  --pill-glow:      rgba(255, 122, 61, 0.65);
  --pill-glow-soft: rgba(255, 122, 61, 0.22);
}

.btn-pill--cyan {
  --pill-color:     #00C8E5;
  --pill-glow:      rgba(0, 200, 229, 0.65);
  --pill-glow-soft: rgba(0, 200, 229, 0.22);
}

.btn-pill__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pill-color);
  box-shadow: 0 0 10px var(--pill-glow);
  flex: 0 0 auto;
}

.btn-pill__label {
  display: inline-block;
  color: #FFFFFF;
  line-height: 1;
}

.btn-pill__arrow {
  color: var(--pill-color);
  flex: 0 0 auto;
  transition: transform var(--dur-base) var(--ease-out);
}

.btn-pill:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.20),
    0 0 30px -2px var(--pill-glow),
    inset 0 0 22px -8px var(--pill-glow-soft);
}
.btn-pill:hover .btn-pill__arrow {
  transform: translateX(4px);
}
.btn-pill:active {
  transform: translateY(0) scale(0.985);
}
.btn-pill:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--pill-glow-soft),
    0 0 0 1px var(--pill-color),
    0 0 30px -2px var(--pill-glow);
}

@media (max-width: 480px) {
  .about-contact__cta { flex-direction: column; align-items: stretch; }
  .btn-pill { justify-content: center; }
}
