/*
 * PreQ — Seite "Kontakt" (neu.preq.eu), Optik wie "Ueber PreQ" / "Fuer Partner".
 * Wird NACH preq-neu.css (Seitenrand .pn-wrap, Schaltflaeche .pn-btn) und preq-neu-ueber.css (Hero .pn-uhero*, Abschnitt .pn-usec) geladen.
 * Eigene Klassen: pn-kf-* (Kontaktformular). Funktion und Texte stehen in homepage/preq-kontakt-neu.php und preq-kontakt-texte.php.
 *
 * Markenwerte: Cyan #22D3EE, Flaechen #111114 / #1D1D21. Das Design-System setzt h1-h4 per `hN:not(.cms-heading)` (Spezifitaet 0,1,1,
 * font-size !important): Ueberschriften-Regeln daher mit Vorfahr.
 */

/* ---------- Hero ohne rechtes Bild ---------- */
.pn-kf-hero .pn-uhero-inner { min-height: 300px; }
.pn-kf-hero .pn-uhero-lead { margin-bottom: 0; max-width: 640px; }

/* ---------- Formular links, Kontaktwege rechts ---------- */
.pn-kf-sec { padding-top: clamp(40px, 5vw, 64px); }
.pn-kf-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px clamp(24px, 3vw, 44px); align-items: start; }
.pn-kf-card { padding: clamp(22px, 3vw, 38px); background: #1D1D21; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; }
.pn-kf-form { display: grid; gap: 20px; }
.pn-kf-hp { position: absolute; left: -9999px; }
.pn-kf-row--anrede { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); gap: 16px; }
.pn-kf-field { min-width: 0; }
.pn-kf-field label { display: block; margin: 0 0 8px; color: rgba(255,255,255,.9); font-size: .92rem; font-weight: 600; }
.pn-kf-req { color: #22D3EE; }

/* Eingabefelder: dunkel, Cyan-Rahmen im Fokus (mit Vorfahr, damit globale input-Regeln des Design-Systems nicht gewinnen) */
.pn-kf-form .pn-kf-input {
    display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 13px 15px;
    background: #111114; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 8px;
    font: 400 1rem/1.4 'Open Sans', sans-serif; transition: border-color .2s ease, box-shadow .2s ease;
}
.pn-kf-form .pn-kf-input::placeholder { color: rgba(255,255,255,.42); }
.pn-kf-form .pn-kf-input:hover { border-color: rgba(255,255,255,.34); }
.pn-kf-form .pn-kf-input:focus { outline: none; border-color: #22D3EE; box-shadow: 0 0 0 3px rgba(34,211,238,.2); }
.pn-kf-form textarea.pn-kf-input { min-height: 150px; resize: vertical; }
.pn-kf-form select.pn-kf-input {
    appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2322D3EE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.pn-kf-form select.pn-kf-input option { background: #1D1D21; color: #fff; }

/* Captcha: Bild und Eingabe in einer Zeile */
.pn-kf-captcha { display: flex; align-items: center; gap: 12px; }
.pn-kf-captcha img { flex: none; width: 120px; height: 40px; border-radius: 6px; background: #f5f5f5; }
.pn-kf-captcha .pn-kf-input { flex: 1 1 auto; min-width: 0; }

.pn-kf-check { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,.82); font-size: .92rem; line-height: 1.55; }
.pn-kf-check input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: #22D3EE; cursor: pointer; }
.pn-kf-check a { color: #22D3EE; text-underline-offset: 3px; }
.pn-kf-form .pn-btn { justify-self: start; }
.pn-kf-hint { margin: 0; color: rgba(255,255,255,.6); font-size: .85rem; line-height: 1.5; }

/* Meldungen */
.pn-kf-alert { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; padding: 18px 20px; border-radius: 12px; color: #fff; line-height: 1.5; }
.pn-kf-alert:last-child { margin-bottom: 0; }
.pn-kf-alert svg { flex: none; margin-top: 2px; }
.pn-kf-alert p { margin: 4px 0 0; }
.pn-kf-alert p:first-child { margin-top: 0; }
.pn-kf-alert--success { background: rgba(34,211,238,.09); border: 1px solid rgba(34,211,238,.42); }
.pn-kf-alert--success svg { color: #22D3EE; }
.pn-kf-alert--error { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.5); }
.pn-kf-alert--error svg { color: #f87171; }

/* Kontaktwege */
.pn-kf-side { display: grid; gap: 16px; }
.pn-kf-info { padding: 22px 24px; background: #1D1D21; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; }
.pn-kf-side .pn-kf-info h3 { margin: 0 0 8px; color: #fff; font-weight: 600; font-size: 1.1rem !important; line-height: 1.3; }
.pn-kf-info p { margin: 0; color: rgba(255,255,255,.76); font-size: .95rem; line-height: 1.6; }
.pn-kf-info .pn-btn--block { margin-top: 16px; }
.pn-kf-mail { display: flex; align-items: center; gap: 10px; color: #22D3EE; }
.pn-kf-mail a { color: #22D3EE; font-weight: 600; text-decoration: none; }
.pn-kf-mail a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pn-kf-qr { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; }
.pn-kf-qrbox { padding: 6px; background: #fff; border-radius: 8px; line-height: 0; }
.pn-kf-qr small { color: rgba(255,255,255,.58); font-size: 11.5px; letter-spacing: .04em; }
.pn-kf-erreich { margin-top: 14px !important; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
/* Visitenkarten-QR: wie im Kontaktblock der Startseite (weisse Flaeche, cyaner Ring), Q-Logo steckt im SVG */
.pn-kf-qr--vcard { align-items: center; margin: 24px 0 8px; }
.pn-kf-qr--vcard .pn-kf-qrbox {
    box-sizing: border-box; width: 156px; height: 156px; padding: 12px; border-radius: 14px;
    box-shadow: 0 0 0 7px #1D1D21, 0 0 0 10px #22D3EE, 0 0 26px 7px rgba(34,211,238,.26);
}
.pn-kf-qr--vcard .pn-kf-qrbox svg { display: block; width: 100%; height: 100%; }
/* Reihe QR - Pfeil - Smartphone (Bilder wie im Kontaktblock der Startseite); der Pfeil nimmt den Rest der Breite, das Smartphone steht rechts */
.pn-kf-qr--vcard.has-handy { display: grid; grid-template-columns: auto minmax(24px, 1fr) auto; align-items: center; justify-items: center; gap: 6px; margin: 26px 2px 26px 12px; }
.pn-kf-pfeil { display: block; width: 100%; max-width: 150px; height: auto; pointer-events: none; }
.pn-kf-handy { display: block; width: 118px; height: auto; pointer-events: none; }
/* zweispaltig mit schmaler Seitenleiste (981-1280 px): QR und Smartphone kleiner, damit dem Pfeil Platz bleibt (sonst ca. 24 px) */
@media (min-width: 981px) and (max-width: 1280px) {
    .pn-kf-qr--vcard .pn-kf-qrbox { width: 128px; height: 128px; padding: 10px; }
    .pn-kf-handy { width: 90px; }
}
@media (max-width: 520px) {
    .pn-kf-qr--vcard.has-handy { margin-left: 10px; }
    .pn-kf-qr--vcard .pn-kf-qrbox { width: 128px; height: 128px; padding: 10px; }
    .pn-kf-handy { width: 88px; }
}
@media (max-width: 380px) { .pn-kf-pfeil { display: none; } .pn-kf-qr--vcard.has-handy { grid-template-columns: auto auto; justify-content: space-between; } }

@media (max-width: 980px) {
    .pn-kf-grid { grid-template-columns: minmax(0, 1fr); }
    .pn-kf-hero .pn-uhero-inner { min-height: 0; }
}
@media (max-width: 520px) {
    .pn-kf-row--anrede { grid-template-columns: minmax(0, 1fr); }
    .pn-kf-captcha { flex-wrap: wrap; }
    .pn-kf-captcha .pn-kf-input { flex-basis: 100%; }
    .pn-kf-form .pn-btn { justify-self: stretch; justify-content: center; }
}
