/*
Theme Name: Dachwerk
Theme URI: https://example.ch/
Author: Claude
Description: Modernes, schlankes WordPress-Theme für Dachdecker, Bedachungs- und Spenglerfirmen. Onepager-Startseite mit Leistungen, Kennzahlen, Über uns, Notfalldienst, Ablauf, Projekten und Kontakt – alle Texte, Bilder und Farben im Customizer anpassbar. Ohne externe Schriften oder Tracker.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dachwerk
Tags: one-column, custom-logo, custom-menu, custom-colors, featured-images, translation-ready, business
*/

/* ---------- Variablen ---------- */
:root {
	--dw-accent: #2672b0;
	--dw-accent-dark: color-mix(in srgb, var(--dw-accent) 82%, #000);
	--dw-accent-soft: color-mix(in srgb, var(--dw-accent) 10%, #fff);
	--dw-dark: #0b0d10;
	--dw-dark-2: color-mix(in srgb, var(--dw-dark) 88%, #fff);
	--dw-text: #2a3236;
	--dw-muted: #5f6b70;
	--dw-line: #e4dfd8;
	--dw-bg: #ffffff;
	--dw-tint: #f6f2ed;
	--dw-radius: 14px;
	--dw-radius-sm: 8px;
	--dw-shadow: 0 1px 2px rgba(20, 28, 32, .05), 0 8px 24px rgba(20, 28, 32, .07);
	--dw-shadow-lg: 0 2px 4px rgba(20, 28, 32, .06), 0 18px 40px rgba(20, 28, 32, .12);
	--dw-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--dw-container: 1200px;
	--dw-header-h: 96px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--dw-header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--dw-font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--dw-text);
	background: var(--dw-bg);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--dw-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--dw-accent-dark); }

h1, h2, h3, h4 { color: var(--dw-dark); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 750; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--dw-accent); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: #fff; color: var(--dw-dark); border-radius: 6px;
}

.container { width: 100%; max-width: var(--dw-container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; margin-left: auto; margin-right: auto; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 650; font-size: .97rem; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 1em 1.7em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--dw-accent); color: #fff; }
.btn--accent:hover { background: var(--dw-accent-dark); color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: #fff; color: var(--dw-dark); border-color: #fff; }
.btn--outline { color: var(--dw-dark); border-color: var(--dw-line); background: #fff; }
.btn--outline:hover { border-color: var(--dw-dark); color: var(--dw-dark); }
.btn--light { background: #fff; color: var(--dw-accent-dark); }
.btn--light:hover { background: var(--dw-dark); color: #fff; }
.btn .icon { width: 1.1em; height: 1.1em; }

/* ---------- Topbar ---------- */
.topbar { background: #030303; color: rgba(255, 255, 255, .78); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__contact { display: flex; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
a.topbar__item:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; color: var(--dw-accent); filter: brightness(1.35); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--dw-line);
	transition: box-shadow .25s, border-color .25s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(20, 28, 32, .08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--dw-header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--dw-dark); }
.brand__mark { color: var(--dw-accent); display: inline-flex; }
.brand__mark svg { width: 38px; height: 38px; }
.brand__name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.1; }
.site-branding { flex-shrink: 0; }
.brand--logo, .custom-logo-link { display: block; line-height: 0; }
.brand__logo, .custom-logo { height: 80px !important; width: auto !important; max-width: none !important; max-height: none !important; }
.site-footer .brand__logo, .site-footer .custom-logo { height: 100px !important; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav .menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a {
	display: block; padding: 10px 12px; border-radius: 8px;
	color: var(--dw-dark); text-decoration: none; font-weight: 600; font-size: .97rem;
}
.primary-nav .menu a:hover,
.primary-nav .current-menu-item > a { color: var(--dw-accent); }
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px;
	background: #fff; border-radius: var(--dw-radius-sm); box-shadow: var(--dw-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.primary-nav .sub-menu a { color: var(--dw-dark); }
.primary-nav .sub-menu a:hover { color: var(--dw-accent); background: transparent; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate; color: #fff;
	background-color: var(--dw-dark);
	background-image: linear-gradient(100deg, rgba(16, 22, 26, .88) 0%, rgba(16, 22, 26, .62) 48%, rgba(16, 22, 26, .2) 100%), var(--hero-image);
	background-size: cover; background-position: center;
	padding: clamp(80px, 13vw, 170px) 0 clamp(110px, 14vw, 190px);
}
.hero__inner { max-width: var(--dw-container); }
.hero__title { color: #fff; max-width: 15ch; margin-bottom: .35em; }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40rem; color: rgba(255, 255, 255, .86); margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
	font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dw-accent);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: var(--dw-accent); filter: brightness(1.3); }

/* ---------- Kennzahlen ---------- */
.facts { position: relative; z-index: 2; margin-top: -64px; }
.facts__list {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	background: #fff; border-radius: var(--dw-radius); box-shadow: var(--dw-shadow-lg); overflow: hidden;
}
.facts__item { padding: 28px 26px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--dw-line); }
.facts__item:first-child { border-left: 0; }
.facts__number { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--dw-dark); letter-spacing: -.03em; line-height: 1.1; }
.facts__label { color: var(--dw-muted); font-size: .95rem; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tint { background: var(--dw-tint); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-title { margin-bottom: .4em; }
.section-lead { color: var(--dw-muted); font-size: 1.08rem; margin: 0; }

.card { background: #fff; border: 1px solid var(--dw-line); border-radius: var(--dw-radius); }

/* Leistungen */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { padding: 30px 28px 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--dw-shadow-lg); border-color: transparent; }
.service__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
	border-radius: 14px; background: var(--dw-accent-soft); color: var(--dw-accent); margin-bottom: 20px;
}
.service__icon .icon { width: 28px; height: 28px; }
.service__title { margin-bottom: .45em; }
.service__text { color: var(--dw-muted); margin: 0; font-size: .98rem; }

/* Über uns */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--dw-radius); box-shadow: var(--dw-shadow-lg); }
.about__media::after {
	content: ""; position: absolute; z-index: -1; right: -18px; bottom: -18px; width: 55%; height: 55%;
	border-radius: var(--dw-radius); background: var(--dw-accent); opacity: .9;
}
.about__media { isolation: isolate; }
.about .section-head { margin-bottom: 20px; }
.about__text { color: var(--dw-muted); }
.check-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--dw-dark); }
.check-list .icon {
	width: 26px; height: 26px; padding: 5px; border-radius: 50%;
	background: var(--dw-accent); color: #fff; stroke-width: 3; margin-top: 1px;
}

/* Notfall */
.emergency { background: var(--dw-accent); color: #fff; }
.emergency__inner { display: flex; align-items: center; gap: 24px; padding-top: 34px; padding-bottom: 34px; }
.emergency__icon {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .16);
}
.emergency__icon .icon { width: 30px; height: 30px; }
.emergency__text { flex: 1; }
.emergency__title { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin: 0 0 .2em; }
.emergency__text p { margin: 0; color: rgba(255, 255, 255, .9); }
.emergency__btn { white-space: nowrap; }

/* Ablauf */
.process__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.process__step { position: relative; padding: 28px 24px 8px; border-top: 3px solid var(--dw-line); }
.process__step::before {
	content: ""; position: absolute; top: -3px; left: 0; width: 56px; height: 3px; background: var(--dw-accent);
}
.process__num { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--dw-accent); opacity: .22; margin-bottom: 12px; letter-spacing: -.04em; }
.process__step p { color: var(--dw-muted); font-size: .98rem; }

/* Projekte */
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.project:hover { box-shadow: var(--dw-shadow-lg); transform: translateY(-3px); }
.project__media img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.project__body { padding: 22px 24px 8px; }
.project__title { font-size: 1.15rem; }
.project__title a { color: var(--dw-dark); text-decoration: none; }
.project__title a:hover { color: var(--dw-accent); }
.project__body p { color: var(--dw-muted); font-size: .96rem; }
.projects__more { text-align: center; margin: 40px 0 0; }
.meta { color: var(--dw-muted); font-size: .85rem; margin-bottom: .4em; }

/* Kontakt */
.process + .projects { padding-top: 0; }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact .section-head { margin-bottom: 30px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list a:hover { color: var(--dw-accent); }
.contact-list--large li { gap: 16px; }
.contact-list--large .icon {
	width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--dw-accent-soft); color: var(--dw-accent);
}
.contact-list--large span { display: flex; flex-direction: column; font-weight: 600; color: var(--dw-dark); }
.contact-list--large small { font-weight: 500; color: var(--dw-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.section--tint .contact-list--large .icon { background: #fff; box-shadow: var(--dw-shadow); }
.contact__panel { padding: clamp(28px, 4vw, 44px); box-shadow: var(--dw-shadow-lg); border: 0; }
.contact__panel-title { font-size: 1.45rem; }
.contact__panel p { color: var(--dw-muted); }
.contact__actions { display: grid; gap: 12px; margin-top: 26px; }

/* Formulare (inkl. Contact Form 7) */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], input[type="number"], select, textarea {
	width: 100%; font: inherit; color: var(--dw-text); background: #fff;
	border: 1px solid var(--dw-line); border-radius: var(--dw-radius-sm); padding: .75em .9em;
	transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--dw-accent); box-shadow: 0 0 0 3px var(--dw-accent-soft); }
textarea { min-height: 140px; resize: vertical; }
label { font-weight: 600; font-size: .92rem; color: var(--dw-dark); }
input[type="submit"], button[type="submit"], .wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
	padding: 1em 1.7em; border-radius: 999px; background: var(--dw-accent); color: #fff; font: inherit; font-weight: 650;
}
input[type="submit"]:hover, button[type="submit"]:hover, .wpcf7-submit:hover { background: var(--dw-accent-dark); }
.wpcf7 p { margin-bottom: 1em; }
.search-form { display: flex; gap: 10px; margin: 0 0 24px; }
.search-form label { flex: 1; }

/* ---------- Unterseiten ---------- */
.page-hero { background: var(--dw-dark); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); }
.page-hero__title { color: #fff; margin: 0; font-size: clamp(2rem, 4.2vw, 3rem); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { margin-top: 1.6em; font-size: 1.8rem; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--dw-radius-sm); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content blockquote { margin: 1.5em 0; padding: .5em 0 .5em 1.2em; border-left: 4px solid var(--dw-accent); font-size: 1.1rem; color: var(--dw-dark); }
.entry-thumb { margin: 0 0 2em; }
.entry-thumb img { border-radius: var(--dw-radius); }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-button__link { background: var(--dw-accent); border-radius: 999px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--dw-line); font-weight: 600; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--dw-line); text-decoration: none; color: var(--dw-dark); }
.pagination .current { background: var(--dw-dark); color: #fff; border-color: var(--dw-dark); }

/* ---------- Footer ---------- */
.site-footer { background: #030303; color: rgba(255, 255, 255, .72); font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.site-footer__grid:has(> :nth-child(4)) { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer__about p { max-width: 34ch; }
.site-footer__title { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .contact-list .icon { color: var(--dw-accent); filter: brightness(1.35); margin-top: 3px; width: 18px; height: 18px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .87rem; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.site-footer__bottom p { margin: 0; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-footer .widget { margin-bottom: 24px; }
.site-footer .widget ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.services__grid, .projects__grid { grid-template-columns: repeat(2, 1fr); }
	.process__list { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
	.site-footer__grid, .site-footer__grid:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	:root { --dw-header-h: 76px; }
	.brand__logo, .custom-logo { height: 62px !important; }
	.topbar__address { display: none; }
	.topbar__inner { justify-content: center; }

	.nav-toggle {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 46px; height: 46px; padding: 0 11px; border: 1px solid var(--dw-line); border-radius: 10px;
		background: transparent; cursor: pointer;
	}
	.nav-toggle__bar { display: block; height: 2px; background: var(--dw-dark); border-radius: 2px; transition: transform .25s, opacity .25s; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.primary-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 24px 24px;
		background: #fff; border-bottom: 1px solid var(--dw-line); box-shadow: 0 18px 30px rgba(20, 28, 32, .1);
		display: none;
	}
	.primary-nav.is-open { display: flex; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu a { padding: 13px 4px; border-bottom: 1px solid var(--dw-line); border-radius: 0; font-size: 1.05rem; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; background: transparent; }
	.primary-nav .sub-menu a { color: var(--dw-muted); }

	.about__grid, .contact__grid { grid-template-columns: 1fr; }
	.about__media { max-width: 620px; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 680px) {
	body { font-size: 16px; }
	.container { padding: 0 18px; }
	.topbar { font-size: .8rem; }
	.topbar__contact { gap: 16px; }
	.topbar__contact a:nth-child(2) { display: none; }
	.brand__name { font-size: 1.05rem; }
	.brand__logo, .custom-logo { height: 52px !important; }
	.brand__mark svg { width: 32px; height: 32px; }
	.hero__actions .btn { width: 100%; }
	.facts { margin-top: -44px; }
	.facts__list { grid-template-columns: 1fr 1fr; }
	.facts__item { padding: 20px 18px; border-left: 0; }
	.facts__item:nth-child(even) { border-left: 1px solid var(--dw-line); }
	.facts__item:nth-child(n+3) { border-top: 1px solid var(--dw-line); }
	.services__grid, .projects__grid, .process__list { grid-template-columns: 1fr; }
	.emergency__inner { flex-direction: column; text-align: center; }
	.emergency__btn { width: 100%; }
	.site-footer__grid, .site-footer__grid:has(> :nth-child(4)) { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
	.about__media::after { right: -10px; bottom: -10px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}

/* ---------- Galerie & Lightbox ---------- */
.gallery + .projects { padding-top: clamp(64px, 9vw, 110px); }
.gallery__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery__link { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--dw-radius-sm); background: #ddd; }
.gallery__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__link::after { content: ""; position: absolute; inset: 0; background: rgba(3, 3, 3, 0); transition: background .3s; }
.gallery__zoom {
	position: absolute; z-index: 1; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
	display: flex; align-items: center; justify-content: center; border-radius: 50%;
	background: #fff; color: var(--dw-dark); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s;
}
.gallery__link:hover .gallery__img, .gallery__link:focus-visible .gallery__img { transform: scale(1.06); }
.gallery__link:hover::after, .gallery__link:focus-visible::after { background: rgba(3, 3, 3, .35); }
.gallery__link:hover .gallery__zoom, .gallery__link:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.gallery__hint { text-align: center; padding: 24px; border: 2px dashed var(--dw-line); border-radius: var(--dw-radius); color: var(--dw-muted); margin: 0; }

.lightbox {
	position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
	background: rgba(3, 3, 3, .97); padding: 60px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox__caption { color: rgba(255, 255, 255, .85); text-align: center; margin-top: 14px; font-size: .95rem; }
.lightbox__caption:empty { display: none; }
.lightbox__btn {
	position: absolute; display: flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
	background: rgba(255, 255, 255, .1); color: #fff; font-size: 2.2rem; line-height: 1; transition: background .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { top: 16px; right: 16px; font-size: 2rem; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 26px; left: 24px; margin: 0; color: rgba(255, 255, 255, .7); font-size: .9rem; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 1080px) {
	.gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
	.gallery__grid { gap: 8px; }
	.gallery__zoom { display: none; }
	.lightbox { padding: 60px 8px 70px; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
	.lightbox__prev { left: calc(50% - 64px); }
	.lightbox__next { right: calc(50% - 64px); }
}

/* ---------- Impressum ---------- */
.imprint h2 { font-size: 1.35rem; margin-top: 1.8em; }
.imprint h2:first-child { margin-top: 0; }
.imprint__address { font-size: 1.05rem; line-height: 1.7; }
.imprint__list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 28px; margin: 1.5em 0 0; padding: 22px 26px; background: var(--dw-tint); border-radius: var(--dw-radius-sm); }
.imprint__list dt { font-weight: 650; color: var(--dw-dark); }
.imprint__list dd { margin: 0; }
@media (max-width: 680px) {
	.imprint__list { grid-template-columns: 1fr; gap: 2px; }
	.imprint__list dd { margin-bottom: 10px; }
}
