/* ============================================================
   Kontakthomepage — Gestaltung der öffentlichen Seiten
   Alle Farben und Schriften kommen vom eigenen Server.
   ============================================================ */

:root {
  --akzent: #4C7A4A;
  --tinte: #243026;
  --tinte-weich: #5A6A5B;
  --dunst: #FBF7F5;
  --linie: rgba(62, 90, 59, .16);

  /* Höhe des Landschaftsstreifens; das Bild hat das Verhältnis 1920:460 */
  --land: clamp(150px, 24vw, 46vh);

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--text);
  color: var(--tinte);
  background: var(--dunst);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Hintergrund: Himmel oben, Landschaft am unteren Rand ---------- */

.himmel,
.land {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
}

.himmel {
  top: 0;
  bottom: calc(var(--land) - 1px);
  background: url("../img/himmel.jpg") center top / 100% 100% no-repeat;
}

.land {
  bottom: 0;
  height: var(--land);
  background: url("../img/land.jpg") right bottom / cover no-repeat;
}

/* ---------- Grundgerüst ---------- */

.rahmen {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px) calc(var(--land) + 2.5rem);
  min-height: 100%;
}

/* Logofläche, die von oben in das Bild hineinragt */
.logoflaeche {
  width: clamp(116px, 17vw, 208px);
  aspect-ratio: 317 / 360;
  background: #fff;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 22px 44px -22px rgba(36, 48, 38, .5);
  display: grid;
  place-items: center;
  padding: 12px;
  margin-bottom: clamp(28px, 6vh, 62px);
}

.logoflaeche img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logoflaeche .platzhalter {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
  color: #8E9A8C;
}

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0 0 .4em;
  max-width: 15ch;
}

.unterzeile {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--tinte-weich);
  max-width: 46ch;
  margin: 0 0 clamp(28px, 5vh, 48px);
}

/* ---------- Karte mit dem Formular ---------- */

.karte {
  background: rgba(255, 255, 255, .76);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 34px);
  max-width: 540px;
}

.karte h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 27px);
  margin: 0 0 6px;
}

.karte .hinweis {
  font-size: 14.5px;
  color: var(--tinte-weich);
  margin: 0 0 20px;
}

.feld { margin-bottom: 14px; }

.feld label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 5px;
}

.feld .zusatz { font-weight: 400; color: #8E9A8C; }

.feld input,
.feld textarea {
  width: 100%;
  font: 400 16px/1.45 var(--text);
  color: var(--tinte);
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 7px;
  padding: 11px 13px;
}

.feld textarea {
  min-height: 190px;
  resize: vertical;
  line-height: 1.6;
}

.feld.fehlerhaft input,
.feld.fehlerhaft textarea { border-color: #B4564A; }

.feldfehler {
  font-size: 13px;
  color: #97392E;
  margin: 5px 0 0;
}

:is(input, textarea, button, a, select):focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
}

.einwilligung {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--tinte-weich);
  margin: 16px 0 20px;
}

.einwilligung input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--akzent);
}

.einwilligung a { color: var(--akzent); }

.senden {
  font: 600 16px/1 var(--text);
  color: #fff;
  background: var(--akzent);
  border: 0;
  border-radius: 7px;
  padding: 14px 24px;
  width: 100%;
  cursor: pointer;
}

.senden:hover { filter: brightness(1.08); }

/* Honigtopf — für Menschen unsichtbar, für Automaten verlockend */
.honig {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.meldung {
  border-radius: 9px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 14.5px;
}

.meldung.gut { background: #E9F1E4; border: 1px solid #BFD5B4; color: #2F4A2C; }
.meldung.schlecht { background: #F7E9E6; border: 1px solid #E0BDB6; color: #7E3327; }

/* ---------- Fußzeile ---------- */

.fuss {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--tinte-weich);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.fuss a { color: inherit; }

/* ---------- Impressum und Datenschutz ---------- */

.rechtstext {
  max-width: 680px;
  padding-top: clamp(30px, 6vh, 70px);
}

.rechtstext h1 { font-size: clamp(26px, 3.4vw, 40px); }

.rechtstext .inhalt {
  background: rgba(255, 255, 255, .76);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 34px);
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.72;
  color: var(--tinte-weich);
}

.zurueck {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 14.5px;
  color: var(--akzent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
