/*
Theme Name: 10x Neonschilder V6
Theme URI: https://10x-products.com/
Author: 10x Products
Description: Landingpage für 10x Products mit Konfigurator, Preisbeispielen, Referenzen, Kurzanfrage und FAQ. Ersetzt "10x Premium Landing V5".
Version: 6.8.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tenx6
*/

@font-face {
	font-family: "Space Grotesk";
	src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #3a3a44;
	--bg-alt: #313138;
	--card: #45454f;
	--line: rgba(255, 255, 255, 0.12);
	--text: #edebf5;
	--body: #d7d7de;
	--muted: #b8b8c4;
	/* Akzent = Rot aus dem Logo (#FC0000). Knöpfe etwas dunkler, damit die weiße Schrift gut lesbar ist. */
	--red: #fc0000;
	--red-btn: #e10600;
	--red-btn-hover: #f00a00;
	--red-text: #ff6b63;
	--on-red: #ffffff;
	--radius: 18px;
	--nav-h: 68px;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--body);
	font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: #fff; line-height: 1.12; margin: 0; font-weight: 500; }
h1, h2 { letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 4.6vw, 58px); }
h2 { font-size: clamp(27px, 3.6vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap--wide { max-width: 1560px; }
.wrap--narrow { max-width: 820px; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 14px 28px;
	background: var(--red-btn); color: var(--on-red);
	font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2;
	border: 0; border-radius: 12px; text-decoration: none; cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--red-btn-hover); }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.btn--small { min-height: 44px; padding: 8px 20px; font-size: 15px; border-radius: 10px; }
.btn--full { width: 100%; }

/* Aktion (z. B. Black Week): Leiste oben, Kasten im Startbereich, Abzeichen bei den Paketen.
   Wird nur im Aktionszeitraum per Skript eingefügt. */
.promo-bar { background: #0e0e12; color: #fff; border-bottom: 2px solid var(--red); font-size: 16px; }
.promo-bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; text-align: center; }
.promo-bar__label { font-weight: 700; font-size: 18px; }
.promo-bar__pct { background: var(--red-btn); color: #fff; font-weight: 700; font-size: 20px; line-height: 1; padding: 6px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.promo-bar__text { color: var(--text); }
.promo-bar__until { color: var(--muted); }
.promo-bar__left { color: var(--red-text); font-weight: 600; }
.promo-bar__btn { background: var(--red-btn); color: #fff; font-weight: 600; text-decoration: none; padding: 8px 16px; border-radius: 8px; }
.promo-bar__btn:hover { background: var(--red-btn-hover); }

.hero-promo { display: flex; align-items: center; gap: 16px; width: max-content; max-width: 100%; margin-bottom: 24px; padding: 12px 18px 12px 12px; background: #0e0e12; border: 1px solid rgba(252, 0, 0, 0.55); border-radius: 14px; }
.hero-promo__pct { flex: none; background: var(--red-btn); color: #fff; font-weight: 700; font-size: 30px; line-height: 1; padding: 12px 14px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.hero-promo__text { display: flex; flex-direction: column; gap: 2px; color: var(--text); font-size: 16px; line-height: 1.35; }
.hero-promo__text strong { color: #fff; font-size: 20px; font-weight: 700; }
.hero-promo__text span { color: var(--muted); font-size: 15px; }

.package__badge { position: absolute; top: 16px; right: 16px; background: var(--red-btn); color: #fff; font-weight: 700; font-size: 15px; line-height: 1; padding: 6px 9px; border-radius: 7px; }
.package__price .was { color: var(--muted); font-size: 0.55em; font-weight: 400; margin-right: 4px; }

/* Navigation */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 0; } }
.nav { position: sticky; top: 0; z-index: 60; background: rgba(49, 49, 56, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__in { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__logo img { height: 36px; width: auto; }
.nav__links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav__links a { color: var(--text); text-decoration: none; padding: 8px 0; }
.nav__links a:hover { color: #fff; }
.nav__links a { transition: color 0.15s ease; }

/* Hero */
.hero { background: var(--bg-alt); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(36px, 5vw, 72px); }
/* Ohne min-width: 0 macht der Aktionskasten (max-content) die Spalte am Handy breiter als den Bildschirm */
.hero__in { min-width: 0; }
.hero__media { position: relative; margin: 0; border-radius: 24px; overflow: hidden; width: 100%; min-width: 0; height: 0; padding-bottom: 75%; background: #1c1c22; box-shadow: 0 0 0 1px var(--line), 0 24px 64px rgba(0, 0, 0, 0.4); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(20, 20, 26, 0.78); color: #fff; font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 8px; }
.eyebrow { color: var(--red-text); font-weight: 500; font-size: 16px; margin-bottom: 16px; }
.hero__sub { font-size: clamp(18px, 2.1vw, 21px); color: var(--text); max-width: 600px; margin-top: 20px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__note { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* Fakten-Leiste */
.facts { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.facts__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; }
.fact { padding: 24px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.fact:first-child, .fact[hidden] + .fact { border-left: 0; }
.fact[hidden] { display: none; }
.fact strong { color: #fff; font-size: 20px; font-weight: 500; line-height: 1.25; }
.fact span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.fact strong span { font-size: inherit; color: inherit; }

/* Abschnitte */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }
.head { max-width: 680px; margin-bottom: 36px; display: flex; flex-direction: column; gap: 12px; }

/* Referenzen: jede Kachel hat das Format ihres Fotos, Beschriftung unter dem Bild */
.refs { display: grid; gap: 20px; align-items: start; }
.refs + .refs { margin-top: 24px; }
/* Obere Reihe: 2 Hochformat + 1 Querformat, gleich hoch (3:4 und 4:3 → Breiten 9 : 9 : 16) */
.refs--top { grid-template-columns: minmax(0, 9fr) minmax(0, 9fr) minmax(0, 16fr); }
.refs--bottom { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ref { margin: 0; min-width: 0; }
.ref__img { position: relative; width: 100%; height: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); }
/* Seitenverhältnis über Innenabstand: 3:4 = 133,33 %, 4:3 = 75 %. Bleibt in Safari auch beim Ändern der Fenstergröße stabil. */
.ref--hoch .ref__img { padding-bottom: 133.3333%; }
.ref--quer .ref__img { padding-bottom: 75%; }
.ref__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ref figcaption { display: flex; flex-direction: column; gap: 2px; padding: 12px 4px 0; }
.ref__tag { font-size: 14px; font-weight: 400; color: var(--muted); }
.ref__name { color: #fff; font-weight: 500; font-size: 17px; line-height: 1.25; }

/* Konfigurator: das Plugin bringt sein eigenes helles Design mit */
.config { border-radius: 20px; overflow: hidden; }
.config .tenx105 { max-width: none; }
.config .tenx105-brand { display: none; }
.config .tenx105 h2, .config .tenx105 h3 { color: inherit; }
.config #tenx105_inquiry_send { background: var(--red-btn); color: var(--on-red); font-weight: 600; border: 0; border-radius: 12px; min-height: 52px; cursor: pointer; }
.config #tenx105_street, .config #tenx105_zip, .config #tenx105_city { display: none; }
/* Ausblendverlauf des Plugins unten in der Konfigurator-Spalte ganz aus (Entscheidung Niko 23.11.2026):
   er lag über Knöpfen und Text und hinterließ eine harte Kante. Den Platz dafür braucht es dann auch nicht mehr. */
.config .tenx105-scroll::after { display: none !important; }
.config .tenx105-scroll { padding-bottom: 24px; }
.config__alt { margin-top: 20px; text-align: center; color: var(--muted); }
.config__alt a { color: var(--text); font-weight: 500; }
@media (max-width: 1100px) {
	/* Am Handy: Vorschau zuerst, kein Scrollbereich im Scrollbereich */
	.config .tenx105 { display: flex !important; flex-direction: column; padding: 12px; gap: 12px; }
	.config .tenx105-preview-wrap { order: -1; margin-top: 0 !important; }
	/* Spalten dürfen nicht breiter werden als ihr Inhalt-Bereich (sonst schiebt die 980 px breite Zeichenfläche alles hinaus) */
	.config .tenx105 > *, .config .tenx105-preview, .config .tenx105-canvas-wrap { min-width: 0 !important; max-width: 100% !important; width: 100% !important; }
	.config .tenx105-canvas-wrap { overflow: hidden; }
	.config .tenx105-scroll { max-height: none; overflow: visible; padding-right: 0; padding-bottom: 24px; }
	/* Ohne eigenen Scrollbereich braucht es keinen Ausblendverlauf (er würde sonst am Fensterrand kleben) */
	.config .tenx105-scroll::after { display: none !important; }
	.config .tenx105-preview { position: static; }
}
@media (max-width: 900px) {
	/* Das Plugin verkleinert die Vorschau per Skript und zusätzlich per CSS, dadurch wird sie am Handy winzig.
	   Hier bekommt die Zeichenfläche ihre Originalgröße zurück, das Skript skaliert sie dann passend. */
	.config .tenx105 .canvas-container { width: 980px !important; height: 620px !important; max-width: none !important; }
	.config .tenx105 .tenx105-canvas-wrap { width: 100%; min-width: 0; aspect-ratio: 980 / 620; height: auto !important; overflow: hidden; }
}

.admin-hint { background: #fff3cd; color: #3d2f00; padding: 16px 20px; border-radius: 12px; }

/* Preise */
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.packages[hidden] { display: none; }
.package { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
/* Mittel: hervorgehoben mit rotem Rahmen (wie der Black-Week-Kasten im Startbereich).
   Vorher ein kurzer roter Strich am oberen Rand, der wirkte am runden Rahmen wie abgeschnitten. */
.package--mid { border-color: rgba(252, 0, 0, 0.6); box-shadow: 0 0 0 1px rgba(252, 0, 0, 0.6); }
/* Foto oben auf der Paketkarte, randlos bis zur Kartenkante */
.package { overflow: hidden; }
.package__img { position: relative; height: 0; padding-bottom: 56.25%; margin: -24px -24px 20px; background: var(--bg-alt); }
.package__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.package__badge { z-index: 1; }
.package__name { color: #fff; font-size: 20px; font-weight: 500; }
.package__price { color: #fff; font-size: 40px; font-weight: 500; line-height: 1.1; margin-top: 12px; font-variant-numeric: tabular-nums; }
.package__size { color: var(--text); font-size: 15px; margin-top: 4px; }
.package__for { color: var(--muted); font-size: 15px; margin-top: 12px; margin-bottom: 24px; flex: 1; }
.packages__foot { margin-top: 24px; color: var(--text); max-width: 720px; }

.price-note { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 720px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 0.42em; width: 13px; height: 7px; border-left: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: step; position: relative; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
/* Der rote Strich aus dem Logo markiert jeden Schritt */
.steps li::after { content: ""; position: absolute; top: -1px; left: 0; width: 32px; height: 2px; background: var(--red); }
.steps li::before { content: counter(step); font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps p { font-size: 16px; color: var(--body); }

/* Kurzanfrage */
.ask { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.ask__text { display: flex; flex-direction: column; gap: 20px; }
.ask__direct { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.ask__direct p { width: 100%; font-weight: 500; color: #fff; }
/* Beispiel-Logo neben der Kurzanfrage */
.ask__img { position: relative; height: 0; padding-bottom: 56.25%; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.ask__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.ask__form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.form { display: grid; gap: 16px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 15px; font-weight: 500; color: #fff; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px;
	font: inherit; font-size: 16px; color: #fff;
	background: var(--bg-alt); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 10px;
}
/* Auswahlfeld ohne Safari-Standardoptik, mit eigenem Pfeil */
.field select {
	-webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a8a8b5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #8a8a98; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red-text); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }
.form__note { font-size: 14px; color: var(--muted); }
.msg { border-radius: 12px; padding: 20px; display: grid; gap: 8px; }
.msg strong { font-size: 19px; font-weight: 500; color: #fff; }
.msg--ok { background: rgba(80, 200, 120, 0.12); border: 1px solid rgba(80, 200, 120, 0.55); }
.msg--err { background: rgba(255, 90, 90, 0.12); border: 1px solid rgba(255, 90, 90, 0.55); margin-bottom: 16px; }

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 52px 20px 20px; font-weight: 500; color: #fff; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 20px; }

/* Abschluss */
.final { text-align: center; }
/* Breites Foto über dem Abschluss */
.final__img { position: relative; max-width: 900px; margin: 0 auto 40px; height: 0; padding-bottom: min(56.25%, 506px); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.final__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final p { margin-top: 12px; font-size: 19px; }
.final .hero__cta { justify-content: center; }

/* Fuß */
.foot { background: #26262c; border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: 15px; color: var(--muted); }
.foot__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot__in img { height: 36px; width: auto; margin-bottom: 16px; }
.foot__head { color: #fff; font-weight: 500; margin-bottom: 8px; }
.foot a { color: var(--body); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot__copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Cookie-Banner: unten, blockiert die Seite nicht, beide Hauptknöpfe gleich groß */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent__box { pointer-events: auto; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow: auto; background: #26262c; color: var(--body); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55); display: grid; gap: 12px; }
.consent__title { color: #fff; font-weight: 500; font-size: 18px; }
.consent__text { font-size: 15px; line-height: 1.55; }
.consent__text a { color: var(--text); }
.consent__choices { display: grid; gap: 8px; }
.consent__choices[hidden] { display: none; }
.consent__choice { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; }
.consent__choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red-btn); }
.consent__choice strong { color: #fff; font-weight: 500; }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.consent__btn { flex: 1 1 180px; }
/* Beide Hauptknöpfe gleich gestaltet: keine optische Lenkung zum Akzeptieren */
.consent__btn[data-consent="all"], .consent__btn[data-consent="necessary"] { background: var(--red-btn); color: var(--on-red); box-shadow: none; }
.consent__btn[hidden] { display: none; }
.consent__link { background: none; border: 0; padding: 8px 4px; font: inherit; font-size: 15px; color: var(--text); text-decoration: underline; cursor: pointer; }
.consent__link[hidden] { display: none; }
@media (max-width: 640px) {
	.consent { left: 8px; right: 8px; bottom: 8px; }
	.consent__box { padding: 16px; }
	.consent__btn { flex: 1 1 100%; }
	.consent__link { width: 100%; text-align: center; }
	/* Solange das Banner offen ist, bleibt der fixe Knopf unten weg */
	body:has(.consent:not([hidden])) .sticky-cta { display: none; }
}

/* Fixer Button am Handy */
.sticky-cta { display: none; }

/* Unterseiten (Impressum, AGB) */
.subpage { max-width: 820px; padding-top: 56px; padding-bottom: 80px; }
.subpage h1 { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 24px; }
.subpage__content h2 { font-size: 24px; margin: 32px 0 12px; }
.subpage__content h3 { margin: 24px 0 8px; }
.subpage__content p, .subpage__content ul, .subpage__content ol { margin: 0 0 16px; }
.subpage__content a { color: var(--red-text); }

/* Referenzseite: quadratisches Raster wie bei Leuchtbuchstaben, Klick öffnet das Foto groß */
.refs__more { margin-top: 32px; text-align: center; }
.refpage { padding-top: clamp(40px, 6vw, 72px); }
.refpage h1 { font-size: clamp(32px, 4.6vw, 52px); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gallery__item { min-width: 0; }
.gallery__link { display: block; position: relative; width: 100%; height: 0; padding-bottom: 100%; border-radius: 12px; overflow: hidden; background: var(--card); }
.gallery__link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery__link:hover img { transform: scale(1.03); }
.refpage__content { margin-top: 32px; }
.refpage__content .wp-block-gallery { gap: 20px; }
.refpage__cta { margin: clamp(48px, 7vw, 80px) auto 0; max-width: 640px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.refpage__cta .btn { margin-top: 12px; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; overflow: hidden; }
.lightbox::backdrop { background: rgba(14, 14, 18, 0.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 8px; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font: inherit; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 960px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__media { order: -1; padding-bottom: 62.5%; border-radius: 18px; }
	.refs--top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.refs--top .ref--quer { grid-column: 1 / -1; }
	.refs--bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.refs--bottom .ref:last-child { grid-column: 1 / -1; }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.packages { grid-template-columns: 1fr; gap: 12px; }
	.ask { grid-template-columns: 1fr; }
	.nav__links { display: none; }
	.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.hero__cta .btn { width: 100%; }
	.facts__in { grid-template-columns: 1fr 1fr; }
	.fact { border-left: 0; border-top: 1px solid var(--line); padding: 16px 12px; }
	.fact strong { font-size: 17px; }
	.refs { gap: 12px; }
	.refs + .refs { margin-top: 12px; }
	.ref__name { font-size: 15px; }
	.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 24px; transform: none; }
	.lightbox__prev { left: calc(50% - 60px); }
	.lightbox__next { right: calc(50% - 60px); }
	/* Pakete am Handy kompakt: Name und Größe links, Preis rechts, Knopf darunter */
	.package { padding: 16px 20px; display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: baseline; }
	.package__img { grid-column: 1 / -1; grid-row: 1; margin: -16px -20px 14px; padding-bottom: 56.25%; }
	.package__name { grid-column: 1; grid-row: 2; }
	.package__price { grid-column: 2; grid-row: 2 / span 2; margin-top: 0; font-size: 28px; align-self: center; }
	.package__size { grid-column: 1; grid-row: 3; margin-top: 0; }
	.package__for { grid-column: 1 / -1; margin: 8px 0 12px; }
	.package .btn { grid-column: 1 / -1; }
	.package__badge { position: static; grid-column: 1; grid-row: 4; width: max-content; margin-top: 8px; }
	.final__img { margin-bottom: 28px; }
	.promo-bar { font-size: 14px; }
	.promo-bar__in { gap: 6px 10px; padding-top: 10px; padding-bottom: 10px; }
	.promo-bar__label { font-size: 16px; }
	.promo-bar__pct { font-size: 17px; }
	.promo-bar__btn { display: none; }
	.hero-promo { gap: 12px; padding: 10px 14px 10px 10px; }
	.hero-promo__pct { font-size: 24px; padding: 10px 11px; }
	.hero-promo__text strong { font-size: 17px; }
	.hero-promo__text span { font-size: 14px; }
	/* Raumwahl unter der Vorschau doppelt sich mit der im Konfigurator, am Handy reicht eine */
	.config .tenx105-room-strip { display: none !important; }
	.steps { grid-template-columns: 1fr; }
	.field-row { grid-template-columns: 1fr; }
	.foot__in { grid-template-columns: 1fr; }
	.foot { padding-bottom: 96px; }

	.sticky-cta {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		background: rgba(38, 38, 44, 0.96); border-top: 1px solid var(--line);
		transform: translateY(110%); transition: transform 0.25s ease;
	}
	.sticky-cta.is-on { transform: translateY(0); }
}

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