/* ============================================================
   Linni & Boo - Kontaktformular (Frontend)
   Nutzt die Design-Tokens aus dem Theme (assets/css/main.css).
   Mobil zuerst: eine Spalte, 16px Schrift, Tippziele ab 44px.
   ============================================================ */

.lb-kontakt {
  --lb-kontakt-luft: 18px;
  margin: 28px 0;
  font-family: var(--font-body, system-ui, sans-serif);
  color: var(--ink, #4B4237);
}

.lb-kontakt * { box-sizing: border-box; }

/* ---------------------------------------------------- Rahmen */

.lb-kontakt-form,
.lb-kontakt-danke {
  background: var(--card, #fff);
  border: 1px solid var(--line, #E9E2D3);
  border-radius: var(--radius-lg, 26px);
  box-shadow: var(--shadow, 0 10px 30px rgba(75, 66, 55, .07));
  padding: 26px 20px 28px;
}

.lb-kontakt-titel {
  font-family: var(--font-head, system-ui, sans-serif);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.15;
  color: var(--green-strong, #7E9C6B);
  margin: 0 0 10px;
}

.lb-kontakt-einleitung {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted, #8A8072);
}

/* ---------------------------------------------------- Meldungen */

.lb-kontakt-meldung {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: var(--radius, 16px);
  font-size: 15.5px;
  line-height: 1.5;
  font-weight: 600;
}

.lb-kontakt-meldung-fehler {
  background: var(--rose-soft, #F6CDC6);
  color: #8C4034;
}

.lb-kontakt-meldung-warm {
  background: var(--green-soft, #EBEFDB);
  color: #4A6238;
}

/* ---------------------------------------------------- Felder */

.lb-kontakt-feld {
  display: block;
  margin: 0 0 var(--lb-kontakt-luft);
}

.lb-kontakt-label {
  display: block;
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 7px;
  color: var(--ink, #4B4237);
}

.lb-kontakt-stern {
  color: var(--rose-strong, #E68D80);
  margin-left: 2px;
}

.lb-kontakt-feld input[type="text"],
.lb-kontakt-feld input[type="email"],
.lb-kontakt-feld input[type="tel"],
.lb-kontakt-feld textarea,
.lb-kontakt-feld select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 16px; /* verhindert das Hineinzoomen auf dem iPhone */
  line-height: 1.5;
  color: var(--ink, #4B4237);
  background: var(--cream-3, #FBF9F4);
  border: 1.5px solid var(--line, #E9E2D3);
  border-radius: var(--radius, 16px);
  transition: border-color .16s ease, background .16s ease;
  -webkit-appearance: none;
  appearance: none;
}

.lb-kontakt-feld textarea {
  min-height: 150px;
  resize: vertical;
}

.lb-kontakt-feld select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%238A8072' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.lb-kontakt-feld input::placeholder,
.lb-kontakt-feld textarea::placeholder {
  color: #A79E90;
}

.lb-kontakt-feld input:focus,
.lb-kontakt-feld textarea:focus,
.lb-kontakt-feld select:focus {
  outline: none;
  background: #fff;
  border-color: var(--green, #A9C297);
  box-shadow: 0 0 0 3px rgba(169, 194, 151, .25);
}

.lb-kontakt-hilfe {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted, #8A8072);
}

.lb-kontakt-feldmeldung {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 700;
  color: #B4503F;
}

.lb-kontakt-feld-fehler input[type="text"],
.lb-kontakt-feld-fehler input[type="email"],
.lb-kontakt-feld-fehler input[type="tel"],
.lb-kontakt-feld-fehler textarea,
.lb-kontakt-feld-fehler select {
  border-color: var(--rose-strong, #E68D80);
  background: #FEF7F5;
}

/* ---------------------------------------------------- Ankreuzfelder */

.lb-kontakt-haken {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
}

.lb-kontakt-haken input[type="checkbox"] {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 11px 0 0;
  accent-color: var(--rose-strong, #E68D80);
  cursor: pointer;
}

.lb-kontakt-haken label {
  font-size: 15.5px;
  line-height: 1.5;
  padding: 10px 0;
  cursor: pointer;
}

.lb-kontakt-haken label a {
  color: var(--green-strong, #7E9C6B);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lb-kontakt-datenschutz {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line, #E9E2D3);
}

.lb-kontakt-pflichtnote {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted, #8A8072);
}

/* ---------------------------------------------------- Absenden */

.lb-kontakt-absenden {
  margin: 24px 0 0;
}

.lb-kontakt-knopf {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}

/* ---------------------------------------------------- Honigtopf */

.lb-kontakt-honig {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------- Danke */

.lb-kontakt-danke {
  text-align: center;
  background: var(--green-soft, #EBEFDB);
  border-color: #D8E2C4;
}

.lb-kontakt-danke-titel {
  font-family: var(--font-head, system-ui, sans-serif);
  font-weight: 800;
  font-size: 24px;
  margin: 0 0 10px;
  color: var(--green-strong, #7E9C6B);
}

.lb-kontakt-danke-text {
  margin: 0 0 20px;
  font-size: 16.5px;
  line-height: 1.6;
}

/* ---------------------------------------------------- Ab Tablet */

@media (min-width: 720px) {
  .lb-kontakt-form,
  .lb-kontakt-danke {
    padding: 34px 34px 36px;
  }

  .lb-kontakt-titel {
    font-size: 30px;
  }

  /* Nur Name und E-Mail stehen nebeneinander, alles andere bleibt einspaltig. */
  .lb-kontakt-zeile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .lb-kontakt-knopf {
    width: auto;
    min-width: 240px;
  }
}
