/* Hipposkop 2026 - modernes, DSGVO-konformes Design
   Farbpalette 1:1 aus dem bisherigen Auftritt übernommen. */

@font-face {
	font-family: 'Varela';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/varela.ttf') format('truetype');
}

@font-face {
	font-family: 'Delius';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/delius.ttf') format('truetype');
}

:root {
	--color-brand: #a80204;
	--color-brand-dark: #7a0103;
	--color-accent: #009fee;
	--color-ink: #252b33;
	--color-text: #353535;
	--color-muted: #6f7785;
	--color-cream: #f6f4e5;
	--color-surface: #ffffff;
	--color-border: #e6e2d4;

	--font-heading: 'Delius', Georgia, serif;
	--font-body: 'Varela', system-ui, -apple-system, sans-serif;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 10px 30px rgba(37, 43, 51, 0.09);
	--shadow-sm: 0 4px 14px rgba(37, 43, 51, 0.08);
	--max-width: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-cream);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	isolation: isolate;
}

/* ---------- Hintergrund-Slideshow (ersetzt das frühere jQuery/Supersized-Plugin) ---------- */

bg-slideshow { display: block; }

.bg-slideshow {
	position: fixed;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: -1;
}
.bg-slideshow::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(246, 244, 229, 0.55);
}
.bg-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 2s ease;
}
.bg-slide.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	.bg-slide { transition: none; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--color-ink);
	color: #fff;
	padding: 0.75em 1.25em;
	z-index: 1000;
	border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

site-header { display: block; }

.site-header {
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 200;
}

.site-header__bar {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0.75rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-header__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--color-ink);
}
.site-header__brand:hover { text-decoration: none; }

.site-header__brand img {
	height: 56px;
	width: auto;
}

.site-header__brand-text {
	font-family: var(--font-heading);
	line-height: 1.2;
}
.site-header__brand-text strong {
	display: block;
	font-size: 1.05rem;
	color: var(--color-brand);
}
.site-header__brand-text span {
	display: block;
	font-size: 0.85rem;
	color: var(--color-muted);
}

.site-header__contact {
	display: none;
	font-size: 0.9rem;
	text-align: right;
	color: var(--color-muted);
}
.site-header__contact a { color: var(--color-ink); }

.nav-toggle {
	display: inline-flex;
	flex: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	cursor: pointer;
	padding: 0;
}
.nav-toggle span {
	display: block;
	height: 2px;
	margin: 0 9px;
	background: var(--color-ink);
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
	max-width: var(--max-width);
	margin: 0 auto;
	display: none;
	flex-direction: column;
	padding: 0 1.25rem 1rem;
}
.site-nav.is-open { display: flex; }

.site-nav a {
	display: block;
	padding: 0.6rem 0;
	color: var(--color-ink);
	border-bottom: 1px solid var(--color-border);
	font-weight: 600;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
	color: var(--color-brand);
	text-decoration: none;
}

@media (min-width: 900px) {
	.nav-toggle { display: none; }
	.site-header__contact { display: block; }
	.site-nav {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.25rem 1.5rem;
		padding: 0 1.25rem 0.85rem;
	}
	.site-nav a { border-bottom: 2px solid transparent; padding: 0.25rem 0.1rem; }
	.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--color-brand); }
}

/* ---------- Main layout ---------- */

main {
	max-width: var(--max-width);
	margin: 2rem auto;
	padding: 0 1.25rem;
}

.card {
	background: var(--color-surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.75rem;
}

@media (min-width: 700px) {
	.card { padding: 2.5rem; }
}

h1, h2, h3 {
	font-family: var(--font-heading);
	color: var(--color-brand);
	line-height: 1.25;
}
h1 { font-size: 1.9rem; margin-top: 0; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; color: var(--color-ink); }

.page-title {
	font-size: 2rem;
	margin-bottom: 0.25rem;
}

.lede {
	color: var(--color-muted);
	margin-top: 0;
}

.prose p { margin: 0 0 1rem; }
.prose hr {
	border: none;
	border-top: 1px solid var(--color-border);
	margin: 2rem 0;
}
.prose ul { padding-left: 1.25rem; }
.prose img { border-radius: var(--radius-sm); margin: 1rem 0; }

.quote {
	font-family: var(--font-heading);
	font-style: italic;
	color: var(--color-brand);
	border-left: 4px solid var(--color-brand);
	padding: 0.75rem 1.25rem;
	margin: 2rem 0 0;
	background: var(--color-cream);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.hero-figure {
	margin: 1.5rem 0;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

/* ---------- Contact boxes ---------- */

.contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin: 1.5rem 0;
}
@media (min-width: 640px) {
	.contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
	.contact-grid { grid-template-columns: repeat(3, 1fr); }
}

.contact-box {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	background: var(--color-cream);
	border-radius: var(--radius-sm);
	padding: 1.1rem;
}
.contact-box svg {
	flex: none;
	width: 28px;
	height: 28px;
	color: var(--color-brand);
}
.contact-box .label {
	display: block;
	font-size: 0.8rem;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.contact-box a, .contact-box strong { color: var(--color-ink); font-weight: 600; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--color-brand);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 0.75rem 1.5rem;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}
.btn:hover { background: var(--color-brand-dark); text-decoration: none; }

/* ---------- Map placeholder ---------- */

.map-placeholder {
	width: 100%;
	min-height: 320px;
	border-radius: var(--radius);
	background: var(--color-cream);
	border: 1px dashed var(--color-border);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem 1rem;
}
.map-placeholder p { max-width: 32ch; color: var(--color-muted); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Gallery overview ---------- */

.gallery-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin-top: 1.5rem;
}
@media (min-width: 640px) {
	.gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
	.gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-card {
	display: block;
	background: var(--color-cream);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	color: var(--color-ink);
}
.gallery-card:hover { text-decoration: none; }
.gallery-card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-card__img img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card__body { padding: 1rem 1.1rem 1.25rem; }
.gallery-card__body h3 { margin: 0 0 0.35rem; }
.gallery-card__body span { color: var(--color-accent); font-weight: 600; font-size: 0.9rem; }

/* ---------- Photo grid + lightbox ---------- */

.photo-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin-top: 1.5rem;
}
@media (min-width: 640px) {
	.photo-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 960px) {
	.photo-grid { grid-template-columns: repeat(4, 1fr); }
}

.photo-grid button {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
	border-radius: var(--radius-sm);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	box-shadow: var(--shadow-sm);
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.photo-grid button:hover img { transform: scale(1.04); }

dialog.lightbox {
	border: none;
	padding: 0;
	background: transparent;
	max-width: 92vw;
	max-height: 92vh;
}
dialog.lightbox::backdrop { background: rgba(20, 20, 20, 0.85); }
.lightbox__figure {
	position: relative;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lightbox__figure img {
	max-width: 92vw;
	max-height: 86vh;
	width: auto;
	border-radius: var(--radius-sm);
}
.lightbox__close, .lightbox__prev, .lightbox__next {
	position: absolute;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 999px;
	width: 44px;
	height: 44px;
	font-size: 1.25rem;
	cursor: pointer;
	color: var(--color-ink);
}
.lightbox__close { top: -18px; right: -18px; }
.lightbox__prev { left: -18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: -18px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */

site-footer { display: block; }

.site-footer {
	background: var(--color-ink);
	color: #cfd3da;
	margin-top: 3rem;
}
.site-footer__bar {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 2rem 1.25rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	justify-content: space-between;
	align-items: center;
}
.site-footer a { color: #f2f0e6; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer__note { width: 100%; font-size: 0.8rem; color: #8992a1; }
