/* Boat & Rental Booking – Frontend
   Farben lassen sich im Theme überschreiben, z. B.:
   .brb-booking, .brb-grid { --brb-accent: #c2410c; } */

.brb-booking,
.brb-grid,
.brb-result,
.brb-facts {
	--brb-accent: #0b6e99;
	--brb-accent-contrast: #fff;
	--brb-border: rgba(0, 0, 0, .14);
	--brb-muted: rgba(0, 0, 0, .6);
	--brb-surface: rgba(0, 0, 0, .025);
	--brb-radius: 10px;
	box-sizing: border-box;
}

.brb-booking *,
.brb-grid * { box-sizing: border-box; }

/* Fakten-Liste */
.brb-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 1.5em 0 1em;
	padding: 0;
}
.brb-facts li {
	background: var(--brb-surface);
	border: 1px solid var(--brb-border);
	border-radius: 999px;
	padding: 4px 14px;
	font-size: .9em;
	margin: 0;
}

/* Formular */
.brb-booking {
	border: 1px solid var(--brb-border);
	border-radius: var(--brb-radius);
	padding: clamp(16px, 4vw, 28px);
	margin: 2em 0;
	max-width: 760px;
}
.brb-form__title { margin: 0 0 .75em; }

.brb-step {
	border: 0;
	margin: 0 0 1.5em;
	padding: 0;
	min-width: 0;
}
.brb-step legend {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	margin-bottom: .75em;
	padding: 0;
}
.brb-step__no {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--brb-accent);
	color: var(--brb-accent-contrast);
	font-size: .85em;
}

.brb-tariffs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
}
.brb-tariff {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	border: 2px solid var(--brb-border);
	border-radius: var(--brb-radius);
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.brb-tariff:hover { border-color: var(--brb-accent); }
.brb-tariff:has(input:checked) {
	border-color: var(--brb-accent);
	background: color-mix(in srgb, var(--brb-accent) 8%, transparent);
}
.brb-tariff input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.brb-tariff:has(input:focus-visible) { outline: 2px solid var(--brb-accent); outline-offset: 2px; }
.brb-tariff__name { font-weight: 600; }
.brb-tariff__dur { font-size: .85em; color: var(--brb-muted); }
.brb-tariff__price { font-size: 1.15em; font-weight: 700; color: var(--brb-accent); margin-top: 4px; }

.brb-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
}
.brb-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 12px;
}
.brb-field > span { font-size: .9em; font-weight: 500; }
.brb-field input,
.brb-field select,
.brb-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--brb-border);
	border-radius: 8px;
	font: inherit;
	background: transparent;
	color: inherit;
}
.brb-field select:disabled { opacity: .6; }
.brb-field input:focus,
.brb-field select:focus,
.brb-field textarea:focus {
	outline: 2px solid var(--brb-accent);
	outline-offset: 0;
	border-color: transparent;
}

.brb-methods { display: grid; gap: 8px; }
.brb-method {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid var(--brb-border);
	border-radius: 8px;
	cursor: pointer;
}
.brb-method:has(input:checked) { border-color: var(--brb-accent); }

.brb-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

.brb-summary {
	background: var(--brb-surface);
	border-radius: var(--brb-radius);
	padding: 14px 18px;
	margin: 0 0 1em;
}
.brb-summary__line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}
.brb-total { font-size: 1.5em; }
.brb-summary__note { margin: 6px 0 0; font-size: .85em; color: var(--brb-muted); }

.brb-check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 1em; }

.brb-button {
	display: inline-block;
	background: var(--brb-accent, #0b6e99);
	color: var(--brb-accent-contrast, #fff) !important;
	border: 0;
	border-radius: 8px;
	padding: 12px 22px;
	font: inherit;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	transition: filter .15s;
}
.brb-button:hover { filter: brightness(1.1); }
.brb-button:disabled { opacity: .6; cursor: wait; }
.brb-submit { width: 100%; font-size: 1.05em; }

.brb-message:empty { display: none; }
.brb-message { margin-top: 1em; }

/* Hinweise */
.brb-alert {
	border-radius: 8px;
	padding: 12px 16px;
	border-left: 4px solid;
	margin: 1em 0;
}
.brb-alert--success { background: #ecfdf3; border-color: #16a34a; color: #14532d; }
.brb-alert--info { background: #eff6ff; border-color: #2563eb; color: #1e3a8a; }
.brb-alert--error { background: #fef2f2; border-color: #dc2626; color: #7f1d1d; }
.brb-result h3 { margin-top: 0; color: inherit; }
.brb-result table { width: 100%; max-width: 560px; background: #fff; color: #1d2327; }

/* Übersicht */
.brb-grid {
	display: grid;
	grid-template-columns: repeat(var(--brb-cols, 3), minmax(0, 1fr));
	gap: 24px;
	margin: 1.5em 0;
}
@media (max-width: 900px) { .brb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .brb-grid { grid-template-columns: 1fr; } }

.brb-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--brb-border);
	border-radius: var(--brb-radius);
	overflow: hidden;
}
.brb-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--brb-surface); }
.brb-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.brb-card:hover .brb-card__media img { transform: scale(1.03); }
.brb-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, color-mix(in srgb, var(--brb-accent) 25%, transparent), color-mix(in srgb, var(--brb-accent) 5%, transparent));
}
.brb-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.brb-card__title { margin: 0; font-size: 1.15em; }
.brb-card__title a { text-decoration: none; color: inherit; }
.brb-card__excerpt { margin: 0; font-size: .92em; color: var(--brb-muted); }
.brb-card__price { margin: auto 0 4px; }
.brb-card .brb-button { align-self: flex-start; }

@media (prefers-color-scheme: dark) {
	.brb-booking, .brb-grid, .brb-result, .brb-facts {
		--brb-border: rgba(255, 255, 255, .2);
		--brb-muted: rgba(255, 255, 255, .65);
		--brb-surface: rgba(255, 255, 255, .05);
	}
}
