/* Kontaktformular und Newsletter (Bob 04.10.26). Eigene Datei, weil
   stil.css schon zu lang ist; auf jeder Seite geladen (Newsletter in der
   Fußzeile). Verhalten in assets/js/formulare.js. */

/* ---------- Felder ---------- */
.formular { display: grid; gap: 16px; margin-top: 30px; text-align: left; }
.formular__paar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feld { display: grid; gap: 6px; }
.feld[hidden] { display: none; }
.feld > span { font-size: .88rem; font-weight: 600; color: var(--text-2); }
.feld input, .feld select, .feld textarea, .nl__feld input {
  font: inherit; font-size: 1rem; color: var(--text); width: 100%; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--rand-hell); background: var(--grund);
  transition: border-color .15s, box-shadow .15s;
}
.feld textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.feld select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.feld input:focus, .feld select:focus, .feld textarea:focus, .nl__feld input:focus {
  outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hell);
}
.feld input:user-invalid, .feld textarea:user-invalid { border-color: var(--rot); }
.formular .knopf { justify-self: start; }
.formular__klein, .nl__klein { margin: 0; font-size: .82rem; line-height: 1.5; color: var(--text-3); }
.formular__klein a, .nl__klein a { color: inherit; text-decoration: underline; }
.formular__fehler { margin: 0; padding: 10px 14px; border-radius: 10px; font-size: .92rem; color: var(--rot);
  background: color-mix(in srgb, var(--rot) 10%, transparent); }
.formular__fehler[hidden] { display: none; }
/* Lockfeld für Bots: aus dem Blick, aber nicht display:none (das überspringen manche Bots). */
.formular__falle { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.formular__danke { margin-top: 30px; padding: 30px; border-radius: var(--rund); border: 1px solid var(--rand);
  background: var(--flaeche); text-align: left; outline: none; }
.formular__danke h2 { margin: 12px 0 8px; font-size: 1.5rem; }
.formular__danke p { margin: 0; color: var(--text-2); }
.formular__haken { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in srgb, var(--gruen) 16%, transparent); color: var(--gruen); }
.formular__haken svg { width: 22px; height: 22px; }

/* ---------- Kontaktseite ---------- */
.kontakt { text-align: left; }
.kontakt__raster { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.kontakt h1 { margin-top: 10px; }
.kontakt .einleitung { margin-inline: 0; }
.kontakt__seite { position: sticky; top: 110px; margin-top: 40px; display: grid; gap: 14px; }
.kontakt__karte { padding: 24px 26px; border-radius: var(--rund); border: 1px solid var(--rand); background: var(--flaeche); }
.kontakt__karte--termin { border-color: color-mix(in srgb, var(--akzent) 35%, var(--rand));
  background: radial-gradient(120% 120% at 100% 0%, var(--akzent-hell) 0%, transparent 60%), var(--flaeche); }
.kontakt__karte--termin .karte__symbol { margin-bottom: 12px; }
.kontakt__karte--termin .knopf { margin-top: 4px; }
.kontakt__karte--termin small { display: block; margin-top: 10px; font-size: .8rem; color: var(--text-3); }
.kontakt__seite h2 { margin: 0 0 6px; font-size: 1.2rem; }
.kontakt__seite p { margin: 0 0 12px; color: var(--text-2); font-size: .95rem; }
.kontakt__mail { display: inline-block; font-weight: 700; color: var(--akzent); text-decoration: none; font-size: 1.05rem; }
.kontakt__mail:hover { text-decoration: underline; }
.kontakt__punkte { list-style: none; margin: 6px 0 0; padding: 0 6px; display: grid; gap: 10px; }
.kontakt__punkte li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--text-2); }
.kontakt__punkte svg { width: 18px; height: 18px; color: var(--gruen); flex: none; margin-top: 2px; }

/* ---------- Newsletter-Karte vor der Fußzeile ---------- */
.nl-abschnitt { padding-top: 24px; padding-bottom: 48px; }
.nl-karte { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px; align-items: center; padding: clamp(28px, 4.5vw, 56px); border-radius: 28px; border: 1px solid var(--rand);
  background: radial-gradient(120% 140% at 100% 0%, var(--akzent-hell) 0%, transparent 55%), var(--flaeche); box-shadow: var(--schatten); }
.nl .ueberzeile { display: inline-flex; align-items: center; gap: 8px; }
.nl .ueberzeile svg { width: 16px; height: 16px; }
.nl h2 { margin: 10px 0 12px; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; }
.nl__text { margin: 0 0 24px; color: var(--text-2); font-size: 1.05rem; line-height: 1.6; max-width: 520px; }
/* Feld und Knopf in einer Pille */
.nl__feld { display: flex; align-items: center; gap: 6px; max-width: 520px; padding: 6px 6px 6px 20px; border-radius: 999px;
  border: 1px solid var(--rand-hell); background: var(--grund); transition: border-color .15s, box-shadow .15s; }
.nl__feld:focus-within { border-color: var(--akzent); box-shadow: 0 0 0 4px var(--akzent-hell); }
.nl__feld input { flex: 1; min-width: 0; border: 0; padding: 10px 0; background: transparent; font: inherit; font-size: 1rem; color: var(--text); }
.nl__feld input:focus { outline: none; box-shadow: none; }
.nl__feld .knopf { flex: none; }
.nl__meldung { margin: 14px 0 0; max-width: 520px; padding: 10px 14px; border-radius: 12px; font-size: .93rem;
  color: var(--gruen); background: color-mix(in srgb, var(--gruen) 12%, transparent); }
.nl__meldung.ist-fehler { color: var(--rot); background: color-mix(in srgb, var(--rot) 10%, transparent); }
.nl__meldung[hidden] { display: none; }
.nl__punkte { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.nl__punkte li { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--text-2); }
.nl__punkte svg { width: 16px; height: 16px; color: var(--gruen); }
.nl__klein { margin-top: 14px; max-width: 520px; font-size: .78rem; }

/* Mail-Vorschau: so sieht der Newsletter aus (Einträge aus whatsnew.ts). */
/* Die gedrehte Rückseite hängt an der Hülle: Am gedrehten Blatt selbst
   läge sie wegen dessen eigenem Stapelkontext vor dem Hintergrund. */
.nl-vorschau { position: relative; animation: nl-schweben 7s ease-in-out infinite; }
.nl-vorschau::before { content: ""; position: absolute; inset: 16px -10px -14px 18px; border-radius: 18px;
  background: var(--papier-2); border: 1px solid var(--rand); transform: rotate(-3.5deg); }
.nl-post { position: relative; padding: 22px 22px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--rand);
  box-shadow: 0 30px 60px -30px rgba(18, 27, 53, .45); transform: rotate(1.5deg); }
.nl-post__kopf { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--rand); }
.nl-post__kopf img { box-sizing: content-box; width: 14px; height: 21px; padding: 8px 11px; border-radius: 50%; background: var(--akzent-hell); }
.nl-post__kopf b { display: block; font-size: .95rem; }
.nl-post__kopf small { color: var(--text-3); font-size: .82rem; }
.nl-post__gruss { margin: 14px 0 10px; font-size: .9rem; color: var(--text-2); }
.nl-post__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nl-post__liste li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--flaeche);
  font-size: .9rem; font-weight: 600; line-height: 1.3; }
.nl-post__liste .upd-art { flex: none; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.nl-post__liste .upd-art--neu { background: var(--akzent-hell); color: var(--akzent); }
.nl-post__liste .upd-art--verbessert { background: color-mix(in srgb, var(--gruen) 14%, transparent); color: var(--gruen); }
.nl-post__liste .upd-art--behoben { background: color-mix(in srgb, #c98a12 16%, transparent); color: #a36d00; }
.nl-post__mehr { display: inline-block; margin-top: 14px; font-size: .86rem; font-weight: 600; color: var(--akzent); }
@keyframes nl-schweben { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .nl-vorschau { animation: none; } }

/* ---------- Bestätigen / Abmelden ---------- */
.nl-seite__karte { max-width: 560px; margin: 0 auto; padding: 40px 32px; border-radius: var(--rund);
  border: 1px solid var(--rand); background: var(--flaeche); box-shadow: var(--schatten); }
.nl-seite__karte h1, .nl-seite__karte h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 10px 0 12px; }
.nl-seite__karte [data-nachher] { outline: none; }
.nl-seite__karte .formular__fehler { margin-top: 18px; }

.kontakt__wege { display: none; }
@media (max-width: 900px) {
  .kontakt__wege { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
  .kontakt__wege svg { width: 15px; height: 15px; }
  .kontakt__raster { grid-template-columns: 1fr; gap: 10px; }
  .kontakt__seite { position: static; margin-top: 20px; }
  .nl-karte { grid-template-columns: 1fr; gap: 36px; }
  .nl-vorschau { max-width: 440px; }
}
@media (max-width: 600px) {
  .formular__paar { grid-template-columns: 1fr; }
  .formular .knopf { justify-self: stretch; justify-content: center; }
  .nl__feld { flex-direction: column; align-items: stretch; padding: 6px; border-radius: 22px; }
  .nl__feld input { padding: 10px 14px; }
  .nl__feld .knopf { justify-content: center; }
  .nl-vorschau { display: none; }
}

/* ---------- 404 (Bob 04.10.26) — hier, weil diese Datei überall geladen wird ---------- */
.f404 { padding-bottom: 80px; }
.f404__welle { display: flex; align-items: center; justify-content: center; gap: 6px; height: 120px; margin: 10px auto 26px; }
.f404__welle span { width: 7px; border-radius: 4px; background: var(--verlauf); height: 30%; animation: f404-ton 1.6s ease-in-out infinite; }
.f404__welle span:nth-child(odd) { animation-delay: -.4s; } .f404__welle span:nth-child(3n) { animation-delay: -.9s; }
.f404__welle span:nth-child(4n) { animation-delay: -1.2s; }
/* Zur Mitte hin leiser — dort, wo die 404 steht, ist Stille. */
.f404__welle span:nth-child(7), .f404__welle span:nth-child(11) { opacity: .45; }
.f404__welle span:nth-child(8), .f404__welle span:nth-child(10) { opacity: .2; animation: none; height: 6%; }
.f404__welle b { margin: 0 18px; font-family: var(--serif); font-size: clamp(3.4rem, 9vw, 5.6rem); line-height: 1; letter-spacing: -.03em;
  background: var(--verlauf); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes f404-ton { 0%, 100% { height: 22%; } 50% { height: 86%; } }
@media (prefers-reduced-motion: reduce) { .f404__welle span { animation: none; height: 50%; } }
.f404__ziele { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 960px; margin: 38px auto 0; text-align: left; }
.f404__ziel { display: grid; gap: 4px; padding: 20px; border-radius: var(--rund); border: 1px solid var(--rand); background: var(--flaeche);
  text-decoration: none; color: var(--text); transition: transform .2s, border-color .2s, box-shadow .2s; }
.f404__ziel:hover { transform: translateY(-3px); border-color: var(--akzent); box-shadow: var(--schatten); }
.f404__ziel .karte__symbol { margin-bottom: 8px; }
.f404__ziel small { color: var(--text-2); font-size: .88rem; }
.f404__en { margin-top: 30px; font-size: .9rem; color: var(--text-3); }
.f404__en a { color: var(--akzent); }
@media (max-width: 900px) { .f404__ziele { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .f404__welle span { width: 5px; } .f404__welle { gap: 4px; } .f404__welle b { margin: 0 10px; } }
