/* === Kontaktformular /kontakt/ === */
.nm-kf {
    --kf-navy: #16233F;
    --kf-gold: #E0AC33;
    --kf-rand: #ECE3CE;
    --kf-creme: #FBF6E9;
    margin: clamp(28px, 4vw, 46px) auto 0;
    max-width: 780px;
}

.nm-kf * { box-sizing: border-box; }

.nm-kf-kopf { margin-bottom: 22px; }

.nm-kf-kicker {
    color: #9A7A2A;
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .06em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.nm-kf .nm-kf-kopf h2 {
    color: var(--kf-navy) !important;
    font-size: clamp(24px, 3vw, 32px) !important;
    line-height: 1.15;
    margin: 0 0 8px !important;
}

.nm-kf-kopf p {
    color: #5b6472;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.nm-kf-form {
    background: var(--kf-creme);
    border: 1px solid var(--kf-rand);
    border-radius: 14px;
    display: grid;
    gap: 15px;
    padding: clamp(20px, 3vw, 30px);
}

.nm-kf-reihe {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr 1fr;
}

.nm-kf-feld {
    display: grid;
    gap: 5px;
    margin: 0;
}

.nm-kf-feld label {
    color: var(--kf-navy);
    font-size: 13.5px;
    font-weight: 700;
}

.nm-kf-opt { color: #8a919c; font-weight: 500; }

.nm-kf-feld input[type="text"],
.nm-kf-feld input[type="email"],
.nm-kf-feld input[type="tel"],
.nm-kf-feld select,
.nm-kf-feld textarea {
    background: #fff;
    border: 1px solid #d9d2c2;
    border-radius: 9px;
    color: #2b3444;
    font: inherit;
    font-size: 15px;
    padding: 11px 14px;
    width: 100%;
}

.nm-kf-feld textarea { line-height: 1.6; resize: vertical; }

.nm-kf-feld input:focus,
.nm-kf-feld select:focus,
.nm-kf-feld textarea:focus {
    border-color: var(--kf-gold);
    box-shadow: 0 0 0 3px rgba(224, 172, 51, .25);
    outline: none;
}

/* --- Ablageflaeche fuer Anhaenge ---
   Das native File-Input liegt unsichtbar ueber der ganzen Flaeche:
   dadurch ist die gesamte Kachel klickbar UND die Tastaturbedienung
   bleibt erhalten (kein nachgebauter Knopf, kein aria-Geflicke). */
.nm-kf-ablage {
    align-items: center;
    background: #fff;
    border: 1.5px dashed #d3cbb8;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    position: relative;
    transition: border-color .16s ease, background .16s ease;
}

.nm-kf-ablage:hover,
.nm-kf-ablage-aktiv {
    background: #FFFCF3;
    border-color: var(--kf-gold);
}

.nm-kf-ablage input[type="file"] {
    cursor: pointer;
    height: 100%;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
}

.nm-kf-ablage input[type="file"]:focus-visible {
    outline: 2px solid var(--kf-navy);
    outline-offset: 3px;
}

.nm-kf-ablage-icon {
    align-items: center;
    background: var(--kf-creme);
    border-radius: 50%;
    color: var(--kf-navy);
    display: flex;
    flex: 0 0 auto;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.nm-kf-ablage-text { display: grid; gap: 2px; }
.nm-kf-ablage-text strong { color: var(--kf-navy); font-size: 14.5px; }
.nm-kf-ablage-text span { color: #7a828e; font-size: 13px; }

/* --- Liste der gewaehlten Dateien --- */
.nm-kf-liste {
    display: grid;
    gap: 7px;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.nm-kf-datei {
    align-items: center;
    background: #fff;
    border: 1px solid var(--kf-rand);
    border-radius: 9px;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 9px 12px;
}

.nm-kf-datei-name {
    color: #2b3444;
    flex: 1 1 auto;
    font-size: 13.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nm-kf-datei-groesse {
    color: #8a919c;
    flex: 0 0 auto;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.nm-kf-datei-weg {
    background: none;
    border: 0;
    color: #8a919c;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
    padding: 0 2px;
}

.nm-kf-datei-weg:hover { background: none; color: #b51625; }

.nm-kf-hinweis-warn { color: #b51625; font-weight: 600; }

.nm-kf-hinweis {
    color: #7a828e;
    font-size: 12.5px;
    line-height: 1.45;
}

.nm-kf-topf { left: -9999px; position: absolute; }

.nm-kf-zustimmung {
    background: #fff;
    border: 1px solid var(--kf-rand);
    border-radius: 10px;
    margin: 0;
    padding: 12px 14px;
}

.nm-kf-zustimmung label {
    align-items: start;
    color: #4c5563;
    display: flex;
    font-size: 12.5px;
    gap: 9px;
    line-height: 1.5;
}

.nm-kf-zustimmung input { flex: 0 0 auto; margin-top: 2px; }

.nm-kf .nm-kf-zustimmung a { color: var(--kf-navy); font-weight: 700; }

.nm-kf-fuss {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
}

.nm-kf .nm-kf-senden {
    background: var(--kf-navy);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 30px;
    transition: background .18s ease;
}

.nm-kf .nm-kf-senden:hover { background: #0e1830; color: #fff; }

.nm-kf-fusstext { color: #7a828e; font-size: 13px; }
.nm-kf .nm-kf-fusstext a { color: var(--kf-navy); font-weight: 700; }

/* --- Rueckmeldung --- */
.nm-kf-meldung {
    border-left: 5px solid var(--kf-gold);
    border-radius: 11px;
    display: grid;
    gap: 3px;
    margin-bottom: 22px;
    padding: 15px 19px;
}

.nm-kf-ok { background: #f0f8f2; border-left-color: #2f9e5f; }
.nm-kf-fehler { background: #fff1f2; border-left-color: #b51625; }
.nm-kf-meldung strong { color: var(--kf-navy); font-size: 15px; }
.nm-kf-meldung span { color: #5b6472; font-size: 13.5px; line-height: 1.55; }

@media (max-width: 620px) {
    .nm-kf-reihe { grid-template-columns: 1fr; }
    .nm-kf-fuss { align-items: stretch; flex-direction: column; }
    .nm-kf .nm-kf-senden { width: 100%; }
    .nm-kf-fusstext { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .nm-kf .nm-kf-senden { transition: none; }
}


/* ==================================================================
   Kontaktseite komplett (ersetzt den alten Elementor-Aufbau)
   ================================================================== */

.nm-kf-seite {
    --kf-navy: #16233F;
    --kf-gold: #E0AC33;
    --kf-rand: #ECE3CE;
    --kf-creme: #FBF6E9;
    color: #2b3444;
    margin: 0 auto;
    max-width: 1060px;
}

.nm-kf-seite * { box-sizing: border-box; }

/* --- Einstieg --- */
.nm-kf-intro { margin-bottom: clamp(24px, 3vw, 34px); max-width: 720px; }

.nm-kf-seite .nm-kf-kicker {
    color: #9A7A2A;
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .07em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.nm-kf-seite h1 {
    color: var(--kf-navy) !important;
    font-size: clamp(30px, 4vw, 44px) !important;
    letter-spacing: -.01em;
    line-height: 1.1 !important;
    margin: 0 0 12px !important;
}

.nm-kf-intro p {
    color: #5b6472;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
}

/* --- Kontaktwege --- */
.nm-kf-wege {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-bottom: clamp(24px, 3vw, 34px);
}

.nm-kf-karte {
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--kf-rand);
    border-radius: 13px;
    display: flex;
    gap: 13px;
    padding: 18px 20px;
    text-decoration: none !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

a.nm-kf-karte:hover {
    border-color: var(--kf-gold);
    box-shadow: 0 10px 26px -14px rgba(12, 20, 38, .35);
    transform: translateY(-1px);
}

.nm-kf-karte-icon {
    align-items: center;
    background: var(--kf-creme);
    border-radius: 11px;
    color: var(--kf-navy);
    display: flex;
    flex: 0 0 auto;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.nm-kf-karte-icon svg { height: 21px; width: 21px; }
.nm-kf-karte-text { display: grid; gap: 3px; min-width: 0; }

.nm-kf-karte-titel {
    color: #8a919c;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.nm-kf-karte-wert {
    color: var(--kf-navy);
    font-size: 15.5px;
    overflow-wrap: anywhere;
}

.nm-kf-karte-zusatz { color: #6b7280; font-size: 13px; line-height: 1.5; }

/* --- Bewertungsblock ---
   Bewusst der auffaelligste Baustein der Seite: grosse Note, goldene
   Sterne, klare Handlungsaufforderung. Vorher standen die Siegel klein
   und ohne Zahlen in der Seitenleiste und luden zu nichts ein. */
.nm-kf-bewertung {
    align-items: center;
    background: linear-gradient(118deg, #16233F 0%, #1b2b4d 58%, #0e1830 100%);
    border-radius: 16px;
    color: #fff;
    display: grid;
    gap: clamp(18px, 3vw, 34px);
    grid-template-columns: auto 1fr;
    margin-bottom: clamp(26px, 3vw, 36px);
    padding: clamp(22px, 3vw, 32px);
}

.nm-kf-bw-note {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding-right: clamp(18px, 3vw, 34px);
    border-right: 1px solid rgba(255, 255, 255, .18);
}

.nm-kf-bw-zahl {
    font-size: clamp(44px, 6vw, 62px);
    font-weight: 800;
    line-height: 1;
}

.nm-kf-bw-sterne { color: var(--kf-gold); display: inline-flex; gap: 2px; }
.nm-kf-bw-sterne svg { height: 17px; width: 17px; }
.nm-kf-bw-von { color: rgba(255, 255, 255, .66); font-size: 12.5px; }

.nm-kf-seite .nm-kf-bw-text h2 {
    color: #fff !important;
    font-size: clamp(20px, 2.4vw, 26px) !important;
    margin: 0 0 8px !important;
}

.nm-kf-bw-text p {
    color: rgba(255, 255, 255, .82);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.nm-kf-bw-text strong { color: #fff; }

.nm-kf-bw-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }

.nm-kf-seite .nm-kf-bw-primaer,
.nm-kf-seite .nm-kf-bw-zweit {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 22px;
    text-decoration: none !important;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.nm-kf-seite .nm-kf-bw-primaer {
    background: var(--kf-gold);
    color: var(--kf-navy) !important;
}

.nm-kf-seite .nm-kf-bw-primaer:hover { background: #c8942a; }

.nm-kf-seite .nm-kf-bw-zweit {
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff !important;
}

.nm-kf-seite .nm-kf-bw-zweit:hover { background: rgba(255, 255, 255, .13); }

/* --- Abschluss --- */
.nm-kf-schluss {
    border-top: 1px solid var(--kf-rand);
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-top: clamp(26px, 3vw, 36px);
    padding-top: clamp(20px, 3vw, 28px);
}

.nm-kf-seite .nm-kf-schluss-block h3 {
    color: var(--kf-navy) !important;
    font-size: 14.5px !important;
    margin: 0 0 6px !important;
}

.nm-kf-schluss-block p {
    color: #6b7280;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
}

.nm-kf-seite .nm-kf-schluss-block a { color: var(--kf-navy); font-weight: 700; }

/* Das Formular sitzt jetzt in der Seite, nicht mehr freistehend. */
.nm-kf-seite .nm-kf { margin: 0; max-width: none; }

@media (max-width: 720px) {
    .nm-kf-bewertung { grid-template-columns: 1fr; }
    .nm-kf-bw-note {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .18);
        justify-items: start;
        padding: 0 0 16px;
    }
    .nm-kf-bw-knoepfe a { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .nm-kf-karte, .nm-kf-seite .nm-kf-bw-primaer, .nm-kf-seite .nm-kf-bw-zweit { transition: none; }
    a.nm-kf-karte:hover { transform: none; }
}
