/*
 * Kontaktfenster. Bewusst zurückhaltend gestaltet und an den Farben der
 * Seite orientiert, damit es sich nicht wie ein fremdes Plugin anfühlt.
 */

.dz2g-kontakt {
	border: 0;
	padding: 0;
	background: transparent;
	max-width: 520px;
	width: calc(100% - 32px);
	max-height: calc(100vh - 48px);
	/* Explizit, weil manche Themes eigene dialog-Regeln mitbringen. */
	margin: auto;
}

/*
 * display-Angaben weiter unten schlagen das [hidden] des Browsers.
 * Ohne diese beiden Zeilen stehen Kanalauswahl und Formular gleichzeitig da.
 */
.dz2g-kontakt [hidden] {
	display: none !important;
}

.dz2g-kontakt::backdrop {
	background: rgba(20, 18, 16, 0.6);
	backdrop-filter: blur(3px);
}

.dz2g-kontakt__box {
	position: relative;
	overflow-y: auto;
	max-height: calc(100vh - 48px);
	background: #faf9f6;
	color: #191714;
	border-radius: 20px;
	padding: 36px 32px 32px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
	font-family: inherit;
}

.dz2g-kontakt__zu {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.06);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
}

.dz2g-kontakt__zu:hover {
	background: rgba(0, 0, 0, 0.12);
}

.dz2g-kontakt h2 {
	margin: 0 0 8px;
	font-size: 1.5rem;
	line-height: 1.2;
}

.dz2g-kontakt__lead {
	margin: 0 0 24px;
	opacity: 0.7;
	font-size: 0.95rem;
}

/* --------------------------------------------------------------- Kanäle */

.dz2g-kontakt__kanaele {
	display: grid;
	gap: 10px;
}

.dz2g-kanal {
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: 100%;
	text-align: left;
	padding: 16px 18px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	font: inherit;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.dz2g-kanal:hover {
	border-color: rgba(0, 0, 0, 0.35);
	transform: translateY(-1px);
}

.dz2g-kanal__titel {
	font-weight: 600;
}

.dz2g-kanal__note {
	font-size: 0.85rem;
	opacity: 0.65;
}

/* -------------------------------------------------------------- Formular */

.dz2g-kontakt__form {
	display: grid;
	gap: 14px;
}

.dz2g-kontakt__form label {
	display: grid;
	gap: 6px;
	font-size: 0.9rem;
	font-weight: 600;
}

.dz2g-kontakt__form input,
.dz2g-kontakt__form textarea {
	font: inherit;
	font-weight: 400;
	padding: 11px 13px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 10px;
	background: #fff;
	color: inherit;
	width: 100%;
	box-sizing: border-box;
}

.dz2g-kontakt__form input:focus,
.dz2g-kontakt__form textarea:focus {
	outline: 2px solid #909986;
	outline-offset: 1px;
}

/* Honigtopf: für Menschen unsichtbar, für Bots ein verlockendes Feld. */
.dz2g-kontakt__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.dz2g-kontakt__hinweis {
	margin: 0;
	font-size: 0.8rem;
	opacity: 0.65;
}

.dz2g-kontakt__senden {
	font: inherit;
	font-weight: 600;
	padding: 13px 20px;
	border: 0;
	border-radius: 999px;
	background: #191714;
	color: #fff;
	cursor: pointer;
}

.dz2g-kontakt__senden:disabled {
	opacity: 0.55;
	cursor: default;
}

.dz2g-kontakt__status {
	margin: 0;
	font-size: 0.9rem;
	min-height: 1.2em;
}

.dz2g-kontakt__status.is-ok {
	color: #2f6b3f;
}

.dz2g-kontakt__status.is-fehler {
	color: #a3382f;
}

@media (max-width: 480px) {
	.dz2g-kontakt__box {
		padding: 30px 20px 24px;
	}
}
