.brand-card__subtitle {
	display: none;
}

.brand-container {
	width: min(100%, 1200px);
	max-width: 1200px;
	padding-inline: 0.5rem;
}

.brand-card {
	width: 100%;
}

.brand-actions {
	display: grid;
	gap: 0.75rem;
	max-width: 420px;
	margin: 0 auto;
}

.brand-actions .btn {
	width: 100%;
	min-height: 56px;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 12px;
}

.app-page[hidden] {
	display: none;
}

.guest-page-card {
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
}

.guest-page__backlink {
	display: inline-block;
	margin-bottom: 1rem;
	font-weight: 700;
}

.guest-page__text {
	margin-top: 0.75rem;
	color: var(--color-text-secondary);
	font-size: 1rem;
	line-height: 1.6;
}

.guest-page__form {
	margin-top: 1.5rem;
	text-align: left;
}

.guest-page__form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.guest-page__field {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.guest-page__field--full {
	grid-column: 1 / -1;
}

.guest-page__field-label {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--color-text-highlight-brand);
}

.guest-page__input {
	width: 100%;
	padding: 1rem 1.25rem;
	border: 1px solid var(--color-border-soft);
	border-radius: 12px;
	background: var(--color-background);
	color: var(--color-text-primary);
	font: inherit;
}

.guest-page__input:focus {
	outline: 2px solid rgba(49, 49, 147, 0.18);
	outline-offset: 2px;
	border-color: var(--color-accent-border);
}

.guest-page__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 1.25rem;
}

.guest-page__actions .btn {
	min-width: 140px;
}

.bestelluebersicht-card {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
}

.bestelluebersicht-table-wrap {
	margin-top: 1.25rem;
	overflow-x: auto;
}

.bestelluebersicht-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 640px;
}

.bestelluebersicht-table th,
.bestelluebersicht-table td {
	border: 1px solid var(--color-border-soft);
	padding: 0.75rem;
	text-align: left;
	vertical-align: middle;
}

.bestelluebersicht-table th {
	background: var(--color-background-1);
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--color-text-highlight-brand);
}

.bestelluebersicht-sort-btn {
	appearance: none;
	border: none;
	background: none;
	padding: 0;
	font: inherit;
	font-weight: 700;
	color: inherit;
	cursor: pointer;
}

.bestelluebersicht-sort-btn[aria-sort="asc"]::after {
	content: " ↑";
}

.bestelluebersicht-sort-btn[aria-sort="desc"]::after {
	content: " ↓";
}

.bestelluebersicht-detail-btn {
	min-height: 40px;
	min-width: 110px;
	padding: 0.45rem 0.9rem;
	font-size: 0.9rem;
}

.endabnehmer-page-card {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
}

.endabnehmer-table-wrap {
	margin-top: 1.25rem;
	overflow-x: auto;
}

.endabnehmer-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 980px;
}

.endabnehmer-table th,
.endabnehmer-table td {
	border: 1px solid var(--color-border-soft);
	padding: 0.65rem;
	vertical-align: top;
	text-align: left;
}

.endabnehmer-table th {
	background: var(--color-background-1);
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--color-text-highlight-brand);
}

.endabnehmer-input {
	width: 100%;
	padding: 0.55rem 0.6rem;
	border: 1px solid var(--color-border-soft);
	border-radius: 8px;
	background: var(--color-background);
	font: inherit;
	color: var(--color-text-primary);
}

.endabnehmer-input:focus {
	outline: 2px solid rgba(49, 49, 147, 0.18);
	outline-offset: 1px;
	border-color: var(--color-accent-border);
}

.endabnehmer-person-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(120px, 1fr));
	gap: 0.55rem;
}

.endabnehmer-person-grid .endabnehmer-input--full {
	grid-column: 1 / -1;
}

.endabnehmer-checks {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	font-size: 0.9rem;
	white-space: nowrap;
}

.endabnehmer-checks label {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
}

.endabnehmer-actions {
	margin-top: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.endabnehmer-actions[hidden] {
	display: none;
}

.endabnehmer-actions .btn {
	min-width: 140px;
}

.endabnehmer-add {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: none;
	padding: 0;
	background: none;
	color: var(--color-text-brand);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.endabnehmer-add:hover {
	color: var(--color-primary);
}

.endabnehmer-add__icon {
	width: 22px;
	height: 22px;
	border-radius: 9999px;
	border: 1px solid var(--color-accent-border);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	line-height: 1;
}

.bestaetigung-card {
	max-width: 680px;
}

.bestaetigung__subtitle {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--color-text-highlight-brand);
	margin-bottom: 1rem;
}

.bestaetigung__body {
	color: var(--color-text-secondary);
	margin-bottom: 0.5rem;
}

.bestaetigung-contact-card {
	margin: 1.5rem 0;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--color-border-soft);
	border-radius: 12px;
	background: var(--color-background-1);
	text-align: left;
	line-height: 1.7;
}

.bestaetigung-contact-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.4rem;
}

.bestaetigung-avatar {
	position: relative;
	width: 52px;
	height: 52px;
	border-radius: 9999px;
	flex-shrink: 0;
	background: #dfe4ed;
	border: 1px solid var(--color-border-soft);
	overflow: hidden;
}

.bestaetigung-avatar::before {
	content: "";
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	width: 14px;
	height: 14px;
	border-radius: 9999px;
	background: #8e97a6;
}

.bestaetigung-avatar::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 8px;
	transform: translateX(-50%);
	width: 28px;
	height: 18px;
	border-radius: 14px 14px 10px 10px;
	background: #8e97a6;
}

.bestaetigung-contact-card__divider {
	border: none;
	border-top: 1px solid var(--color-border-soft);
	margin: 0.75rem 0;
}

.bestaetigung-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}

.bestaetigung-actions .btn {
	min-width: 140px;
}

.bestelluebersicht-filter {
	margin-top: 1.25rem;
	margin-bottom: 1.25rem;
	display: flex;
	gap: 0.75rem;
}

.standort-filter {
	position: relative;
}

.standort-filter__btn {
	appearance: none;
	border: 1px solid var(--color-border-soft);
	background: var(--color-background);
	color: var(--color-text-primary);
	padding: 0.65rem 1rem;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	font-size: 0.9rem;
	transition: border-color 0.2s, background-color 0.2s;
}

.standort-filter__btn:hover {
	border-color: var(--color-accent-border);
	background: var(--color-background-1);
}

.standort-filter__btn[aria-expanded="true"] {
	border-color: var(--color-accent-border);
	background: var(--color-background-1);
}

.standort-filter__menu {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 0.4rem;
	background: var(--color-background);
	border: 1px solid var(--color-border-soft);
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	z-index: 10;
	min-width: 220px;
	padding: 0.5rem 0;
}

.standort-filter__menu[hidden] {
	display: none;
}

.standort-filter__option {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.65rem 1rem;
	cursor: pointer;
	user-select: none;
	font-size: 0.9rem;
	color: var(--color-text-primary);
	transition: background-color 0.2s;
}

.standort-filter__option:hover {
	background: var(--color-background-1);
}

.standort-filter__checkbox {
	appearance: none;
	width: 18px;
	height: 18px;
	border: 1px solid var(--color-border-soft);
	border-radius: 4px;
	background: var(--color-background);
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
	flex-shrink: 0;
}

.standort-filter__checkbox:hover {
	border-color: var(--color-accent-border);
}

.standort-filter__checkbox:checked {
	background: var(--color-primary);
	border-color: var(--color-primary);
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 11.94l6.72-6.72a.75.75 0 011.06 0z' fill='white'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px;
}

.datenuebertragung-card {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
}

.datenuebertragung-filter {
	margin-top: 1.25rem;
	margin-bottom: 1.25rem;
	display: flex;
	gap: 0.75rem;
	align-items: flex-end;
	flex-wrap: wrap;
}

.datenuebertragung-date-filter {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-text-highlight-brand);
}

.datenuebertragung-date-range {
	display: flex;
	gap: 0.6rem;
	align-items: flex-end;
	flex-wrap: wrap;
}

.datenuebertragung-date-filter__input {
	width: 160px;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--color-border-soft);
	border-radius: 8px;
	background: var(--color-background);
	color: var(--color-text-primary);
	font: inherit;
}

.datenuebertragung-date-filter__input:focus {
	outline: 2px solid rgba(49, 49, 147, 0.18);
	outline-offset: 2px;
	border-color: var(--color-accent-border);
}

.datenuebertragung-table-wrap {
	margin-top: 1.25rem;
	overflow-x: auto;
}

.datenuebertragung-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 800px;
}

.datenuebertragung-table th,
.datenuebertragung-table td {
	border: 1px solid var(--color-border-soft);
	padding: 0.75rem;
	text-align: left;
	vertical-align: middle;
}

.datenuebertragung-table th {
	background: var(--color-background-1);
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--color-text-highlight-brand);
}

.datenuebertragung-checkbox {
	appearance: none;
	width: 18px;
	height: 18px;
	border: 1px solid var(--color-border-soft);
	border-radius: 4px;
	background: var(--color-background);
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}

.datenuebertragung-checkbox:hover {
	border-color: var(--color-accent-border);
}

.datenuebertragung-checkbox:checked {
	background: var(--color-primary);
	border-color: var(--color-primary);
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 11.94l6.72-6.72a.75.75 0 011.06 0z' fill='white'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px;
}

.datenuebertragung-checkbox:disabled {
	background: #e5e7eb;
	border-color: #cbd5e1;
	cursor: not-allowed;
	opacity: 0.8;
}

.datenuebertragung-checkbox:disabled:hover {
	border-color: #cbd5e1;
}

.datenuebertragung-actions {
	margin-top: 1rem;
	display: flex;
	justify-content: flex-end;
}

.modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, 0.5);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.modal-backdrop[hidden] {
	display: none;
}

.modal-card {
	width: min(100%, 520px);
	background: var(--color-background);
	border: 1px solid var(--color-border-soft);
	border-radius: 12px;
	padding: 1.25rem;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.modal-card__title {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--color-text-highlight-brand);
}

.modal-card__text {
	margin: 0;
	line-height: 1.5;
	color: var(--color-text-primary);
}

.modal-card__actions {
	margin-top: 1.25rem;
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
}

@media (max-width: 800px) {
	.endabnehmer-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.endabnehmer-actions .btn {
		width: 100%;
	}

	.endabnehmer-table {
		min-width: 760px;
	}

	.bestelluebersicht-table {
		min-width: 580px;
	}
}

@media (max-width: 640px) {
	.brand-container {
		padding-inline: 0.25rem;
	}

	.brand-card {
		padding: 1.25rem 1rem;
	}

	.guest-page__form-grid {
		grid-template-columns: 1fr;
	}

	.guest-page__field--full {
		grid-column: auto;
	}

	.endabnehmer-table {
		min-width: 620px;
	}

	.bestelluebersicht-table {
		min-width: 520px;
	}
}
