/* ------------------------------------------
  Elektrokontroll Fux GmbH (efgmbh.ch)
  Stylesheet der ueberarbeiteten Website
  erstellt: 29.07.2026 - nytic GmbH
  Markenfarben aus dem bisherigen Auftritt uebernommen:
  Rot #912216 / Anthrazit #575756 / Grau #b3b3b3
--------------------------------------------- */

:root {
  --rot: #912216;
  --rot-hell: #b02a1b;
  --anthrazit: #575756;
  --grau: #b3b3b3;
  --grau-hell: #f4f3f2;
  --linie: #e3e1df;
  --text: #2f2e2d;
  --text-leise: #6d6c6a;
  --weiss: #ffffff;
  --radius: 12px;
  --schatten: 0 4px 20px rgba(0, 0, 0, 0.07);
  --breite: 1140px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  /* Riegel gegen waagrechtes Verrutschen der Seite.
     "clip" statt "hidden", damit die klebende Kopfzeile weiter funktioniert. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); }

.inhalt {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Kopfbereich / Navigation ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}

.kopf-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.kopf-logo img { width: 210px; }

.nav ul {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--anthrazit);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover { color: var(--rot); border-bottom-color: var(--rot); }

.nav-schalter {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--anthrazit);
}

.nav-schalter svg { width: 26px; height: 26px; }

/* ---------- Titelbereich ---------- */
.hero {
  padding: 4.5rem 0 3.8rem;
  background: linear-gradient(180deg, var(--grau-hell) 0%, var(--weiss) 100%);
  border-bottom: 1px solid var(--linie);
}

.hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: var(--anthrazit);
  font-weight: 700;
}

.hero h1 span { color: var(--rot); }

.hero p {
  margin: 0 0 1.8rem;
  max-width: 640px;
  font-size: 1.08rem;
  color: var(--text-leise);
}

.knopf {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  background: var(--rot);
  color: var(--weiss);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.2s, transform 0.15s;
}

.knopf:hover { background: var(--rot-hell); transform: translateY(-1px); }

.knopf-leise {
  background: transparent;
  color: var(--anthrazit);
  border: 1px solid var(--grau);
  margin-left: 0.6rem;
}

.knopf-leise:hover { background: var(--grau-hell); color: var(--rot); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 4.2rem 0; }
.abschnitt-grau { background: var(--grau-hell); }

.abschnitt h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--anthrazit);
  font-weight: 700;
}

.abschnitt-kopf {
  margin-bottom: 2.6rem;
  max-width: 720px;
}

.abschnitt-kopf p { margin: 0; color: var(--text-leise); }

.strich {
  width: 54px;
  height: 3px;
  background: var(--rot);
  border: 0;
  margin: 0 0 1.2rem;
}

/* ---------- Ueber mich ---------- */
.portrait-grid {
  display: grid;
  grid-template-columns: 300px 1fr;   /* Foto links, Werdegang rechts */
  gap: 3rem;
  align-items: start;
}

.portrait-karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--schatten);
  position: sticky;
  top: 100px;
}

.portrait-karte img { border-radius: 8px; margin-bottom: 1rem; }
.portrait-karte .name { font-weight: 700; font-size: 1.1rem; color: var(--anthrazit); }
.portrait-karte .rolle { color: var(--text-leise); font-size: 0.92rem; margin: 0.15rem 0; }

.lauf-titel {
  font-weight: 700;
  color: var(--anthrazit);
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}

.lauf-titel + .lauf-liste { margin-bottom: 2.4rem; }

.lauf-liste { list-style: none; margin: 0; padding: 0; }

.lauf-liste li {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--linie);
  font-size: 0.97rem;
}

.lauf-liste li:last-child { border-bottom: 0; }

.lauf-jahr {
  color: var(--rot);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ---------- Warum Kontrollen ---------- */
.karten {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-left: 3px solid var(--rot);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--schatten);
}

.karte h3 {
  margin: 0 0 0.7rem;
  font-size: 1.12rem;
  color: var(--anthrazit);
}

.karte p { margin: 0 0 0.9rem; color: var(--text-leise); font-size: 0.97rem; }
.karte p:last-child { margin-bottom: 0; }

/* ---------- Impressionen: Slider ---------- */
.slider { position: relative; }

.slider-spur {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.4rem 0 1rem;
}

.slider-spur::-webkit-scrollbar { display: none; }

/* Slides sind grundsaetzlich sichtbar - die Einblendung ist reine Zugabe
   und laeuft ueber CSS, damit die Galerie auch ohne JavaScript dargestellt wird. */
.slide {
  flex: 0 0 calc((100% - 2rem) / 3);
  margin: 0;
  scroll-snap-align: start;
  animation: slideRein 0.55s ease both;
}

.slide:nth-child(2) { animation-delay: 0.08s; }
.slide:nth-child(3) { animation-delay: 0.16s; }
.slide:nth-child(n+4) { animation-delay: 0.22s; }

@keyframes slideRein {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; }
  .slider-spur { scroll-behavior: auto; }
  .slide img, .slide button::after { transition: none; }
}

.slide button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grau-hell);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--schatten);
  position: relative;
}

.slide button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.34) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.slide button:hover::after { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.slide button:hover img { transform: scale(1.07); }

.slide button:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }

/* Pfeile */
.slider-pfeil {
  position: absolute;
  top: calc(50% - 1.4rem);
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--linie);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--anthrazit);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
  transition: background 0.2s, color 0.2s, opacity 0.25s, transform 0.2s;
}

.slider-pfeil:hover { background: var(--rot); color: var(--weiss); border-color: var(--rot); }
.slider-pfeil svg { width: 20px; height: 20px; }
.slider-pfeil.links { left: -18px; }
.slider-pfeil.rechts { right: -18px; }

.slider-pfeil[disabled] {
  opacity: 0;
  pointer-events: none;
}

/* Punkte */
.slider-punkte {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.slider-punkte button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--grau);
  cursor: pointer;
  transition: background 0.25s, width 0.25s;
}

.slider-punkte button.aktiv { background: var(--rot); width: 26px; border-radius: 5px; }

/* Bild-Grossansicht */
.bildbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.86);
}

.bildbox.offen { display: flex; }
.bildbox img { max-width: 100%; max-height: 88vh; border-radius: 8px; }

.bildbox-zu {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Preise ---------- */
.preis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem 3.4rem;
  align-items: start;
}

.preis-block { margin-bottom: 2rem; }
.preis-block:last-child { margin-bottom: 0; }

.preis-block h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--linie);
  font-size: 1.05rem;
  color: var(--rot);
  font-weight: 700;
}

.preis-block h3 svg { width: 20px; height: 20px; flex: 0 0 auto; stroke: var(--rot); }

.preis-zeile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--linie);
}

.preis-zeile:last-child { border-bottom: 0; }

.preis-name { color: var(--text); font-size: 0.97rem; }

.preis-hinweis {
  display: block;
  color: var(--text-leise);
  font-size: 0.83rem;
  line-height: 1.5;
  margin-top: 0.1rem;
}

.preis-wert {
  color: var(--anthrazit);
  font-weight: 700;
  font-size: 0.97rem;
  white-space: nowrap;
  text-align: right;
}

.preis-inklusive .preis-zeile { border-bottom: 0; padding: 0.32rem 0; }

.preis-fuss {
  margin-top: 1.6rem;
  color: var(--text-leise);
  font-size: 0.9rem;
  font-style: italic;
}

.preis-frage {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--schatten);
}

.preis-frage p { margin: 0 0 0.8rem; color: var(--text-leise); font-size: 0.95rem; }

/* ---------- Agenda ---------- */
.agenda-rahmen {
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--weiss);
  box-shadow: var(--schatten);
}

.agenda-rahmen iframe { display: block; width: 100%; border: 0; }

/* ---------- Kontakt ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.4rem;
  align-items: start;
}

/* Ohne min-width:0 können Rasterfelder nicht schmaler werden als ihr breitester
   Inhalt. Das reCAPTCHA belegt fix 304px und würde die Karte sonst
   auf schmalen Geräten über den rechten Rand drücken. */
.kontakt-grid > * { min-width: 0; }

.captcha-huelle {
  width: 100%;
  overflow: hidden;   /* fängt die feste Breite des reCAPTCHA ab */
}

.formular-karte,
.adress-karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--schatten);
}

.formular-karte h3,
.adress-karte h3 {
  margin: 0 0 1.2rem;
  font-size: 1.1rem;
  color: var(--anthrazit);
}

/* Spamschutz-Feld: für Besucher unsichtbar, für Bots sichtbar */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feld { margin-bottom: 1.1rem; }

.feld label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--anthrazit);
}

.feld input[type="text"],
.feld input[type="email"],
.feld input[type="tel"],
.feld textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--linie);
  border-radius: 8px;
  font: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: var(--weiss);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feld input:focus,
.feld textarea:focus {
  outline: 0;
  border-color: var(--rot);
  box-shadow: 0 0 0 3px rgba(145, 34, 22, 0.12);
}

.feld textarea { min-height: 118px; resize: vertical; }

.feld input[type="file"] { font-size: 0.9rem; color: var(--text-leise); }

.feld-hinweis { font-size: 0.88rem; color: var(--text-leise); }

.info-knopf {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  vertical-align: middle;
}

.info-knopf img { display: inline-block; width: 16px; }

.zustimmung {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-leise);
}

.zustimmung input { margin-top: 0.35rem; flex: 0 0 auto; }

.absenden {
  padding: 0.85rem 2rem;
  background: var(--rot);
  color: var(--weiss);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.absenden:hover { background: var(--rot-hell); }

.datenschutz-hinweis {
  margin: 1.1rem 0 0;
  font-size: 0.86rem;
  color: var(--text-leise);
}

.adress-karte .adress-icon { width: 78px; margin-bottom: 1rem; }
.adress-karte .firma { font-weight: 700; color: var(--anthrazit); margin: 0 0 0.5rem; }
.adress-karte address { font-style: normal; color: var(--text-leise); margin-bottom: 1.2rem; }

.kontakt-liste { list-style: none; margin: 0; padding: 0; }

.kontakt-liste li {
  display: flex;
  gap: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--linie);
  font-size: 0.95rem;
}

.kontakt-liste li:last-child { border-bottom: 0; }
.kontakt-liste span { width: 58px; color: var(--text-leise); flex: 0 0 auto; }
.kontakt-liste a { text-decoration: none; }
.kontakt-liste a:hover { text-decoration: underline; }

/* ---------- Fuss ---------- */
.fuss {
  padding: 1.8rem 0;
  background: var(--anthrazit);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.fuss-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  align-items: center;
  justify-content: space-between;
}

.fuss a { color: rgba(255, 255, 255, 0.88); text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss-links { display: flex; gap: 1.2rem; }

/* ---------- Meldungsfenster (lightbox.js) ---------- */
.black_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
}

.white_content {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92%, 470px);
  padding: 1.8rem;
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  z-index: 101;
}

.white_content .schliessen {
  position: absolute;
  top: 0.7rem;
  right: 1rem;
  color: var(--text-leise);
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1;
}

#lightbox_text { margin-bottom: 1.3rem; color: var(--text); font-size: 0.97rem; }

.btn_form {
  padding: 0.65rem 1.6rem;
  background: var(--rot);
  color: var(--weiss);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .portrait-grid,
  .karten,
  .preis-grid,
  .kontakt-grid { grid-template-columns: 1fr; }

  .portrait-karte { position: static; max-width: 300px; margin: 0 auto; }
  .preis-grid { gap: 0; }

  .slide { flex-basis: calc((100% - 1rem) / 2); }
  .slider-pfeil.links { left: -6px; }
  .slider-pfeil.rechts { right: -6px; }
}

@media (max-width: 760px) {
  .nav-schalter { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--weiss);
    border-bottom: 1px solid var(--linie);
    box-shadow: var(--schatten);
  }

  .nav.offen { display: block; }

  .nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1.5rem 1rem; }

  .nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--linie);
  }

  .nav a:hover { border-bottom-color: var(--linie); }

  .kopf-inner { position: relative; }
  .kopf-logo img { width: 168px; }
  .abschnitt { padding: 3rem 0; }
  .hero { padding: 3rem 0 2.6rem; }
  .lauf-liste li { grid-template-columns: 96px 1fr; gap: 0.7rem; font-size: 0.93rem; }
  .knopf-leise { margin-left: 0; margin-top: 0.6rem; }

  .slide { flex-basis: 100%; }
  .slider-pfeil { width: 40px; height: 40px; }
  .slider-pfeil.links { left: 4px; }
  .slider-pfeil.rechts { right: 4px; }
}

/* Das reCAPTCHA hat eine feste Breite von 304px und passt auf schmalen
   Geräten nicht in die Karte. Es wird deshalb verkleinert dargestellt. */
@media (max-width: 480px) {
  .inhalt { padding: 0 1.1rem; }
  .formular-karte,
  .adress-karte { padding: 1.3rem; }

  .captcha-huelle {
    height: 72px;
    overflow: hidden;
  }

  .g-recaptcha {
    transform: scale(0.9);
    transform-origin: 0 0;
  }
}

@media (max-width: 380px) {
  .captcha-huelle { height: 62px; }
  .g-recaptcha { transform: scale(0.76); }
}
