/* ==========================================================================
   NEWME – Formulare: [nm_form id="karte"] (dunkle Kontakt-Sektion, Figma 271:675 / 273:892)
   und [nm_form id="kontakt"] (weiße Karte „Ihre Anfrage“, Kontakt-Seite 277:533).
   ========================================================================== */

.nm-hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.nm-form { display: flex; flex-direction: column; gap: 10px; font-family: var(--nm-font); margin: 0; }
.nm-form__grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.nm-field { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; border: 0; }
.nm-input { width: 100%; height: 50px; margin: 0; padding: 0 16px; border-radius: 12px; border: 1px solid var(--nm-line-dark); background: var(--nm-card-dark); color: #fff; font-family: var(--nm-font); font-size: 14px; line-height: 20px; outline: none; box-shadow: none; transition: border-color .15s, background-color .15s; -webkit-appearance: none; appearance: none; }
.nm-input::placeholder { color: var(--nm-note); opacity: 1; white-space: pre; }
.nm-input:focus { border-color: var(--nm-gold-light); }
.nm-textarea { height: 96px; padding-top: 14px; padding-bottom: 14px; resize: none; min-height: 96px; } /* Figma: ohne Größen-Anfasser */
/* Select: Figma zeigt den Pfeil als Textzeichen „⌄“ (fonts.css: Noto-Untergruppe) – mobil und auf der Kontakt-Seite direkt hinter dem
   Text („Bitte auswählen  ⌄“, gleiche Farbe), in der dunklen Karte am Desktop gold rechtsbündig. In Chromium (customizable select) als
   ::picker-icon, sonst (Safari/Firefox, native Liste) als SVG rechts. */
.nm-select { padding-right: 44px; cursor: pointer; color: var(--nm-note); background-image: var(--nm-sel-chev); background-repeat: no-repeat; background-position: right 18px center; --nm-sel-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c9a45c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.nm-select.has-value, .nm-select:focus { color: #fff; }
@media (max-width: 767.98px) { .nm-ccard .nm-select.has-value { color: var(--nm-note); } } /* Figma mobil: gewählter Wert grau */
.nm-select option { color: var(--nm-text); background: #fff; }
.nm-select optgroup { color: var(--nm-gold-dark); background: #fff; font-style: normal; }
@supports (appearance: base-select) {
	.nm-select, .nm-select::picker(select) { appearance: base-select; }
	.nm-select { display: flex; align-items: center; padding-right: 16px; background-image: none; }
	.nm-select::picker-icon { content: "\00a0\00a0\2304"; white-space: pre; display: block; flex: none; margin: 0; color: inherit; font: inherit; line-height: 20px; transition: none; rotate: none; }
	.nm-select:open::picker-icon { rotate: none; }
	.nm-select::picker(select) { margin-top: 10px; padding: 6px 0; border: 1px solid rgba(201, 164, 92, .5); border-radius: 16px; background: #15120f; box-shadow: 0 20px 40px rgba(0, 0, 0, .55); }
	.nm-select option { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 8px 18px; font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .78); background: transparent; }
	.nm-select option::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5e4a1e; flex: none; }
	.nm-select option::checkmark { display: none; }
	.nm-select option:hover, .nm-select option:focus-visible { background: rgba(201, 164, 92, .08); color: #fff; outline: none; }
	.nm-select option:checked { background: rgba(201, 164, 92, .14); color: var(--nm-gold-light); font-weight: 600; }
	.nm-select option:checked::before { background: var(--nm-grad-135); }
	.nm-select option[value=""] { display: none; }
	/* Gruppenüberschriften (optgroup): kleine goldene Versal-Zeile, auch im dunklen Picker lesbar */
	.nm-select optgroup { display: block; padding: 0; background: transparent; color: var(--nm-gold-soft); font-weight: 600; }
	.nm-select optgroup > legend { display: block; padding: 12px 18px 4px; font-size: 10.5px; line-height: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--nm-gold-soft); }
	.nm-select optgroup + optgroup { margin-top: 4px; border-top: 1px solid rgba(201, 164, 92, .18); }
}
.nm-flag { display: none; }
.nm-form__submit { margin-top: 0; min-height: 50px; padding: 15px 22px; font-size: 14.5px; line-height: 20px; }
.nm-form__submit .nm-arrow { margin-left: 2px; }
.nm-form__note { margin: 0; text-align: center; font-size: 11px; line-height: 16px; color: var(--nm-note); }
.nm-form__note a { color: inherit; text-decoration: none; }
.nm-form__note a:hover { color: var(--nm-gold-light); }
.nm-form__status { margin: 0; font-size: 13px; line-height: 19px; color: #ff9a9e; text-align: center; }
.nm-form__status:empty { display: none; }
.nm-field.is-error .nm-input { border-color: #e5484d; }
.nm-field__err { margin: 6px 2px 0; font-size: 12px; line-height: 16px; color: #ff9a9e; }

/* ---------------------------------------------------------------- Kontakt-Sektion mit dunkler Karte */
.nm-contact { background: #fff; padding: 56px 0; font-family: var(--nm-font); }
.nm-ccard { position: relative; display: flex; flex-direction: column; gap: 16px; background: var(--nm-ink); color: #fff; border-radius: 20px; padding: 28px 20px 24px; }
.nm-ccard__info { display: flex; flex-direction: column; gap: 16px; }
.nm-ccard__icon, .nm-ccard__lines, .nm-ccard__divider { display: none !important; }
.nm-ccard__eyebrow { margin: 0; font-weight: 600; font-size: 11px; line-height: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--nm-gold-soft); }
.nm-ccard__title { margin: 0; font-weight: 600; font-size: 23px; line-height: 30px; letter-spacing: -.2px; color: #fff; }
.nm-ccard__text { margin: 0; font-size: 14px; line-height: 22px; color: var(--nm-on-dark); }
.nm-ccard .nm-form { margin-top: 0; }
@media (min-width: 768px) {
	.nm-contact { padding: 90px 0 110px; }
	.nm-ccard { flex-direction: row; align-items: stretch; gap: clamp(28px, 4vw, 48px); padding: 52px clamp(28px, 4.2vw, 60px); border-radius: 40px; background: linear-gradient(90deg, #0b0a0a 0%, #1a1617 100%); border: 1.5px solid rgba(240, 217, 166, .9); box-shadow: 0 24px 48px rgba(0, 0, 0, .25); }
	.nm-ccard__info { flex: 0 0 clamp(262px, 26vw, 340px); gap: 18px; }
	.nm-ccard__icon { display: inline-flex !important; margin-bottom: 0; }
	.nm-ccard__eyebrow { font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: .18em; color: var(--nm-gold); }
	.nm-ccard__title { font-size: 26px; line-height: 34px; letter-spacing: -.3px; } /* Figma 26/34 (Startseite, Haar: 32/38 → Seiten-CSS) */
	.nm-ccard__text { max-width: 300px; color: #9a9a9a; }
	.nm-ccard__lines { display: flex !important; flex-direction: column; gap: 14px; list-style: none; margin: 0; padding: 0; }
	.nm-ccard__line { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
	.nm-ccard__line .nm-ic { width: 18px; height: 18px; }
	.nm-ccard__lv { display: flex; flex-direction: column; }
	.nm-ccard__label { font-weight: 500; font-size: 10.5px; line-height: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--nm-gold); }
	.nm-ccard__value { font-weight: 600; font-size: 14px; line-height: 20px; color: #fff; white-space: nowrap; }
	.nm-ccard__line:hover .nm-ccard__value { color: var(--nm-gold-light); }
	.nm-ccard__divider { display: block !important; flex: 0 0 1px; background: linear-gradient(180deg, rgba(201, 164, 92, 0) 0%, rgba(201, 164, 92, .6) 50%, rgba(201, 164, 92, 0) 100%); }
	.nm-ccard .nm-form { flex: 1 1 0; min-width: 0; gap: 14px; justify-content: center; }
	.nm-form--karte .nm-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.nm-form--karte .nm-field--full { grid-column: 1 / -1; }
	.nm-form--karte .nm-input { border-radius: 14px; border-color: rgba(201, 164, 92, .28); background: #1b1816; font-size: 13.5px; padding: 0 18px; }
	.nm-form--karte .nm-input::placeholder { color: #8e8788; }
	.nm-form--karte .nm-input:focus { border-color: var(--nm-gold-light); border-width: 1.2px; }
	.nm-form--karte .nm-textarea { padding-top: 14px; }
	.nm-form--karte .nm-select { color: #8e8788; padding-right: 44px; }
	.nm-form--karte .nm-select.has-value, .nm-form--karte .nm-select:focus { color: #fff; }
	/* „Wunschbehandlung“: Verlaufsrand 1,2 px wie Figma (#f0d9a6 → #c9a45c, 135°); background-Kurzform würde sonst den Pfeil löschen */
	.nm-form--karte:not(.nm-form--haaranalyse) .nm-select { border: 1.2px solid transparent; background: var(--nm-sel-chev) no-repeat right 18px center padding-box, linear-gradient(#1b1816, #1b1816) padding-box, var(--nm-grad) border-box; }
	.nm-form--karte .nm-select { background-image: var(--nm-sel-chev); background-repeat: no-repeat; background-position: right 18px center; }
	.nm-form--karte .nm-flag { display: block; position: absolute; left: 18px; top: 18.5px; width: 20px; height: 13px; border-radius: 2px; background: linear-gradient(180deg, #000 0 33.33%, #de0000 33.33% 66.66%, #ffcc00 66.66%); z-index: 1; pointer-events: none; }
	.nm-form--karte .nm-field--tel .nm-input { padding-left: 48px; }
	.nm-form--karte .nm-form__submit { min-height: 48px; padding: 14px; font-size: 15px; line-height: 18px; color: var(--nm-ink-2); background: var(--nm-grad); }
	.nm-form--karte .nm-form__submit .nm-arrow { font-weight: 600; font-size: 16px; color: var(--nm-ink); }
	.nm-form--karte .nm-form__note { font-size: 11px; line-height: 15px; color: #8e8788; }
}

/* ---------------------------------------------------------------- Kontakt-Seite: weiße Karte „Ihre Anfrage“ */
.nm-fcard { background: #fff; color: var(--nm-text); font-family: var(--nm-font); }
.nm-fcard__title { display: none; margin: 0 0 18px; font-weight: 600; font-size: 26px; line-height: 34px; color: var(--nm-text); }
.nm-form--kontakt { gap: 16px; }
.nm-form--kontakt .nm-form__row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.nm-label { display: block; margin: 0 0 7px; padding: 0; font-weight: 500; font-size: 13px; line-height: 18px; color: var(--nm-text); }
.nm-form--kontakt .nm-input { height: 52px; border-color: var(--nm-line); background: #faf8f4; color: var(--nm-text); font-size: 14.5px; line-height: 22px; }
.nm-form--kontakt .nm-input::placeholder { color: #9a948c; }
.nm-form--kontakt .nm-input:focus { border-color: var(--nm-gold); background: #fff; }
.nm-form--kontakt .nm-textarea { height: 104px; min-height: 104px; }
.nm-form--kontakt .nm-select { color: #9a948c; background-image: var(--nm-sel-chev); background-repeat: no-repeat; background-position: right 18px center; }
@supports (appearance: base-select) { .nm-form--kontakt .nm-select { background-image: none; } }
.nm-form--kontakt .nm-select.has-value { color: var(--nm-text); }
@supports (appearance: base-select) {
	.nm-form--kontakt .nm-select::picker(select) { background: #fff; border-color: var(--nm-line); box-shadow: 0 20px 40px rgba(0, 0, 0, .12); }
	.nm-form--kontakt .nm-select option { color: var(--nm-text); }
	.nm-form--kontakt .nm-select optgroup, .nm-form--kontakt .nm-select optgroup > legend { color: var(--nm-gold-dark); }
	.nm-form--kontakt .nm-select optgroup + optgroup { border-top-color: var(--nm-line); }
	.nm-form--kontakt .nm-select option:checked { color: var(--nm-gold-dark); }
	.nm-form--kontakt .nm-select option:hover { color: var(--nm-text); background: var(--nm-beige); }
}
.nm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.nm-chip { position: relative; display: inline-flex; cursor: pointer; }
.nm-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nm-chip span { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; background: #faf8f4; box-shadow: inset 0 0 0 1px var(--nm-line); font-weight: 500; font-size: 13.5px; line-height: 18px; color: var(--nm-text); transition: background-color .15s, color .15s; }
.nm-chip input:checked + span { background: var(--nm-ink); color: #fff; font-weight: 600; box-shadow: none; }
.nm-chip input:focus-visible + span { outline: 2px solid var(--nm-gold); outline-offset: 2px; }
.nm-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 12.5px; line-height: 19px; color: var(--nm-body); }
.nm-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nm-check__box { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px #b9b0a2; display: inline-flex; align-items: center; justify-content: center; }
.nm-check input:checked + .nm-check__box { background: var(--nm-ink); box-shadow: none; }
.nm-check input:checked + .nm-check__box::after { content: ""; width: 9px; height: 5px; border: solid var(--nm-gold-light); border-width: 0 0 1.6px 1.6px; transform: translate(0, -1px) rotate(-45deg); }
.nm-check input:focus-visible + .nm-check__box { outline: 2px solid var(--nm-gold); outline-offset: 2px; }
.nm-check a { color: inherit; text-decoration: none; } /* Figma: Link ohne Unterstreichung, gleiche Farbe */
.nm-check a:hover { color: var(--nm-gold-dark); }
.nm-form--kontakt .nm-form__submit { min-height: 56px; padding: 17px 30px; font-size: 15.5px; line-height: 22px; background: var(--nm-grad-h); color: var(--nm-text); }
.nm-form--kontakt .nm-form__note { font-size: 12.5px; line-height: 18px; color: var(--nm-note); }
.nm-form--kontakt .nm-form__status, .nm-form--kontakt .nm-field__err { color: #c4373c; }
@media (min-width: 768px) {
	.nm-fcard { border-radius: 24px; padding: 40px 40px 36px; }
	.nm-fcard__title { display: block; }
	.nm-form--kontakt { gap: 18px; }
	.nm-form--kontakt .nm-form__row { grid-template-columns: 1fr 1fr; }
	.nm-form--kontakt .nm-textarea { height: 120px; min-height: 120px; }
}

/* Chromium (customizable select): Pfeil in der dunklen Karte am Desktop gold, 500 18 px, rechtsbündig (Figma x = Feldrand − 19) */
@supports (appearance: base-select) {
	@media (min-width: 768px) {
		.nm-form--karte .nm-select, .nm-form--karte:not(.nm-form--haaranalyse) .nm-select { padding-right: 18px; background-image: none; }
		.nm-form--karte:not(.nm-form--haaranalyse) .nm-select { background: linear-gradient(#1b1816, #1b1816) padding-box, var(--nm-grad) border-box; }
		.nm-form--karte .nm-select::picker-icon { content: "\2304"; margin-left: auto; padding-left: 12px; color: #c9a45c; font-weight: 500; font-size: 18px; line-height: 27px; }
	}
}

/* ---------------------------------------------------------------- [nm_form id="haaranalyse"] (Haar-Hub, Figma 244:900 / 258:417)
   Baut auf .nm-form--karte auf; die dunkle Karte mit Infospalte steht im Seiten-HTML. */
.nm-upload { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 97px; padding: 18px 16px; border: 1px dashed #6b5a36; border-radius: 12px; text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.nm-upload__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.nm-upload__input:focus-visible { opacity: 0; }
.nm-upload:has(.nm-upload__input:focus-visible) { outline: 2px solid var(--nm-gold-light); outline-offset: 2px; }
.nm-upload:hover, .nm-field--fotos.has-files .nm-upload { border-color: var(--nm-gold); }
.nm-upload__title { font-weight: 600; font-size: 13.5px; line-height: 20px; color: #fff; }
.nm-upload__hint { font-size: 11.5px; line-height: 16px; color: var(--nm-note); }
.nm-upload__list { font-size: 12px; line-height: 17px; color: var(--nm-gold-light); overflow-wrap: anywhere; }
.nm-upload__list:empty { display: none; }
.nm-field--fotos.is-error .nm-upload { border-color: #e5484d; }
@media (min-width: 768px) {
	.nm-form--haaranalyse .nm-input { height: 52px; padding: 0 18px; }
	.nm-form--haaranalyse .nm-input::placeholder, .nm-form--haaranalyse .nm-select { color: rgba(255, 255, 255, .55); }
	.nm-form--haaranalyse .nm-select.has-value, .nm-form--haaranalyse .nm-select:focus { color: #fff; }
	.nm-form--haaranalyse .nm-select::picker-icon { line-height: 18px; }
	.nm-upload { min-height: 149px; gap: 8px; padding: 26px 18px; border-radius: 16px; border-color: rgba(201, 164, 92, .6); background: rgba(201, 164, 92, .06); }
	.nm-upload__icon.nm-icircle--44 .nm-ic { width: 24px; height: 24px; }
	.nm-upload__title { font-size: 14px; line-height: 19px; }
	.nm-upload__hint { font-size: 12px; color: rgba(255, 255, 255, .5); }
	.nm-form--haaranalyse .nm-form__submit { min-height: 50px; padding: 16px; border-radius: 30px; box-shadow: 0 10px 24px rgba(201, 164, 92, .35); }
	.nm-form--haaranalyse .nm-form__note { color: rgba(255, 255, 255, .45); }
}

/* Tablet (768–1099): Formular der Kontakt-Karte einspaltig – zwei Spalten wären ~150 px schmal (Platzhalter/Pfeil abgeschnitten) */
@media (min-width: 768px) and (max-width: 1099.98px) {
	.nm-ccard .nm-form--karte .nm-form__grid { grid-template-columns: minmax(0, 1fr); }
}
