/* Juist Restaurantführer – übernimmt Schrift und Grundfarben des Themes. Farben über die Variablen anpassbar. */
.jrf {
	--jrf-accent: #1f6f8b;
	--jrf-accent-text: #fff;
	--jrf-open: #2e7d32;
	--jrf-closed: #9e3a2b;
	--jrf-muted: #6b7280;
	--jrf-border: #e3e6ea;
	--jrf-surface: #f6f8f9;
	--jrf-radius: 10px;
	box-sizing: border-box;
}
.jrf *,
.jrf *::before,
.jrf *::after {
	box-sizing: inherit;
}

/* Buttons */
.jrf .jrf-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border: 1px solid var(--jrf-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--jrf-accent);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.jrf .jrf-btn:hover,
.jrf .jrf-btn:focus-visible {
	background: var(--jrf-surface);
}
.jrf .jrf-btn-primary {
	background: var(--jrf-accent);
	color: var(--jrf-accent-text);
}
.jrf .jrf-btn-primary:hover,
.jrf .jrf-btn-primary:focus-visible {
	background: var(--jrf-accent);
	filter: brightness(1.1);
}

/* Karte */
.jrf-map {
	position: relative;
	width: 100%;
	border-radius: var(--jrf-radius);
	overflow: hidden;
	background: var(--jrf-surface);
	border: 1px solid var(--jrf-border);
	z-index: 0;
}
/* Themes (auch Avada) setzen oft max-width/Rahmen/Übergänge auf Bilder – das zerlegt die Kartenkacheln. */
.jrf-map img {
	max-width: none !important;
	max-height: none !important;
	border: 0 !important;
	box-shadow: none !important;
	transition: none !important;
}
.jrf-map-large {
	height: clamp(280px, 55vh, 520px);
	margin-bottom: 20px;
}
.jrf-map-small {
	height: 300px;
}
.jrf-map-consent {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 20px;
	text-align: center;
	color: var(--jrf-muted);
}
.jrf-map-consent p {
	max-width: 420px;
	margin: 0;
	font-size: 0.9em;
}
.jrf-pin {
	background: none;
	border: 0;
}
.jrf-pin span {
	display: block;
	width: 26px;
	height: 26px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: var(--jrf-muted, #6b7280);
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s;
}
.jrf-pin.is-open span {
	background: #2e7d32;
}
.jrf-pin.is-closed span {
	background: #9e3a2b;
}
.jrf-pin.is-unknown span {
	background: #6b7280;
}
.jrf-pin.jrf-pin-base span {
	background: #1f6f8b;
	border-radius: 6px;
	transform: none;
}
.jrf-pin.is-active span {
	transform: rotate(-45deg) scale(1.35);
}
.jrf .leaflet-popup-content {
	font-size: 14px;
	line-height: 1.4;
}

/* Filter */
.jrf-filters {
	margin: 0 0 20px;
}
.jrf-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 12px;
}
.jrf-search {
	flex: 1 1 220px;
}
.jrf .jrf-search input,
.jrf .jrf-select select {
	width: 100%;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--jrf-border);
	border-radius: 8px;
	font: inherit;
	background: #fff;
}
.jrf-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid var(--jrf-border);
	border-radius: 999px;
	cursor: pointer;
	font-weight: 600;
}
.jrf-toggle input {
	accent-color: var(--jrf-open);
	margin: 0;
}
.jrf-filter-group {
	border: 0;
	margin: 0 0 8px;
	padding: 0;
	min-width: 0;
}
.jrf-filter-group legend {
	font-size: 0.8em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--jrf-muted);
	margin-bottom: 6px;
	padding: 0;
}
.jrf-chips {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: thin;
}
.jrf-chip {
	flex: 0 0 auto;
	cursor: pointer;
}
.jrf-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.jrf-chip span {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--jrf-border);
	border-radius: 999px;
	font-size: 0.9em;
	white-space: nowrap;
	background: #fff;
}
.jrf-chip input:checked + span {
	background: var(--jrf-accent);
	border-color: var(--jrf-accent);
	color: var(--jrf-accent-text);
}
.jrf-chip input:focus-visible + span {
	outline: 2px solid var(--jrf-accent);
	outline-offset: 2px;
}
.jrf-count {
	margin: 6px 0 0;
	color: var(--jrf-muted);
	font-size: 0.9em;
}

/* Liste */
.jrf-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}
.jrf-card {
	border: 1px solid var(--jrf-border);
	border-radius: var(--jrf-radius);
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s, transform 0.15s;
}
.jrf-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}
.jrf .jrf-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}
.jrf-card-media {
	aspect-ratio: 16 / 9;
	background: var(--jrf-surface);
	display: flex;
	align-items: center;
	justify-content: center;
}
.jrf-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.jrf-card-media:has(.jrf-card-placeholder) {
	aspect-ratio: auto;
	height: 56px;
}
.jrf-card-placeholder {
	font-size: 1.6em;
	font-weight: 700;
	color: var(--jrf-accent);
	opacity: 0.35;
}
.jrf-card-body {
	padding: 14px 16px 16px;
}
.jrf .jrf-card-body h3 {
	margin: 0 0 4px;
	font-size: 1.1em;
	line-height: 1.3;
}
.jrf .jrf-card-body p {
	margin: 0 0 4px;
	font-size: 0.92em;
}
.jrf-tags {
	color: var(--jrf-muted);
}
.jrf-price {
	font-weight: 700;
	color: inherit;
	margin-left: 4px;
}
.jrf-open-status {
	font-weight: 600;
}
.jrf-open-status.is-open {
	color: var(--jrf-open);
}
.jrf-open-status.is-closed {
	color: var(--jrf-closed);
}
.jrf-open-status.is-unknown {
	color: var(--jrf-muted);
}
.jrf-travel {
	color: var(--jrf-muted);
}
.jrf-excerpt {
	margin-top: 8px !important;
}
.jrf-empty {
	color: var(--jrf-muted);
}

/* Restaurantseite */
.jrf-single > * + * {
	margin-top: 24px;
}
.jrf .jrf-back {
	margin: 0;
	font-size: 0.92em;
}
.jrf-notice {
	padding: 12px 16px;
	border-radius: var(--jrf-radius);
	background: #fdecea;
	color: var(--jrf-closed);
	font-weight: 600;
}
.jrf-facts p {
	margin: 0 0 6px;
}
.jrf-facts .jrf-open-status {
	font-size: 1.1em;
}
.jrf-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}
.jrf-res-note {
	margin-top: 10px !important;
	color: var(--jrf-muted);
	font-size: 0.92em;
}
.jrf .jrf-tip,
.jrf .jrf-bridge {
	padding: 18px 20px;
	border-radius: var(--jrf-radius);
	background: var(--jrf-surface);
	border-left: 4px solid var(--jrf-accent);
}
.jrf .jrf-tip h3,
.jrf .jrf-bridge h3 {
	margin: 0 0 6px;
	font-size: 1.05em;
}
.jrf .jrf-tip p,
.jrf .jrf-bridge p {
	margin: 0 0 10px;
}
.jrf .jrf-tip p:last-child {
	margin-bottom: 0;
}
.jrf-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}
.jrf .jrf-hours table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	border: 0;
}
.jrf .jrf-hours th,
.jrf .jrf-hours td {
	padding: 6px 0;
	border: 0;
	border-bottom: 1px solid var(--jrf-border);
	text-align: left;
	font-weight: normal;
	vertical-align: top;
	background: none;
}
.jrf .jrf-hours th {
	width: 40%;
	padding-right: 12px;
}
.jrf .jrf-hours tr.is-today th,
.jrf .jrf-hours tr.is-today td {
	font-weight: 700;
}
.jrf-season {
	margin: 8px 0 0;
	color: var(--jrf-muted);
	font-size: 0.92em;
}
.jrf .jrf-features ul,
.jrf .jrf-nearby ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.jrf .jrf-features li {
	padding: 4px 0;
}
.jrf .jrf-features li::before {
	content: "✓ ";
	color: var(--jrf-open);
	font-weight: 700;
}
.jrf .jrf-nearby li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--jrf-border);
}
.jrf .jrf-nearby li span {
	color: var(--jrf-muted);
	white-space: nowrap;
}
.jrf .jrf-single h3 {
	margin-bottom: 10px;
}
.jrf-checked {
	color: var(--jrf-muted);
	font-size: 0.85em;
}

@media (max-width: 600px) {
	.jrf-actions .jrf-btn {
		flex: 1 1 100%;
		justify-content: center;
	}
	.jrf-select {
		flex: 1 1 40%;
	}
}

.jrf .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
