/* =====================================================================
   sebastiansukV2 (11-2026)
   Dunkles, bildbetontes Layout fuer die Foto-Website: Fotos wirken auf
   dunklem Grund am besten. Systemschriften (keine externen Fonts),
   responsives Raster, mobiles Menue ohne JavaScript.
   ===================================================================== */

:root {
	--bg: #0e0e10;
	--surface: #17171b;
	--surface-2: #1f1f24;
	--border: #2a2a31;
	--text: #ececef;
	--muted: #9c9ca6;
	--accent: #e2b45a;
	--accent-soft: rgba(226, 180, 90, .14);
	--radius: 10px;
	--wrap: 1280px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color-scheme: dark;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body.v2 {
	min-height: 100vh; display: flex; flex-direction: column;
	background: var(--bg); color: var(--text);
	font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased;
}
body.v2 input, body.v2 textarea, body.v2 select, body.v2 button { font-family: var(--font); }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; border: 0; }

.v2-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.v2-skip { position: absolute; left: 8px; top: 8px; z-index: 1000; transform: translateY(-200%); background: var(--accent); color: #111; padding: 8px 14px; border-radius: 8px; }
.v2-skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Kopfbereich ---------- */
.v2-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(14, 14, 16, .86);
	-webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid var(--border);
}
.v2-header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.v2-logo { display: flex; flex-direction: column; line-height: 1.1; color: var(--text); }
.v2-logo:hover { text-decoration: none; color: #fff; }
.v2-logo-name { font-size: 20px; font-weight: 300; letter-spacing: .22em; text-transform: uppercase; }
.v2-logo-sub { margin-top: 5px; font-size: 11px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: var(--accent); }

.v2-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.v2-nav a {
	display: block; padding: 8px 14px; border-radius: 999px;
	color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
}
.v2-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.v2-nav a.active { color: var(--bg); background: var(--text); }

.v2-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.v2-burger { display: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; position: relative; }
.v2-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.v2-burger span:nth-child(1) { top: 15px; } .v2-burger span:nth-child(2) { top: 21px; } .v2-burger span:nth-child(3) { top: 27px; }
.v2-burger em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 820px) {
	.v2-header-inner { min-height: 64px; }
	.v2-logo-name { font-size: 17px; }
	.v2-burger { display: block; }
	.v2-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 8px 20px 18px; background: var(--bg); border-bottom: 1px solid var(--border); }
	.v2-nav ul { flex-direction: column; gap: 2px; }
	.v2-nav a { border-radius: 10px; padding: 13px 14px; font-size: 15px; }
	.v2-nav-toggle:checked ~ .v2-nav { display: block; }
	.v2-nav-toggle:checked + .v2-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.v2-nav-toggle:checked + .v2-burger span:nth-child(2) { opacity: 0; }
	.v2-nav-toggle:checked + .v2-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Inhalt allgemein ---------- */
.v2-main { flex: 1 0 auto; padding: 48px 0 72px; overflow-x: clip; }
.v2-main article.content { display: flow-root; }
.content h1, .content h2, .content h3 { color: #fff; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; margin: 1.6em 0 .5em; }
.content h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 300; letter-spacing: .02em; margin-top: 0; }
.content h2 { font-size: 22px; }
.content h3 { font-size: 18px; }
.content p { margin: 0 0 1em; }
.content ul { padding-left: 20px; }
.content p:empty { display: none; }
.content hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

/* Meldungen */
.warning { padding: 12px 16px; margin: 0 0 20px; border-radius: var(--radius); font-size: 15px; border: 1px solid #5a2a2a; background: #2a1517; color: #ffb4b4; }
.warning.prio3 { border-color: #2a5a3a; background: #13261a; color: #9fe2b6; }

/* ---------- Raster fuer Galerien ---------- */
.v2-grid { display: grid; gap: 14px; }
.v2-grid-albums { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.v2-grid-photos { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 560px) {
	.v2-grid { gap: 8px; }
	.v2-grid-albums, .v2-grid-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.v2-tile {
	position: relative; display: block; overflow: hidden; border-radius: var(--radius);
	background: var(--surface); aspect-ratio: 1 / 1;
}
.v2-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.v2-tile:hover img { transform: scale(1.04); filter: brightness(1.06); }
.v2-tile-title {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px;
	background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent);
	color: #fff; font-size: 15px; font-weight: 500; letter-spacing: .02em; line-height: 1.3;
}
.v2-grid-photos .v2-tile-title { opacity: 0; transition: opacity .25s; font-size: 14px; }
.v2-grid-photos .v2-tile:hover .v2-tile-title, .v2-grid-photos .v2-tile:focus-visible .v2-tile-title { opacity: 1; }
.v2-tile:hover { text-decoration: none; }
@media (max-width: 560px) { .v2-tile-title { font-size: 13px; padding: 28px 10px 8px; } }

/* Kopf einer einzelnen Galerie */
.v2-album-head { margin-bottom: 26px; }
.v2-back { margin: 0 0 10px !important; font-size: 14px; }
.v2-back a { color: var(--muted); }
.v2-back a:hover { color: var(--text); }
.content .v2-album-head h1 { margin: 0 0 8px; }
.v2-album-desc { color: var(--muted); max-width: 70ch; }

/* ---------- Seitenwechsel ---------- */
.v2-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 36px 0 0; float: none; width: auto; text-align: center; }
.v2-pagination a {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
	border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 15px;
}
.v2-pagination a:hover { color: var(--text); border-color: var(--muted); text-decoration: none; }
.v2-pagination a.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.v2-pagination a b { font-weight: 600; }

/* ---------- Portfolio (Benutzermodul "leistungen") ---------- */
#gallery.leistungen .item .desc p, #gallery.gallery .item .desc p {
	font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7; color: #d6d6dc; max-width: 75ch; margin: 0;
}
#gallery.leistungen { order: 2; margin-top: 36px; }
.page-portfolio .slider-wrapper, .page-portfolio .slider-wrapper.theme-default { order: 1; width: 100%; max-width: 1040px; margin: 0 auto; }
.page-portfolio #gallery.leistungen { width: 100%; max-width: 1040px; margin-left: auto; margin-right: auto; }
.page-portfolio .content > link { display: none; }

/* Einleitung der Startseite: Text aus dem CMS in <div class="v2-intro"> (11-2026) */
.v2-intro { width: 100%; max-width: 1040px; margin: 36px auto 0; }
.content .v2-intro h1, .content .v2-intro-title { font-size: clamp(30px, 4.6vw, 52px); font-weight: 300; letter-spacing: -.01em; line-height: 1.1; margin: 0 0 18px; }
.v2-intro p.v2-intro-lead, #gallery.leistungen .item .desc p.v2-intro-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7; color: #d6d6dc; max-width: 62ch; margin: 0 0 24px; }
.content ul.v2-focus { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.content ul.v2-focus li { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; color: var(--muted); letter-spacing: .02em; }
.v2-intro p.v2-intro-actions, #gallery.leistungen .item .desc p.v2-intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; font-size: inherit; }
.v2-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 13px 26px; border-radius: 999px; border: 1px solid var(--text);
	background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	transition: background .15s, color .15s;
}
.v2-btn:hover { background: transparent; color: var(--text); text-decoration: none; }
.v2-btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.v2-btn-ghost:hover { border-color: var(--text); }
@media (max-width: 560px) { .v2-intro-actions .v2-btn { flex: 1 1 100%; } }

.v2-slider, #slider {
	position: relative; overflow: hidden; border-radius: 14px; background: var(--surface);
	aspect-ratio: 696 / 454; width: 100%; max-height: 78vh;
}
.v2-slider > img, #slider > img {
	position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover;
	opacity: 0; transition: opacity 1.2s ease;
}
#slider > img:first-child { opacity: 1; }
#slider > img, .v2-slider > img { display: block !important; visibility: visible !important; }
#slider.v2-slider > img, .v2-slider > img { opacity: 0; }
#slider.v2-slider > img.is-active, .v2-slider > img.is-active { opacity: 1; }
.v2-slider-btn {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(0, 0, 0, .45); color: #fff; font-size: 30px; line-height: 1; padding: 0 0 4px;
	opacity: 0; transition: opacity .25s, background .2s;
}
.v2-slider:hover .v2-slider-btn, .v2-slider-btn:focus-visible { opacity: 1; }
.v2-slider-btn:hover { background: rgba(0, 0, 0, .7); }
.v2-prev { left: 14px; } .v2-next { right: 14px; }
@media (hover: none) { .v2-slider-btn { opacity: .8; } }
.nivo-controlNav, .nivo-directionNav, .nivo-caption { display: none !important; }
/* alte Nivo-CSS (wird vom Inhalt eingebunden) neutralisieren */
#slider.nivoSlider { float: none !important; margin: 0 !important; box-shadow: none !important; }
.slider-wrapper.theme-default { margin: 0; padding: 0; background: none; }

/* Benutzermodul "content_gallery" (z. B. Leistungen) */
#gallery.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
#gallery.gallery .image a { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1 / 1; background: var(--surface); }
#gallery.gallery .image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
#gallery.gallery .image a:hover img { transform: scale(1.04); }

/* ---------- Kontakt ---------- */
.page-kontakt article.content { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-auto-flow: row dense; gap: 0 56px; align-items: start; position: relative; }
.page-kontakt article.content > a[name] { position: absolute; }
.page-kontakt article.content > :not(#kontakt):not(#kontktAddress):not(a[name]) { grid-column: 1 / -1; }
.page-kontakt #kontakt { grid-column: 1; }
.page-kontakt #kontktAddress { grid-column: 2; padding: 26px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.content #kontktAddress h1 { font-size: 22px; font-weight: 400; margin: 0 0 14px; }
#kontktAddress p { color: #d6d6dc; }
@media (max-width: 820px) {
	.page-kontakt article.content { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.page-kontakt #kontktAddress { margin-top: 28px; }
	.v2-contact-intro { margin-bottom: 24px; }
	.page-kontakt #kontakt, .page-kontakt #kontktAddress { grid-column: 1; grid-row: auto; }
}

/* Einleitung der Kontaktseite (Text aus dem CMS) */
.v2-contact-intro { margin: 0 0 34px; max-width: 72ch; }
.content .v2-contact-intro h1 { margin: 0 0 14px; }
.v2-contact-intro p { color: #d6d6dc; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.7; }
.page-kontakt .content > p:empty, .page-kontakt .content > p:has(> #kontakt) { margin: 0; }

/* ---------- Formulare ---------- */
#kontaktFields { display: grid; gap: 14px; }
.form-group { display: grid; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
input[type="text"], input[type="email"], input[type="search"], input[type="password"], textarea, select {
	width: 100%; font-size: 16px; line-height: 1.4; color: var(--text);
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 12px 14px; margin: 0; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 180px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
button, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	padding: 14px 28px; border-radius: 999px; border: 1px solid var(--text);
	background: var(--text); color: var(--bg); cursor: pointer; transition: background .15s, color .15s;
}
button:hover, input[type="submit"]:hover { background: transparent; color: var(--text); }
#kontaktSubmit { margin-top: 18px; }
#kontaktSubmit button { width: 100%; }

/* Datenschutz-Bestaetigung */
p.checkbox { position: relative; padding-left: 38px; margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
label.checkbox { position: absolute; left: 0; top: 1px; width: 24px; height: 24px; margin: 0; cursor: pointer; text-transform: none; letter-spacing: 0; }
label.checkbox input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
label .checkmark { position: absolute; inset: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); transition: border-color .15s, background .15s; }
label.checkbox:hover .checkmark, label.checkbox input:focus-visible ~ .checkmark { border-color: var(--accent); }
label.checkbox input:checked ~ .checkmark { background: var(--accent); border-color: var(--accent); }
label.checkbox input:checked ~ .checkmark::after { content: ""; position: absolute; left: 8px; top: 3px; width: 6px; height: 12px; border: solid #111; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
textarea::placeholder { color: #6f6f78; }
.form-group.captcha .captcha-img { border-radius: 6px; }
.form-group.captcha input { max-width: 220px; letter-spacing: .15em; text-transform: uppercase; }

/* ---------- Textseiten (Impressum, Datenschutz, Bestellung) ---------- */
#impressum, #picorder { max-width: 820px; }
#impressum .item, #picorder .itemBig { background: transparent; padding: 0; }
#impressum p, #picorder p, #impressum li { color: #d6d6dc; }
#impressum h2, #picorder h2 { color: #fff; }

/* ---------- Fussbereich ---------- */
.v2-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; padding: 26px 0; }
.v2-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; }
.v2-footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.v2-footer a { color: var(--muted); }
.v2-footer a:hover { color: var(--text); }

/* ---------- Lightbox (fancybox 2) etwas dunkler ---------- */
.fancybox-overlay { background: rgba(5, 5, 7, .92) !important; }
.fancybox-skin { background: #111 !important; border-radius: 6px !important; }
.fancybox-title-float-wrap .child { background: rgba(0, 0, 0, .7) !important; text-shadow: none !important; }
/* Schliessen-Button: liegt sonst halb ausserhalb und wird abgeschnitten -> ins Bild, rund und gut sichtbar */
.fancybox-close {
	top: 12px !important; right: 12px !important; left: auto !important;
	width: 40px !important; height: 40px !important; border-radius: 50%;
	background: rgba(0, 0, 0, .55) !important; z-index: 8040;
	transition: background .2s;
}
.fancybox-close::before, .fancybox-close::after {
	content: ""; position: absolute; left: 11px; right: 11px; top: 19px; height: 2px; background: #fff; border-radius: 2px;
}
.fancybox-close::before { transform: rotate(45deg); }
.fancybox-close::after { transform: rotate(-45deg); }
.fancybox-close:hover { background: rgba(0, 0, 0, .8) !important; }

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
	body.v2 { font-size: 16px; }
	.v2-wrap { padding: 0 16px; }
	.v2-main { padding: 28px 0 56px; }
	.v2-slider, #slider { border-radius: 10px; }
	.page-kontakt #kontktAddress { padding: 20px; }
	.v2-footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.v2-tile img, .v2-slider > img, #gallery.gallery .image img { transition: none; }
	.v2-tile:hover img { transform: none; }
}
