/* Grundstil für das Kontaktformular. Bewusst neutral gehalten - jede
   Kundenseite bekommt ihr eigenes Aussehen, das hier ist nur das Gerüst. */

.kontakt {
  max-width: 34rem;
}

.kontaktformular {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.feld {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.feld label {
  font-size: 0.95rem;
  font-weight: 500;
}

.feld .optional {
  font-weight: 400;
  opacity: 0.65;
}

.feld input,
.feld textarea {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: transparent;
  color: inherit;
}

.feld textarea {
  resize: vertical;
  min-height: 8rem;
}

.feld input:focus-visible,
.feld textarea:focus-visible,
.absenden:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.feld--einwilligung {
  flex-direction: row;
  align-items: start;
  gap: 0.6rem;
}

.feld--einwilligung label {
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.5;
}

.feld--einwilligung input {
  margin-top: 0.25rem;
  flex: none;
}

/* Honigtopf: aus dem Sichtfeld geschoben statt display:none, damit einfache
   Bots das Feld weiterhin finden und ausfüllen. */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.absenden {
  font: inherit;
  align-self: start;
  padding: 0.7rem 1.6rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: currentColor;
  cursor: pointer;
}

.absenden:disabled {
  opacity: 0.55;
  cursor: progress;
}

.rueckmeldung {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid currentColor;
  font-size: 0.95rem;
}

.rueckmeldung[data-art="erfolg"] {
  color: #1c6b48;
  background: #e8f4ee;
}

.rueckmeldung[data-art="fehler"] {
  color: #96322a;
  background: #f9e9e6;
}

@media (prefers-color-scheme: dark) {
  .rueckmeldung[data-art="erfolg"] { color: #7cc9a0; background: #14261d; }
  .rueckmeldung[data-art="fehler"] { color: #e8938a; background: #2b1a17; }
}
