@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap");
:root {
  color-scheme: dark;
  --bg: #07080a;
  --bg-soft: #0d0f12;
  --surface: rgba(18, 20, 24, .82);
  --surface-solid: #121419;
  --surface-elevated: #181b21;
  --text: #f8f5ef;
  --muted: #b8b2a6;
  --subtle: #827b70;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.18);
  --gold: #b69658;
  --gold-soft: #cdb071;
  --gold-light: #e8d6a3;
  --gold-dark: #6d5430;
  --black: #050607;
  --danger: #b35a47;
  --shadow: 0 32px 90px rgba(0,0,0,.45);
  --shadow-soft: 0 18px 45px rgba(0,0,0,.25);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --header-h: 86px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f0e7;
  --bg-soft: #ebe3d5;
  --surface: rgba(255,255,255,.82);
  --surface-solid: #ffffff;
  --surface-elevated: #f8f3ea;
  --text: #151515;
  --muted: #5e5a52;
  --subtle: #817a6d;
  --line: rgba(24,24,24,.11);
  --line-strong: rgba(24,24,24,.20);
  --gold: #927347;
  --gold-soft: #b69658;
  --gold-light: #cdb071;
  --gold-dark: #5e482a;
  --black: #ffffff;
  --shadow: 0 28px 80px rgba(52,42,27,.14);
  --shadow-soft: 0 18px 45px rgba(52,42,27,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 7%, rgba(185,155,98,.16), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(185,155,98,.10), transparent 26%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  color: var(--text);
  font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .28;
  pointer-events: none;
  background-image: radial-gradient(currentColor .55px, transparent .55px);
  background-size: 14px 14px;
  color: rgba(255,255,255,.2);
}
html[data-theme="light"] body::before { color: rgba(0,0,0,.16); opacity: .22; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
::selection { background: rgba(182,150,88,.32); color: var(--text); }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.container-wide { width: min(1380px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 83%, transparent);
  backdrop-filter: blur(22px);
}
.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.logo-wrap { width: 92px; height: 74px; display: grid; place-items: center; flex: 0 0 auto; overflow: visible; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; border: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; filter: drop-shadow(0 10px 22px rgba(0,0,0,.28)); }
html[data-theme="light"] .logo-wrap { width: 92px; height: 74px; border-radius: 0; padding: 0; background: transparent; border: 0; box-shadow: none; overflow: visible; }
html[data-theme="light"] .brand-logo { filter: drop-shadow(0 2px 0 rgba(54,38,18,.55)) drop-shadow(0 10px 16px rgba(0,0,0,.24)) contrast(1.18) saturate(1.14); }
html[data-theme="light"] .footer-logo { border-radius: 24px; padding: 12px; background: linear-gradient(145deg, rgba(8,8,8,.96), rgba(42,32,18,.94)); border: 1px solid rgba(146,115,71,.32); box-shadow: 0 18px 40px rgba(52,42,27,.16); }
.brand-text { display: flex !important; flex-direction: column; justify-content: center; align-self: center; gap: 2px; min-width: 0; line-height: 1; position: relative; top: 3px; }
.brand-title, .brand-subtitle { display: block; white-space: nowrap; }
.brand-title { font-family: "Great Vibes", "Edwardian Script ITC", "Snell Roundhand", "Apple Chancery", "Segoe Script", cursive; letter-spacing: .01em; text-transform: none; font-size: 2.25rem; line-height: .82; font-weight: 400; color: var(--gold-light); text-shadow: 0 1px 0 rgba(255,244,196,.35), 0 7px 18px rgba(0,0,0,.28); }
.brand-subtitle { letter-spacing: .19em; text-transform: none; font-size: .66rem; font-weight: 800; color: var(--muted); margin-top: 1px; }
html[data-theme="light"] .brand-title { color: var(--gold-dark); }
html[data-theme="light"] .brand-subtitle { color: #6d6457; }
.desktop-nav { justify-self: center; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2vw, 34px); }
.nav-link { position: relative; display: inline-flex; white-space: nowrap; align-items: center; padding: 10px 0; color: var(--muted); font-size: .79rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; transition: color .25s ease; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 3px; width: 0; height: 2px; background: linear-gradient(90deg, var(--gold-light), var(--gold-dark)); transition: width .25s ease; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
@media (max-width: 520px) { .header-actions { gap: 8px; } }
.theme-toggle, .menu-toggle { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; cursor: pointer; display: inline-grid; place-items: center; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.theme-toggle:hover, .menu-toggle:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.header-contact-icon { text-decoration: none; }

.theme-icon { width: 20px; height: 20px; }
.sun-icon { display: none; }
html[data-theme="light"] .moon-icon { display: none; }
html[data-theme="light"] .sun-icon { display: block; }
.nav-cta { white-space: nowrap; min-width: 0; padding: 12px 20px; font-size: .78rem; letter-spacing: .11em; }
.menu-toggle { display: none; border-radius: 14px; }
.menu-toggle span { position: relative; display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 6px currentColor, 0 -6px currentColor; transition: background .2s ease, box-shadow .2s ease; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 2px; border-radius: 99px; background: currentColor; opacity: 0; transform: rotate(0deg); transition: opacity .2s ease, transform .2s ease; }
.menu-toggle[aria-expanded="true"] span { background: transparent; box-shadow: none; }
.menu-toggle[aria-expanded="true"] span::before { opacity: 1; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { opacity: 1; transform: rotate(-45deg); }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 16px 0 20px; }
.mobile-nav.open { display: block; }
.mobile-nav-grid { display: grid; gap: 8px; }
.mobile-nav .nav-link { padding: 13px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.mobile-nav .nav-link::after { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; border-radius: 999px; padding: 14px 22px; font-size: .84rem; line-height: 1; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, #eadbb2 0%, var(--gold) 48%, var(--gold-dark) 100%); color: #101010; box-shadow: 0 18px 44px rgba(109,84,48,.22); }
.btn-gold:hover { box-shadow: 0 22px 58px rgba(109,84,48,.30); }
.btn-outline { border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); color: var(--text); background: color-mix(in srgb, var(--surface) 78%, transparent); }
.btn-outline:hover { background: color-mix(in srgb, var(--gold) 10%, var(--surface)); border-color: var(--gold); }
.btn-block { width: 100%; }

.section { padding: 92px 0; }
.section-tight { padding: 70px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); padding: 8px 14px; color: var(--text); font-size: .76rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 22px var(--gold); }
.hero { position: relative; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 68%, transparent) 48%, color-mix(in srgb, var(--bg) 90%, transparent) 100%), url('../img/Bau-und-Sanierung.png') center/cover no-repeat; opacity: .92; }
html[data-theme="light"] .hero::before { background: linear-gradient(90deg, rgba(7,8,10,.92) 0%, rgba(7,8,10,.68) 48%, rgba(7,8,10,.90) 100%), url('../img/Bau-und-Sanierung.png') center/cover no-repeat; opacity: .92; filter: none; }
html[data-theme="light"] .hero { color: #fff; }
html[data-theme="light"] .hero .eyebrow { color: #fff; background: rgba(7,8,10,.52); border-color: rgba(255,255,255,.16); }
html[data-theme="light"] .hero-lead { color: rgba(255,255,255,.78); }
html[data-theme="light"] .hero .btn-outline { color: #fff; background: rgba(7,8,10,.36); border-color: rgba(232,214,163,.34); }
html[data-theme="light"] .hero .stat-card { background: rgba(7,8,10,.58); border-color: rgba(255,255,255,.13); box-shadow: 0 18px 45px rgba(0,0,0,.20); }
html[data-theme="light"] .hero .stat-label { color: rgba(255,255,255,.70); }
.hero::after { content: ""; position: absolute; inset: auto -16% -34% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(182,150,88,.22), transparent 68%); filter: blur(12px); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 56px); padding: 86px 0; }
.hero-copy { max-width: 880px; }
.hero-title { margin: 26px 0 20px; font-size: clamp(2.25rem, 5.7vw, 4.65rem); line-height: 1.01; letter-spacing: -.055em; font-weight: 800; }
.accent { color: var(--gold-light); background: linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--gold-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 650px; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.16rem); line-height: 1.8; font-weight: 500; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.stats-row { margin-top: 42px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 630px; }
.stat-card { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 88%, transparent), color-mix(in srgb, var(--surface-elevated) 70%, transparent)); box-shadow: var(--shadow-soft); }
.stat-value { display: block; color: var(--gold-light); font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1; font-weight: 850; letter-spacing: -.04em; }
.stat-label { display: block; margin-top: 9px; color: var(--subtle); font-size: .72rem; letter-spacing: .18em; font-weight: 850; text-transform: uppercase; }
.hero-visual { position: relative; }
.image-card { position: relative; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--line-strong); background: var(--surface); padding: 14px; box-shadow: var(--shadow); }
.image-card img { width: 100%; height: 540px; object-fit: cover; border-radius: calc(var(--radius-xl) - 12px); }
.image-caption { position: absolute; left: 34px; right: 34px; bottom: 34px; padding: 22px 24px; border-radius: 22px; background: rgba(7,8,10,.90); border: 1px solid rgba(255,255,255,.08); color: #fff; }
.image-caption span { display: block; color: var(--gold-light); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 8px; }
.image-caption strong { font-size: clamp(1.2rem, 2vw, 1.75rem); line-height: 1.2; }

.section-head { display: grid; grid-template-columns: minmax(0, .75fr) minmax(260px, .45fr); gap: 36px; align-items: end; margin-bottom: 46px; }
.section-title { margin: 16px 0 0; font-size: clamp(1.75rem, 3.1vw, 3.15rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 800; }
.section-text { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.85; }
.cards-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-elevated) 85%, transparent)); box-shadow: var(--shadow-soft); padding: 28px; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--gold) 48%, var(--line)); box-shadow: var(--shadow); }
.card-number { color: var(--gold); font-weight: 850; letter-spacing: .16em; font-size: .76rem; text-transform: uppercase; }
.card h3 { margin: 20px 0 12px; font-size: 1.28rem; line-height: 1.18; letter-spacing: -.025em; }
.card p { margin: 0; color: var(--muted); }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 18px; background: color-mix(in srgb, var(--gold) 13%, transparent); color: var(--gold-light); border: 1px solid color-mix(in srgb, var(--gold) 20%, var(--line)); }
.card-icon svg { width: 26px; height: 26px; }

.split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
.text-stack > * + * { margin-top: 22px; }
.lead { color: var(--muted); font-size: 1.08rem; line-height: 1.9; }
.check-list { display: grid; gap: 13px; padding: 0; margin: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; color: var(--muted); }
.check-list li::before { content: ""; width: 9px; height: 9px; margin-top: 10px; border-radius: 50%; flex: 0 0 auto; background: var(--gold); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 12%, transparent); }
.panel { border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); padding: 34px; box-shadow: var(--shadow-soft); }
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kpi { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--surface-elevated) 84%, transparent); }
.kpi strong { display: block; color: var(--gold-light); font-size: 2rem; line-height: 1; }
.kpi span { display: block; margin-top: 8px; color: var(--muted); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 850; }

.page-hero { padding: 86px 0 74px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 4%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 32%); }
.breadcrumb { color: var(--subtle); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.page-title { max-width: 900px; margin: 18px 0 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 800; }
.page-lead { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.85; }

.service-list { display: grid; gap: 18px; }
.service-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); transition: transform .25s ease, border-color .25s ease; }
.service-row:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--gold) 46%, var(--line)); }
.service-index { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold-light); font-size: 1.4rem; font-weight: 800; }
.service-row h2 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 800; }
.service-row p { margin: 0; color: var(--muted); }
.service-arrow { color: var(--gold); font-size: 1.7rem; }
.service-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service-image-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-elevated) 88%, transparent)); box-shadow: var(--shadow-soft); transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.service-image-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--gold) 46%, var(--line)); box-shadow: var(--shadow); }
.service-photo { position: relative; height: 230px; overflow: hidden; background: var(--surface-solid); }
.service-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, color-mix(in srgb, var(--bg) 72%, transparent)); pointer-events: none; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.service-image-card:hover .service-photo img { transform: scale(1.055); }
.service-card-content { padding: 24px; }
.service-index-small { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 13%, transparent); color: var(--gold-light); border: 1px solid color-mix(in srgb, var(--gold) 24%, var(--line)); font-size: .82rem; font-weight: 850; letter-spacing: .08em; }
.service-card-content h2 { margin: 18px 0 10px; font-size: clamp(1.15rem, 1.55vw, 1.45rem); line-height: 1.18; letter-spacing: -.025em; font-weight: 800; }
.service-card-content p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.72; }
.service-card-content a { display: inline-flex; margin-top: 18px; color: var(--gold-light); font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }

.portfolio-section { position: relative; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { position: relative; overflow: hidden; display: block; width: 100%; padding: 0; text-align: left; color: inherit; cursor: pointer; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-elevated) 82%, transparent)); box-shadow: var(--shadow-soft); transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.project-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(135deg, rgba(232,214,163,.12), transparent 38%, rgba(182,150,88,.10)); opacity: 0; transition: opacity .28s ease; }
.project-card:hover, .project-card:focus-visible { transform: translateY(-8px); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); box-shadow: var(--shadow); outline: none; }
.project-card:hover::after, .project-card:focus-visible::after { opacity: 1; }
.project-media { position: relative; display: block; height: 330px; overflow: hidden; background: var(--surface-solid); }
.project-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(5,6,7,.68)); pointer-events: none; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .55s ease; }
.project-card:hover img, .project-card:focus-visible img { transform: scale(1.06); filter: contrast(1.05) saturate(1.05); }
.project-badge, .project-hover { position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: .68rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.project-badge { top: 18px; left: 18px; padding: 8px 12px; color: #101010; background: linear-gradient(135deg, #eadbb2, var(--gold)); box-shadow: 0 14px 28px rgba(0,0,0,.22); }
.project-badge.video { color: #fff; background: linear-gradient(135deg, rgba(182,90,71,.95), rgba(109,84,48,.95)); }
.project-hover { right: 18px; bottom: 18px; padding: 10px 13px; color: #fff; background: rgba(7,8,10,.78); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); transform: translateY(10px); opacity: 0; transition: opacity .25s ease, transform .25s ease; }
.project-card:hover .project-hover, .project-card:focus-visible .project-hover { opacity: 1; transform: translateY(0); }
.project-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(7,8,10,.68); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(14px); box-shadow: 0 18px 44px rgba(0,0,0,.35); }
.project-play::before { content: ""; position: absolute; left: 28px; top: 22px; border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.project-content { position: relative; z-index: 1; display: block; padding: 24px; }
.project-content span { color: var(--gold); font-size: .75rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.project-content h3 { margin: 9px 0 8px; font-size: 1.25rem; line-height: 1.2; }
.project-content p { margin: 0; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; gap: 16px; padding: 34px; background: rgba(5,6,7,.86); backdrop-filter: blur(22px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .24s ease, visibility .24s ease; }
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox-dialog { position: relative; overflow: hidden; width: min(1180px, 100%); max-height: calc(100vh - 68px); justify-self: center; border-radius: 30px; border: 1px solid rgba(255,255,255,.13); background: linear-gradient(145deg, rgba(18,20,24,.98), rgba(8,9,11,.98)); box-shadow: 0 34px 110px rgba(0,0,0,.62); transform: translateY(18px) scale(.98); transition: transform .24s ease; }
.lightbox.open .lightbox-dialog { transform: none; }
.lightbox-media { display: grid; place-items: center; background: #050607; min-height: min(70vh, 720px); }
.lightbox-media img, .lightbox-media video { width: 100%; max-height: min(72vh, 760px); object-fit: contain; background: #050607; }
.lightbox-caption { padding: 22px 26px 24px; border-top: 1px solid rgba(255,255,255,.08); }
.lightbox-caption span { color: var(--gold-light); font-size: .72rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.lightbox-caption h3 { margin: 8px 0 6px; color: #fff; font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.15; }
.lightbox-caption p { margin: 0; color: rgba(255,255,255,.68); }
.lightbox-close, .lightbox-arrow { border: 1px solid rgba(255,255,255,.14); color: #fff; background: rgba(18,20,24,.78); box-shadow: 0 18px 44px rgba(0,0,0,.26); cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; display: grid; place-items: center; padding: 0; line-height: 1; font-size: 0; }
.lightbox-close:hover, .lightbox-arrow:hover { transform: translateY(-2px); border-color: rgba(232,214,163,.44); background: rgba(32,34,40,.9); }
.lightbox-close { position: absolute; top: 22px; right: 22px; z-index: 2; width: 48px; height: 48px; border-radius: 999px; font-size: 0; line-height: 1; }
.lightbox-arrow { position: relative; width: 58px; height: 58px; border-radius: 999px; font-size: 0; line-height: 1; display: grid; place-items: center; }
.lightbox-close::before, .lightbox-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 17px; height: 2px; border-radius: 999px; background: currentColor; transform-origin: center; }
.lightbox-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lightbox-prev::before, .lightbox-next::before { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; border-style: solid; border-color: currentColor; border-width: 0 3px 3px 0; transform-origin: center; }
.lightbox-prev::before { transform: translate(-40%, -50%) rotate(135deg); }
.lightbox-next::before { transform: translate(-60%, -50%) rotate(-45deg); }
.lightbox-prev { justify-self: end; }
.lightbox-next { justify-self: start; }
body.lightbox-active { overflow: hidden; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field.full { grid-column: 1 / -1; }
label { display: block; color: var(--text); font-size: .9rem; font-weight: 850; margin-bottom: 8px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface-solid) 94%, transparent); color: var(--text); padding: 14px 15px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
textarea { min-height: 150px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
select option { background: var(--surface-solid); color: var(--text); }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }
.form-note { color: var(--subtle); font-size: .88rem; margin-top: 14px; }
.success-message { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--gold) 13%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line)); color: var(--text); font-weight: 750; }
.success-message.show { display: block; }

.cta-band { position: relative; overflow: hidden; border-radius: 34px; border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--surface-solid) 90%, transparent), color-mix(in srgb, var(--gold-dark) 18%, var(--surface-elevated))); padding: clamp(30px, 6vw, 62px); box-shadow: var(--shadow); }
.cta-band::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 27%, transparent), transparent 70%); pointer-events: none; }
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.cta-band h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.85rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 800; }
.cta-band p { margin: 14px 0 0; color: var(--muted); max-width: 720px; }

.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .8fr; gap: 34px; }
.footer-logo { width: 210px; max-width: 100%; height: auto; max-height: 132px; object-fit: contain; filter: drop-shadow(0 18px 34px rgba(0,0,0,.28)); }
.footer-title { margin: 12px 0 10px; color: var(--gold-light); font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.footer-text, .footer-links a, .footer-contact p { color: var(--muted); }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: var(--gold-light); }
.footer-heading { margin: 0 0 18px; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 850; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--subtle); font-size: .82rem; }

.scroll-top-btn { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--line)); border-radius: 999px; background: linear-gradient(145deg, var(--surface-solid), color-mix(in srgb, var(--surface-elevated) 86%, transparent)); color: var(--gold-light); box-shadow: var(--shadow-soft); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.96); transition: opacity .24s ease, visibility .24s ease, transform .24s ease, border-color .24s ease; }
.scroll-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.scroll-top-btn:hover { border-color: var(--gold); transform: translateY(-2px) scale(1.02); }
.scroll-top-btn svg { width: 21px; height: 21px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  :root { --header-h: 78px; }
  .desktop-nav, .header-actions .nav-cta { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-inner { grid-template-columns: auto auto; }
  .header-actions { gap: 8px; }
  .hero-grid, .split, .split.reverse { grid-template-columns: 1fr; }
  .hero-visual { max-width: 720px; }
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .container, .container-wide { width: min(100% - 28px, 1180px); }
  .header-inner { gap: 16px; }
  .brand { gap: 12px; }
  .logo-wrap { width: 88px; height: 64px; }
  .brand-logo { width: 100%; height: 100%; }
  .brand-text { display: flex !important; top: 4px; }
  .brand-title { font-size: 2rem; letter-spacing: .01em; }
  .brand-subtitle { display: block !important; font-size: .64rem; letter-spacing: .16em; }
  .hero { min-height: auto; }
  .hero-grid { padding: 54px 0; }
  .hero-title { font-size: clamp(2.1rem, 11vw, 3.35rem); }
  .page-title { font-size: clamp(1.85rem, 9vw, 3rem); }
  .section-title { font-size: clamp(1.65rem, 8vw, 2.45rem); }
  .hero-buttons { align-items: stretch; flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .stats-row, .cards-grid, .service-cards, .kpi-grid, .gallery, .form-grid, .footer-grid, .cta-grid { grid-template-columns: 1fr; }
  .image-card { padding: 10px; border-radius: 24px; }
  .image-card img { height: 380px; }
  .image-caption { left: 20px; right: 20px; bottom: 20px; padding: 18px; }
  .section { padding: 74px 0; }
  .section-tight { padding: 58px 0; }
  .service-row { grid-template-columns: 1fr; gap: 14px; }
  .service-photo { height: 220px; }
  .scroll-top-btn { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  .service-arrow { display: none; }
  .project-media { height: 250px; }
  .lightbox { grid-template-columns: 1fr; padding: 76px 14px 18px; gap: 12px; }
  .lightbox-dialog { max-height: calc(100vh - 100px); border-radius: 22px; }
  .lightbox-media { min-height: 300px; }
  .lightbox-media img, .lightbox-media video { max-height: 56vh; }
  .lightbox-arrow { position: fixed; top: 50%; width: 46px; height: 46px; font-size: 0; z-index: 2; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 16px; right: 16px; }
  .lightbox-close::before, .lightbox-close::after { width: 16px; height: 2px; }
  .lightbox-prev::before, .lightbox-next::before { width: 12px; height: 12px; border-width: 0 3px 3px 0; }
  .lightbox-prev::before { transform: translate(-40%, -50%) rotate(135deg); }
  .lightbox-next::before { transform: translate(-60%, -50%) rotate(-45deg); }
  .page-hero { padding: 58px 0 50px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .header-inner { gap: 12px; }
  .brand { gap: 10px; max-width: calc(100vw - 170px); }
  .logo-wrap { width: 68px; height: 48px; }
  html[data-theme="light"] .logo-wrap { width: 68px; height: 48px; padding: 0; border-radius: 0; }
  .brand-text { display: flex !important; min-width: 0; top: 5px; }
  .brand-title { font-size: 1.62rem; letter-spacing: .01em; }
  .brand-subtitle { display: block !important; font-size: .56rem; letter-spacing: .12em; }
  .theme-toggle, .menu-toggle { width: 40px; height: 40px; }
  .hero-title { letter-spacing: -.045em; }
  .hero-grid { padding: 44px 0; }
}


@media (max-width: 780px) {
  .hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 90%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 38%, color-mix(in srgb, var(--bg) 92%, transparent) 100%), url('../img/Bau-und-Sanierung-mobile.png') center/cover no-repeat; }
  html[data-theme="light"] .hero::before { background: linear-gradient(180deg, rgba(7,8,10,.90) 0%, rgba(7,8,10,.70) 38%, rgba(7,8,10,.92) 100%), url('../img/Bau-und-Sanierung-mobile.png') center/cover no-repeat; }
}


