/* elektrotechnik-vastobau.de — eigenes Konzept: volle Bild-Sektionen mit
   seitlicher Sprungmarken-Navigation, editorialer statt Karten-Stil. */

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--marke); color: var(--weiss); padding: 0.75rem 1.25rem; z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

section[id], #inhalt { scroll-margin-top: 5.5rem; }

/* -- Header ---------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  background: var(--anthrazit);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  width: 100%;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 1.9rem; width: auto; filter: brightness(0) invert(1); }

/* -- Seitliche Sprungmarken-Navigation --------------------------------------- */

.dotnav {
  position: fixed;
  right: 2.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.dotnav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  justify-content: flex-end;
}

.dotnav a span {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.dotnav a:hover span,
.dotnav a:hover { color: var(--marke-hell); }
.dotnav a:hover span { background: var(--marke-hell); }

.dotnav a.is-active { color: var(--weiss); }
.dotnav a.is-active span { background: var(--marke-hell); border-color: var(--marke-hell); }

@media (max-width: 900px) {
  .dotnav { display: none; }
}

/* -- Hero (Vollbild) ---------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }

.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.15) 100%);
}

.hero__inner {
  position: relative;
  color: var(--weiss);
  padding-bottom: var(--space-5);
}

.eyebrow--onlight { color: var(--marke-hell); }

.hero__headline {
  font-size: clamp(3rem, 8vw, 6.5rem);
  margin-block: 0.5rem 1.25rem;
  color: var(--weiss);
}

.hero__lead {
  max-width: 42ch;
  font-size: 1.1875rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: var(--space-3);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn--ghost-light {
  background: transparent;
  color: var(--weiss);
  border: 1.5px solid rgba(255,255,255,0.5);
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.9rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.9375rem; font-weight: 500;
  text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease;
}
.btn--ghost-light:hover { border-color: var(--weiss); transform: translateY(-2px); }

/* -- Intro ------------------------------------------------------------------- */

.intro { padding-block: var(--space-5); }
.intro__grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: var(--space-4); align-items: start; }
.intro__logo { max-width: 220px; }
.intro__lead { font-size: 1.15rem; margin-top: 0; }
.intro p { color: var(--text-soft); }
.intro strong { color: var(--text); }

@media (max-width: 800px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__logo { max-width: 160px; }
}

/* -- Topic-Sektionen (Vollbild pro Thema) ------------------------------------- */

.topic {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.topic__bg { position: absolute; inset: 0; }
.topic__bg img { width: 100%; height: 100%; object-fit: cover; }

.topic__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.5) 42%, rgba(0,0,0,0.15) 75%);
}

.topic--right .topic__overlay {
  background: linear-gradient(260deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.5) 42%, rgba(0,0,0,0.15) 75%);
}

.topic__inner {
  position: relative;
  color: var(--weiss);
  max-width: 620px;
}

.topic--right .topic__inner { margin-left: auto; text-align: right; }
.topic--right .chalk-divider { flex-direction: row-reverse; }

.chalk-divider--onlight { color: rgba(255,255,255,0.5); }
.chalk-divider--onlight .label { color: var(--marke-hell); }

.topic__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 1.25rem;
  color: var(--weiss);
}

.topic__body {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.9);
  max-width: 52ch;
}

.topic--right .topic__body { margin-left: auto; }

.topic__body--small { font-size: 0.9375rem; color: rgba(255,255,255,0.72); margin-top: 1rem; }

@media (max-width: 700px) {
  .topic__inner { max-width: 100%; }
  .topic--right .topic__inner { text-align: left; margin-left: 0; }
  .topic--right .chalk-divider { flex-direction: row; }
  .topic--right .topic__body { margin-left: 0; }
}

/* -- Marken-Marquee ------------------------------------------------------------ */

.marquee {
  overflow: hidden;
  background: var(--bg-soft);
  padding-block: 1.5rem;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee__track img {
  height: 1.75rem;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; overflow-x: auto; }
}

/* -- E-Check ------------------------------------------------------------------- */

.echeck-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}

.echeck-grid .btn { margin-top: 1rem; }

.echeck-img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
}

@media (max-width: 800px) {
  .echeck-grid { grid-template-columns: 1fr; }
}

/* -- Sections (geteilte Muster) -------------------------------------------------- */

.section { padding-block: var(--space-5); }
.section--dark { background: var(--anthrazit); color: var(--weiss); }
.section--dark .chalk-divider .label { color: var(--marke-hell); }
.section--dark .chalk-divider { color: #7d7f82; }
.section__title { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: var(--space-3); max-width: 18ch; }

.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: var(--space-3); }
.brand-card {
  border: 1.5px solid rgba(255,255,255,0.16);
  border-top: 3px solid var(--marke-hell);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-decoration: none;
  color: var(--weiss);
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: transform 0.2s ease, border-color 0.25s ease;
}
.brand-card:hover { transform: translateY(-4px); border-color: var(--marke-hell); }
.brand-card h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.4rem; }
.brand-card p { margin: 0; font-size: 0.9375rem; color: #b7b8ba; }
@media (max-width: 720px) { .brand-grid { grid-template-columns: 1fr; } }

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 72ch; }
.faq-item { border: 1px solid rgba(38,38,38,0.12); border-radius: var(--radius); padding: 1.1rem 1.4rem; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-mono); color: var(--marke); font-size: 1.25rem; flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0.85rem 0 0; color: var(--text-soft); font-size: 0.9375rem; }

.kontakt-address {
  font-style: normal;
  display: flex; flex-direction: column; gap: 0.35rem;
  margin-block: var(--space-3);
  font-family: var(--font-mono); font-size: 0.95rem;
}
.kontakt-address a { text-decoration: none; color: var(--marke-hell); }

/* -- Footer ------------------------------------------------------------------------ */

.site-footer { background: var(--anthrazit); color: #9a9c9f; padding-block: var(--space-4); }
.site-footer .brand-logo { filter: brightness(0) invert(1); opacity: 0.92; height: 1.9rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-footer__legal { display: flex; gap: 1.5rem; }
.site-footer__legal a { text-decoration: none; color: #9a9c9f; font-family: var(--font-mono); font-size: 0.875rem; }
.site-footer__legal a:hover { color: var(--marke-hell); }
.site-footer__copy { font-family: var(--font-mono); font-size: 0.8125rem; margin: 0; width: 100%; opacity: 0.6; }

/* -- Legal ---------------------------------------------------------------------------- */

.legal { background: var(--bg-soft); padding-block: var(--space-5); scroll-margin-top: 5rem; }
.legal--alt { background: var(--bg); }
.legal__inner { max-width: 72ch; }
.legal__title { font-size: 2rem; margin-bottom: var(--space-3); }
.legal h3 { font-family: var(--font-body); text-transform: none; font-size: 1.125rem; font-weight: 600; margin-top: var(--space-3); }
.legal h4 { font-family: var(--font-body); text-transform: none; font-size: 1rem; font-weight: 600; margin-top: 1.25rem; }
.legal p { color: var(--text-soft); }

/* -- Reveal ------------------------------------------------------------------------------ */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* -- Leistungen im Überblick (Tile-Grid) --------------------------------------------- */

.overview { padding-top: 0; }
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.75rem; }
.overview-tile { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; text-decoration: none; display: block; }
.overview-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.overview-tile:hover img { transform: scale(1.06); }
.overview-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 60%); }
.overview-tile span { position: absolute; left: 1rem; right: 1rem; bottom: 0.85rem; z-index: 1; color: var(--weiss); font-family: var(--font-display); text-transform: uppercase; font-size: 1.05rem; }
@media (max-width: 800px) { .overview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .overview-grid { grid-template-columns: 1fr; } }

/* -- Ablauf/Prozess (geteiltes Muster) ------------------------------------------------- */

.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.process__step { position: relative; padding-top: 2rem; border-top: 2px solid rgba(255,255,255,0.15); }
.process__num { font-family: var(--font-mono); font-size: 0.875rem; color: var(--marke-hell); display: block; margin-bottom: 0.75rem; }
.process__step h3 { font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--weiss); }
.process__step p { font-size: 0.9375rem; color: #b7b8ba; margin: 0; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* -- Topic-Unterlisten ------------------------------------------------------------------- */

.topic__list {
  list-style: none; margin: 1.25rem 0 0; padding-top: 1rem;
  border-top: 1px dashed rgba(255,255,255,0.25);
  display: flex; flex-direction: column; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.85rem; color: rgba(255,255,255,0.85);
}
.topic--right .topic__list { border-color: rgba(255,255,255,0.25); align-items: flex-end; }
.topic__list li::before { content: '— '; color: var(--marke-hell); }
.topic--right .topic__list li::before { content: ''; }
.topic--right .topic__list li::after { content: ' —'; color: var(--marke-hell); }

/* -- Split-Galerie (Netzwerk/Server, Sicherheit) --------------------------------------------- */

.split-gallery { display: grid; grid-template-columns: 1fr 1fr; }
.split-gallery--single { grid-template-columns: 1fr; }
.split-gallery__item { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.split-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.split-gallery__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 55%); }
.split-gallery__item span {
  position: absolute; left: 1.25rem; bottom: 1rem; z-index: 1;
  color: var(--weiss); font-family: var(--font-mono); font-size: 0.85rem;
}
@media (max-width: 700px) { .split-gallery { grid-template-columns: 1fr; } }

/* -- Warum-Werte (geteiltes Muster) --------------------------------------------------------------- */

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.value h3 { font-size: 1.1rem; text-transform: none; font-family: var(--font-body); font-weight: 600; margin-bottom: 0.5rem; }
.value p { font-size: 0.9375rem; color: var(--text-soft); margin: 0; }
@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }
