/* E-Rechnung Kundenportal - Frontend-Styling
   Bewusst schlicht gehalten und ohne externe Abhängigkeiten,
   damit es sich unauffällig in bestehende WordPress-Themes einfügt. */

/* Kontaktleiste (Buchhaltung) im Stil der Website-Kopfleiste.
   Wird bewusst über volle Viewport-Breite ausgebrochen (löst sich aus dem
   zentrierten/eingerückten Inhaltsbereich des Themes) und direkt unter das
   Menü gezogen (negativer Abstand kompensiert den Standard-Freiraum des
   Themes zwischen fixiertem Header und Seiteninhalt). */
.kre-contact-bar {
	background-color: #326a8c;
	color: #ffffff;
	margin: 0 0 1.5rem;
	width: 100vw;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}

@media (min-width: 782px) {
	.kre-contact-bar {
		margin-top: -130px;
	}
}

.kre-contact-bar-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0.65rem 2.5rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.75rem;
	font-size: 0.85rem;
	box-sizing: border-box;
}

.kre-contact-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #ffffff;
	white-space: nowrap;
}

.kre-contact-item a {
	color: #ffffff;
	text-decoration: none;
}

.kre-contact-item a:hover,
.kre-contact-item a:focus {
	text-decoration: underline;
}

.kre-contact-icon {
	width: 14px;
	height: 14px;
	flex: none;
}

@media (max-width: 640px) {
	.kre-contact-bar-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.kre-contact-item {
		white-space: normal;
	}
}

.kre-portal {
	max-width: 900px;
	margin: 0 auto;
	padding: 1.5rem;
	font-size: 1rem;
	line-height: 1.5;
	color: #12161a;
	box-sizing: border-box;
}

.kre-portal * {
	box-sizing: border-box;
}

.kre-portal h2 {
	margin-top: 0;
	font-size: 1.5rem;
}

.kre-portal p {
	margin: 0 0 1rem;
}

.kre-notice {
	padding: 0.85rem 1rem;
	border-radius: 4px;
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
}

.kre-notice-error {
	background: #fdecea;
	border: 1px solid #f1a9a0;
	color: #7a271a;
}

.kre-notice ul {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
}

.kre-form .kre-field {
	margin-bottom: 1rem;
}

.kre-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3rem;
}

.kre-form input[type="text"],
.kre-form input[type="password"],
.kre-form input[type="email"],
.kre-form input[type="tel"],
.kre-form select,
.kre-form textarea {
	width: 100%;
	max-width: 420px;
	padding: 0.55rem 0.7rem;
	border: 1px solid #c9ced3;
	border-radius: 4px;
	font-size: 1rem;
	font-family: inherit;
}

.kre-form input:focus,
.kre-form select:focus,
.kre-form textarea:focus {
	outline: 2px solid #326a8c;
	outline-offset: 1px;
	border-color: #326a8c;
}

.kre-required {
	color: #c62828;
}

.kre-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
}

.kre-submit {
	margin-top: 1.5rem;
}

.kre-button {
	display: inline-block;
	background-color: #326a8c;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	padding: 0.7rem 1.6rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.kre-button:hover,
.kre-button:focus {
	background-color: #274f68;
}

.kre-privacy-link {
	font-size: 0.85rem;
	color: #555b60;
	margin-top: 1.5rem;
}

/* Datentabelle */
.kre-data-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

.kre-data-table th,
.kre-data-table td {
	text-align: left;
	padding: 0.6rem 0.7rem;
	border-bottom: 1px solid #e3e6e8;
	vertical-align: top;
}

.kre-data-table thead th {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #555b60;
	border-bottom: 2px solid #c9ced3;
}

.kre-col-label {
	width: 22%;
	font-weight: 600;
}

.kre-col-current {
	width: 33%;
	color: #444a4f;
}

.kre-col-new {
	width: 45%;
}

.kre-row-error {
	background-color: #fdecea;
}

.kre-field-error {
	display: block;
	color: #c62828;
	font-size: 0.85rem;
	margin-top: 0.3rem;
}

.kre-hint {
	font-size: 0.9rem;
	color: #555b60;
}

.kre-privacy-check label {
	font-weight: 400;
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.kre-privacy-check input[type="checkbox"] {
	margin-top: 0.2rem;
}

.kre-privacy-check-error {
	background-color: #fdecea;
	border: 1px solid #f1a9a0;
	border-radius: 4px;
	padding: 0.65rem 0.75rem 0.5rem;
}

.kre-confirmation {
	text-align: left;
}

/* Mobile */
@media (max-width: 640px) {
	.kre-data-table,
	.kre-data-table thead,
	.kre-data-table tbody,
	.kre-data-table tr,
	.kre-data-table th,
	.kre-data-table td {
		display: block;
		width: 100%;
	}

	.kre-data-table thead {
		display: none;
	}

	.kre-data-table tr {
		border: 1px solid #e3e6e8;
		border-radius: 6px;
		margin-bottom: 1rem;
		padding: 0.75rem;
	}

	.kre-data-table td {
		border-bottom: none;
		padding: 0.3rem 0;
	}

	.kre-col-current::before {
		content: attr(data-label);
	}

	.kre-form input,
	.kre-form select,
	.kre-form textarea {
		max-width: 100%;
	}
}
