/* e.co Aufzüge – Stylesheet */

@font-face { font-family: "Source Sans Pro"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-sans-pro-normal-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-sans-pro-normal-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/source-sans-pro-normal-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/source-sans-pro-normal-latin-900.woff2") format("woff2"); }

:root {
  --blue: #0070b4;
  --blue-dark: #005a91;
  --blue-soft: #e8f2f9;
  --navy: #0e1730;
  --navy-2: #16223f;
  --ink: #1b2333;
  --muted: #5b6577;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --red: #e2001a;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(14, 23, 48, .08);
  --shadow-lg: 0 24px 60px rgba(14, 23, 48, .16);
  --container: 1200px;
  --header-h: 76px;
  --font: "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: #c9d2e3; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #8cc4ea; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.lead a { white-space: nowrap; }
.section-head { margin-bottom: 48px; }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }

/* Topbar */
.topbar { background: var(--navy); color: #c9d2e3; font-size: .9rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: 28px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #8cc4ea; }
.topbar svg { width: 15px; height: 15px; opacity: .8; }
.topbar strong { color: #8cc4ea; font-weight: 700; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(14,23,48,.06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative; padding: 10px 16px; border-radius: 999px;
  font-weight: 600; color: var(--ink);
}
.nav a:hover { color: var(--blue); background: var(--blue-soft); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px;
  margin-left: -2.5px; border-radius: 50%; background: var(--red);
}
.nav .btn { margin-left: 12px; padding: 12px 20px; }
.nav .btn:hover { background: var(--blue-dark); color: #fff; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--bg-soft); cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px;
  background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; margin: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero (Startseite) */
.hero {
  position: relative; min-height: min(88vh, 820px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--navy);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s ease-out;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,23,48,.85) 0%, rgba(14,23,48,.45) 55%, rgba(14,23,48,.15) 100%),
              linear-gradient(0deg, rgba(14,23,48,.6) 0%, rgba(14,23,48,0) 50%);
}
.hero .container { position: relative; z-index: 2; padding-bottom: clamp(56px, 10vh, 110px); padding-top: 120px; }
.hero h1 { color: #fff; max-width: 760px; min-height: 1.15em; }
.hero h1 .accent { color: #8cc4ea; }
.hero-title { display: block; transition: opacity .5s, transform .5s; }
.hero-title.is-out { opacity: 0; transform: translateY(12px); }
.hero .lead { color: rgba(255,255,255,.85); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-dots { display: flex; gap: 10px; margin-top: 48px; }
.hero-dots button {
  width: 36px; height: 4px; border: 0; padding: 0; border-radius: 4px; cursor: pointer;
  background: rgba(255,255,255,.35); transition: background .3s, width .3s;
}
.hero-dots button.is-active { background: #fff; width: 56px; }

/* Seiten-Hero (Unterseiten) */
.page-hero {
  position: relative; padding: clamp(110px, 16vw, 180px) 0 clamp(56px, 8vw, 90px);
  color: #fff; background: var(--navy) center/cover no-repeat;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,23,48,.9) 0%, rgba(14,23,48,.55) 100%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.2rem; max-width: 620px; margin: 0; }
/* Seitenkopf ohne Foto (Rechtliches): gestochen scharf, da reines CSS/SVG */
.page-hero--plain {
  padding: clamp(100px, 13vw, 140px) 0 clamp(44px, 6vw, 64px);
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgba(0,112,180,.45) 0%, rgba(0,112,180,0) 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  overflow: hidden;
}
.page-hero--plain::before {
  /* feine senkrechte Linien – angelehnt an Führungsschienen im Aufzugsschacht */
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 56px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
.page-hero--plain::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 70%, var(--red) 70%, var(--red) 100%);
}
.page-hero--plain .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.page-hero-icon {
  flex: none; width: 132px; height: 132px; border-radius: 28px;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 20px 50px rgba(0,0,0,.25); backdrop-filter: blur(6px);
}
.page-hero-icon svg { width: 60px; height: 60px; }
@media (max-width: 720px) { .page-hero-icon { display: none; } }

.breadcrumb { display: flex; gap: 8px; font-size: .9rem; margin-bottom: 18px; color: rgba(255,255,255,.7); }
.breadcrumb a { color: #fff; }

/* Kacheln Startseite */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 3 / 4; padding: 28px; border-radius: var(--radius); overflow: hidden;
  color: #fff; background: var(--navy); box-shadow: var(--shadow);
  isolation: isolate;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(14,23,48,.92) 0%, rgba(14,23,48,.35) 55%, rgba(14,23,48,.1) 100%);
  transition: background .3s;
}
.tile:hover { color: #fff; }
.tile:hover img { transform: scale(1.06); }
.tile:hover::before { background: linear-gradient(0deg, rgba(0,112,180,.92) 0%, rgba(14,23,48,.45) 60%, rgba(14,23,48,.15) 100%); }
.tile-num { position: absolute; top: 24px; left: 28px; font-size: .85rem; font-weight: 700; letter-spacing: .1em; opacity: .7; }
.tile h3 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; }
.tile p { font-size: .98rem; color: rgba(255,255,255,.8); margin-bottom: 16px; }
.tile-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.tile-link svg { width: 18px; height: 18px; transition: transform .2s; }
.tile:hover .tile-link svg { transform: translateX(4px); }

/* Kennzahlen / Vorteile */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: #fff; padding: 32px 28px; }
.fact strong { display: block; font-size: 2.4rem; font-weight: 900; line-height: 1; color: var(--blue); margin-bottom: 10px; letter-spacing: -.02em; }
.fact span { color: var(--muted); }

/* Zweispaltig */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; object-fit: cover; }
.split-media--frame::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--radius);
  background: var(--blue-soft); z-index: -1;
}
.split--reverse .split-media--frame::before { inset: 24px 24px -24px -24px; }

.checklist li { position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230070b4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Karten */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 14px; }

/* Leistungen */
.service-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.service-nav a {
  padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; color: var(--ink);
}
.service-nav a:hover { border-color: var(--blue); color: var(--blue); }
.service { scroll-margin-top: calc(var(--header-h) + 24px); }
.service + .service { margin-top: clamp(72px, 10vw, 128px); }
.service-num { font-size: 4.5rem; font-weight: 900; line-height: 1; color: var(--blue-soft); margin-bottom: -12px; letter-spacing: -.04em; }
.service h2 { margin-bottom: 20px; }

/* Referenzen */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filters button {
  font: inherit; font-weight: 600; padding: 10px 22px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--ink); transition: all .2s;
}
.filters button:hover { border-color: var(--blue); color: var(--blue); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item {
  position: relative; display: block; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: var(--navy);
  aspect-ratio: 3 / 4; box-shadow: var(--shadow);
}
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; }
.gallery-item:hover img { transform: scale(1.05); opacity: .85; }
.gallery-item span {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--navy); font-size: .85rem; font-weight: 700;
}
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 92vh;
}
.lightbox::backdrop { background: rgba(8,13,28,.9); }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox-close {
  position: fixed; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: #fff; color: var(--navy); font-size: 28px; line-height: 1; cursor: pointer;
}

/* Team */
.team-group { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.team-group h2 { font-size: 1.1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 24px 0 0; }
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.person {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; font-weight: 700; font-size: 1.1rem;
}
.person h3 { font-size: 1.2rem; margin-bottom: 6px; }
.person a { display: flex; align-items: center; gap: 8px; font-size: .98rem; color: var(--muted); word-break: break-word; }
.person a:hover { color: var(--blue); }
.person svg { width: 16px; height: 16px; flex: none; color: var(--blue); }

/* Textseiten */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.legal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.legal-grid .card { box-shadow: none; }
.legal-grid .card:hover { transform: none; box-shadow: none; }
.legal-grid h2 { font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.legal-grid p { margin: 0; }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) * 1.5);
  padding: clamp(40px, 6vw, 72px); background: var(--blue); color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; color: rgba(255,255,255,.85); font-size: 1.15rem; }
.cta .btn { position: relative; z-index: 1; background: #fff; color: var(--blue); font-size: 1.15rem; padding: 18px 30px; }
.cta .btn:hover { background: var(--navy); color: #fff; }

/* Footer */
.site-footer { background: var(--navy); color: #aab5ca; padding: 80px 0 0; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.footer-logo img { height: 40px; width: auto; }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #dfe5f0; }
.site-footer a:hover { color: #8cc4ea; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; font-size: .92rem;
}
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom nav { display: flex; gap: 24px; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { aspect-ratio: 4 / 3; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .team-group { grid-template-columns: 1fr; gap: 16px; }
  .team-group h2 { margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 24px 28px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(14,23,48,.12);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: 1.1rem; }
  .nav a[aria-current="page"]::after { left: auto; right: 16px; top: 50%; bottom: auto; margin: -2.5px 0 0; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
  .split, .cards, .legal-grid { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media { max-width: 460px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .topbar .container { justify-content: space-between; gap: 12px; font-size: .82rem; }
  .topbar .topbar-mail { display: none; }
  .logo img { height: 40px; }
  .hero h1 { min-height: 2.3em; }
  .tiles, .team, .gallery { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 10; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 24px 20px; }
  .fact strong { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .split-media--frame::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
