/* Presseportal – Frontend-Formular */

.wrt-frontend-form {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 1.5rem auto;
	padding: clamp(1rem, 3vw, 1.75rem);
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	background: #fafbfc;
}

.wrt-frontend-form *,
.wrt-frontend-form *::before,
.wrt-frontend-form *::after {
	box-sizing: border-box;
}

.wrt-frontend-form__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-bottom: 1rem;
}

.wrt-frontend-form__title {
	margin: 0;
	font-size: clamp(1.15rem, 2.5vw, 1.35rem);
}

.wrt-frontend-form__author {
	text-align: right;
	font-size: 0.85rem;
	color: #5f6b7a;
	white-space: nowrap;
}

.wrt-frontend-form__author-label {
	display: block;
}

.wrt-frontend-form__author-name {
	display: block;
	font-weight: 700;
	font-size: 1rem;
	color: #1f4e79;
}

.wrt-frontend-form__logout {
	display: inline-block;
	margin-top: 0.3rem;
	font-size: 0.82rem;
	color: #5f6b7a;
	text-decoration: underline;
}

.wrt-frontend-form__logout:hover {
	color: #c62828;
}

.wrt-frontend-form__notice {
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	border-radius: 4px;
	font-size: 0.95rem;
}

.wrt-frontend-form__notice--ok {
	background: #e8f5e9;
	border-left: 3px solid #2e7d32;
	color: #1b5e20;
}

.wrt-frontend-form__notice--err {
	background: #fdecea;
	border-left: 3px solid #c62828;
	color: #b71c1c;
}

.wrt-frontend-form__notice--info {
	background: #eef4fb;
	border-left: 3px solid #0060a0;
	color: #10395c;
}

.wrt-frontend-form__notice ul {
	margin: 0.4rem 0 0 1.1rem;
	padding: 0;
}

/* Bereits hochgeladene Bilder/Dokumente im Bearbeiten-Modus */

.wrt-attachment-list {
	margin: 0 0 0.9rem;
	padding: 0;
	list-style: none;
}

.wrt-attachment-list > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	padding: 0.45rem 0;
	border-bottom: 1px solid #e4e8ee;
	font-size: 0.9rem;
}

.wrt-attachment-list__meta {
	color: #5f6b7a;
	font-size: 0.82rem;
}

.wrt-attachment-list__delete {
	margin-left: auto;
	color: #b71c1c;
	font-size: 0.82rem;
	white-space: nowrap;
}

.wrt-attachment-list--images {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.wrt-attachment-list--images > li {
	display: block;
	width: 110px;
	border-bottom: 0;
	text-align: center;
}

.wrt-attachment-list--images img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #d0d5dd;
	border-radius: 4px;
}

.wrt-attachment-list--images .wrt-attachment-list__delete {
	margin: 0.25rem 0 0;
}

.wrt-field {
	margin: 0 0 1rem;
}

.wrt-field-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1rem;
}

.wrt-field--half {
	flex: 1 1 220px;
	min-width: 0;
}

.wrt-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.wrt-field .required {
	color: #c62828;
}

.wrt-field input[type="text"],
.wrt-field input[type="email"],
.wrt-field select,
.wrt-field textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid #c5cad3;
	border-radius: 4px;
	font: inherit;
	background: #fff;
}

.wrt-field select:disabled {
	background: #f0f1f3;
	color: #8a93a1;
}

.wrt-field textarea {
	resize: vertical;
	min-height: 10rem;
}

.wrt-field__hint {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.85rem;
	color: #5f6b7a;
}

.wrt-fieldset {
	padding: 1rem;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
}

.wrt-fieldset legend {
	padding: 0 0.4rem;
	font-weight: 700;
}

.wrt-image-credit-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.wrt-image-credit-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	padding: 0.4rem 0.6rem;
	background: #fff;
	border: 1px solid #e2e5ea;
	border-radius: 4px;
}

.wrt-image-credit-row__name {
	flex: 1 1 160px;
	min-width: 0;
	font-size: 0.85rem;
	color: #33475b;
	overflow-wrap: anywhere;
}

.wrt-image-credit-row input[type="text"] {
	flex: 2 1 220px;
	width: auto;
	padding: 0.4rem 0.6rem;
}

.wrt-image-credit-list__hint {
	margin-top: 0.5rem;
}

.wrt-image-persons {
	flex: 1 1 100%;
	margin-top: 0.35rem;
	padding-top: 0.5rem;
	border-top: 1px dashed #e2e5ea;
}

.wrt-image-persons__label {
	margin: 0 0 0.4rem;
	font-size: 0.8rem;
	color: #5f6b7a;
}

.wrt-image-persons__rows {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 0.4rem;
}

.wrt-image-persons__row {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.wrt-image-persons__row input[type="text"] {
	flex: 1 1 auto;
	width: auto;
	padding: 0.35rem 0.55rem;
	font-size: 0.85rem;
}

.wrt-image-persons__remove {
	flex: 0 0 auto;
	width: 1.75rem;
	height: 1.75rem;
	line-height: 1;
	border: 1px solid #c5cad3;
	border-radius: 4px;
	background: #fff;
	color: #b32d2e;
	cursor: pointer;
}

.wrt-image-persons__remove:hover {
	background: #fdecea;
}

.wrt-image-persons__add {
	font-size: 0.8rem;
	padding: 0.3rem 0.6rem;
}

.wrt-checkbox-field label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-weight: 400;
	cursor: pointer;
}

.wrt-checkbox-field input[type="checkbox"] {
	margin-top: 0.2rem;
	flex-shrink: 0;
	width: 1.05rem;
	height: 1.05rem;
}

.wrt-frontend-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.wrt-btn {
	display: inline-block;
	padding: 0.6rem 1.1rem;
	border: none;
	border-radius: 4px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	color: #fff;
	background: #1f4e79;
}

.wrt-btn--primary {
	background: #1f4e79;
}

.wrt-btn--secondary {
	background: #5f6b7a;
}

.wrt-btn:hover {
	opacity: 0.92;
	color: #fff;
}

.wrt-frontend-form--login,
.wrt-frontend-form--denied {
	background: #fff;
}

/* Login-/Logout-Formular (Shortcodes [wrt_login_formular] / [wrt_logout_button]) */
.wrt-login-form {
	box-sizing: border-box;
	width: 100%;
	max-width: 26rem;
	margin: 1.5rem auto;
	padding: clamp(1rem, 3vw, 1.75rem);
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	background: #fafbfc;
}

.wrt-login-form *,
.wrt-login-form *::before,
.wrt-login-form *::after {
	box-sizing: border-box;
}

.wrt-login-form--loggedin {
	max-width: 32rem;
}

.wrt-login-form__title {
	margin: 0 0 1rem;
	font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.wrt-login-form__lost {
	margin: -0.25rem 0 1rem;
	font-size: 0.85rem;
}

.wrt-login-form__lost a {
	color: #5f6b7a;
}

/* Responsiv: auf schmalen Bildschirmen volle Breite, Aktionen untereinander. */
@media (max-width: 600px) {
	.wrt-frontend-form {
		margin: 1rem 0;
		border-radius: 0;
		border-left: none;
		border-right: none;
	}

	.wrt-frontend-form__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.wrt-frontend-form__author {
		text-align: left;
	}

	.wrt-field-row {
		flex-direction: column;
		gap: 0;
	}

	.wrt-frontend-form__actions {
		flex-direction: column;
	}

	.wrt-frontend-form__actions .wrt-btn {
		width: 100%;
		text-align: center;
	}
}

/* ------------------------------------------------------------------ *
 * Statuskennzeichnung (Meine Berichte)
 * ------------------------------------------------------------------ */

.wrt-status-badge {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
}

.wrt-status-badge--ok {
	background: #e6f4ea;
	color: #1b5e20;
}

.wrt-status-badge--warn {
	background: #fff4e5;
	color: #8a4b00;
}

.wrt-status-badge--danger {
	background: #fdecea;
	color: #b71c1c;
}

.wrt-status-badge--draft {
	background: #eceff3;
	color: #4b5563;
}

.wrt-status-badge--info {
	background: #eef4fb;
	color: #10395c;
}

/* ------------------------------------------------------------------ *
 * Meine Berichte
 * ------------------------------------------------------------------ */

.wrt-my-reports {
	box-sizing: border-box;
	margin: 1.5rem auto;
}

.wrt-my-reports *,
.wrt-my-reports *::before,
.wrt-my-reports *::after {
	box-sizing: border-box;
}

.wrt-my-reports__title {
	margin: 0 0 1rem;
	font-size: clamp(1.15rem, 2.5vw, 1.35rem);
}

.wrt-my-reports__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wrt-my-reports__item {
	padding: 0.9rem 1rem;
	margin-bottom: 0.75rem;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	background: #fafbfc;
}

.wrt-my-reports__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem 0.75rem;
}

.wrt-my-reports__name {
	font-weight: 600;
}

.wrt-my-reports__meta {
	margin: 0.3rem 0 0;
	font-size: 0.85rem;
	color: #5f6b7a;
}

.wrt-my-reports__note {
	margin-top: 0.6rem;
	padding: 0.55rem 0.7rem;
	border-left: 3px solid #e0a800;
	background: #fffaf0;
	font-size: 0.9rem;
}

.wrt-my-reports__note strong {
	display: block;
}

.wrt-my-reports__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
}

.wrt-my-reports__hint {
	font-size: 0.85rem;
	color: #5f6b7a;
}

/* ------------------------------------------------------------------ *
 * Öffentliches Meldungsarchiv
 * ------------------------------------------------------------------ */

.wrt-press-archive {
	box-sizing: border-box;
	margin: 1.5rem auto;
}

.wrt-press-archive *,
.wrt-press-archive *::before,
.wrt-press-archive *::after {
	box-sizing: border-box;
}

.wrt-press-archive__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-bottom: 1.25rem;
	padding: 0.75rem 1rem;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	background: #f4f6f9;
}

.wrt-press-archive__field input[type="search"],
.wrt-press-archive__field select {
	padding: 0.45rem 0.6rem;
	border: 1px solid #c3cad4;
	border-radius: 4px;
	font: inherit;
}

.wrt-press-archive__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wrt-press-archive__item {
	display: flex;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid #e4e8ee;
}

.wrt-press-archive__thumb {
	flex: 0 0 auto;
}

.wrt-press-archive__thumb img {
	display: block;
	width: 110px;
	height: auto;
	border-radius: 4px;
}

.wrt-press-archive__body {
	flex: 1 1 auto;
	min-width: 0;
}

.wrt-press-archive__heading {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
}

.wrt-press-archive__meta {
	margin: 0 0 0.45rem;
	font-size: 0.85rem;
	color: #5f6b7a;
}

.wrt-press-archive__excerpt {
	margin: 0;
}

.wrt-press-archive__docs {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
}

.wrt-press-archive__docs a {
	margin-right: 0.6rem;
}

.wrt-press-archive__pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.wrt-press-archive__page {
	font-size: 0.85rem;
	color: #5f6b7a;
}

@media (max-width: 640px) {
	.wrt-press-archive__item {
		flex-direction: column;
	}

	.wrt-press-archive__thumb img {
		width: 100%;
	}
}
