/* ============================================================
   EGH Gebaeudeservice / 09 - KONTAKT UND FUSS

   Links die drei direkten Wege, rechts das Formular. Die
   Reihenfolge ist Absicht: Anruf und WhatsApp stehen vor dem
   Formular, weil sie in diesem Geschaeft die schnelleren Wege
   sind. Das Formular ist fuer die, die abends um elf eine
   Anfrage schreiben.
   ============================================================ */

.kontakt__raster {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) { .kontakt__raster { grid-template-columns: minmax(0, 1fr); } }

.wege { display: grid; gap: 0.75rem; margin-top: var(--stack-3); }
.weg {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: center;
  gap: var(--stack-2);
  padding: var(--stack-2) var(--stack-3);
  background: var(--flaeche);
  border: var(--hair) solid var(--regel);
  border-radius: var(--r-2);
  transition: border-color var(--d-schnell) var(--e-weich), box-shadow var(--d-schnell) var(--e-weich);
}
@media (hover: hover) and (pointer: fine) {
  a.weg:hover { border-color: var(--regel-satt); box-shadow: var(--schatten-hoch); }
}
.weg__kreis {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 20%, var(--flaeche));
}
.weg svg { width: 19px; height: 19px; color: var(--gold); }
.weg__text > span {
  display: block;
  font-family: var(--font-kopf);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--auf-grund-2);
  margin-bottom: 0.2rem;
}
.weg b { font-family: var(--font-kopf); font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 600; color: var(--auf-grund); word-break: break-word; text-transform: none; letter-spacing: 0; }

/* ------------------------------------------------------------
   FORMULAR
   Beschriftung ueber dem Feld, Fehler darunter. Kein
   Platzhalter als Beschriftung: der verschwindet beim Tippen
   und nimmt die Frage mit.
   ------------------------------------------------------------ */
.form {
  background: var(--flaeche);
  border: var(--hair) solid var(--regel);
  border-radius: var(--r-2);
  padding: clamp(1.25rem, 2.6vw, 2.25rem);
}
.form__reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--stack-2); }
@media (max-width: 560px) { .form__reihe { grid-template-columns: minmax(0, 1fr); } }

.feld { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: var(--stack-2); }
.feld > label {
  font-family: var(--font-kopf);
  font-size: var(--t-sm);
  font-weight: 500;
  /* Bewusst nicht gedimmt: Eine Beschriftung mit halber
     Deckkraft ist nicht mehr AA-konform, und sie ist das
     Einzige, was sagt, was in das Feld gehoert. */
  color: var(--auf-grund);
}
.feld > label i { font-style: normal; font-weight: 400; color: var(--auf-grund-2); }

.feld input,
.feld select,
.feld textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 0.9rem;
  /* 16 Pixel, nicht kleiner: Darunter zoomt iOS beim
     Hineintippen automatisch in das Feld hinein. */
  font-size: 1rem;
  font-family: var(--font-kopf);
  background: var(--feld);
  border: var(--hair) solid var(--regel-satt);
  border-radius: var(--r-1);
  color: var(--auf-grund);
  transition: border-color var(--d-schnell) var(--e-weich), background-color var(--d-schnell) var(--e-weich);
}
.feld textarea { resize: vertical; min-height: 8.5rem; line-height: 1.6; font-family: var(--font-text); }
.feld select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.feld input::placeholder, .feld textarea::placeholder { color: color-mix(in srgb, var(--auf-grund-2) 72%, transparent); }
.feld input:focus-visible,
.feld select:focus-visible,
.feld textarea:focus-visible { border-color: var(--gold); background: var(--flaeche); outline-offset: 1px; }
.feld input[aria-invalid="true"],
.feld textarea[aria-invalid="true"] { border-color: #B3261E; }

.feld__err { font-family: var(--font-kopf); font-size: var(--t-sm); color: #B3261E; }

.zustimmung { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0.85rem; align-items: start; margin: var(--stack-3) 0 var(--stack-2); }
.zustimmung input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.zustimmung .kasten { margin-top: 0.15rem; }
.zustimmung label { font-size: var(--t-sm); line-height: 1.6; color: var(--auf-grund-2); cursor: pointer; }
.zustimmung label a { color: var(--auf-grund); border-bottom: var(--hair) solid var(--gold); }

.form .knopf { width: 100%; margin-top: var(--stack-2); }

/* Rueckmeldung nach dem Absenden. Inline, kein Popup: Ein
   Popup verdeckt genau die Angaben, die jemand gerade gemacht
   hat, und auf dem Telefon oft auch den Knopf. */
.form__meldung {
  margin-top: var(--stack-2);
  padding: var(--stack-2);
  border-left: 3px solid var(--gold);
  background: var(--grund);
  border-radius: 0 var(--r-1) var(--r-1) 0;
  font-size: var(--t-sm);
  line-height: 1.6;
}
.form__meldung[hidden] { display: none; }
.form__meldung--fehler { border-left-color: #B3261E; }

/* Honigtopf: Ein Feld, das kein Mensch sieht und jeder Automat
   ausfuellt. */
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------
   FUSS
   ------------------------------------------------------------ */
.fuss { padding-block: var(--sec-y) var(--stack-4); }
.fuss__oben {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--stack-4) clamp(1.5rem, 3vw, 3rem);
}
@media (max-width: 900px) { .fuss__oben { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fuss__oben { grid-template-columns: minmax(0, 1fr); } }

.fuss__marke img { width: 140px; height: auto; margin-bottom: var(--stack-2); }
.fuss__marke p { font-size: var(--t-sm); color: var(--auf-grund-2); max-width: 42ch; }

.fuss h2 {
  font-family: var(--font-kopf);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--stack-2);
}
.fuss li { margin-bottom: 0.6rem; }
.fuss li a { font-size: var(--t-sm); color: var(--auf-grund-2); transition: color var(--d-schnell) var(--e-weich); }
@media (hover: hover) and (pointer: fine) { .fuss li a:hover { color: var(--auf-grund); } }

.fuss__unten {
  margin-top: var(--stack-4);
  padding-top: var(--stack-2);
  border-top: var(--hair) solid var(--regel);
  display: flex;
  flex-wrap: wrap;
  gap: var(--stack-2) var(--stack-3);
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-kopf);
  font-size: var(--t-sm);
  color: var(--auf-grund-2);
}
.fuss__unten nav { display: flex; gap: var(--stack-3); }
@media (hover: hover) and (pointer: fine) { .fuss__unten a:hover { color: var(--gold); } }

/* Am Telefon braucht der Fuss Luft unter sich, sonst liegt die
   Rufleiste auf der letzten Zeile. */
@media (max-width: 760px) { .fuss__unten { padding-bottom: 4rem; } }

/* Die Zeile, die sagt, wer die Seite gebaut hat. Sie steht
   unter dem Rechtsblock und bewusst leiser als alles andere im
   Fuss: Sie gehoert dazu, aber sie ist nicht das, weswegen
   jemand hier ist. */
.fuss__macher {
  margin-top: var(--stack-2);
  font-family: var(--font-kopf);
  font-size: var(--t-label);
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--auf-grund) 42%, transparent);
}
.fuss__macher a { color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .fuss__macher a:hover { color: var(--gold-hell); } }
@media (max-width: 760px) { .fuss__macher { padding-bottom: 4rem; } .fuss__unten { padding-bottom: 0; } }
