:root {
  --navy: #0c2340;
  --navy-2: #07182c;
  --blue: #1265b0;
  --blue-2: #0a4d8b;
  --sky: #eaf3fb;
  --ink: #122033;
  --muted: #5c6878;
  --line: #dce4ec;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --warm: #ece8e1;
  --green: #16834f;
  --shadow: 0 20px 50px rgba(7, 24, 44, .12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .7em; color: var(--navy); line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.65rem, 5.6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.45rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1.15em; }
ul { margin-top: 0; }
section { padding: clamp(70px, 8vw, 120px) 0; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before, .section-kicker::before { width: 28px; height: 2px; background: currentColor; content: ""; }
.lead { max-width: 760px; color: var(--muted); font-size: 1.18rem; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 70px; align-items: end; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

.topbar { padding: 8px 0; color: #dbeaff; background: var(--navy-2); font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.topbar a { color: #fff; font-weight: 700; }
.topbar-address { opacity: .84; }
.header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(12,35,64,.09); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
.nav { min-height: 94px; display: flex; align-items: center; gap: 30px; }
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo img { width: 228px; height: auto; image-rendering: auto; }
.menu { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: .91rem; font-weight: 700; }
.menu > a:not(.btn), .menu summary { position: relative; padding: 28px 0; color: #26374d; cursor: pointer; list-style: none; white-space: nowrap; }
.menu summary::-webkit-details-marker { display: none; }
.menu > a:not(.btn)::after, .menu summary::after { position: absolute; right: 0; bottom: 19px; left: 0; height: 2px; transform: scaleX(0); background: var(--blue); content: ""; transition: transform .22s ease; }
.menu > a:hover::after, .menu > a.active::after, .menu details:hover summary::after { transform: scaleX(1); }
.menu > a.active { color: var(--blue); }
.menu details { position: relative; }
.menu details[open] .nav-dropdown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-dropdown { position: absolute; top: 70px; right: -28px; min-width: 255px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; opacity: 0; transform: translateY(8px); background: #fff; box-shadow: var(--shadow); pointer-events: none; }
.nav-dropdown a { display: block; padding: 11px 13px; border-radius: 8px; }
.nav-dropdown a:hover { color: var(--blue); background: var(--sky); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 9px; color: var(--navy); background: #fff; font-size: 1.3rem; }

.btn { display: inline-flex; min-height: 48px; padding: 0 22px; justify-content: center; align-items: center; gap: 9px; border: 1px solid var(--blue); border-radius: 7px; color: #fff; background: var(--blue); font-size: .91rem; font-weight: 800; letter-spacing: .01em; transition: .2s ease; }
.btn:hover { border-color: var(--blue-2); background: var(--blue-2); transform: translateY(-1px); }
.btn.dark { border-color: var(--navy); background: var(--navy); }
.btn.outline { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn.light { border-color: #fff; color: var(--navy); background: #fff; }
.btn.full { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.text-link { color: var(--blue); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.home-hero { position: relative; min-height: min(760px, 82vh); display: grid; align-items: stretch; padding: 0; overflow: hidden; color: #fff; background: var(--navy-2); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 76%; filter: saturate(.78) contrast(1.03); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,24,44,.94) 0%, rgba(7,24,44,.82) 42%, rgba(7,24,44,.18) 77%, rgba(7,24,44,.08) 100%), linear-gradient(0deg, rgba(7,24,44,.42), transparent 42%); }
.home-hero .container { position: relative; z-index: 2; min-height: inherit; display: flex; align-items: center; }
.hero-panel { width: min(710px, 66%); padding: 88px 0 100px; }
.home-hero h1, .home-hero h2 { color: #fff; }
.home-hero h1 { max-width: 690px; margin-bottom: 22px; font-size: clamp(3rem, 6.4vw, 6.2rem); }
.home-hero .lead { max-width: 690px; color: #eef6ff; }
.home-hero .eyebrow { color: #8fc9ff; }
.hero-badges { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges span { padding: 9px 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(7,24,44,.46); font-size: .82rem; font-weight: 700; backdrop-filter: blur(8px); }

.trustbar { position: relative; z-index: 4; margin-top: -38px; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.trust { min-height: 110px; padding: 22px 25px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.trust:last-child { border: 0; }
.trust strong { display: block; color: var(--navy); font-size: 1.02rem; }
.trust span { color: var(--muted); font-size: .88rem; }

.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 84px; align-items: center; }
.intro-photo { position: relative; min-height: 560px; overflow: hidden; border-radius: 4px 60px 4px 4px; box-shadow: var(--shadow); }
.intro-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.experience-badge { position: absolute; right: 24px; bottom: 24px; width: 148px; height: 148px; display: grid; place-content: center; border: 8px solid rgba(255,255,255,.7); border-radius: 50%; color: #fff; background: var(--blue); text-align: center; box-shadow: 0 15px 35px rgba(7,24,44,.25); }
.experience-badge strong { font-size: 2.6rem; line-height: .9; }
.experience-badge span { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; padding: 8px 0 8px 30px; }
.check-list li::before { position: absolute; top: 9px; left: 0; width: 19px; height: 19px; display: grid; place-content: center; border-radius: 50%; color: #fff; background: var(--green); content: "✓"; font-size: .7rem; font-weight: 900; }
.stats-row { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 25px 20px 0 0; }
.stat strong { display: block; color: var(--navy); font-size: 1.65rem; }
.stat span { color: var(--muted); font-size: .83rem; }

.soft-section { background: var(--soft); }
.service-showcase { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.service-tile { position: relative; min-height: 385px; display: flex; align-items: flex-end; grid-column: span 4; overflow: hidden; border-radius: 14px; color: #fff; background: var(--navy); box-shadow: 0 8px 26px rgba(7,24,44,.09); }
.service-tile.wide { grid-column: span 8; }
.service-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.service-tile:hover img { transform: scale(1.035); }
.service-tile::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,24,44,.96), rgba(7,24,44,.02) 75%); content: ""; }
.service-copy { position: relative; z-index: 2; padding: 26px; }
.service-copy h3 { margin-bottom: 8px; color: #fff; }
.service-copy p { margin: 0; color: #dce7f3; font-size: .93rem; }
.service-number { display: inline-block; margin-bottom: 12px; color: #83c5ff; font-size: .76rem; font-weight: 900; letter-spacing: .12em; }

.rehau-band { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.rehau-band::before { position: absolute; inset: 0; opacity: .14; background: radial-gradient(circle at 85% 10%, #5bb7ff, transparent 32%); content: ""; }
.rehau-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.rehau-band h2 { color: #fff; }
.rehau-band p { color: #d8e6f4; }
.rehau-note { padding: 34px; border: 1px solid rgba(255,255,255,.17); border-radius: var(--radius); background: rgba(255,255,255,.07); }
.rehau-note strong { display: block; margin-bottom: 12px; color: #91ceff; font-size: 1.25rem; }

.project-wall { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.project-main, .project-side { position: relative; overflow: hidden; border-radius: 14px; background: #dbe2e8; }
.project-main { min-height: 540px; }
.project-side { min-height: 259px; }
.project-column { display: grid; gap: 22px; }
.project-wall img { width: 100%; height: 100%; object-fit: cover; }
.project-caption { position: absolute; right: 18px; bottom: 18px; left: 18px; padding: 14px 16px; border-radius: 8px; color: #fff; background: rgba(7,24,44,.82); font-size: .88rem; font-weight: 700; backdrop-filter: blur(6px); }

.clientele { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.client-card { padding: 30px 25px; border-top: 3px solid var(--blue); background: #fff; box-shadow: 0 8px 30px rgba(7,24,44,.07); }
.client-card p { color: var(--muted); font-size: .92rem; }
.region-band { padding: 42px 0; color: #fff; background: var(--blue); }
.region-band .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.region-band h2 { margin: 0; color: #fff; font-size: clamp(1.7rem,3vw,2.7rem); }
.region-band p { margin: 5px 0 0; color: #eaf5ff; }

.reference-slideshow-wrap { background: var(--navy-2); }
.reference-slideshow-wrap h2, .reference-slideshow-wrap .eyebrow { color: #fff; }
.reference-slideshow { position: relative; height: clamp(270px, 45vw, 520px); overflow: hidden; border-radius: 16px; background: #102943; pointer-events: none; }
.reference-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.reference-slide.is-active { opacity: 1; }
.reference-slide img { width: 100%; height: 100%; object-fit: cover; }
.reference-slide::after { position: absolute; inset: 55% 0 0; background: linear-gradient(0deg, rgba(7,24,44,.78), transparent); content: ""; }
.reference-slide figcaption { position: absolute; z-index: 2; right: 30px; bottom: 27px; left: 30px; color: #fff; font-weight: 700; }
.slideshow-progress { height: 3px; margin-top: 18px; overflow: hidden; background: rgba(255,255,255,.17); }
.slideshow-progress span { display: block; width: 0; height: 100%; background: #75bfff; animation: progress 4.8s linear infinite; }
@keyframes progress { to { width: 100%; } }

.advisor-card { display: grid; grid-template-columns: 1fr .7fr; overflow: hidden; border-radius: 18px; color: #fff; background: var(--navy); box-shadow: var(--shadow); }
.advisor-copy { padding: clamp(38px, 6vw, 70px); }
.advisor-card h2 { color: #fff; }
.advisor-card p { color: #dce8f5; }
.advisor-role { color: #8fc9ff; font-weight: 800; }
.advisor-photo { min-height: 460px; }
.advisor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }

.page-hero { position: relative; padding: clamp(85px, 10vw, 145px) 0; color: #fff; background: linear-gradient(115deg, var(--navy-2), var(--navy) 64%, #123f68); overflow: hidden; }
.page-hero::after { position: absolute; width: 480px; height: 480px; right: -160px; top: -240px; border: 80px solid rgba(255,255,255,.035); border-radius: 50%; content: ""; }
.page-hero h1 { max-width: 920px; color: #fff; font-size: clamp(2.7rem, 5vw, 5rem); }
.page-hero p { max-width: 780px; color: #dce8f5; font-size: 1.15rem; }
.page-hero .eyebrow { color: #8fc9ff; }
.hero, .windows-hero, .door-hero { position: relative; padding: clamp(90px, 11vw, 155px) 0; color: #fff; background: linear-gradient(120deg,var(--navy-2),var(--navy)); }
.hero h1, .windows-hero h1, .door-hero h1 { color: #fff; }
.hero-content { max-width: 800px; }
.hero-content > p { color: #dce8f5; font-size: 1.12rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 10px 34px rgba(7,24,44,.055); }
a.card { transition: .2s ease; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(7,24,44,.1); }
.card .icon { width: 46px; height: 46px; display: grid; place-content: center; margin-bottom: 22px; border-radius: 8px; color: #fff; background: var(--blue); font-weight: 900; }
.card p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.band { color: #fff; background: var(--navy); }
.band h2, .band h3 { color: #fff; }
.band p { color: #dce8f5; }
.band .card h3 { color: var(--navy); }
.band .card p { color: var(--muted); }
.visual { min-height: 500px; border-radius: var(--radius); background: url('../images/referenzen/fassade.jpg') center/cover; box-shadow: var(--shadow); }
.cta { padding: 48px 52px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-radius: 14px; color: #fff; background: var(--blue); }
.cta h2 { margin: 0; color: #fff; }
.cta .eyebrow { color: #d9efff; }
.contact-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 30px; align-items: start; }
.contact-box { padding: 36px; border-radius: 14px; color: #fff; background: var(--navy); }
.contact-box h2 { color: #fff; }
.contact-box a { color: #a8d8ff; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form input, .form select, .form textarea { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font: inherit; }
.form textarea { min-height: 150px; resize: vertical; }
.form .full { grid-column: 1 / -1; }
.notice { padding: 15px; border-left: 3px solid var(--blue); color: var(--muted); background: var(--sky); font-size: .9rem; }

.footer { padding: 72px 0 22px; color: #c5d0dd; background: var(--navy-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(130px, .7fr) minmax(190px, .95fr) minmax(130px, .75fr); gap: clamp(28px, 4vw, 50px); }
.footer-grid > * { min-width: 0; }
.footer-grid > div:first-child, .footer-brand { max-width: 340px; }
.footer .logo { max-width: 100%; }
.footer .logo img { width: 188px; max-width: 100%; height: auto; }
.footer h4 { margin-bottom: 18px; color: #fff; font-size: 1rem; }
.footer-contact-label { display: block; margin-top: 12px; color: #fff; font-size: .82rem; line-height: 1.35; }
.contact-person-name { display: block; margin: .25rem 0 .8rem; color: #8fc9ff; font-size: .9rem; font-weight: 700; letter-spacing: .02em; }
.footer-contact-label + .contact-person-name { margin: .15rem 0 .05rem; font-size: .78rem; }
.footer a { display: block; padding: 4px 0; }
.footer a:hover { color: #8fc9ff; }
.footer p { color: #aab9c8; font-size: .9rem; }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a { width: 38px; height: 38px; display: grid; place-content: center; border: 1px solid #344b65; border-radius: 7px; color: #fff; font-weight: 900; }
.copyright { margin-top: 55px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #263b52; color: #8090a2; font-size: .8rem; }
.floating { position: fixed; right: 18px; bottom: 18px; z-index: 1000; display: flex; flex-direction: column; gap: 9px; }
.float-btn { width: 50px; height: 50px; display: grid; place-content: center; border-radius: 50%; color: #fff; background: var(--blue); box-shadow: 0 9px 25px rgba(7,24,44,.25); font-size: .85rem; font-weight: 900; }
.float-btn.wa { position: fixed; top: 50%; right: 18px; width: auto; height: 58px; padding: 0 18px 0 0; display: flex; align-items: center; gap: 9px; transform: translateY(-50%); border-radius: 999px; background: #25d366; box-shadow: 0 10px 28px rgba(7,24,44,.28); font-size: 1rem; letter-spacing: .01em; transition: transform .2s ease, box-shadow .2s ease; }
.float-btn.wa:hover { transform: translateY(-50%) scale(1.025); box-shadow: 0 13px 32px rgba(7,24,44,.34); }
.float-btn.wa img { width: 58px; height: 58px; flex: 0 0 58px; }
.float-btn.wa span { white-space: nowrap; }

@media (max-width: 1060px) {
  .menu { position: fixed; top: 119px; right: 20px; left: 20px; max-height: calc(100vh - 145px); padding: 18px; display: none; align-items: stretch; flex-direction: column; gap: 0; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
  .menu.is-open { display: flex; }
  .menu-toggle { margin-left: auto; display: block; }
  .menu > a:not(.btn), .menu summary { padding: 11px 6px; }
  .menu > a:not(.btn)::after, .menu summary::after { display: none; }
  .nav-dropdown { position: static; min-width: 0; margin: 4px 0 10px; opacity: 1; transform: none; box-shadow: none; pointer-events: auto; }
  .hero-panel { width: 78%; }
  .service-tile, .service-tile.wide { grid-column: span 6; }
  .clientele { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1.2fr) minmax(130px, .8fr) minmax(180px, 1fr); }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 68px 0; }
  .container { width: min(100% - 28px, 1180px); }
  .topbar .container { justify-content: center; }
  .topbar-address { display: none; }
  .nav { min-height: 78px; }
  .logo img { width: 182px; }
  .menu { top: 107px; }
  .home-hero { min-height: 690px; }
  .hero-media img { object-position: 60% 74%; }
  .hero-overlay { background: linear-gradient(90deg, rgba(7,24,44,.94), rgba(7,24,44,.66)); }
  .hero-panel { width: 100%; padding: 68px 0 105px; }
  .home-hero h1 { font-size: clamp(2.65rem, 14vw, 4.3rem); }
  .trustbar { grid-template-columns: 1fr 1fr; }
  .trust { min-height: 95px; padding: 18px; border-bottom: 1px solid var(--line); }
  .intro-grid, .rehau-grid, .project-wall, .advisor-card, .split, .contact-grid, .section-head { grid-template-columns: 1fr; gap: 36px; }
  .intro-photo { min-height: 430px; }
  .stats-row { grid-template-columns: 1fr; }
  .stat { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .service-showcase { grid-template-columns: 1fr; }
  .service-tile, .service-tile.wide { min-height: 330px; grid-column: auto; }
  .clientele, .grid { grid-template-columns: 1fr; }
  .project-main { min-height: 380px; }
  .project-side { min-height: 270px; }
  .advisor-photo { min-height: 340px; }
  .region-band .container, .cta { align-items: flex-start; flex-direction: column; }
  .cta { padding: 34px 26px; }
  .footer { padding-top: 54px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 28px; }
  .footer-grid > div:first-child { max-width: none; grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer .logo img { width: 174px; }
  .copyright { flex-direction: column; }
  .form { grid-template-columns: 1fr; }
  .form > * { grid-column: 1 !important; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer { padding-top: 46px; }
  .footer .logo img { width: 168px; }
  .footer p { max-width: 32rem; }
  .hero-badges { display: none; }
  .actions .btn { width: 100%; }
  .reference-slide figcaption { right: 18px; bottom: 18px; left: 18px; }
  .float-btn.wa { right: 10px; height: 52px; padding-right: 14px; gap: 7px; font-size: .9rem; }
  .float-btn.wa img { width: 52px; height: 52px; flex-basis: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
