:root {
  --ink: #171719;
  --muted: #68686e;
  --paper: #f4f2ef;
  --white: #fff;
  --red: #e30b17;
  --line: #d7d3ce;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { color: var(--red); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

.site-header {
  height: 102px; padding: 0 4.5vw; background: transparent; color: white; display: flex;
  align-items: center; justify-content: space-between; position: absolute; inset: 0 0 auto; z-index: 10;
}
.brand img { width: 230px; height: auto; }
.site-header .brand img { filter: none; }
nav { display: flex; gap: 2.2rem; }
nav a { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
nav a:hover { color: var(--red); }
.header-cta { background: var(--red); color: white; padding: 16px 22px; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; }
.mobile-nav { display: none; }

.hero { min-height: 690px; position: relative; color: white; display: flex; align-items: center; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; background: url("assets/referenz-11.webp") center 58%/cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,12,14,.9) 0%, rgba(12,12,14,.65) 45%, rgba(12,12,14,.12) 78%); }
.hero-content { position: relative; width: 58%; padding: 84px 4.5vw 96px 9vw; }
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: .22em; font-weight: 700; font-size: 11px; }
.eyebrow { color: #e5e2de; margin-bottom: 28px; }
.eyebrow::before, .section-kicker::before { content: ""; display: inline-block; width: 34px; height: 2px; background: var(--red); vertical-align: middle; margin-right: 14px; }
h1 { font-size: clamp(58px, 7vw, 108px); line-height: .88; letter-spacing: -.055em; margin: 0; font-weight: 700; }
h1 em { display: inline-block; margin-left: 8%; }
.hero-copy { max-width: 570px; font-size: 18px; line-height: 1.65; color: #ddd; margin: 34px 0; }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 220px; padding: 19px 22px; text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; }
.button span { font-size: 18px; }
.button-red { background: var(--red); color: white; }
.button-red:hover { background: #bd0610; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; border-bottom: 1px solid #aaa; padding: 10px 0; }
.action-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.button-red .action-icon, .button-outline .action-icon { filter: invert(1); }
.mobile-phone { display: none; }
.hero-card { position: absolute; right: 4.5vw; bottom: 0; width: 280px; background: rgba(255,255,255,.92); color: var(--ink); padding: 28px 32px; }
.hero-card span { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--red); font-weight: 700; }
.hero-card strong { display: block; font-size: 26px; line-height: 1.05; margin: 10px 0; }
.hero-card p { margin: 0; color: var(--muted); font-size: 12px; }

.section { padding: 115px 7vw; }
.services, .showroom, .faq, .references, .partners, .contact { content-visibility: auto; contain-intrinsic-size: 800px; }
.intro { display: grid; grid-template-columns: 28% 1fr; }
.section-kicker { color: var(--red); margin: 12px 0 26px; }
.section-kicker.light { color: white; }
.intro h2, .section-heading h2, .showroom h2, .contact h2 { margin: 0; letter-spacing: -.045em; line-height: 1; font-size: clamp(44px, 5vw, 78px); }
.intro .lead { max-width: 700px; color: var(--muted); font-size: 18px; line-height: 1.8; margin: 36px 0 0 15%; }
.services { background: #fff; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 55px; }
.section-heading > p { max-width: 430px; color: var(--muted); line-height: 1.7; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service-card { padding: 36px 28px 24px 0; border-right: 1px solid var(--line); min-height: 310px; position: relative; }
.service-card + .service-card { padding-left: 28px; }
.service-card:last-child { border-right: 0; }
.service-number { font-size: 11px; color: var(--red); font-weight: 700; }
.tile-mark { display: grid; grid-template-columns: 17px 17px; gap: 3px; margin: 28px 0 35px; }
.tile-mark i { height: 17px; background: #d4d1cd; }
.tile-mark i:nth-child(3) { background: var(--red); }
.service-card h3 { font-size: 21px; margin: 0 0 15px; }
.service-card p { color: var(--muted); line-height: 1.7; font-size: 14px; margin: 0; }

.showroom { display: grid; grid-template-columns: 57% 43%; min-height: 650px; background: #242426; color: white; }
.showroom-image { background: url("assets/ausstellung.webp") center/cover no-repeat; min-height: 560px; }
.showroom-copy { padding: 105px 7vw 80px; align-self: center; }
.showroom-copy p:not(.section-kicker) { color: #c7c5c1; line-height: 1.8; margin: 32px 0; max-width: 480px; }
.button-outline { border: 1px solid #888; color: white; }
.button-outline:hover { border-color: white; background: white; color: var(--ink); }

.reference-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 15px; }
.faq { background: #f5f4f2; }
.faq-grid { background: white; border: 1px solid var(--line); }
.faq-grid details + details { border-top: 1px solid var(--line); }
.faq-grid summary { position: relative; padding: 30px 78px 30px 34px; cursor: pointer; list-style: none; font-size: 21px; font-weight: 700; line-height: 1.3; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { content: "+"; position: absolute; right: 32px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 30px; font-weight: 400; line-height: 1; }
.faq-grid details[open] summary::after { content: "−"; }
.faq-grid summary:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; }
.faq-grid p { color: var(--muted); line-height: 1.7; margin: 0; padding: 0 78px 32px 34px; }
.reference-card { aspect-ratio: 1; margin: 0; position: relative; overflow: hidden; background: #d8d5d0; }
.reference-open { width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.reference-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.reference-card:hover img { transform: scale(1.035); }
.reference-open:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.reference-card figcaption {
  position: absolute; inset: auto 16px 16px auto; background: rgba(255,255,255,.92);
  width: 74px; height: 58px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.reference-card figcaption span { font-size: 8px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); writing-mode: vertical-rl; }
.reference-card figcaption b { color: var(--red); font-size: 18px; }
.reference-card figcaption { pointer-events: none; }
.lightbox { width: min(92vw, 1200px); height: min(90vh, 860px); padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(13,13,14,.92); backdrop-filter: blur(3px); }
.lightbox figure { width: 100%; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; }
.lightbox figure img { display: block; max-width: 100%; max-height: calc(100% - 42px); width: auto; height: auto; object-fit: contain; box-shadow: 0 12px 50px rgba(0,0,0,.35); }
.lightbox figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; color: white; text-align: center; font-size: 13px; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; z-index: 2; border: 0; color: white; background: rgba(0,0,0,.55); cursor: pointer; }
.lightbox-close { top: 0; right: 0; width: 48px; height: 48px; font-size: 32px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 50px; height: 64px; font-size: 42px; }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox button:focus-visible { outline: 2px solid white; outline-offset: 2px; }

.partners { background: white; }
.partner-row { display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; gap: 55px; align-items: center; margin-top: 55px; }
.partner-row a { display: flex; flex-direction: column; align-items: center; text-align: center; }
.partner-row strong { font-size: 23px; letter-spacing: .08em; }
.partner-row span { color: var(--muted); font-size: 12px; margin-top: 8px; }
.partner-divider { background: var(--line); height: 70px; }

.contact { background: var(--red); color: white; padding: 105px 7vw; display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; }
.contact .section-kicker::before { background: white; }
.contact h2 em { color: white; opacity: .9; }
.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-content: center; }
.contact-details span { text-transform: uppercase; font-size: 10px; letter-spacing: .2em; opacity: .7; }
.contact-details p { line-height: 1.65; margin: 8px 0; }
.contact-phone p { font-size: clamp(20px, 1.7vw, 27px); font-weight: 700; line-height: 1.45; letter-spacing: -.02em; }
.contact-phone p .desktop-phone,
.contact-phone p .mobile-phone { font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; text-transform: none; opacity: 1; }
.mail-button { grid-column: 1 / -1; background: white; color: var(--ink); padding: 20px 24px; display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; margin-top: 12px; }
.mail-button .action-icon { width: 19px; height: 19px; }

footer { background: #18181a; color: #929297; padding: 36px 4.5vw; display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
footer .footer-logo { box-sizing: border-box; width: 156px; height: 70px; flex: 0 0 156px; display: flex; align-items: center; justify-content: center; padding: 10px 12px; overflow: hidden; }
footer .footer-logo img { display: block; width: 100%; height: 100%; max-width: 132px; max-height: 50px; object-fit: contain; }
footer .footer-brand-mark img { filter: brightness(1.5); }
footer .footer-wedoyu { background: #fff; border-radius: 3px; }
footer .footer-credit { display: flex; flex-direction: column; align-items: center; gap: 10px; }
footer .footer-legal { display: flex; gap: 20px; }
footer .footer-credit-label { margin-bottom: -4px; color: #929297; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.back-to-top {
  position: fixed; z-index: 50; right: 22px; top: 50%; transform: translateY(-50%) translateX(115%);
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: var(--red); color: white; opacity: 0; pointer-events: none;
  text-transform: uppercase; letter-spacing: .12em; font-size: 8px; font-weight: 800;
  transition: opacity .25s, transform .25s;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(-50%) translateX(0); }
.back-to-top img { width: 18px; height: 18px; filter: invert(1); transform: rotate(180deg); }

.legal-header { position: relative; inset: auto; background: white; color: var(--ink); border-bottom: 1px solid var(--line); }
.legal-header .brand img { filter: none; }
.legal-header .header-cta { background: var(--ink); }
.legal-page { min-height: 70vh; padding: 85px max(7vw, 24px) 120px; background: #fff; }
.legal-wrap { max-width: 900px; margin: 0 auto; }
.legal-back { display: inline-block; margin-bottom: 42px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.legal-page h1 { color: var(--ink); font-size: clamp(48px, 7vw, 82px); line-height: 1; margin: 0 0 55px; letter-spacing: -.045em; }
.legal-page h2 { font-size: 25px; margin: 46px 0 15px; }
.legal-page h3 { font-size: 18px; margin: 34px 0 10px; }
.legal-page p, .legal-page li { color: #4f4f54; font-size: 15px; line-height: 1.75; }
.legal-page ul { padding-left: 22px; }
.legal-page a:not(.legal-back) { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.legal-note { background: var(--paper); border-left: 3px solid var(--red); padding: 18px 22px; margin: 38px 0; }
.legal-note p { margin: 0; }

@media (max-width: 900px) {
  footer .footer-wedoyu { width: 112px; height: 46px; flex-basis: 112px; padding: 7px 9px; background: #f1f1f1; }
  footer .footer-wedoyu img { max-width: 92px; max-height: 30px; }
  .desktop-phone { display: none !important; }
  .mobile-phone { display: inline; }
  .button.mobile-phone, .header-cta.mobile-phone { display: inline-flex; }
  .site-header { height: 82px; padding: 0 5vw; }
  .brand img { width: 180px; }
  nav { display: none; }
  .mobile-nav { display: block; position: relative; margin-left: auto; }
  .mobile-nav summary { width: 48px; height: 48px; background: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { display: block; width: 21px; height: 2px; background: white; transition: transform .2s, opacity .2s; }
  .mobile-nav[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-nav[open] summary span:nth-child(2) { opacity: 0; }
  .mobile-nav[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-nav nav { position: absolute; z-index: 20; top: 58px; right: 0; width: min(330px, 90vw); padding: 12px 0; background: white; box-shadow: 0 18px 45px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 0; }
  .mobile-nav nav a { padding: 17px 24px; border-bottom: 1px solid var(--line); color: #111; font-size: 12px; letter-spacing: .13em; }
  .mobile-nav nav a:last-child { border-bottom: 0; }
  .mobile-nav nav .mobile-call { margin: 12px; padding: 17px 18px; background: var(--red); color: white; text-align: center; }
  .hero { min-height: 700px; align-items: flex-end; }
  .hero-photo { background-position: 48% 55%; }
  .hero-content { width: 100%; padding: 110px 6vw 150px; }
  .hero-card { right: 0; width: 240px; padding: 20px 25px; }
  .hero-copy { font-size: 16px; }
  .section { padding: 80px 6vw; }
  .intro { grid-template-columns: 1fr; }
  .intro .lead { margin-left: 0; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(2) { border-right: 0; }
  .showroom { grid-template-columns: 1fr; }
  .showroom-copy { padding: 75px 7vw; }
  .reference-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid summary { padding: 25px 62px 25px 24px; }
  .faq-grid summary::after { right: 24px; }
  .faq-grid p { padding: 0 62px 26px 24px; }
  .partner-row { gap: 20px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  footer .footer-wedoyu { width: 100px; height: 42px; flex-basis: 100px; padding: 6px 8px; }
  footer .footer-wedoyu img { max-width: 82px; max-height: 27px; }
  .brand img { width: 155px; }
  .header-cta { font-size: 9px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero-card { display: none; }
  .hero-content { padding-bottom: 75px; }
  .hero-photo { background-position: 45% 54%; }
  .section-heading { display: block; }
  .service-grid, .reference-grid { grid-template-columns: 1fr; }
  .service-card, .service-card + .service-card { border-right: 0; border-bottom: 1px solid var(--line); padding: 30px 0; min-height: 250px; }
  .reference-card { aspect-ratio: 1; }
  .partner-row { grid-template-columns: 1fr; }
  .partner-divider { width: 100%; height: 1px; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-phone p { font-size: 24px; }
  .mail-button { grid-column: auto; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
  .legal-page { padding-top: 55px; }
}

@media (max-width: 560px) {
  .back-to-top { right: 12px; width: 42px; height: 42px; }
}
