/* Hexaintellect GmbH – gemeinsames Design für alle Seiten
   Farben: Schwarz, Weiß, Grau */

:root {
  --schwarz: #1a1a1a;
  --grau-dunkel: #555;
  --grau: #8a8a8a;
  --grau-hell: #e6e6e6;
  --grau-sehr-hell: #f5f5f5;
  --weiss: #ffffff;
  --breite: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--weiss);
  color: var(--schwarz);
  /* Systemschriften – keine externen Schriftarten (wichtig für den Datenschutz) */
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

.inhalt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Kopfbereich ---------- */

.kopf {
  border-bottom: 1px solid var(--grau-hell);
}

.kopf .inhalt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.kopf img {
  height: 64px;
  width: auto;
  display: block;
}

.kopf nav a {
  margin-left: 24px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grau-dunkel);
}

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

/* ---------- Bildbereich (Foto in Graustufen) ---------- */

.buehne {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: var(--schwarz);
  overflow: hidden;
}

.buehne img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  opacity: 0.45;
}

.buehne .inhalt {
  position: relative;
  color: var(--weiss);
  width: 100%;
}

.buehne .zeile-klein {
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grau-hell);
  margin: 0 0 12px;
}

.buehne h1 {
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 300;
  line-height: 1.15;
  margin: 0;
}

/* ---------- Abschnitte ---------- */

.abschnitt {
  padding: 72px 0;
}

.abschnitt.grau {
  background: var(--grau-sehr-hell);
}

.abschnitt h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grau);
  margin: 0 0 20px;
}

.abschnitt h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--schwarz);
  margin-top: 14px;
}

.abschnitt p {
  max-width: 680px;
  margin: 0 0 16px;
}

.einleitung {
  font-size: 22px;
  font-weight: 300;
}

.kontakt-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.kontakt-raster h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.kontakt-raster p {
  margin: 0;
  color: var(--grau-dunkel);
}

/* ---------- Warengruppen (Karten) ---------- */

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.karte {
  background: var(--weiss);
  padding: 28px 30px;
  border-top: 2px solid var(--schwarz);
}

.karte h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 12px;
}

.karte p {
  margin: 0;
  color: var(--grau-dunkel);
}

/* ---------- Zielbranchen ---------- */

.branchen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 0 48px;
  margin: 28px 0 0;
}

.branchen div {
  padding: 18px 0;
  border-bottom: 1px solid var(--grau-hell);
}

.branchen dt {
  font-weight: 600;
  margin-bottom: 4px;
}

.branchen dd {
  margin: 0;
  color: var(--grau-dunkel);
}

/* ---------- Knopf ---------- */

.knopf {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 28px;
  border: 1px solid var(--schwarz);
  background: var(--schwarz);
  color: var(--weiss);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.knopf:hover {
  background: var(--weiss);
  color: var(--schwarz);
}

.knopf:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* ---------- Kontaktformular (Fenster) ---------- */

.formular-fenster {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 40px;
  border: none;
  color: var(--schwarz);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.formular-fenster::backdrop {
  background: rgba(26, 26, 26, 0.7);
}

.formular-fenster h2 {
  font-size: 26px;
  font-weight: 300;
  margin: 0 0 28px;
}

.schliessen {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: none;
  font-size: 32px;
  line-height: 1;
  color: var(--grau-dunkel);
  cursor: pointer;
}

.schliessen:hover {
  color: var(--schwarz);
}

.formular-raster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

#formular label {
  display: block;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--grau-dunkel);
}

#formular input[type="text"],
#formular input[type="email"],
#formular input[type="tel"],
#formular textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #c8c8c8;
  border-radius: 0;
  background: var(--weiss);
  font: inherit;
  font-size: 16px;
  color: var(--schwarz);
}

#formular input:focus,
#formular textarea:focus {
  outline: 2px solid var(--schwarz);
  outline-offset: -1px;
  border-color: var(--schwarz);
}

#formular textarea {
  resize: vertical;
}

.datenschutz-hinweis {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--grau-dunkel);
}

/* Spam-Falle: aus dem sichtbaren Bereich geschoben */
.falle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formular-meldung {
  min-height: 1.5em;
  margin: 0 0 8px;
  font-size: 15px;
}

.formular-meldung.erfolg {
  padding: 10px 14px;
  background: var(--grau-sehr-hell);
  border-left: 3px solid var(--schwarz);
}

.formular-meldung.fehler {
  padding: 10px 14px;
  background: #fbeaea;
  border-left: 3px solid #a12a2a;
  color: #7a1d1d;
}

.formular-fuss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.formular-fuss .knopf {
  margin-top: 0;
}

.hinweis {
  font-size: 13px;
  color: var(--grau);
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */

.rechtstext {
  padding: 56px 0 72px;
}

.rechtstext h1 {
  font-size: 34px;
  font-weight: 300;
  margin: 0 0 32px;
}

.rechtstext h2 {
  font-size: 19px;
  margin: 36px 0 8px;
}

.rechtstext h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}

.rechtstext p,
.rechtstext ul {
  max-width: 720px;
  margin: 0 0 12px;
}

.rechtstext ul {
  padding-left: 22px;
}

.rechtstext li {
  margin-bottom: 4px;
}

/* Platzhalter, die noch ausgefüllt werden müssen */
.todo {
  background: #fff3b0;
  padding: 0 4px;
  border-radius: 2px;
}

/* ---------- Fußbereich ---------- */

.fuss {
  background: var(--schwarz);
  color: var(--grau);
  font-size: 14px;
}

.fuss .inhalt {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.fuss a {
  color: var(--grau-hell);
  text-decoration: none;
  margin-left: 20px;
}

.fuss a:first-child {
  margin-left: 0;
}

.fuss a:hover {
  color: var(--weiss);
}

/* ---------- Handy ---------- */

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .kopf img {
    height: 48px;
  }

  .kopf .inhalt {
    flex-wrap: wrap;
    gap: 12px;
  }

  .kopf nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .kopf nav a {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .karten,
  .branchen {
    grid-template-columns: 1fr;
  }

  .karte {
    padding: 22px 20px;
  }

  .buehne {
    min-height: 320px;
  }

  .abschnitt {
    padding: 52px 0;
  }

  .einleitung {
    font-size: 19px;
  }

  .fuss .inhalt {
    flex-direction: column;
  }

  .formular-fenster {
    padding: 32px 20px 24px;
  }

  .formular-raster {
    grid-template-columns: 1fr;
  }

  .formular-fuss {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}
