/* Kontaktformular – gemeinsame Gestaltung (publishmanager/verteilt/kontakt/kontakt.css)
 * Seit 30.11.2026 fuer BRAWONE, TOMS • TOWN, FOTOTOM und BRAWANDS, Vorbild FOTOTOM.
 * Farben, Radien und Zeiten aus dem gemeinsamen Design (/design/<seite>.css, Variablen --d-…);
 * pro Seite unterscheidet sich nur die Signaturfarbe (--d-akzent). Schrift: die der Seite. */

.kf-layout {
  --kf-akzent: var(--d-akzent, #3fb8c9);
  --kf-akzent-text: var(--d-akzent-text, var(--kf-akzent));
  --kf-auf-akzent: var(--d-auf-akzent, #0a0a0a);
  --kf-schrift: var(--d-schrift, #f4f2ef);
  --kf-leise: var(--d-leise, #9a968e);
  --kf-linie: var(--d-linie, #252420);
  --kf-flaeche: var(--d-flaeche, #131312);
  --kf-schnell: var(--d-zeit-schnell, .2s);
  --kf-mittel: var(--d-zeit-mittel, .3s);
  display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: 20px;
  color: var(--kf-schrift); text-align: left;
}
.kf-layout *, .kf-layout *::before, .kf-layout *::after { box-sizing: border-box; }
@media (max-width: 900px) { .kf-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Links: Hinweis, Kontaktwege, Comic ---------- */
.kf-seite { display: grid; gap: 1.4rem; align-content: start; min-width: 0; }
.kf-hinweis { margin: 0; color: var(--kf-leise); font-size: .95rem; line-height: 1.6; }
.kf-hinweis a { color: var(--kf-akzent-text); }
.kf-wege { display: grid; gap: .55rem; padding: 1.1rem 0; border-top: 1px solid var(--kf-linie); border-bottom: 1px solid var(--kf-linie); }
.kf-wege a { color: var(--kf-schrift); text-decoration: none; transition: color var(--kf-schnell); }
.kf-wege a:hover { color: var(--kf-akzent-text); }
.kf-mail { font-size: 1.05rem; overflow-wrap: anywhere; }
.kf-wege .kf-weg { color: var(--kf-leise); font-size: .9rem; letter-spacing: .04em; }
.kf-weg-reihe { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .3rem; }

/* Comic: in Schwarz-weiss gerechnet und mit der Signaturfarbe der Seite eingefaerbt */
.kf-comic {
  position: relative; margin: 0; width: 100%; max-width: 340px; aspect-ratio: 4 / 3;
  border-radius: var(--d-radius-mittel, 12px); overflow: hidden; isolation: isolate;
  border: 1px solid var(--kf-akzent); background: #0b0b0a;
  box-shadow: 0 22px 46px -26px rgba(0, 0, 0, .9);
}
.kf-comic img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08); opacity: .9;
  transition: opacity .35s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}
.kf-comic::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--kf-akzent); mix-blend-mode: color;
}
.kf-comic:hover img { opacity: 1; transform: scale(1.03); }

/* ---------- Rechts: Formular ---------- */
.kf-rechts { min-width: 0; }
.kf-form { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem 1.2rem; margin: 0; }
.kf-form > * { grid-column: 1 / -1; }
.kf-form > .kf-halb { grid-column: auto; }
@media (max-width: 600px) { .kf-form > .kf-halb { grid-column: 1 / -1; } }

.kf-feld { display: grid; gap: .45rem; margin: 0; }
.kf-feld > span { color: var(--kf-leise); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.kf-feld input, .kf-feld textarea {
  width: 100%; margin: 0; padding: .8rem 1rem; border-radius: var(--d-radius-klein, 6px);
  border: 1px solid var(--kf-linie); background: var(--kf-flaeche); color: var(--kf-schrift);
  font: inherit; font-size: 1rem; transition: border-color var(--kf-mittel); box-shadow: none;
}
.kf-feld textarea { resize: vertical; min-height: 160px; }
.kf-feld input:focus, .kf-feld textarea:focus { outline: none; border-color: var(--kf-akzent); }
.kf-feld.ist-fehler > span { color: #f0a3a3; }
.kf-feld.ist-fehler input, .kf-feld.ist-fehler textarea { border-color: rgba(240, 120, 120, .75); }

/* Betreff als Pillen */
.kf-pills { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; }
@media (min-width: 601px) { .kf-pills { grid-template-columns: repeat(var(--kf-spalten, 4), minmax(0, 1fr)); } }
.kf-pill { position: relative; display: flex; min-width: 0; margin: 0; }
.kf-pill input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
.kf-pill span {
  flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.25;
  min-height: 44px; font-size: .74rem; letter-spacing: .07em; padding: .6rem .8rem;
  border: 1px solid var(--kf-linie); border-radius: var(--d-radius-pille, 999px); color: var(--kf-leise); cursor: pointer;
  transition: color var(--kf-schnell), border-color var(--kf-schnell), background var(--kf-schnell);
}
.kf-pill:hover span { color: var(--kf-akzent-text); border-color: var(--kf-akzent); }
.kf-pill input:checked + span { background: var(--kf-akzent); border-color: var(--kf-akzent); color: var(--kf-auf-akzent); }
.kf-pill input:focus-visible + span { outline: 2px solid var(--kf-akzent); outline-offset: 3px; }

/* Bot-Falle */
.kf-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 0; opacity: 0; overflow: hidden; }

/* Senden und Turnstile */
.kf-senden-zeile { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(1rem, 4vw, 2rem); }
.kf-ts:empty { display: none; }
.kf-ts { min-height: 65px; min-width: 300px; }
@media (max-width: 400px) { .kf-ts { min-width: 0; width: 100%; } }
.kf-senden {
  min-height: 44px; margin: 0; padding: .55rem 1.3rem; border: 1px solid var(--kf-akzent); border-radius: var(--d-radius-pille, 999px);
  background: none; color: var(--kf-akzent-text); font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; cursor: pointer; transition: color var(--kf-schnell), background var(--kf-schnell);
}
.kf-senden:hover { background: var(--kf-akzent); color: var(--kf-auf-akzent); }
.kf-senden:disabled { opacity: .5; cursor: wait; }

/* Rueckmeldung */
.kf-note { margin: 0; font-size: .9rem; letter-spacing: .04em; }
.kf-note:empty { display: none; }
.kf-note.gut, .kf-note.fehler { padding: .7rem 1rem; border: 1px solid; border-radius: var(--d-radius-klein, 6px); }
.kf-note.gut { color: var(--kf-akzent-text); border-color: color-mix(in srgb, var(--kf-akzent) 55%, transparent); }
.kf-note.fehler { color: #ff9b9b; border-color: rgba(240, 120, 120, .5); }
.kf-klein { margin: 0; font-size: 13px; line-height: 1.5; color: var(--kf-leise); }

/* Anfrage zu einem Bild */
.kf-bild {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--d-radius-mittel, 12px);
  border: 1px solid color-mix(in srgb, var(--kf-akzent) 55%, transparent);
  background: color-mix(in srgb, var(--kf-akzent) 8%, transparent);
}
.kf-bild[hidden] { display: none; }
.kf-bild-vorschau { width: 64px; height: 44px; object-fit: cover; border-radius: 4px; }
.kf-bild-text { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 14px; }
.kf-bild-l { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--kf-akzent-text); }
.kf-bild-weg { width: 36px; height: 36px; border-radius: var(--d-radius-pille, 999px); border: 1px solid var(--kf-linie); background: none; color: var(--kf-schrift); cursor: pointer; font-size: 18px; }

/* Helle Ansicht (FOTOTOM «Licht an») */
html.licht-an .kf-hinweis, html.licht-an .kf-wege .kf-weg, html.licht-an .kf-klein { font-weight: 500; }
html.licht-an .kf-feld > span { color: var(--kf-schrift); font-weight: 600; }
html.licht-an .kf-mail { font-weight: 600; }
html.licht-an .kf-pill span { color: var(--kf-schrift); font-weight: 500; border-color: #b3ada1; }
html.licht-an .kf-pill input:checked + span, html.licht-an .kf-senden:hover { background: var(--kf-akzent-text); border-color: var(--kf-akzent-text); color: #fff; }
html.licht-an .kf-feld input, html.licht-an .kf-feld textarea { background: #fbfaf7; border-color: #b3ada1; }
html.licht-an .kf-note.fehler { color: #b3261e; }

@media (prefers-reduced-motion: reduce) {
  .kf-comic img, .kf-pill span, .kf-senden, .kf-feld input, .kf-feld textarea { transition: none; }
  .kf-comic:hover img { transform: none; }
}
