/* Fenster „Nachricht per Mail“ und die Knöpfe, die es öffnen (Kopf, Kontakt, Fuß). */

.nachricht {
	width: min(560px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	max-height: calc(100dvh - 24px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--papier-hell);
	color: var(--anthrazit);
	box-shadow: 0 24px 64px rgba(28, 27, 26, 0.35);
	overflow: auto;
	overscroll-behavior: contain;
}

.nachricht::backdrop {
	background: rgba(28, 27, 26, 0.55);
}

.nachricht[open] {
	animation: nachricht-auf 0.45s var(--weich);
}

@keyframes nachricht-auf {
	from {
		opacity: 0;
		transform: translateY(32px) scale(0.98);
	}
}

.nachricht__formular {
	display: grid;
	gap: 14px;
	padding: clamp(20px, 4vw, 32px);
}

.nachricht__kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.nachricht__titel {
	margin: 0;
	color: var(--wein);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.nachricht__schliessen {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--anthrazit);
	cursor: pointer;
}

.nachricht__schliessen:hover {
	background: rgba(44, 43, 42, 0.08);
}

.nachricht__schliessen svg {
	width: 20px;
	height: 20px;
}

.nachricht__einleitung,
.nachricht__telefon {
	margin: 0;
	color: var(--text-leise);
}

.feld {
	display: grid;
	gap: 6px;
}

.feld__name {
	font-size: 0.95rem;
	font-weight: 600;
}

.feld__name--klein {
	font-size: 0.88rem;
	font-weight: 500;
}

.feld__zusatz {
	color: var(--text-leise);
	font-weight: 400;
}

/* Anschrift (freiwillig): Straße über PLZ und Ort; PLZ schmal, Ort breit, auf dem Handy auch nebeneinander */
.anschrift {
	display: grid;
	gap: 10px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.anschrift legend {
	margin-bottom: 6px;
	padding: 0;
}

.anschrift__zeile {
	display: grid;
	grid-template-columns: minmax(5.5em, 1fr) 3fr;
	gap: 10px;
}

.feld__eingabe {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #bdb5a8;
	border-radius: 6px;
	background: var(--weiss);
	color: inherit;
	font: inherit;
	font-size: 1rem;
}

.feld__eingabe:focus {
	border-color: var(--wein);
	outline: 2px solid var(--wein);
	outline-offset: 1px;
}

textarea.feld__eingabe {
	min-height: 8.5em;
	resize: vertical;
}

.nachricht__falle {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.nachricht__datenschutz {
	margin: 0;
	padding: 12px 14px;
	border-left: 3px solid var(--gold);
	background: rgba(201, 154, 34, 0.08);
	color: var(--text-leise);
	font-size: 0.88rem;
	line-height: 1.55;
}

.nachricht__datenschutz a {
	color: var(--wein);
}

.nachricht__fuss {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.nachricht__fuss .knopf {
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.nachricht__fuss .knopf[disabled] {
	opacity: 0.65;
	cursor: progress;
	transform: none;
}

.nachricht__meldung {
	flex: 1 1 100%;
	margin: 0;
}

.nachricht__meldung:empty {
	display: none;
}

.nachricht__meldung--gut {
	color: #2f6b3a;
	font-weight: 600;
}

.nachricht__meldung--fehler {
	padding: 10px 12px;
	border-radius: 6px;
	background: #fbecea;
	color: #9b2318;
	font-weight: 600;
}

/* Nach dem Senden: nur Dank und „Schließen“ */
.nachricht__fertig,
.nachricht--gesendet .feld,
.nachricht--gesendet .anschrift,
.nachricht--gesendet .nachricht__einleitung,
.nachricht--gesendet .nachricht__datenschutz,
.nachricht--gesendet [data-nachricht-senden] {
	display: none;
}

.nachricht--gesendet .nachricht__fertig {
	display: inline-flex;
}

.kontakt .nachricht__meldung {
	margin-top: 16px;
}
