/* B&B Paletten-Service | Variante 2 – angelehnt an den freigegebenen Designentwurf */
:root {
 --navy:#102f3f; --navy-dark:#0b2837; --teal:#127c82; --gold:#f5b432;
 --ink:#123143; --muted:#5c6d7b; --pale:#f1f6f8; --line:#dee7eb;
 --container:1180px; --pad:clamp(20px, 6vw, 80px);
}
*,*::before,*::after {box-sizing:border-box}
/* Die Scrollbar-Breite bleibt beim Oeffnen der Produkt-Lightbox reserviert.
   Dadurch springen und vergroessern sich die Produktkacheln im Hintergrund nicht. */
html {scroll-behavior:smooth;scrollbar-gutter:stable}
body {margin:0;background:#fff;color:var(--ink);font:400 16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
img,svg {max-width:100%} img {display:block} svg {display:inline-block}
a {color:inherit;text-decoration:none} a:hover {color:var(--teal)} a:focus-visible,button:focus-visible {outline:3px solid var(--gold);outline-offset:4px}
button {font:inherit} h1,h2,h3,p {margin-top:0} h1,h2,h3 {line-height:1.16;letter-spacing:-.03em} h1 {font-size:clamp(2.4rem,4.15vw,4.15rem);font-weight:800} h2 {font-size:clamp(1.7rem,3vw,2.25rem);font-weight:790} h3 {font-size:1.16rem;font-weight:800} p {margin-bottom:1rem}
.container {width:min(calc(100% - 2 * var(--pad)),var(--container));margin-inline:auto}
.skip-link {position:fixed;top:-100px;left:1rem;z-index:999;padding:.7rem 1rem;background:white;color:var(--ink)} .skip-link:focus {top:1rem}
/* Header */
.site-header {height:112px;background:white;position:relative;z-index:20;box-shadow:0 1px 2px #0b283710}
.header-inner {height:100%;display:flex;align-items:center;justify-content:space-between;gap:30px}
.brand {display:block;flex:0 0 auto} .brand img {width:292px;height:auto;max-height:88px;object-fit:contain}
.site-nav {display:flex;align-items:center;gap:clamp(16px,2.6vw,34px)}
.site-nav a {position:relative;display:inline-block;padding:15px 0;color:#193344;font-size:.91rem;font-weight:550;white-space:nowrap}
.site-nav a::after {content:"";height:3px;background:var(--gold);position:absolute;left:0;right:100%;bottom:4px;transition:right .2s ease}
.site-nav a:hover::after,.site-nav a[aria-current=page]::after {right:0}
.site-nav a[aria-current=page] {font-weight:700}
.menu-toggle {display:none}
.nav-panel-head,.menu-backdrop {display:none}
/* Photo hero: a simple, replaceable background slot */
.hero {position:relative;isolation:isolate;background:#d6dde0 url("assets/firmenfotos/hero.webp") center 47%/cover no-repeat;color:#fff;overflow:hidden}
.hero::before {content:"";position:absolute;inset:0;background:linear-gradient(110deg,#0b2b3b 0%,#11374a 70%,#102f3f 100%);clip-path:polygon(0 0,45% 0,61% 100%,0 100%);z-index:-1}
.hero::after {content:"";position:absolute;inset:0;background:var(--teal);opacity:.96;clip-path:polygon(44.5% 0,51% 0,59% 47%,53% 47%);z-index:-2}
.hero-content {position:relative;z-index:1;display:flex;align-items:center;min-height:430px;padding-top:48px;padding-bottom:48px}
.hero-text {max-width:610px}
.hero h1 {color:white;text-transform:uppercase;margin-bottom:23px;line-height:1.1}
.hero .gold-rule {margin:0 0 25px}
.gold-rule {display:block;width:55px;height:4px;background:var(--gold);margin:22px 0}
.hero-subline {font-size:clamp(1.08rem,1.8vw,1.48rem);font-weight:390;line-height:1.45;margin-bottom:26px}
.btn {display:inline-flex;justify-content:space-between;align-items:center;gap:25px;min-height:50px;padding:10px 22px;text-transform:uppercase;font-size:.82rem;letter-spacing:.01em;font-weight:800;transition:background .2s,color .2s,transform .2s}
.btn:hover {transform:translateY(-2px)} .btn--outline {color:white;border:2px solid #fff;background:transparent}.btn--outline:hover {background:white;color:var(--navy)}
.btn--accent {background:var(--gold);color:var(--navy);border:2px solid var(--gold)}.btn--accent:hover {background:#ffd17a;color:var(--navy)}
.btn-arrow svg,.text-link svg {width:18px;height:18px;fill:none;stroke:var(--gold);stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.btn--accent .btn-arrow svg {stroke:var(--navy)}
.hero--sub .hero-content {min-height:325px}.hero--sub h1 {font-size:clamp(2.45rem,4.35vw,3.65rem)}.hero--sub .hero-subline {max-width:515px;font-size:1.13rem;margin-bottom:0}
.eyebrow {margin-bottom:7px;text-transform:uppercase;font-size:.92rem;letter-spacing:.1em;font-weight:680;color:var(--muted)}.eyebrow--light {color:#fff;opacity:.85}
/* Intro + feature cards */
.intro {padding-top:44px;padding-bottom:27px}.intro h2 {margin-bottom:0}.intro .gold-rule {margin:14px 0 20px}.intro>p:last-child {max-width:800px;color:var(--muted);font-size:1.03rem}
.feature-section {background:var(--pale);padding:27px 0 34px}
.feature-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px}
.feature-card {position:relative;background:#fff;min-width:0;box-shadow:0 1px 1px rgba(18,49,67,.04);transition:transform .2s ease,box-shadow .2s ease}
.feature-card:hover {transform:translateY(-3px);box-shadow:0 12px 26px #11344717}
.feature-image {display:block;aspect-ratio:2/1;overflow:hidden}.feature-image img {width:100%;height:100%;object-fit:cover;transition:transform .3s ease}.feature-card:hover .feature-image img {transform:scale(1.03)}
.feature-icon {position:absolute;top:calc(100% * 0.0 + 0px); /* overwritten by fixed image placement below */ left:20px;transform:translateY(calc((min(100vw,1180px) - 2 * var(--pad) - 68px) / 3 / 2 - 25px));width:54px;height:54px;background:var(--teal);color:#fff;display:grid;place-items:center;border:3px solid #fff;box-shadow:0 2px 3px #0b283720;pointer-events:none}
.feature-icon svg,.info-icon svg,.contact-icon svg {width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.feature-copy {padding:31px 22px 23px}.feature-copy h3 {text-transform:uppercase;margin:0 0 9px}.feature-copy p {font-size:.97rem;color:var(--muted);line-height:1.48;min-height:70px;margin-bottom:14px}
.text-link {font-size:.86rem;font-weight:800;text-transform:uppercase;display:inline-flex;align-items:center;gap:9px}.text-link:hover {color:var(--teal)}
/* Contact strip */
.contact-band {position:relative;isolation:isolate;background:#fff;overflow:hidden}
.contact-band::before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(#092b3bcf,#092b3bef),url("assets/firmenfotos/lager.webp") center/cover;clip-path:polygon(0 0,52% 0,60% 100%,0 100%)}
.contact-band-inner {display:grid;grid-template-columns:57% 43%;min-height:280px;gap:0}
.contact-band-left {padding:36px 70px 36px 0;color:#fff}.contact-band-left .gold-rule {margin:0 0 18px}.contact-band-left h2 {font-size:1.8rem;text-transform:uppercase;margin-bottom:10px;color:#fff}.contact-band-left p {font-size:1rem;line-height:1.48;margin-bottom:25px}
.contact-band-right {padding:32px 0 30px 60px;display:grid;align-content:center;gap:18px;color:var(--ink)}
.contact-item {display:flex;gap:20px;align-items:flex-start;font-size:1.01rem;line-height:1.38}.contact-item a:hover {color:var(--teal);text-decoration:underline}.contact-item strong {font-weight:780}.contact-icon {color:var(--teal);width:35px;flex:0 0 35px;display:flex;justify-content:center}.contact-icon svg {width:29px;height:29px}
/* Footer */
.site-footer {background:var(--navy);color:#fff}.footer-inner {min-height:94px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.footer-brand {width:195px;flex:0 0 auto}.footer-brand img {width:100%;height:auto}
.footer-nav {display:flex;align-items:center;gap:20px}.footer-nav a,.legal-nav a {color:#f0f7f9;font-size:.78rem}.footer-nav a:hover,.legal-nav a:hover {color:var(--gold)}
.legal-nav {display:flex;align-items:center;gap:18px;padding-left:25px;border-left:1px solid #ffffff65}
/* Subpages */
.content-section {padding-top:65px;padding-bottom:64px}.content-section p {color:var(--muted)}.narrow-content {max-width:900px}.narrow-content p {max-width:820px}.narrow-content h2 {margin-bottom:0}.narrow-content .gold-rule {margin:15px 0 25px}.narrow-content p {font-size:1.03rem}.content-action {margin-top:35px}.content-action .btn--outline {background:var(--navy);color:#fff;border-color:var(--navy)}
.inner-image-row {padding-top:36px;padding-bottom:36px}.split-highlight {display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:54px}.split-highlight img {width:100%;height:270px;object-fit:cover}.split-highlight p {color:var(--muted)}
.products-lead {padding-bottom:0;max-width:1000px}.products-lead p:first-child {font-size:1.05rem}.fine-print {font-size:.83rem!important;color:#65717a!important}
.product-group {padding-top:36px;padding-bottom:16px}.product-group>h2 {margin-bottom:0}.product-group>.gold-rule {margin:14px 0 26px}
.product-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.product-card {border:1px solid var(--line);overflow:hidden;background:white}
.product-image {position:relative;height:140px;background:var(--pale)}.product-image img {width:100%;height:100%;object-fit:cover;filter:saturate(.82);opacity:.85}.image-placeholder-tag {position:absolute;right:10px;bottom:10px;background:#0b2837c9;color:#fff;font-size:.68rem;padding:3px 8px;letter-spacing:.03em}
.product-copy {padding:18px 20px 20px}.product-copy h3 {margin-bottom:7px}.product-copy>p {font-size:.88rem;line-height:1.45;color:var(--muted);min-height:40px;margin-bottom:15px}
.product-copy dl {border-top:1px solid var(--line);padding-top:10px;margin:0}.product-copy dl div {display:flex;justify-content:space-between;gap:10px;font-size:.82rem;padding:3px 0}.product-copy dt {color:var(--muted)}.product-copy dd {margin:0;text-align:right;font-weight:680}
.service-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px}.info-card {padding:28px 30px;background:white}.info-card h3 {margin:18px 0 10px}.info-card p {margin:0;color:var(--muted)}.info-icon {display:inline-grid;place-items:center;background:var(--teal);color:white;width:55px;height:55px}
.contact-page-grid {display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:start}.contact-page-grid>div>h2 {margin-bottom:0}.contact-page-grid .gold-rule {margin:20px 0}.contact-page-grid .btn {margin-top:20px}
.contact-panel {background:var(--pale);padding:32px 38px}.contact-panel h2 {font-size:1.45rem;margin-bottom:26px}.contact-panel .contact-item {margin-bottom:22px}.contact-panel .contact-item p {margin:0}.contact-panel .fine-print {margin-top:28px}
.legal-content h2 {font-size:1.45rem;margin-top:32px;margin-bottom:14px}.legal-content h3 {font-size:1.13rem;margin-top:28px}.legal-content p {font-size:1rem}.legal-warning {padding:18px 20px;border-left:4px solid var(--gold);background:#fff7e7;color:#473923;font-size:.95rem}
@media(max-width:1100px) {
 .brand img {width:235px}.site-nav {gap:19px}.footer-nav {gap:12px}.footer-brand {width:160px}
 .feature-grid {gap:22px}.feature-icon {transform:translateY(calc((min(100vw,1180px) - 2 * var(--pad) - 44px) / 3 / 2 - 25px))}
 .contact-band-right {padding-left:35px}
}
@media(max-width:820px) {
 .site-header {height:82px}.brand img {width:220px;max-height:67px}
 /* App-like drawer from the left; on desktop, the original navigation stays intact. */
 .menu-toggle {display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;width:44px;height:44px;background:transparent;border:1px solid var(--line);cursor:pointer;position:relative;z-index:2}
 .menu-toggle span {width:23px;height:2px;background:var(--navy);transition:transform .2s,opacity .2s}
 .menu-backdrop {display:block;position:fixed;inset:0;z-index:25;background:rgba(6,26,37,.62);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .28s ease,visibility .28s ease}
 body.menu-open .menu-backdrop {opacity:1;visibility:visible;pointer-events:auto}
 body.menu-open {overflow:hidden}
 .site-nav {display:flex;position:fixed;inset:0 auto 0 0;top:0;right:auto;bottom:0;left:0;width:min(86vw,360px);height:100vh;height:100dvh;padding:22px 25px 35px;background:var(--navy);box-shadow:12px 0 35px #07192355;flex-direction:column;align-items:stretch;gap:0;overflow-y:auto;z-index:30;transform:translate3d(-105%,0,0);opacity:1;visibility:hidden;pointer-events:none;transition:transform .34s cubic-bezier(.22,.78,.2,1),visibility .34s ease;overscroll-behavior:contain}
 .site-nav.is-open {transform:translate3d(0,0,0);visibility:visible;pointer-events:auto}
 .nav-panel-head {display:flex;align-items:center;justify-content:space-between;gap:15px;padding:3px 0 15px;border-bottom:1px solid #ffffff35;margin-bottom:12px}
 .nav-panel-title {font-size:.85rem;color:var(--gold);text-transform:uppercase;font-weight:800;letter-spacing:.12em}
 .nav-close {display:grid;place-items:center;width:44px;height:44px;border:1px solid #ffffff69;background:transparent;color:white;font-size:2rem;line-height:1;cursor:pointer}
 .nav-close:hover {background:var(--teal)}
 .site-nav a {padding:17px 3px;color:#fff;border-bottom:1px solid #ffffff30;font-size:1rem;font-weight:560;white-space:normal}
 .site-nav a:hover,.site-nav a[aria-current=page] {color:#fff}
 .site-nav a::after {bottom:0;left:0;right:100%;height:3px}
 .site-nav a[aria-current=page]::after {right:0}
 .hero::before {clip-path:polygon(0 0,59% 0,80% 100%,0 100%)}.hero::after {clip-path:polygon(58% 0,65% 0,77% 43%,71% 43%)}
 .hero-content {min-height:375px}.hero-text {max-width:430px}.hero h1 {font-size:clamp(2rem,5vw,3.2rem)}
 .feature-grid {gap:18px}.feature-copy {padding:30px 16px 20px}.feature-icon {left:12px;width:48px;height:48px;transform:translateY(calc((100vw - 2 * var(--pad) - 36px) / 3 / 2 - 23px))}.feature-copy p {min-height:90px;font-size:.88rem}
 .contact-band::before {clip-path:polygon(0 0,55% 0,64% 100%,0 100%)}.contact-band-inner {grid-template-columns:58% 42%}.contact-band-left {padding-right:25px}.contact-band-right {padding-left:20px}.contact-item {gap:10px;font-size:.88rem}
 .footer-inner {flex-wrap:wrap;justify-content:center;padding-block:25px;gap:19px}.footer-nav {order:3;width:100%;justify-content:center;flex-wrap:wrap}.legal-nav {border-left:0}
 .product-grid {grid-template-columns:repeat(2,minmax(0,1fr))}.contact-page-grid {gap:40px}
}
@media(max-width:640px) {
 :root {--pad:22px}
 .site-header {height:75px}.brand img {width:190px}
 .hero {background-position:62% center}.hero::before {clip-path:none;background:linear-gradient(90deg,#0b2b3bf5 0%,#0b2b3bd8 54%,#0b2b3b65 100%)}.hero::after {display:none}
 .hero-content {min-height:390px;padding-top:48px;padding-bottom:50px}.hero h1 {font-size:clamp(2.05rem,8vw,3rem)}.hero-subline {font-size:1.1rem}
 .hero--sub .hero-content {min-height:270px}.hero--sub h1 {font-size:2.25rem}
 .intro {padding-top:38px;padding-bottom:20px}.intro p:last-child {font-size:.98rem}
 .feature-section {padding:24px 0}.feature-grid {grid-template-columns:1fr;gap:22px}.feature-image {aspect-ratio:2.3/1}.feature-icon {top:auto;bottom:auto;left:18px;margin-top:calc(-48px / 2);transform:none;width:48px;height:48px}.feature-copy {padding:33px 20px 22px}.feature-copy p {min-height:0}
 .contact-band::before {clip-path:none;bottom:auto;height:270px}
 .contact-band-inner {display:block;width:100%}.contact-band-left {padding:32px var(--pad);min-height:270px}.contact-band-right {padding:28px var(--pad);gap:17px}.contact-item {font-size:1rem;gap:15px}
 .site-footer .footer-inner {flex-direction:column}.footer-brand {width:165px}.footer-nav {order:initial;width:auto;gap:14px}.legal-nav {padding:0}
 .content-section {padding-top:40px;padding-bottom:42px}.split-highlight {grid-template-columns:1fr;gap:26px}.split-highlight img {height:220px}
 .product-group {padding-top:25px}.product-grid,.service-grid,.contact-page-grid {grid-template-columns:1fr}.product-image {height:160px}.contact-page-grid {gap:35px}
 .contact-panel {padding:24px 22px}.legal-warning {font-size:.88rem}
}
@media(prefers-reduced-motion:reduce) {html {scroll-behavior:auto} *,*::before,*::after {transition:none!important;animation:none!important}}

/* Produktübersicht + Popup-Fenster, passend zur Designvariante 2 */
.products-lead {padding-bottom:8px;}
.products-lead p {max-width:790px;}
.product-group {padding-top:32px;padding-bottom:24px;}
.product-group:last-of-type {padding-bottom:62px;}
.product-open {width:100%;height:100%;padding:0;border:0;background:#fff;text-align:left;display:flex;flex-direction:column;color:inherit;cursor:pointer;}
.product-open:hover .product-image img {transform:scale(1.045);}
.product-open:focus-visible {outline:3px solid var(--gold);outline-offset:-3px;}
.product-card {border:1px solid var(--line);box-shadow:0 4px 16px #0b283710;transition:transform .18s,box-shadow .18s;}
.product-card:hover {transform:translateY(-3px);box-shadow:0 12px 24px #0b283721;}
.product-image {height:auto;aspect-ratio:1.75/1;width:100%;display:block;overflow:hidden;position:relative;background:#eef3f5;}
.product-image img {width:100%;height:100%;object-fit:cover;filter:none;opacity:1;transition:transform .25s;}
.product-photo-note {position:absolute;bottom:9px;right:9px;padding:4px 8px;color:#fff;background:#0b2837cf;font-size:.7rem;}
.product-copy {display:flex;flex-direction:column;flex:1;padding:17px 18px 18px;gap:6px;}
.product-title {font-size:1.04rem;line-height:1.3;}
.product-subtitle {display:block;color:var(--muted);font-size:.88rem;line-height:1.4;flex:1;margin-bottom:10px;}
.product-more {color:var(--teal);font-size:.82rem;font-weight:800;text-transform:uppercase;}
.product-more span {color:var(--gold);font-size:1.35rem;margin-left:5px;line-height:0;}
body.dialog-open {overflow:hidden;}
.product-dialog {border:0;padding:0;position:fixed;inset:0;margin:auto;max-width:min(980px,calc(100% - 36px));max-height:min(90vh,860px);width:100%;background:white;color:var(--ink);box-shadow:0 24px 90px #061d2a85;}
.product-dialog::backdrop {background:rgba(8,28,40,.76);backdrop-filter:blur(3px);}
/* Ruhiges Fade/Zoom fuer das Produkt-Pop-up (ca. 240 ms). */
.product-dialog[open] {animation:product-dialog-in .24s cubic-bezier(.18,.76,.25,1) both;}
.product-dialog[open]::backdrop {animation:product-backdrop-in .24s ease-out both;}
.product-dialog.is-closing {animation:product-dialog-out .19s ease-in both;}
.product-dialog.is-closing::backdrop {animation:product-backdrop-out .19s ease-in both;}
@keyframes product-dialog-in {
 from {opacity:0;transform:translateY(12px) scale(.97);}
 to {opacity:1;transform:translateY(0) scale(1);}
}
@keyframes product-dialog-out {
 from {opacity:1;transform:translateY(0) scale(1);}
 to {opacity:0;transform:translateY(8px) scale(.985);}
}
@keyframes product-backdrop-in {from {opacity:0} to {opacity:1}}
@keyframes product-backdrop-out {from {opacity:1} to {opacity:0}}

.product-dialog-shell {position:relative;display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);min-height:350px;}
.product-dialog-media {display:flex;flex-direction:column;gap:9px;background:#edf1f2;padding:22px;justify-content:center;}
.product-dialog-media img {width:100%;max-height:410px;object-fit:contain;background:#fff;}
.product-dialog-media img:not(:first-child) {max-height:145px;}
.product-dialog-content {padding:44px 35px 33px;overflow:auto;}
.product-dialog-content h2 {margin:0;font-size:clamp(1.5rem,2.35vw,2.1rem);padding-right:8px;}
.product-dialog-subtitle {color:var(--muted);margin-top:9px;}
.product-dialog-content .gold-rule {margin:15px 0 23px;}
.product-dialog-content ul {margin:0 0 22px;padding-left:20px;color:#465d68;line-height:1.6;}
.product-dialog-content li {padding-bottom:6px;}
.product-legal-note {font-size:.81rem;color:var(--muted);margin:0 0 20px;}
.product-cta {margin-top:4px;}
.product-dialog-close {position:absolute;z-index:3;right:13px;top:11px;width:38px;height:38px;border:0;color:#fff;background:var(--navy);font-size:1.8rem;line-height:1;cursor:pointer;}
.product-dialog-close:hover {background:var(--teal);}
@media(max-width:700px) {
 .product-dialog {max-width:calc(100% - 20px);max-height:95dvh;}
 .product-dialog-shell {grid-template-columns:1fr;}
 .product-dialog-media {padding:12px 16px;}
 .product-dialog-media img {max-height:200px;}
 .product-dialog-media img:not(:first-child) {max-height:105px;}
 .product-dialog-content {padding:22px 24px 29px;}
 .product-dialog-close {right:9px;top:9px;}
}

/* Motion-sensitive users receive an immediate drawer state change. */
@media (prefers-reduced-motion:reduce) {
 .menu-backdrop,.site-nav {transition:none!important}
}
