/*
Theme Name: wbv-harburg
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 50px !important;   /* 52px Boxhöhe minus 2 × 1px Rahmen */
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50% !important;
    transform: translateY(-50%);    /* ersetzt den festen Wert top: 12px */
}

.social-button, .social-icons .button.icon:hover, .social-icons .button.icon:not(.is-outline) {
	opacity: 1;
}

[hidden],
template {
	display: none !important;
}

.zaehlerablesung-nav a {
	color: orange !important;
}

body.lightbox {
	line-height: 1.6 !important;
	text-align: left !important;
	/*position: relative;*/
}

.partner-logos img {
	filter: grayscale(1);
	transition: filter 0.2s ease-in-out;
}

.partner-logos img:hover {
	filter: grayscale(0);
}

.txt-small {
	font-size: 0.85em;
}

.wbv-tipps li {
	text-align: justify;
}

.absolute-footer {
	display: none;
}

.footer {
	padding: 60px 0 40px 0;
}

span.widget-title {
	font-size: 1em;
	font-weight: 600;
	color: #575656;
}

.zeno_font_resizer {
	position: relative;
	top: 4px;
}

.zeno_font_resizer a {
	color: #fff;
}

.zeno_font_resizer a:hover {
	color: #000;
}

p.hyphenate {
	text-align: justify;
}

header li.active a {
	border: none !important;
}

body.home .header,
body.home .header-wrapper,
body.page-id-1253 .header,
body.page-id-1253 .header-wrapper {
	margin-bottom: 0px !important;
}

.badge {
	background-color: #3a81bd;
}

.nav-top-link {
	background: inherit !important;
}

.section-title-normal span {
	border: none;
}

/* --- Counter ---------- */

.ec-shortcode-outer-wrap.ec-template3 .ec-count-number {
	font-size: 40px;
	font-family: "Open Sans", sans-serif !important;
	color: #3a81bd;
	font-weight: 800;
}

.ec-shortcode-outer-wrap.ec-template3 .ec-count-title {
	font-size: 16px;
	font-family: "Open Sans", sans-serif !important;
	font-weight: 600;
	color: #999999;
	margin-bottom: 10px;
	text-transform: none;
}

.ec-shortcode-outer-wrap.ec-template3 .ec-count-subtitle {
	font-size: 12px;
	font-family: "Open Sans", sans-serif !important;
	font-weight: 400;
	color: #999999;
}

.ec-shortcode-outer-wrap.ec-template3 .ec-featured-item i {
	color: #9ab435;
	font-size: 40px;
}

.ec-counter-items-wrap {
	padding: 20px 0 !important;
	position: relative;
	z-index: 2;
}

.ec-shortcode-outer-wrap.ec-template3 .ec-counter-item,
.ec-shortcode-outer-wrap.ec-template4 .ec-counter-item,
.ec-shortcode-outer-wrap.ec-template5 .ec-counter-item {
	padding: 20px 0 20px 0 !important;
	background-repeat: no-repeat;
	background-size: cover;
}

/* --- Blog ---------- */

footer.entry-meta {
	display: none;
}

.article-inner {
	border-bottom: 1px solid #ececec;
}

article:last-child .article-inner {
	border: none;
}

aside .post_comments {
	display: none;
}

/* --- WBV Table ---------- */

.wbv-table td,
.wbv-table th {
	text-align: center;
	vertical-align: middle !important;
	font-size: 1em;
}

.wbv-table td:first-child,
.wbv-table th:first-child {
	text-align: left;
}

.wbv-table td:nth-child(1),
.wbv-table td:nth-child(2),
.wbv-table td:nth-child(3),
.wbv-table td:nth-child(5),
.wbv-table td:nth-child(7),
.wbv-table th:nth-child(1),
.wbv-table th:nth-child(2),
.wbv-table th:nth-child(3),
.wbv-table th:nth-child(4) {
	border-right: 1px solid #ddd;
}

.wbv-table tr:nth-child(1) td {
	font-weight: 600;
}

td {
	font-size: 1em;
}

.wasserhaerte td:first-child {
	font-weight: 600;
}

.wasserhaerte th {
	color: #7b902c;
}

/* --- WBV Map ---------- */

.wbv_map {
	position: relative;
}

.wbv_map a {
	position: absolute;
}

.ol-attribution {
	display: none;
}

/* --- WBV Alert ---------- */

div.alert {
	padding: 5px 10px;
	border-radius: 5px;
}

.alert-success {
	color: #3c763d;
	background-color: #dff0d8;
	border-color: #d6e9c6;
}

.alert-info {
	color: #31708f;
	background-color: #d9edf7;
	border-color: #bce8f1;
}

.alert-warning {
	color: #8a6d3b;
	background-color: #fcf8e3;
	border-color: #faebcc;
}

.alert-danger {
	color: #a94442;
	background-color: #f2dede;
	border-color: #ebccd1;
}

/* --- Forms ---------- */

.wpcf7-list-item-label {
	font-weight: 400;
	font-style: italic;
}

.select2-container--default .select2-selection--single {
	background-color: #fff;
	border: inherit;
	border-radius: 0px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 26px;
	position: absolute;
	top: 12px !important;
	right: 1px;
	width: 20px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
	display: block;
	padding-right: 20px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	/*padding: 10px 0px 10px 0px !important;*/
}

.select2-container .select2-selection--single {
	box-sizing: border-box;
	cursor: pointer;
	display: block;
	height: 52px !important;
	user-select: none;
	-webkit-user-select: none;
}

.select2-container--default .select2-results__option .select2-results__option {
	padding-left: 1em;
	font-size: 0.9em;
}

.label-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 5px;
	/* Optional: Abstand zur Eingabegruppe */
}

.zaehler-label {
	font-weight: bold;
	/* Optional: Betont den Labeltext */
}

.zaehler-hinweis {
	font-size: 0.9em;
	/* Optional: Etwas kleinere Schriftgröße */
	color: #666;
	/* Optional: Graue Farbe, um den Hinweis optisch abzuheben */
}

/* --- Kundencenter ---------- */

/* CSS-Klasse für neue Rechnungen */
.new-invoice {
	font-weight: bold;
	background-color: #e6f2fa;
}

/* Roter Punkt als Indikator für neue Rechnungen */
.new-indicator {
	color: #bb4640;
	font-size: 2em;
	position: relative;
	top: 5px;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 0;
	font-family: sans-serif;
}

.um-form label {
	display: inline;
}

.um a.um-button,
.um a.um-button.um-disabled:active,
.um a.um-button.um-disabled:focus,
.um a.um-button.um-disabled:hover,
.um input[type="submit"].um-button,
.um input[type="submit"].um-button:focus {
	background: #9ab437 !important;
}

.um .um-button.um-alt,
.um input[type="submit"].um-button.um-alt {
	background: #3a81bd !important;
}

.um .um-button.um-alt,
.um input[type="submit"].um-button.um-alt {
	color: #fff !important;
	box-shadow: none !important;
}

.um-field:first-child {
	padding: 0;
}

.wbv-invoice-table td {
	padding: 15px 10px !important;
}

.wbv-invoice-table tr:last-child td {
	border: none !important;
}

.wbv-invoice-table td.invoice-dl {
	text-align: right;
}

.wbv-invoice-table tr:hover td {
	background: #eee;
}

.um-account-meta {
	margin-bottom: 0;
	display: none !important;
}

/* ===== Kundencenter Grundlayout ===== */

i.um-faicon-trash-o.nc-click {
	font-size: 1.2em;
	padding: 2px 5px;
	background: #ba4441;
	color: #fff;
	border-radius: 0.2rem;
}

i.um-faicon-search.nc-click {
	font-size: 1.2em;
	padding: 2px 5px;
	background: #4a84b7;
	color: #fff;
	border-radius: 0.2rem;
}

/* --- Kundencenter Navigation --- */

.kundencenter-nav {
	padding: 10px 0;
	position: relative;
}

/* Burger + Menü komplett ausblenden, wenn UM-locked-Content drin ist */
.kundencenter-nav:has(.um-locked-content) {
	display: none;
}

/* Links-Leiste: Flex erzwingen (schlägt Theme-Regeln) */
.kundencenter-nav .kc-links {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}

/* Resets für Links (gegen display:block/inline-block/float aus Themes) */
.kundencenter-nav .kc-links a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	float: none !important;
	clear: none !important;
	margin: 0 !important;

	background: #4082bb;
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	padding: 10px 15px;
	border-radius: 6px;
	transition: background 0.2s ease-in-out, transform 0.15s ease;
	white-space: nowrap;
	/* bleibt kompakt */
}

.kundencenter-nav .kc-links a:hover {
	background: #255a89;
}

.kundencenter-nav .kc-links a:active {
	transform: translateY(1px);
}

/* Logout-Farbe (falls eigener Link vorhanden) */
.kundencenter-nav .kc-links a.logout-link,
.kundencenter-nav .kc-links a[href*="ausloggen"] {
	background: #bb4640;
}

.kundencenter-nav .kc-links a.logout-link:hover,
.kundencenter-nav .kc-links a[href*="ausloggen"]:hover {
	background: #95302b;
}

/* ===== Burger standardmäßig aus (Desktop) ===== */
.kundencenter-nav .kc-burger {
	display: none;
}

/* Desktop-Sicherheit: Menü immer offen */
@media (min-width: 701px) {
	.kundencenter-nav .kc-links {
		max-height: none !important;
		opacity: 1 !important;
		transform: none !important;
		overflow: visible !important;
	}
}

/* ===== Mobile: einklappbar über Checkbox ===== */
@media (max-width: 700px) {
	.kundencenter-nav .kc-burger {
		display: inline-flex;
		gap: 10px;
		background: #4082bb;
		color: #fff;
		border-radius: 6px;
		padding: 16px 14px;
		cursor: pointer;
		user-select: none;
		line-height: 1;
		margin-bottom: 8px;
	}

	.kundencenter-nav .kc-burger:focus-visible {
		outline: 2px solid #255a89;
		outline-offset: 3px;
	}

	.kundencenter-nav .kc-burger-box {
		position: relative;
		width: 20px;
		height: 14px;
		display: inline-block;
	}

	.kundencenter-nav .kc-burger-inner,
	.kundencenter-nav .kc-burger-inner::before,
	.kundencenter-nav .kc-burger-inner::after {
		position: absolute;
		left: 0;
		right: 0;
		height: 2px;
		background: currentColor;
		content: "";
		border-radius: 1px;
	}

	.kundencenter-nav .kc-burger-inner {
		top: 6px;
	}

	.kundencenter-nav .kc-burger-inner::before {
		top: -6px;
	}

	.kundencenter-nav .kc-burger-inner::after {
		top: 6px;
	}

	.kundencenter-nav .kc-toggle:checked + .kc-burger .kc-burger-inner {
		background: transparent;
	}

	.kundencenter-nav .kc-toggle:checked + .kc-burger .kc-burger-inner::before {
		top: 0;
		transform: rotate(45deg);
	}

	.kundencenter-nav .kc-toggle:checked + .kc-burger .kc-burger-inner::after {
		top: 0;
		transform: rotate(-45deg);
	}

	/* eingeklappt */
	.kundencenter-nav .kc-links {
		display: grid !important;
		/* Spalten-Layout fürs Ausklappen */
		grid-template-columns: 1fr;
		gap: 8px;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transform: translateY(-4px);
		transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
	}

	/* aufgeklappt */
	.kundencenter-nav .kc-toggle:checked + .kc-burger + .kc-links {
		max-height: 500px;
		opacity: 1;
		transform: translateY(0);
	}

	.kundencenter-nav .kc-links a {
		width: 100%;
		text-align: center;
	}
}

/* Bewegungen reduzieren */
@media (prefers-reduced-motion: reduce) {
	.kundencenter-nav .kc-links,
	.kundencenter-nav .kc-links a {
		transition: none !important;
	}
}

/* (Altkompatibilität – falls irgendwo noch .kundencenter-nav.logout gestyled wird) */
.kundencenter-nav .logout a {
	background: #bb4640;
	color: #fff;
	border-radius: 6px;
	padding: 10px 14px;
	cursor: pointer;
	user-select: none;
	line-height: 1;
}

.kundencenter-nav .logout a:hover {
	background: #95302b;
}

.kundencenter-nav p {
	margin: 0;
}

/* Desktop: P-Wrapper & <br> neutralisieren */
@media (min-width: 701px) {
	.kundencenter-nav .kc-links {
		display: flex !important;
		flex-wrap: wrap;
		gap: 8px;
	}

	/* p-Wrapper auflösen, damit die <a> direkte Flex-Kinder sind */
	.kundencenter-nav .kc-links > p {
		display: contents;
		/* „flacht“ das p aus */
		margin: 0;
		padding: 0;
	}

	/* Sicherheit, falls contents nicht unterstützt wird */
	@supports not (display: contents) {
		.kundencenter-nav .kc-links > p {
			display: flex;
			flex-wrap: wrap;
			gap: 8px;
			margin: 0;
			padding: 0;
		}
	}

	/* erzwungene Zeilenumbrüche killen */
	.kundencenter-nav .kc-links br {
		display: none;
	}

	/* Links nicht full-width */
	.kundencenter-nav .kc-links a {
		display: inline-flex !important;
		flex: 0 0 auto !important;
		width: auto !important;
		max-width: none !important;
		float: none !important;
		white-space: nowrap;
		margin: 0 !important;
	}
}

/* P-Wrapper & <br> auch mobil neutralisieren */
.kundencenter-nav .kc-links > p {
	display: contents;
	/* macht die <a> zu direkten Grid-Items */
	margin: 0;
	padding: 0;
}

.kundencenter-nav .kc-links br {
	display: none;
}

@media (max-width: 700px) {
	.kundencenter-nav .kc-links {
		gap: 10px;
	}

	/* sichtbarer Abstand */
	.kundencenter-nav .kc-links a {
		display: block !important;
		/* volle Breite pro Zeile */
		width: 100% !important;
	}

	/* Fallback, falls display: contents nicht unterstützt wird */
	@supports not (display: contents) {
		.kundencenter-nav .kc-links > p {
			display: flex;
			flex-direction: column;
			gap: 10px;
		}
	}
}

/* --- Sitemap ---------- */

.wsp-pages-list li {
	margin-bottom: 0;
}

.wsp-pages-list li ul {
	padding-top: 0;
	margin-top: 0;
}

@media only screen and (max-width: 48em) {
	/*************** ADD MOBILE ONLY CSS HERE  ***************/
	.off-canvas-center.mfp-bg.mfp-ready {
		opacity: 0.95;
	}

	.mobile-sidebar li a {
		border: none !important;
		background: none !important;
	}

	.mobile-sidebar li a:hover,
	.mobile-sidebar li.current_page_item a {
		background: rgba(255, 255, 255, 0.2) !important;
	}
}

/* --- PRINT CSS ---------- */

@media print {
	.section,
	section,
	.row,
	.col {
		display: block !important;
	}

	footer,
	.wbv-no-print,
	#wide-nav,
	.nav {
		display: none !important;
	}

	.header-wrapper {
		position: relative !important;
	}
}

/* --- ULTIMATE MEMBER --- */

.um-locked-content {
	display: none;
}

div.uimob800 .um-account-main {
	max-width: auto !important;
}

.um-register .section-bg.fill {
	opacity: 1;
	display: none; /* verhindert, dass „Datenschutzerklärung verstecken“ nicht anklickbar ist */
}

/* --- Forminator --- */

.forminator-field h2,
.forminator-field h3,
.forminator-field h4,
.forminator-field h5 {
	margin-bottom: -15px;
}

/* --- Ablesung Kundencenter --- */

#ablese-form label {
	margin-bottom: 0;
	margin-top: 5px;
}

#ablese-form small {
	margin-top: 3px;
}

#ablese-form input {
	margin-bottom: 0;
}

.d-none {
	display: none;
}

.wbv-detail fieldset {
	margin: 1rem 0;
	padding: 1rem;
	border-radius: 0.6rem;
	background: #4082bb;
	color: #fff;
	box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.wbv-detail fieldset label,
.wbv-detail fieldset h2,
.wbv-detail fieldset h3 {
	color: #fff;
}

.wbv-detail fieldset h3 {
	padding-bottom: 10px;
	border-bottom: 1px dotted #fff;
}

.wbv-detail fieldset#block-info {
	background: rgba(129, 181, 224, 0.5);
}

.wbv-detail fieldset#block-info label,
.wbv-detail fieldset#block-info small,
.wbv-detail fieldset#block-info h2,
.wbv-detail fieldset#block-info h3 {
	color: #333;
}

.wbv-detail fieldset#block-info h3 {
	padding-bottom: 10px;
	border-bottom: 1px dotted #666;
}

.wbv-detail .form-row {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0.6rem 0;
}

.wbv-detail .actions {
	display: flex;
	align-items: center;
	margin-top: 30px;
}

.hint {
	font-size: 0.9em;
	color: #555;
	margin: 0.25rem 0 0;
}

/* --- Abnahmestellen --- */

.wbv-list * {
	transition: all 0.3s ease-in-out;
}

.wbv-list .stellen-list {
	display: grid;
	gap: 1.8rem;
	margin: 0.75rem 0;
}

.wbv-list .stelle-container {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 0.6rem;
	box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
	overflow: hidden;
}

.wbv-list .stelle-container .stelle-sub {
	display: block;
	color: #333;
}

.wbv-list .loading,
.wbv-list .error {
	color: #666;
}

.wbv-list .stelle-title {
	background: #4082bb;
	padding: 8px 15px;
	border-top-left-radius: 0.6rem;
	border-top-right-radius: 0.6rem;
	color: #fff;
	font-weight: 600;
}

.wbv-list .stelle-sub {
	background: #c1daef;
	padding: 15px;
	border-bottom-left-radius: 0.6rem;
	border-bottom-right-radius: 0.6rem;
	color: #fff;
	font-weight: 500;
}

.stelle-daten h5 {
	margin: 0.4rem 0 0.5rem;
}

.zaehler-tabelle {
	width: 100%;
	table-layout: auto;
	border-collapse: collapse;
}

.zaehler-tabelle td {
	padding: 0.35rem 0;
	vertical-align: top;
	border: none;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.zaehler-tabelle td:first-child {
	color: #4b5563;
	/* grau */
}

.zaehler-tabelle td:last-child {
	font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
	.zaehler-tabelle td:first-child {
		width: 33%;
	}
}

.hinweis-uebertragen {
	color: #374151;
	line-height: 1.5;
	font-size: 0.8em;
	font-style: italic;
}

.stelle-link {
	display: inline-block;
	font-weight: 600;
}

.stelle-daten h5 {
	font-weight: 600;
}

.stelle-daten h5 .datum {
	font-weight: 400;
	color: #4b5563;
}

.aktionen {
	background: white;
	margin: 0 -15px -15px -15px;
	padding: 10px 15px;
	border-bottom-left-radius: 0.6rem;
	border-bottom-right-radius: 0.6rem;
}

@media (max-width: 640px) {
	.zaehler-tabelle,
	.zaehler-tabelle tbody,
	.zaehler-tabelle tr,
	.zaehler-tabelle td {
		display: block;
		width: 100%;
	}

	/* Jede Zeile (Wasser/Garten/Regen) als Card */
	.zaehler-tabelle tr {
		background: #fff;
		margin: 0.75rem 0;
		padding: 0.6rem 0.75rem;
		border-radius: 0.6rem;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
		border: 1px solid rgba(0, 0, 0, 0.06);
	}

	/* Label-Zelle oben, kräftiger */
	.zaehler-tabelle .cell-label {
		color: #1f2937;
		font-weight: 600;
		margin-bottom: 0.35rem;
	}

	/* Werte bekommen eigene Minizeile mit Label davor */
	.zaehler-tabelle .cell-wert {
		position: relative;
		padding-top: 0.25rem;
		margin-top: 0.25rem;
		border-top: 1px dashed #e3edf5;
		font-variant-numeric: tabular-nums;
	}

	/* Erste Werte-Zelle braucht oben Trennlinie – die zweite nicht doppelt */
	.zaehler-tabelle .cell-label + .cell-wert {
		border-top: none;
		margin-top: 0;
		padding-top: 0;
	}

	/* Mini-Label über dem Wert aus data-label */
	.zaehler-tabelle .cell-wert::before {
		content: attr(data-label);
		display: block;
		font-size: 0.72rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.02em;
		color: #6b7f93;
		margin-bottom: 0.15rem;
	}
}

/* --- Admin Formular: Neue Nachricht an Nutzer --- */

.wbv-nc .select-resize-ghost,
.wbv-nc .select2-container .select2-choice,
.wbv-nc .select2-container .select2-selection,
.wbv-nc input[type="date"],
.wbv-nc input[type="email"],
.wbv-nc input[type="number"],
.wbv-nc input[type="password"],
.wbv-nc input[type="search"],
.wbv-nc input[type="tel"],
.wbv-nc input[type="text"],
.wbv-nc input[type="url"],
.wbv-nc select,
.wbv-nc textarea {
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 0;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
	color: #333;
	font-size: 0.97em;
	height: 2.507em;
	max-width: 100%;
	padding: 0 0.75em;
	transition: color 0.3s, border 0.3s, background 0.3s, opacity 0.3s;
	vertical-align: middle;
	width: 100%;
}

.wbv-nc textarea {
	padding-top: 0.75em;
}

.wbv-nc .section-title-container {
	margin-bottom: 0.5em;
}

#nc-ast {
	margin-bottom: 1.5em;
}

#nc-upload-block,
#nc-input-block,
.section-message,
.section-message-preview {
	border-radius: 0.6rem;
	box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
	background: #c1daef;
	margin-bottom: 30px;
	padding: 15px 15px 15px 15px;
}

.section-message-preview {
	background: #fff;
}

.wbv-section .section-headline {
	background: #4082bb;
	padding: 8px 15px;
	margin: -15px -15px 15px -15px;
	border-top-left-radius: 0.6rem;
	border-top-right-radius: 0.6rem;
	color: #fff;
	font-weight: 600;
}

.file-upload-wrapper {
	position: relative;
	display: inline-block;
}

.file-upload-input {
	position: absolute;
	left: 0;
	top: 0;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.file-upload-label {
	display: inline-block;
	background: #1a5d8f;
	/* dein CI-Blau */
	color: #fff;
	padding: 8px 16px;
	font-weight: bold;
	cursor: pointer;
	transition: background 0.2s ease;
	cursor: pointer;
}

.file-upload-label:hover {
	background: #14476a;
}

.file-upload-filename {
	margin-left: 10px;
	font-size: 0.9em;
	color: #333;
}

.nc-upload-block-upper {
	border-bottom: 1px solid #eee;
	margin-bottom: 15px;
	padding-bottom: 15px;
}

.wbv-nc .expand {
	margin-bottom: -15px;
}

.wbv-nc .nc-receipients-msg {
	background: #98b443;
	padding: 15px;
	color: #fff;
	font-weight: 600;
	border-radius: 0.6rem;
}

/* Overlay */
.mo-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: grid;
	place-items: center;
	z-index: 9999;
}

/* Dialog */
.mo-dialog {
	width: 50vw;
	height: 85vh;
	max-width: 720px;
	min-width: 280px;
	max-height: 90vh;
	background: #fff;
	color: #222;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
}

/* Header/Close */
.mo-dialog h3 {
	margin: 0;
	padding: 14px 48px 12px 16px;
	border-bottom: 1px solid #eee;
	font-size: 1.05rem;
}

.mo-close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 36px;
	height: 36px;
	line-height: 36px;
	border: 0;
	background: transparent;
	color: #666;
	font-size: 24px;
	cursor: pointer;
}

.mo-close:hover {
	color: #111;
}

/* Inhalt */
.mo-content {
	padding: 14px 16px;
	overflow: auto;
	flex: 1;
}

/* Mobile Tweaks */
@media (max-width: 640px) {
	.mo-dialog {
		width: 92vw;
		height: 70vh;
	}
}

/* --- Nachrichtencenter Liste --- */

:root {
	--shadow-bleed: 12px;
}

.nc-tabelle-container {
	overflow-x: auto;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;

	padding-inline: var(--shadow-bleed); /* Raum für Schatten */
	margin-inline: calc(-1 * var(--shadow-bleed)); /* optisch bündig bleiben */
}

@media (max-width: 640px) {
	.nc-tabelle-container {
		padding-inline: 0;
		margin-inline: 0;
	}
}

.nc-tabelle {
	background: #e8f0f7;
	border-radius: 0.6rem;
	box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.nc-tabelle tr td {
	padding: 10px 15px;
	border-bottom: 1px solid #fff;
	word-break: break-word;
}

.nc-tabelle tr:not(.row-head):hover td {
	background: #fff;
}

.nc-tabelle tr:last-child:hover td:first-child {
	border-bottom-left-radius: 0.6rem;
}

.nc-tabelle tr:last-child:hover td:last-child {
	border-bottom-right-radius: 0.6rem;
}

.nc-tabelle tr:last-child td {
	border: none;
}

.nc-tabelle tr.new-msg td {
	font-weight: 600;
}

.wbv-nc-list .um-faicon-search:before {
	display: inline;
}

.nc-click {
	cursor: pointer;
}

.nc-tabelle tr.row-head {
	margin: -15px -15px 15px -15px;
}

.nc-tabelle tr.row-head td {
	font-weight: 600;
	text-transform: uppercase;
	border-bottom: 2px solid #ddd;
	background: #4583b9;
	color: #fff;
}

.nc-tabelle tr.row-head td:first-child {
	border-top-left-radius: 0.6rem;
}

.nc-tabelle tr.row-head td:last-child {
	border-top-right-radius: 0.6rem;
}

.nc-tabelle i.color-active {
	color: #98b343;
}

.nc-tabelle i.color-inactive {
	color: #ccc;
}

@media (max-width: 640px) {
	.nc-tabelle {
		background: none;
	}

	/* Tabellenkopf ausblenden */
	.nc-tabelle tr.row-head {
		display: none;
	}

	/* Tabelle in Block-Layout umwandeln */
	.nc-tabelle,
	.nc-tabelle tbody,
	.nc-tabelle tr,
	.nc-tabelle td {
		display: block;
		width: 100%;
	}

	/* Jede Zeile wird zur Card */
	.nc-tabelle tr.row-line {
		background: #fff;
		margin: 10px 0;
		border-radius: 0.6rem;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
		border: 1px solid #e9eef3;
	}

	/* Standard-Zellstil in der Card */
	.nc-tabelle tr.row-line td {
		border: none;
		padding: 10px 14px;
	}

	.nc-tabelle tr.row-line td:nth-child(1) {
		background: #4583b9;
		color: #fff;
		border-top-left-radius: 0.6rem;
		border-top-right-radius: 0.6rem;
	}

	/* Kategorie mobil ausblenden (Spalte 3) */
	.nc-tabelle tr.row-line td:nth-child(3) {
		display: none;
	}

	/* Aktionen immer am Ende in einer eigenen “Zeile” */
	.nc-tabelle tr.row-line td:last-child {
		padding-top: 10px;
		border-top: 1px dashed #e6edf4;
	}

	.nc-tabelle tr.row-line .nc-actions {
		display: flex;
		gap: 8px;
	}

	/* “Label:” vor Datum & Co, falls du keine data-labels nutzt */
	.nc-tabelle tr.row-line td:nth-child(1)::before,
	.nc-tabelle tr.row-line td:nth-child(2)::before {
		content: attr(data-label);
		display: block;
		font-size: 0.72rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.02em;
		color: #6b7f93;
		margin-bottom: 4px;
	}

	/* Betreff optisch stärker */
	.nc-tabelle tr.row-line td:first-child {
		font-weight: 600;
		padding-bottom: 10px;
	}
}

/* --- Nachricht Detailseite --- */

.wbv-nc-detail .nc-date {
	font-size: 0.9em;
	font-style: italic;
	margin-top: -30px;
	margin-bottom: 30px;
}

/* --- SEPA-Mandat (überschreibt os.css) --- */
#sepa button.secondary {
	background-color: #97b241 !important;
}

.print-only {
	display: none;
}

/* Nur beim Drucken anwenden */
@media print {
	.no-print,
	header {
		display: none !important;
	}

	.print-only {
		display: block !important;
	}

	/* Inhaltsbereich auf volle Breite ziehen */
	.container,
	.row,
	.col,
	.content-area,
	.entry-content {
		max-width: 100% !important;
		width: 100% !important;
	}

	/* Seitenränder für den Ausdruck */
	@page {
		margin: 15mm;
	}

	/* Keine angehängten URL-Texte hinter Links */
	a[href]:after {
		content: "" !important;
	}
}

/* --- Abnahmestellenverwaltung --- */

.um-account-tab-wbvast .um-col-alt {
		display: none;
	}
.ast-line i {
	cursor:pointer;
}
.ast {
	padding-top: 20px;
}
#ast-list {
	padding: 10px 0 10px 0;
}
.ast-line {
	padding: 5px 10px;
	background: #eee;
	margin-bottom: 1px;
	font-weight: 600;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-content: center;
	align-items: center;
	justify-content: space-between;
}
.ast-beschreibung {
	font-size: 85%;
	margin-bottom: 10px;
}
.um-wbv-tab {
	margin: 15px 0 5px 0;
}
.ast-bg {
	padding: 0px; /* Padding bleibt konstant, wird nicht animiert */
	background: #eee;
	opacity: 0;
	max-height: 0;
	transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
	overflow: hidden;
}
.ast-bg.show {
	opacity: 1;
	max-height: 1000px;
	padding: 15px;
}
a.um-button,
a.um-button:hover {
	cursor: pointer;
	box-shadow: none;
}
.um-account-tab-wbvast .um-field {
	padding: 0;
}
	.um-account-tab-wbvast .ast-bg .um-field {
		padding: 10px 0 0 0;
	}
i.fa.fa-trash {
	margin-left: 10px;
	color: #fff;
	background: #ba4441;
	padding: 5px;
	border-radius: 2px;
}
	i.fa.fa-trash:hover {
		background: #942e2c;
	}
.error {
	margin-top: 5px;
	color: #ba4441;
	font-weight: 600;
}

.ast-adress {
	font-weight: 400;
	font-style: italic;
	font-size: .9em;
}
