/* =========================================================
   S & A Profi Bauelemente – Stylesheet
   ========================================================= */
:root {
  --red: #e3312b;
  --red-dark: #c4231e;
  --dark: #16181d;
  --dark-2: #22252c;
  --text: #3d414a;
  --muted: #6b7180;
  --gray: #f4f5f7;
  --line: #e4e6ea;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(22, 24, 29, .08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 30px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--dark); }
.btn--white { background: var(--white); color: var(--red); }
.btn--white:hover { background: var(--dark); color: var(--white); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); height: var(--header-h); box-shadow: 0 1px 0 var(--line); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 6px 20px rgba(22, 24, 29, .08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.header__logo img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--dark); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--red); transition: width .25s; }
.nav a:not(.btn):hover::after, .nav a.is-current::after { width: 100%; }
.nav .nav__cta { padding: 11px 18px; color: var(--white); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--dark); margin: 5px 0; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: calc(100vh - var(--header-h)); min-height: 560px; max-height: 860px; overflow: hidden; background: var(--dark); }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; display: flex; align-items: center; }
.hero__slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 24, 29, .92) 0%, rgba(22, 24, 29, .7) 45%, rgba(22, 24, 29, .3) 100%); }
.hero__slide::after { content: ""; position: absolute; right: -8%; bottom: -30%; width: 38%; height: 90%; background: linear-gradient(160deg, var(--red), transparent 70%); transform: skewX(-22deg); opacity: .55; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__content { position: relative; z-index: 2; color: var(--white); }
.hero__kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 12px; }
.hero__kicker::before { content: ""; width: 40px; height: 3px; background: var(--red); }
.hero__title { color: var(--white); font-size: clamp(38px, 6.5vw, 76px); text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 22px; }
.hero__text { max-width: 560px; font-size: 18px; color: rgba(255, 255, 255, .85); margin-bottom: 34px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__slide.is-active .hero__content > * { animation: rise .8s both; }
.hero__slide.is-active .hero__title { animation-delay: .1s; }
.hero__slide.is-active .hero__text { animation-delay: .2s; }
.hero__slide.is-active .hero__btns { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__dots { position: absolute; z-index: 3; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; gap: 10px; }
.hero__dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); background: transparent; padding: 0; cursor: pointer; transition: background .2s, width .2s; }
.hero__dots button.is-active { background: var(--red); border-color: var(--red); width: 32px; border-radius: 6px; }

/* ---------- Features ---------- */
.features { position: relative; z-index: 5; margin-top: -60px; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; padding: 0; }
.feature { display: flex; gap: 16px; padding: 30px 26px; border-right: 1px solid var(--line); }
.feature:last-child { border-right: 0; }
.feature svg { flex: 0 0 42px; height: 42px; fill: var(--red); }
.feature h3 { font-size: 17px; margin-bottom: 4px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--gray { background: var(--gray); }
.section--dark { background: var(--dark); color: rgba(255, 255, 255, .75); }
.section--dark .section__title, .section--dark h3 { color: var(--white); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__title { font-size: clamp(28px, 4vw, 44px); }
.section__lead { color: var(--muted); }
.eyebrow { color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; margin-bottom: 12px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: stretch; }
.about__media { position: relative; min-height: 440px; }
/* Bild so hoch wie der Text daneben – nicht nach Bildformat */
.about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; border-radius: var(--radius); }
.about__text { align-self: center; padding: 20px 0; }
.about__text p { font-size: 17px; }
.about__media::before { content: ""; position: absolute; left: -18px; top: -18px; width: 45%; height: 45%; border: 6px solid var(--red); border-radius: var(--radius); z-index: -1; }
.about__badge { position: absolute; right: -24px; bottom: 36px; background: var(--red); color: var(--white); padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; }
.about__badge strong { font-size: 34px; line-height: 1; }
.about__badge span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; line-height: 1.3; }
.checklist { margin: 26px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checklist li { position: relative; padding-left: 30px; font-weight: 600; color: var(--dark); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.service:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(22, 24, 29, .14); }
.service__img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service:hover .service__img img { transform: scale(1.06); }
.service__body { padding: 26px 28px 30px; border-top: 4px solid var(--red); flex: 1; }
.service h3 { font-size: 22px; }
.service__tags { color: var(--red); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.service li { position: relative; padding-left: 20px; margin-bottom: 6px; font-size: 15px; }
.service li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }
.more { margin-top: 56px; text-align: center; }
.more h3 { font-size: 20px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips span { background: var(--white); border: 1px solid var(--line); padding: 10px 18px; border-radius: 40px; font-weight: 600; font-size: 14px; color: var(--dark); }

/* ---------- Before / After ---------- */
.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.compare { margin: 0; }
.compare__box { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); user-select: none; background: var(--gray); }
.compare__box > img, .compare__before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__box input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 4; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--white); transform: translateX(-50%); z-index: 3; pointer-events: none; }
.compare__handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: var(--white); font-weight: 800; font-size: 20px; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); letter-spacing: 2px; }
.compare__box input:focus-visible ~ .compare__handle::after { outline: 3px solid var(--white); outline-offset: 2px; }
.compare__label { position: absolute; top: 16px; z-index: 2; background: rgba(22, 24, 29, .75); color: var(--white); padding: 6px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; pointer-events: none; }
.compare__label--l { left: 16px; }
.compare__label--r { right: 16px; background: var(--red); }
.compare figcaption { margin-top: 14px; font-weight: 700; color: var(--dark); font-size: 17px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { background: var(--dark-2); border-radius: var(--radius); padding: 34px 28px; position: relative; border-bottom: 3px solid transparent; transition: border-color .3s, transform .3s; }
.steps li:hover { border-color: var(--red); transform: translateY(-4px); }
.steps span { display: block; font-size: 46px; font-weight: 900; color: transparent; -webkit-text-stroke: 1.5px var(--red); line-height: 1; margin-bottom: 18px; }
.steps h3 { font-size: 20px; }
.steps p { margin: 0; font-size: 15px; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 38px; }
.filters button { font: inherit; font-weight: 700; font-size: 14px; padding: 10px 20px; border-radius: 40px; border: 1px solid var(--line); background: var(--white); color: var(--dark); cursor: pointer; transition: all .2s; }
.filters button:hover { border-color: var(--red); color: var(--red); }
.filters button.is-active { background: var(--red); border-color: var(--red); color: var(--white); }
.gallery { columns: 4 240px; column-gap: 16px; }
.gallery a { display: block; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; break-inside: avoid; position: relative; background: var(--gray); }
.gallery a::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 48px; font-weight: 300; color: var(--white); background: rgba(227, 49, 43, .65); opacity: 0; transition: opacity .3s; }
.gallery a:hover::after { opacity: 1; }
.gallery img { width: 100%; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a.is-hidden { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 11, 14, .94); display: flex; align-items: center; justify-content: center; padding: 40px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 4px; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font-size: 54px; line-height: 1; cursor: pointer; padding: 10px 16px; opacity: .8; }
.lightbox button:hover { opacity: 1; color: var(--red); }
.lightbox__close { top: 10px; right: 14px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- CTA ---------- */
.cta { background: var(--red); color: var(--white); padding: 56px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: 22%; top: -50%; width: 260px; height: 200%; background: rgba(255, 255, 255, .08); transform: skewX(-22deg); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; }
.cta h2 { color: var(--white); font-size: clamp(24px, 3vw, 34px); margin-bottom: 6px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .9); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact__list { margin-top: 30px; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__list svg { flex: 0 0 52px; height: 52px; padding: 14px; border-radius: 50%; background: var(--white); fill: var(--red); box-shadow: var(--shadow); }
.contact__list small { display: block; color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; font-weight: 700; }
.contact__list a, .contact__list span { font-weight: 700; color: var(--dark); font-size: 17px; word-break: break-word; }
.contact__list a:hover { color: var(--red); }
.form { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--dark); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--gray); color: var(--dark); transition: border-color .2s, background .2s; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); background: var(--white); }
.form textarea { resize: vertical; }
.form .is-invalid { border-color: var(--red); background: #fff4f3; }
.form__check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 13px !important; color: var(--muted) !important; }
.form__check input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 18px; accent-color: var(--red); }
.form__check a { color: var(--red); text-decoration: underline; }
.form .btn { justify-self: start; }
.form__msg { margin: 0; font-weight: 700; min-height: 1.5em; }
.form__msg.ok { color: #1a8a4a; }
.form__msg.err { color: var(--red); }
.hp { position: absolute !important; left: -9999px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255, 255, 255, .65); padding-top: 80px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1.1fr .9fr .9fr 1.2fr; gap: 36px; padding-bottom: 60px; }
.footer img { height: 70px; width: auto; margin-bottom: 20px; }
.footer h4 { color: var(--white); font-size: 18px; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--red); }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--red); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: 14px; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer__bottom-inner a { color: var(--white); }

/* ---------- Call button (mobile) ---------- */
.call-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--red); display: none; place-items: center; box-shadow: 0 8px 24px rgba(227, 49, 43, .45); }
.call-fab svg { width: 26px; height: 26px; fill: var(--white); }
body:has(.nav.is-open) .call-fab { display: none; }

/* ---------- Cookie-Hinweis ---------- */
.cookie-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(10, 11, 14, .72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn .3s ease both; }
.cookie-modal { position: fixed; inset: 0; z-index: 901; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.cookie-modal__box { width: 100%; max-width: 480px; background: var(--white); border-radius: var(--radius); border-top: 4px solid var(--red); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); padding: 32px 32px 22px; animation: rise .4s ease both; }
.cookie-modal__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cookie-modal__head svg { flex: 0 0 44px; height: 44px; fill: var(--red); }
.cookie-modal__head h3 { font-size: 24px; margin: 0; }
.cookie-modal p { font-size: 15px; margin-bottom: 22px; }
.cookie-modal p a { color: var(--red); font-weight: 700; text-decoration: underline; }
.cookie-modal__btn { width: 100%; }
.cookie-modal__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cookie-modal__links a:hover { color: var(--red); }
.cookie-modal__links span { color: var(--line); }
body:has(.cookie-modal) { overflow: hidden; }
body:has(.cookie-modal) .call-fab { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) { .cookie-modal__box { padding: 26px 20px 18px; } }

/* ---------- Dropdown (Leistungen) ---------- */
.nav__drop { position: relative; display: flex; align-items: center; gap: 4px; }
.nav__droplink::before { content: ""; position: absolute; right: -14px; top: 50%; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); }
.nav__droplink { margin-right: 10px; }
.nav__toggle { display: none; }
.nav__menu { position: absolute; top: 100%; left: -22px; min-width: 250px; background: var(--white); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(22, 24, 29, .16); border-top: 3px solid var(--red); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .2s, transform .2s, visibility .2s; margin-top: 18px; }
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: block; padding: 10px 22px; font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 600; transition: background .15s, color .15s, padding .15s; }
.nav__menu a::after { display: none; }
.nav__menu a:hover, .nav__menu a.is-current { background: var(--gray); color: var(--red); padding-left: 28px; }

/* ---------- Page hero (Unterseiten) ---------- */
.page-hero { position: relative; padding: 110px 0 90px; background-size: cover; background-position: center; color: var(--white); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 24, 29, .93), rgba(22, 24, 29, .72) 55%, rgba(22, 24, 29, .5)); }
.page-hero::after { content: ""; position: absolute; right: 6%; top: -40%; width: 160px; height: 180%; background: var(--red); opacity: .5; transform: skewX(-22deg); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(34px, 5.5vw, 62px); text-transform: uppercase; margin-bottom: 12px; }
.page-hero p { font-size: 18px; color: rgba(255, 255, 255, .85); max-width: 620px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.crumbs a { color: var(--white); }
.crumbs a:hover { color: var(--red); }
.crumbs span { color: var(--red); }

/* ---------- Leistung – Detailseite ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; align-items: start; }
.lead { font-size: 18px; }
.detail__h { font-size: 26px; margin: 56px 0 24px; padding-left: 16px; border-left: 4px solid var(--red); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.tile { background: var(--gray); border-radius: var(--radius); padding: 28px 24px; border-bottom: 3px solid transparent; transition: border-color .3s, transform .3s, background .3s; }
.tile:hover { background: var(--white); box-shadow: var(--shadow); border-color: var(--red); transform: translateY(-4px); }
.tile__num { display: block; font-size: 34px; font-weight: 900; color: transparent; -webkit-text-stroke: 1.5px var(--red); line-height: 1; margin-bottom: 14px; }
.tile h3 { font-size: 19px; margin-bottom: 8px; }
.tile p { font-size: 15px; margin: 0; color: var(--muted); }
.detail .checklist { margin-top: 0; }
.detail .gallery { columns: 3 180px; }
.detail .compare-grid { gap: 24px; }
.side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.side__box { background: var(--gray); border-radius: var(--radius); padding: 30px 26px; }
.side__box h3 { font-size: 20px; margin-bottom: 18px; }
.side__list li { border-bottom: 1px solid var(--line); }
.side__list li:last-child { border-bottom: 0; }
.side__list a { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; font-weight: 700; color: var(--dark); transition: color .2s, padding .2s; }
.side__list a::after { content: "›"; font-size: 22px; line-height: 1; color: var(--red); }
.side__list a:hover, .side__list a.is-current { color: var(--red); padding-left: 6px; }
.side__box--red { background: var(--red); color: rgba(255, 255, 255, .9); }
.side__box--red h3 { color: var(--white); }
.side__phone { display: block; font-size: 24px; font-weight: 800; color: var(--white); margin: 6px 0 20px; }
.side__box--red .btn { width: 100%; }

/* ---------- Diverses ---------- */
a.service { color: inherit; }
.service__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--red); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.service__more::after { content: "→"; transition: transform .2s; }
.service:hover .service__more::after { transform: translateX(4px); }
.center { text-align: center; margin-top: 40px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn--outline-white { border-color: rgba(255, 255, 255, .8); color: var(--white); }
.btn--outline-white:hover { background: var(--white); color: var(--red); }
.form .form__msg .ok { color: #1a8a4a; }
.form .form__msg .err { color: var(--red); }
.form .form__msg a { text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal { padding: 80px 0 100px; }
.legal .container { max-width: 860px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 30px; }
.legal h2 { font-size: 22px; margin-top: 44px; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.legal h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: var(--red); }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 18px; margin-top: 24px; }
.page-hero--small { padding: 80px 0 70px; }
.legal a { color: var(--red); text-decoration: underline; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .nav a { font-size: 13px; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .header__logo img { height: 48px; }
  .burger { display: block; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 30px; transform: translateX(100%); transition: transform .3s; overflow-y: auto; }
  .nav.is-open { transform: none; }
  .nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a:not(.btn)::after { display: none; }
  .nav .nav__cta { margin-top: 20px; padding: 16px; border-bottom: 0; }
  .nav__drop { flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); }
  .nav__drop > a.nav__droplink { flex: 1; border-bottom: 0; margin-right: 0; }
  .nav__droplink::before { display: none; }
  .nav__toggle { display: block; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; position: relative; }
  .nav__toggle::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--dark); border-bottom: 2px solid var(--dark); transform: translate(-50%, -70%) rotate(45deg); transition: transform .2s; }
  .nav__drop.is-open .nav__toggle::before { transform: translate(-50%, -30%) rotate(-135deg); }
  .nav__menu { position: static; flex-basis: 100%; min-width: 0; box-shadow: none; border-top: 0; margin: 0; padding: 0 0 10px; opacity: 1; visibility: visible; transform: none; display: none; background: transparent; }
  .nav__menu::before { display: none; }
  .nav__drop.is-open .nav__menu { display: block; }
  .nav__drop:hover .nav__menu { transform: none; }
  .nav__menu a { padding: 12px 16px; border-bottom: 0; font-size: 15px; }
  .page-hero { padding: 80px 0 64px; }
  .side { grid-template-columns: 1fr; }
  .about__grid, .contact { grid-template-columns: 1fr; gap: 50px; }
  .about__badge { right: 12px; }
  .about__media { min-height: 0; aspect-ratio: 4 / 3; }
  .compare-grid { grid-template-columns: 1fr; }
  .cta__inner { flex-direction: column; text-align: center; }
  .call-fab { display: grid; }
}
@media (max-width: 600px) {
  .section { padding: 76px 0; }
  .container { padding: 0 16px; }
  .hero { min-height: 520px; }
  .hero__title { font-size: clamp(28px, 8.4vw, 40px); hyphens: manual; }
  .hero__text { font-size: 16px; }
  .hero__btns .btn { flex: 1 1 100%; }
  .features { margin-top: 0; }
  .features__grid { grid-template-columns: 1fr; border-radius: 0; box-shadow: none; }
  .feature { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 22px 16px; }
  .services, .steps, .tiles { grid-template-columns: 1fr; }
  .page-hero::after { display: none; }
  .page-hero p, .lead { font-size: 16px; }
  .detail__h { font-size: 22px; margin-top: 44px; }
  .detail .gallery { columns: 2 140px; }
  .checklist { grid-template-columns: 1fr; }
  .about__media::before { left: -8px; top: -8px; }
  .form { padding: 26px 20px; }
  .contact__list a, .contact__list span { font-size: 15px; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .gallery a { margin-bottom: 10px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .filters button { flex: 0 0 auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .lightbox { padding: 50px 10px; }
  .lightbox__prev, .lightbox__next { top: auto !important; bottom: 10px; transform: none !important; }
}
