/* Kontakt zwischen Seglerinnen (mu-plugins/005-kontakt.php).
 * Laedt nur auf dem Profil und auf der Seite "Nachricht schreiben".
 * Eigene Datei im Baustein, damit Knopf und Formular mit ihm an- und
 * abreisen. Farben und Masse aus den Tokens des Themes.
 * Klassen ss-nachricht-*, nicht ss-kontakt: die ist in seiten.css schon
 * fuer das Muster "Kontakt" vergeben. */

/* ─── Knopf im Profilkopf (Vorlage mitglied-profil: Hauptknopf) ─────── */
.um.um-profile .um-header .ss-nachricht-knopfzeile {
	clear: both;
	padding-top: 16px;
}
.um.um-profile .um-header a.ss-nachricht-knopf,
.ss-nachricht .ss-nachricht-senden {
	display: inline-flex;
	align-items: center;
	min-height: var(--ss-hit-min, 44px);
	padding: 12px 24px;
	border: 2px solid var(--ss-ocean-deep);
	border-radius: 4px;
	background: var(--ss-ocean-deep);
	color: #fff !important;
	font-family: var(--ss-font-brand);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-sizing: border-box;
	cursor: pointer;
}
.um.um-profile .um-header a.ss-nachricht-knopf:hover,
.ss-nachricht .ss-nachricht-senden:hover {
	background: var(--ss-navy);
	border-color: var(--ss-navy);
}
/* !important, weil Ultimate Member mit .um:not(.um-admin) a:focus
 * { outline: 0 !important } jeden Fokusrahmen im Profil abschaltet. */
.um.um-profile .um-header a.ss-nachricht-knopf:focus-visible,
.ss-nachricht .ss-nachricht-senden:focus-visible,
.ss-nachricht a:focus-visible,
.ss-nachricht textarea:focus-visible {
	outline: 2px solid var(--ss-ocean-deep) !important;
	outline-offset: 2px !important;
}

/* ─── Seite "Nachricht schreiben" (Vorlage formularseite, 528px) ────── */
/* Feld und Hinweis nach den Komponenten Feld und Hinweis des Design
 * Systems, dieselben Werte wie .ss-brett-feld und .ss-brett-hinweis. */
.ss-nachricht {
	margin-block-start: 8px;
}
.ss-nachricht-formular {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.ss-nachricht-feld {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 480px;
	min-width: 0;
	font-family: var(--ss-font-brand);
}
.ss-nachricht-feld > label {
	font-size: 15px;
	font-weight: 600;
	color: var(--ss-navy);
}
.ss-nachricht-feld > label span {
	font-weight: 400;
	color: var(--ss-navy-600);
}
.ss-nachricht-feld__hinweis {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ss-navy-600);
}
.ss-nachricht-feld__fehler {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--ss-status-error);
}
.ss-nachricht textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 160px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--ss-navy-200);
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
	color: var(--ss-navy);
	font-family: var(--ss-font-brand);
	font-size: 17px;
	line-height: 1.4;
	resize: vertical;
}
.ss-nachricht textarea[aria-invalid="true"] {
	border-color: var(--ss-status-error);
}
.ss-nachricht-aktionen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}
.ss-nachricht-link {
	display: inline-flex;
	align-items: center;
	min-height: var(--ss-hit-min, 44px);
	font-family: var(--ss-font-brand);
	font-size: 17px;
	font-weight: 600;
	color: var(--ss-ocean-deep);
	text-decoration: none;
}
.ss-nachricht-link:hover {
	color: var(--ss-navy);
}
.ss-nachricht-satz {
	font-family: var(--ss-font-read);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ss-navy);
}
/* Hinweis-Kasten (Komponente Hinweis, Art fehler) */
.ss-nachricht-kasten {
	max-width: 560px;
	box-sizing: border-box;
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 1px solid var(--ss-navy-200);
	border-radius: 4px;
	background: #fff;
	font-family: var(--ss-font-brand);
}
.ss-nachricht-kasten--fehler {
	border-color: var(--ss-status-error);
}
.ss-nachricht-kasten p {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}
.ss-nachricht-kasten__titel {
	font-weight: 600;
	color: var(--ss-status-error);
}
.ss-nachricht-kasten__text {
	margin-top: 4px !important;
	color: var(--ss-navy-600);
}

/* Hinweis-Kasten, Art info (Komponente Hinweis): einmaliger Hinweis auf
 * der Seite Community. Titel in der Farbe fuer Hinweise, Rand grau. */
.ss-nachricht-kasten--info .ss-nachricht-kasten__titel {
	color: var(--ss-status-info);
}
.ss-nachricht-kasten a:focus-visible {
	outline: 2px solid var(--ss-ocean-deep) !important;
	outline-offset: 2px !important;
}

/* Links im Fliesstext des Hinweises (Datenschutz, Nutzungsordnung) */
.ss-nachricht-link-inline {
	color: var(--ss-ocean-deep);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.ss-nachricht-link-inline:hover {
	color: var(--ss-navy);
}
.ss-nachricht-link-inline:focus-visible {
	outline: 2px solid var(--ss-ocean-deep) !important;
	outline-offset: 2px !important;
}

/* Betonter Hinweis auf der Seite Community (Design System, README "Betonter
 * Hinweis", Stand 23.10.2026): Kopf in Ocean mit weissem Titel, Rumpf auf
 * Navy-100. Ab 1024px Text links, Haekchen und Knopf rechts hinter einer
 * Linie. Kein Banner, nichts Fixiertes. */
.ss-community-hinweis {
	margin: 32px 0 0;
	border-radius: 8px;
	overflow: hidden;
	background: var(--ss-navy-100);
	font-family: var(--ss-font-brand);
}
.ss-uebersicht > .ss-community-hinweis {
	margin-block: 32px 0;
}
.ss-uebersicht > .ss-community-hinweis + * {
	margin-block-start: 48px;
}
.ss-community-hinweis__kopf {
	padding: 16px 24px;
	background: var(--ss-ocean);
}
.ss-community-hinweis__kopf h2 {
	margin: 0;
	font-family: var(--ss-font-brand);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
}
.ss-community-hinweis__rumpf {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px 48px;
	align-items: start;
	padding: 24px;
}
.ss-community-hinweis__text p {
	max-width: 68ch;
	margin: 0;
	font-size: 17px;
	line-height: 1.5;
	color: var(--ss-navy);
}
.ss-community-hinweis__text p + p {
	margin-top: 12px;
}
.ss-community-hinweis__formular {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: flex-start;
	margin: 0;
}
.ss-community-hinweis__knopf {
	display: inline-flex;
	align-items: center;
	min-height: var(--ss-hit-min, 44px);
	padding: 12px 24px;
	border: 2px solid var(--ss-ocean-deep);
	border-radius: 4px;
	background: var(--ss-ocean-deep);
	color: #fff;
	font-family: var(--ss-font-brand);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
.ss-community-hinweis__knopf:hover {
	background: var(--ss-navy);
	border-color: var(--ss-navy);
}
.ss-community-hinweis__knopf:focus-visible {
	outline: 2px solid var(--ss-ocean-deep) !important;
	outline-offset: 2px !important;
}
@media (min-width: 1024px) {
	.ss-community-hinweis__rumpf {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	}
	.ss-community-hinweis__formular {
		padding-left: 48px;
		border-left: 1px solid var(--ss-navy-200);
	}
}
@media (max-width: 767px) {
	.ss-community-hinweis__kopf {
		padding: 16px 20px;
	}
	.ss-community-hinweis__rumpf {
		padding: 20px;
	}
}

/* Pflicht-Haekchen zur Nutzungsordnung, wie .ss-brett-haekchen (Formularseiten). */
.ss-nachricht-haekchen {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ss-nachricht-haekchen > label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: var(--ss-hit-min, 44px);
	font-family: var(--ss-font-brand);
	font-size: 17px;
	line-height: 1.5;
	color: var(--ss-navy);
	cursor: pointer;
}
.ss-nachricht-haekchen input {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	display: grid;
	place-content: center;
	width: 24px;
	height: 24px;
	margin: 1px 0 0;
	border: 2px solid var(--ss-navy-600);
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
}
.ss-nachricht-haekchen input::before {
	content: "";
	width: 12px;
	height: 7px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: translateY(-2px) rotate(-45deg) scale(0);
}
.ss-nachricht-haekchen input:checked {
	background: var(--ss-ocean-deep);
	border-color: var(--ss-ocean-deep);
}
.ss-nachricht-haekchen input:checked::before {
	transform: translateY(-2px) rotate(-45deg) scale(1);
}
.ss-nachricht-haekchen input[aria-invalid="true"] {
	border-color: var(--ss-status-error);
	outline: 2px solid var(--ss-status-error);
	outline-offset: 2px;
}
/* Hinweis und Fehler stehen unter dem Text, nicht unter dem Kaestchen */
.ss-community-hinweis .ss-nachricht-feld__hinweis,
.ss-community-hinweis .ss-nachricht-feld__fehler {
	padding-left: 36px;
}
.ss-nachricht-haekchen input:focus-visible {
	outline: 2px solid var(--ss-ocean-deep) !important;
	outline-offset: 2px !important;
}
.ss-nachricht-haekchen a {
	color: var(--ss-ocean-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ss-nachricht-pflicht {
	font-weight: 400;
	color: var(--ss-navy-600);
}

/* Registrierung: die Haekchen gestaltet assets/css/community.css im Theme (.ss-reg-haekchen). */
