/* ============================================================
   VETATEC GmbH Elektrotechnik — zentrales Stylesheet
   Farben aus dem Firmenlogo, Schrift Barlow (selbst gehostet)
   ============================================================ */

:root {
  --blau: #2456A8;
  --blau-dunkel: #1B4185;
  --blau-hell: #E9EFF9;
  --anthrazit: #23262B;
  --anthrazit-hell: #2E3238;
  --text: #2E3238;
  --grau: #5C636E;
  --linie: #E2E6EC;
  --hg: #FFFFFF;
  --hg-alt: #F4F6F9;
  --radius: 10px;
  --schatten: 0 2px 10px rgba(35, 38, 43, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Barlow', 'Segoe UI', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--hg);
}

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

a { color: var(--blau); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-weight: 800; line-height: 1.15; color: var(--anthrazit); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: .5rem; }
h3 { font-size: 1.15rem; }

.vorzeile {
  color: var(--blau);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
  margin-bottom: .35rem;
}

section { padding: 72px 0; }

/* ---------- Kopfzeile ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--hg);
  border-bottom: 1px solid var(--linie);
}

.kopf-innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 26px; }

.nav a {
  color: var(--anthrazit);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.nav a:hover { color: var(--blau); }

.nav a.knopf { color: #fff; }

.knopf {
  display: inline-block;
  background: var(--blau);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 2px solid var(--blau);
  transition: background .15s, border-color .15s;
}

.knopf:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); }

.knopf.hell {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}

.knopf.hell:hover { background: rgba(255, 255, 255, .12); }

.menue-schalter {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menue-schalter span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--anthrazit);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--anthrazit);
  color: #fff;
  padding: 110px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/schaltschrank-verdrahtung.jpg') center/cover no-repeat;
  opacity: .22;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(35, 38, 43, .92) 35%, rgba(36, 86, 168, .55));
}

.hero .wrap { position: relative; z-index: 1; max-width: 820px; }

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: 1rem;
}

.hero h1 em { font-style: normal; color: #7FA9EE; }

.hero p { font-size: 1.15rem; max-width: 620px; margin-bottom: 1.8rem; color: #E4E8EE; }

.hero-knoepfe { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.2rem; }

.hero-merkmale {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 0;
  list-style: none;
  color: #C9D2DE;
  font-weight: 600;
  font-size: .95rem;
}

.hero-merkmale li::before { content: "✓ "; color: #7FA9EE; }

/* ---------- Leistungen ---------- */

.leistungen { background: var(--hg-alt); }

.kartenraster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 2.2rem;
}

.karte {
  background: var(--hg);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--schatten);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s, border-color .15s;
}

.karte:hover { transform: translateY(-3px); border-color: var(--blau); }

.karte svg { width: 40px; height: 40px; color: var(--blau); }

.karte h3 { color: var(--anthrazit); }

.karte p { font-size: .95rem; color: var(--grau); flex-grow: 1; }

.karte .mehr { color: var(--blau); font-weight: 600; font-size: .95rem; }

/* ---------- Referenzen ---------- */

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 2.2rem;
}

.galerie figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--hg-alt);
  border: 1px solid var(--linie);
}

.galerie img { width: 100%; height: 220px; object-fit: cover; }

.galerie figcaption { padding: 14px 18px 18px; font-size: .95rem; color: var(--grau); }

.galerie figcaption strong { color: var(--anthrazit); display: block; margin-bottom: 4px; }

.galerie figcaption p { margin: 0; font-size: .92rem; line-height: 1.55; }

/* Hervorgehobene Referenz über volle Breite */

.referenz-gross {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin: 2.2rem 0;
  padding: 26px;
  background: var(--hg-alt);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}

.referenz-gross img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
}

.referenz-gross h3 { font-size: 1.5rem; margin-bottom: .6rem; }

.referenz-gross p { margin-bottom: .8rem; }

.referenz-gross p:last-child { margin-bottom: 0; }

/* ---------- Über uns ---------- */

.ueber { background: var(--hg-alt); }

.zweispaltig {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.zweispaltig img {
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  width: 100%;
  height: auto;
}

.bildstapel { display: grid; gap: 18px; }

.bildstapel img:first-child { max-height: 340px; object-fit: cover; }

.haken { list-style: none; padding: 0; margin-top: 1.2rem; display: grid; gap: .6rem; }

.haken li { padding-left: 30px; position: relative; }

.haken li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blau);
  font-weight: 800;
}

/* ---------- Kontakt-Band ---------- */

.kontaktband { background: var(--blau); color: #fff; }

.kontaktband h2 { color: #fff; }

.kontaktband p { color: #DCE6F5; max-width: 560px; }

.kontakt-zeilen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 2rem 0;
}

.kontakt-zeilen a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.1rem; }

.kontakt-zeilen a:hover { text-decoration: underline; }

.kontakt-zeilen .beschriftung {
  display: block;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #B9CCEC;
  font-weight: 600;
  margin-bottom: 2px;
}

.kontaktband .knopf { background: #fff; color: var(--blau); border-color: #fff; }

.kontaktband .knopf:hover { background: var(--blau-hell); border-color: var(--blau-hell); }

/* ---------- Unterseiten ---------- */

.seitenkopf {
  background: var(--anthrazit);
  color: #fff;
  padding: 56px 0;
}

.seitenkopf h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }

.seitenkopf .pfad { font-size: .9rem; margin-bottom: .8rem; color: #AEB6C2; }

.seitenkopf .pfad a { color: #C9D2DE; text-decoration: none; }

.seitenkopf .pfad a:hover { color: #fff; }

.inhalt { padding: 64px 0; }

.inhalt .wrap { max-width: 860px; }

.inhalt h2 { margin-top: 2.2rem; font-size: 1.5rem; }

.inhalt p { margin: 1rem 0; }

.inhalt ul { margin: 1rem 0 1rem 1.3rem; }

.inhalt li { margin: .35rem 0; }

.inhalt figure { margin: 2rem 0; }

.inhalt figure img {
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.inhalt figcaption { font-size: .9rem; color: var(--grau); margin-top: .5rem; }

/* ---------- FAQ ---------- */
/* <details>/<summary> statt JavaScript: klappt auch ohne Skript auf,
   ist von Haus aus per Tastatur bedienbar und für Vorleseprogramme lesbar. */

.faq { margin-top: 3rem; }

.faq h2 { margin-top: 0; }

.faq details {
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--hg);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq details[open] { border-color: var(--blau); }

.faq summary {
  cursor: pointer;
  padding: 16px 46px 16px 20px;
  font-weight: 600;
  color: var(--anthrazit);
  position: relative;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--blau);
  border-bottom: 2px solid var(--blau);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .15s;
}

.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }

.faq summary:hover { color: var(--blau); }

.faq summary:focus-visible { outline: 2px solid var(--blau); outline-offset: -2px; }

.faq .antwort { padding: 0 20px 18px; color: var(--grau); }

.faq .antwort p { margin: 0; }

.cta-kasten {
  margin-top: 2.5rem;
  background: var(--blau-hell);
  border: 1px solid #CBDAF1;
  border-radius: var(--radius);
  padding: 28px;
}

.cta-kasten h2 { margin-top: 0; }

.cta-kasten p { margin-bottom: 1.2rem; }

/* ---------- Formular ---------- */

.formular { display: grid; gap: 18px; margin-top: 1.5rem; }

.formular label { font-weight: 600; display: block; margin-bottom: 5px; }

.formular input,
.formular textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  font: inherit;
  background: var(--hg);
}

.formular input:focus,
.formular textarea:focus { outline: 2px solid var(--blau); border-color: var(--blau); }

.formular .zustimmung { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }

.formular .zustimmung input { width: auto; margin-top: 4px; }

.formular button { justify-self: start; cursor: pointer; font-size: 1rem; }

.hinweis-ok, .hinweis-fehler {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 1.2rem 0;
  font-weight: 600;
}

.hinweis-ok { background: #E7F5E9; color: #1E6B2A; border: 1px solid #BFE3C6; }

.hinweis-fehler { background: #FBE9E7; color: #A03024; border: 1px solid #F0C4BE; }

.pflicht { color: var(--blau); }

/* Honigtopf-Feld: fuer Menschen unsichtbar, Bots fuellen es aus */
.hp-feld { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Fußzeile ---------- */

.fuss {
  background: var(--anthrazit);
  color: #C4CAD3;
  padding: 56px 0 32px;
  font-size: .95rem;
}

.fuss-raster {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 2.5rem;
}

.fuss img { height: 48px; width: auto; margin-bottom: 1rem; }

.fuss h3 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }

.fuss ul { list-style: none; padding: 0; display: grid; gap: .45rem; }

.fuss a { color: #C4CAD3; text-decoration: none; }

.fuss a:hover { color: #fff; }

.fuss-unten {
  border-top: 1px solid #3A3E45;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}

/* ---------- Mobil ---------- */

@media (max-width: 860px) {
  section { padding: 56px 0; }

  .menue-schalter { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--hg);
    border-bottom: 1px solid var(--linie);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
    box-shadow: var(--schatten);
  }

  .nav.offen { display: flex; }

  .nav a { padding: 10px 0; }

  .nav a.knopf { text-align: center; margin-top: 8px; }

  .hero { padding: 70px 0 64px; }

  .zweispaltig { grid-template-columns: 1fr; gap: 28px; }

  .referenz-gross { grid-template-columns: 1fr; gap: 22px; padding: 18px; }

  .fuss-raster { grid-template-columns: 1fr; gap: 28px; }
}


/* ---------- Credit-Leiste (webexperte24) ---------- */
/* Eigene Leiste unter der Fußzeile, einheitlich über alle Kundenprojekte.
   Logo als Inline-SVG mit currentColor - keine Bilddatei, keine Fremdverbindung. */

.credit-bar {
  background: #17191D;
  border-top: 1px solid #33373E;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.credit-label {
  font-size: 12px;
  letter-spacing: .3px;
  color: #6B727C;
}

.credit-link {
  display: inline-flex;
  align-items: center;
  color: #8C939E;
  opacity: .8;
  transition: opacity .2s, color .2s;
}

.credit-link:hover { opacity: 1; color: #fff; }
