/* =========================================================
   TERASA Group – Stylesheet
   Farben und Abstände zentral in :root
   ========================================================= */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff") format("woff"); }

:root {
    --brand: #f9b233;
    --brand-dark: #e59a12;
    --brand-soft: #fff6e3;
    --dark: #212121;
    --dark-2: #2f2f2f;
    --text: #4f4f4f;
    --muted: #838383;
    --line: #e7e7e7;
    --bg-soft: #f7f7f7;
    --white: #fff;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .07);
    --shadow-lg: 0 18px 45px rgba(0, 0, 0, .12);
    --container: 1200px;
    --header-h: 88px;
    --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--dark); }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
address { font-style: normal; }
.icon { width: 1em; height: 1em; flex: none; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--dark); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.7em; border: 2px solid transparent; border-radius: 999px; font: 600 .9rem/1.2 var(--font); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-dark); color: var(--white); }
.btn--dark { background: var(--dark-2); color: var(--white); }
.btn--dark:hover { background: var(--white); color: var(--dark); }
.btn--outline { background: transparent; border-color: currentColor; color: var(--dark); }
.btn--outline:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.9); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--brand-dark); }
.btn--lg { padding: 1em 2.2em; font-size: .95rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.link-button:hover { color: var(--brand); }

/* ---------- Topbar ---------- */
.topbar { background: var(--dark); color: #d6d6d6; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar__claim { margin: 0; color: #fff; font-style: italic; }
.topbar__claim strong { color: var(--brand); font-weight: 600; }
.topbar__contact { list-style: none; display: flex; gap: 24px; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 8px; color: #d6d6d6; }
.topbar__contact a:hover { color: var(--brand); }
.topbar__contact .icon { color: var(--brand); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 2px 18px rgba(0,0,0,.06); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo img { height: 50px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.main-nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; color: var(--dark); font: 500 .95rem/1 var(--font); background: none; border: 0; cursor: pointer; border-radius: 8px; }
.main-nav__link:hover, .main-nav__item.is-active > .main-nav__link { color: var(--brand-dark); }
.main-nav__item.is-active > .main-nav__link { box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.icon--chevron { width: 18px; height: 18px; transition: transform .2s; }
.main-nav__cta { display: none; }
.header-cta { padding: .8em 1.4em; border-radius: 6px; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 10px; background: var(--brand-soft); color: var(--dark); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon--close { display: none; }
.nav-open .nav-toggle .icon--open { display: none; }
.nav-open .nav-toggle .icon--close { display: block; }

/* Mega-Menü */
.has-mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 3px solid var(--brand); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.mega__inner { width: min(100% - 32px, var(--container)); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; padding: 32px 0 36px; }
.mega__title { display: block; color: var(--dark); font-weight: 700; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mega ul { list-style: none; }
.mega li a { display: block; padding: 6px 0; color: var(--text); font-size: .93rem; }
.mega li a:hover, .mega li a[aria-current] { color: var(--brand-dark); }
@media (hover: hover) and (min-width: 1101px) {
    .has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
    .has-mega:hover .icon--chevron { transform: rotate(180deg); }
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.badge { display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 4px; background: var(--dark); color: #fff; font-size: .62rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; vertical-align: 2px; }
.badge--new { background: var(--brand); }

/* ---------- Hero-Slider ---------- */
.hero { position: relative; height: clamp(480px, 78vh, 820px); overflow: hidden; background: var(--dark); color: var(--white); }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide img.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 7.5s linear; }
.hero__slide.is-active img.hero__bg { transform: scale(1); }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.45) 100%); }
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 16px 70px; }
.hero__kicker { color: var(--brand); font-weight: 600; font-size: clamp(.95rem, .8rem + .6vw, 1.45rem); letter-spacing: .08em; margin-bottom: .5em; }
.hero__title { color: var(--white); font-weight: 700; font-size: clamp(2rem, 1.1rem + 4vw, 3.9rem); line-height: 1.12; margin: 0 0 1em; text-transform: uppercase; text-shadow: 0 3px 20px rgba(0,0,0,.25); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero__badge { position: absolute; z-index: 3; right: max(24px, 6vw); top: 9%; width: clamp(110px, 12vw, 200px); }
.hero__slide.is-active .hero__kicker, .hero__slide.is-active .hero__title, .hero__slide.is-active .hero__actions { animation: rise .9s both; }
.hero__slide.is-active .hero__title { animation-delay: .25s; }
.hero__slide.is-active .hero__actions { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__dots { position: absolute; z-index: 4; left: 0; right: 0; bottom: 24px; display: flex; gap: 10px; justify-content: center; }
.hero__dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.hero__dots button[aria-current="true"] { background: var(--brand); border-color: var(--brand); }
.hero__arrow { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.hero__arrow:hover { background: var(--brand); }
.hero__arrow .icon { width: 28px; height: 28px; }
.hero__arrow--prev { left: 18px; } .hero__arrow--prev .icon { transform: rotate(90deg); }
.hero__arrow--next { right: 18px; } .hero__arrow--next .icon { transform: rotate(-90deg); }

/* ---------- Seitenkopf Unterseiten ---------- */
.page-hero { position: relative; padding: clamp(70px, 9vw, 130px) 0 clamp(60px, 7vw, 100px); color: #fff; background: var(--dark) center/cover no-repeat; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,20,20,.85) 0%, rgba(20,20,20,.55) 60%, rgba(20,20,20,.35) 100%); }
.page-hero__kicker { display: inline-block; color: var(--brand); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; margin-bottom: 10px; }
.page-hero h1 { color: #fff; max-width: 820px; margin: 0; }
.page-hero__lead { max-width: 680px; margin: 16px 0 0; color: #e8e8e8; font-size: 1.05rem; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; margin-bottom: 18px; color: #cfcfcf; }
.breadcrumb a { color: #cfcfcf; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }

/* ---------- Sektionen ---------- */
.section { padding: clamp(56px, 7vw, 100px) 0; }
.section--soft { background: var(--bg-soft); }
.section--brand { background: var(--brand); color: var(--dark); }
.section--tight { padding: clamp(36px, 4vw, 56px) 0; }
.section__head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 56px); text-align: center; }
.section__head p { color: var(--muted); }
.kicker { display: inline-block; color: var(--brand-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 8px; }
.watermark { font-size: clamp(1.5rem, .4rem + 5vw, 5rem); overflow-wrap: anywhere; line-height: 1; font-weight: 700; color: #ececec; margin: 0; letter-spacing: .02em; display: flex; align-items: center; gap: 18px; }
.watermark img { width: clamp(40px, 5vw, 64px); }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.align-center { align-items: center; }
.grid-contact { grid-template-columns: 1fr 1.6fr; align-items: start; }

/* Kategorie-Kacheln Startseite */
.cat-card { display: block; text-align: center; background: #fff; border: 2px solid var(--brand); border-radius: 20px; padding: 26px 18px 22px; color: var(--brand-dark); transition: background .3s, color .3s, transform .3s, box-shadow .3s; }
.cat-card img { width: 100%; max-width: 230px; margin: 0 auto 14px; aspect-ratio: 4/3; object-fit: contain; }
.cat-card h2, .cat-card h3 { font-size: 1.2rem; color: inherit; margin: 0; line-height: 1.3; }
.cat-card:hover { background: var(--brand); color: #fff; transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Produktzeilen (Startseite / Übersicht) */
.product-row { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: clamp(24px, 3vw, 44px); align-items: center; padding: clamp(32px, 4vw, 52px); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.product-row + .product-row { margin-top: 28px; }
.product-row__cat { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 600; color: var(--muted); margin: 0 0 4px; }
.product-row h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--brand-dark); margin-bottom: .5em; }
.product-row__img { border-radius: 22px; overflow: hidden; position: relative; }
.product-row__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s; }
.product-row__img:hover img { transform: scale(1.05); }
.check-list { list-style: none; margin: 0 0 24px; }
.check-list li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list .icon { color: var(--brand); width: 20px; height: 20px; margin-top: 3px; }

/* Vorteile / Feature-Boxen */
.feature { background: #fff; border-radius: 20px; padding: 34px 22px 28px; text-align: center; transition: background .3s, color .3s, transform .3s; height: 100%; }
.feature .icon { width: 64px; height: 64px; color: var(--brand); margin: 0 auto 18px; transition: color .3s; }
.feature h3 { font-size: 1.05rem; margin: 0; transition: color .3s; }
.feature p { margin: 10px 0 0; font-size: .93rem; }
.feature:hover { background: var(--brand); color: #fff; transform: translateY(-4px); }
.feature:hover .icon, .feature:hover h3 { color: #fff; }

/* Leistungsband (Wunschmaß / Lieferung / Montage) */
.usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--dark); border-radius: var(--radius); overflow: hidden; margin-top: clamp(-60px, -5vw, -40px); position: relative; z-index: 5; box-shadow: var(--shadow-lg); }
.usp__item { display: flex; gap: 16px; align-items: center; padding: 26px 28px; color: #e5e5e5; }
.usp__item + .usp__item { border-left: 1px solid rgba(255,255,255,.1); }
.usp__item .icon { width: 44px; height: 44px; color: var(--brand); }
.usp__item h3 { color: #fff; font-size: 1.02rem; margin: 0 0 2px; }
.usp__item p { margin: 0; font-size: .86rem; color: #bdbdbd; }

/* Produktdetail */
.product-intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.product-intro__media { position: sticky; top: calc(var(--header-h) + 24px); }
.product-intro__media .zoom { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.product-intro__media .zoom img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.zoom__hint { position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.zoom__hint .icon { width: 22px; height: 22px; }
.guarantee { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding: 18px 22px; background: var(--brand-soft); border-radius: var(--radius-sm); }
.guarantee img { width: 84px; }
.guarantee p { margin: 0; color: var(--dark); font-weight: 500; }
.lead { font-size: 1.08rem; color: var(--dark-2); }
.spec-block { margin-top: 30px; }
.spec-block h3 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; padding-bottom: 10px; border-bottom: 2px solid var(--brand); }
.spec-list { list-style: none; }
.spec-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-list .icon { color: var(--brand); width: 18px; height: 18px; margin-top: 4px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec-table th, .spec-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; color: var(--dark); font-weight: 600; background: var(--bg-soft); }

/* Farben */
.colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.color { display: flex; align-items: center; gap: 10px; font-size: .86rem; line-height: 1.3; }
.color__swatch { width: 38px; height: 38px; border-radius: 10px; flex: none; border: 1px solid rgba(0,0,0,.12); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.color small { display: block; color: var(--muted); }
.color-group + .color-group { margin-top: 20px; }
.color-group h4 { font-size: .95rem; margin-bottom: 10px; }
.color-group h4 span { font-weight: 400; color: var(--muted); font-size: .85rem; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; position: relative; background: var(--bg-soft); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s, opacity .3s; }
.gallery a:hover img { transform: scale(1.06); opacity: .9; }
.gallery--masonry { display: block; columns: 4 240px; column-gap: 14px; }
.gallery--masonry a { margin-bottom: 14px; break-inside: avoid; }
.gallery--masonry img { aspect-ratio: auto; }

/* Zubehör */
.acc-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--text); transition: transform .3s, box-shadow .3s; height: 100%; }
.acc-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.acc-card__body { padding: 20px 22px 24px; }
.acc-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.acc-card p { margin: 0; font-size: .9rem; }
a.acc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--text); }
a.acc-card:hover h3 { color: var(--brand-dark); }

/* Claim-Band */
.claim { background: var(--dark) center/cover no-repeat; color: #fff; position: relative; isolation: isolate; text-align: center; padding: clamp(70px, 9vw, 120px) 0; }
.claim::before { content: ""; position: absolute; inset: 0; background: rgba(15,15,15,.62); z-index: -1; }
.claim h2 { color: #fff; max-width: 860px; margin: 0 auto 26px; }

/* Einsatzgebiete */
.area-list { list-style: none; columns: 2; column-gap: 32px; }
.area-list li { display: flex; gap: 10px; align-items: center; padding: 7px 0; break-inside: avoid; color: var(--dark-2); font-weight: 500; }
.area-list .icon { color: var(--brand); width: 20px; height: 20px; }
.regions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; list-style: none; }
.regions li { background: var(--white); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: .9rem; color: var(--dark); display: inline-flex; gap: 8px; align-items: center; }
.regions .icon { color: var(--brand); }

/* Markisen-Modelle */
.model { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.model:last-child { border-bottom: 0; }
.model__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.model__thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.model__main { border-radius: var(--radius); overflow: hidden; display: block; }
.model__main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
details.more { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
details.more summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--dark); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary .icon { transition: transform .2s; color: var(--brand); width: 22px; height: 22px; }
details.more[open] summary .icon { transform: rotate(180deg); }
details.more .more__body { padding: 0 18px 16px; }

/* Service-Liste */
.service-item { display: flex; gap: 22px; padding: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); height: 100%; }
.service-item .icon { width: 48px; height: 48px; color: var(--brand); flex: none; }
.service-item h3 { font-size: 1.12rem; margin-bottom: 6px; }
.service-item p { margin: 0; }

/* Unternehmensbereiche */
.division { background: #fff; border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); border-top: 4px solid var(--brand); height: 100%; }
.division h3 { letter-spacing: .06em; }

/* Kontakt */
.contact-card { background: var(--dark); color: #d9d9d9; border-radius: var(--radius); padding: 36px 32px; }
.contact-card h2, .contact-card h3 { color: #fff; }
.contact-card a { color: #fff; }
.contact-card a:hover { color: var(--brand); }
.contact-card ul { list-style: none; }
.contact-card li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.contact-card li:last-child { border-bottom: 0; }
.contact-card .icon { color: var(--brand); width: 22px; height: 22px; margin-top: 3px; }

/* ---------- Formulare ---------- */
.form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .fieldset legend { display: block; font-weight: 600; color: var(--dark); font-size: .9rem; margin-bottom: 6px; }
.req { color: #c0392b; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1.5px solid #dcdcdc; border-radius: 10px; font: inherit; font-size: .95rem; color: var(--dark); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(249,178,51,.2); }
.field--error input, .field--error select, .field--error textarea { border-color: #c0392b; }
.field__error { color: #c0392b; font-size: .82rem; margin-top: 4px; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.inline-options { display: flex; gap: 22px; flex-wrap: wrap; }
.inline-options label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; cursor: pointer; }
.consent-check { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; line-height: 1.55; }
.consent-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.upload { position: relative; border: 2px dashed #d3d3d3; border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); background: var(--bg-soft); transition: border-color .2s, background .2s; }
.upload:hover, .upload.is-drag { border-color: var(--brand); background: var(--brand-soft); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload .icon { width: 30px; height: 30px; color: var(--brand); margin: 0 auto 6px; }
.upload__files { font-size: .85rem; color: var(--dark); margin-top: 6px; }
.alert { padding: 16px 20px; border-radius: 12px; margin-bottom: 24px; font-weight: 500; }
.alert--ok { background: #e8f6ec; color: #1e6b37; border: 1px solid #b9e3c6; }
.alert--error { background: #fdecea; color: #922b21; border: 1px solid #f5c6c0; }

/* Angebotskonfigurator */
.steps { display: flex; gap: 10px; margin-bottom: 28px; counter-reset: step; }
.steps li { list-style: none; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--bg-soft); font-weight: 600; font-size: .9rem; color: var(--muted); }
.steps li::before { counter-increment: step; content: counter(step); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #ddd; color: #fff; flex: none; }
.steps li.is-current { background: var(--brand-soft); color: var(--dark); }
.steps li.is-current::before, .steps li.is-done::before { background: var(--brand); }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: -16px 0 30px; }
.progress span { display: block; height: 100%; width: 50%; background: var(--brand); transition: width .4s; }
.cfg-block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.cfg-block:first-child { padding-top: 0; }
.cfg-block h2 { font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.cfg-block > p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tiles--colors { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile__box { display: flex; flex-direction: column; height: 100%; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tile__box img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.tile__label { hyphens: auto; overflow-wrap: anywhere; padding: 10px 12px; font-size: .86rem; font-weight: 500; color: var(--dark); line-height: 1.35; flex: 1; display: flex; align-items: center; gap: 10px; }
.tile:hover .tile__box { border-color: #f3cf8a; transform: translateY(-2px); }
.tile input:checked + .tile__box { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(249,178,51,.25); }
.tile input:checked + .tile__box::after { content: ""; position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L21 7.5l-1.4-1.4z'/%3E%3C/svg%3E") center/18px no-repeat; }
.tile input:focus-visible + .tile__box { outline: 3px solid var(--brand); outline-offset: 2px; }
.tile--text .tile__box { min-height: 64px; }
.tile__swatch { width: 30px; height: 30px; border-radius: 8px; flex: none; border: 1px solid rgba(0,0,0,.15); }
.dims { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; align-items: end; }
.dims img { border-radius: 12px; max-height: 190px; width: 100%; object-fit: contain; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.js .cfg-step[hidden] { display: none; }
html:not(.js) [data-next], html:not(.js) [data-prev], html:not(.js) .steps, html:not(.js) .progress { display: none; }

/* ---------- CTA-Band & Footer ---------- */
.cta-band { background: var(--brand); padding: clamp(40px, 5vw, 64px) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band__title { margin: 0; color: var(--dark); max-width: 760px; font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); }
.site-footer { background: #161616; color: #a9a9a9; font-size: .93rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: clamp(56px, 7vw, 90px) 0 48px; }
.site-footer__about img { height: 46px; width: auto; margin-bottom: 18px; }
.site-footer__title { color: #fff; font-size: 1.15rem; margin-bottom: 18px; }
.site-footer__title--accent { color: var(--brand); }
.site-footer__links { list-style: none; }
.site-footer__links li { padding: 4px 0; }
.site-footer a, .site-footer .link-button { color: #cfcfcf; }
.site-footer a:hover, .site-footer .link-button:hover { color: var(--brand); }
.site-footer__contact { list-style: none; margin-top: 14px; }
.site-footer__contact li { display: flex; gap: 10px; align-items: center; padding: 3px 0; }
.site-footer__contact .icon { color: var(--brand); }
.social { list-style: none; display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--brand); transition: background .2s, color .2s; }
.social a:hover { background: var(--brand); color: #fff; }
.social .icon { width: 20px; height: 20px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .82rem; }
.site-footer__bottom p { margin: 0; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(10,10,10,.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__img { max-width: min(92vw, 1400px); max-height: 86vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__close, .lightbox__nav { position: fixed; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--brand); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__close .icon, .lightbox__nav .icon { width: 28px; height: 28px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev .icon { transform: rotate(90deg); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next .icon { transform: rotate(-90deg); }

/* Consent */
.consent { position: fixed; inset: auto 16px 16px 16px; z-index: 500; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent__box { max-width: 640px; background: #fff; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.25); padding: 24px 26px; border-top: 4px solid var(--brand); }
.consent__box h2 { font-size: 1.1rem; }
.consent__box p { font-size: .88rem; }
.consent__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.consent .btn { border-radius: 8px; padding: .75em 1.3em; font-size: .82rem; }

/* 404 */
.notfound { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.notfound__code { font-size: clamp(5rem, 3rem + 10vw, 10rem); line-height: 1; font-weight: 700; color: var(--brand); margin: 0; }

/* Reveal-Animation */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    :root { --header-h: 74px; }
    .header-cta { display: none; }
    .nav-toggle { display: inline-flex; }
    .main-nav { position: fixed; inset: calc(var(--header-h)) 0 0 auto; width: min(420px, 100%); background: #fff; box-shadow: var(--shadow-lg); overflow-y: auto; padding: 18px 20px 40px; transform: translateX(100%); transition: transform .3s ease; margin: 0; }
    .nav-open .main-nav { transform: none; }
    .nav-open { overflow: hidden; }
    .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav__link { width: 100%; justify-content: space-between; padding: 15px 6px; font-size: 1.02rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .main-nav__item.is-active > .main-nav__link { box-shadow: none; }
    .mega { position: static; box-shadow: none; border-top: 0; opacity: 1; visibility: visible; transform: none; display: none; }
    .has-mega.is-open .mega { display: block; }
    .has-mega.is-open .icon--chevron { transform: rotate(180deg); }
    .mega__inner { grid-template-columns: 1fr; gap: 14px; padding: 12px 6px 18px; width: 100%; }
    .mega__title { border: 0; margin: 0; padding: 0; color: var(--brand-dark); font-size: .9rem; }
    .main-nav__cta { display: flex; margin-top: 22px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .product-row { grid-template-columns: 1fr 1fr; }
    .product-row__img { grid-column: 1 / -1; order: -1; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .usp { grid-template-columns: 1fr; margin-top: 0; }
    .usp__item + .usp__item { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 860px) {
    .topbar__claim { display: none; }
    .topbar__inner { justify-content: center; }
    .grid-2, .grid-3, .grid-contact, .product-intro, .model { grid-template-columns: 1fr; }
    .product-intro__media { position: static; }
    .product-row { grid-template-columns: 1fr; }
    .dims { grid-template-columns: 1fr 1fr; }
    .dims img { grid-column: 1 / -1; }
    .hero__arrow { display: none; }
    .hero__badge { top: auto; bottom: 64px; right: 16px; width: 96px; }
}
@media (max-width: 600px) {
    .topbar__contact { gap: 14px; font-size: .78rem; }
    .topbar__contact li:last-child a span { display: none; }
    .logo img { height: 40px; }
    .grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
    .cat-card { padding: 18px 10px; }
    .cat-card h2, .cat-card h3 { font-size: 1rem; }
    .form-grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .area-list { columns: 1; }
    .steps li { font-size: .78rem; padding: 10px 8px; gap: 8px; line-height: 1.25; }
    .steps li::before { width: 26px; height: 26px; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
    .feature { padding: 24px 14px; }
    .feature .icon { width: 48px; height: 48px; }
    .hero__title { font-size: 1.9rem; }
    .service-item { flex-direction: column; gap: 12px; }
}
