/* Theme Name: Konanz Pro
Theme URI: https://konanz-gmbh.live
Author: Konanz GmbH
Description: Schlankes, lokal gehostetes B2B-Block-Theme für Konanz GmbH.
Version: 1.9.9
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: konanz-pro
*/
:root{--navy:#0c2d42;--yellow:#ffd21d;--teal:#087f7d;--muted:#eff5f8}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--navy);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif}img{max-width:100%;height:auto}.wp-site-blocks{overflow:visible}header.wp-block-template-part{position:sticky;top:0;z-index:1000;background:white;box-shadow:0 2px 10px #0c2d4212}body.admin-bar header.wp-block-template-part{top:32px}.site-header-wrap{margin:0!important}.topbar{background:#e9f2f7;padding:6px max(22px,calc((100% - 1360px)/2));display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:13px;font-weight:650}.topbar p{margin:0}.navrow{display:flex;align-items:center;justify-content:space-between;gap:25px;max-width:1360px;margin:auto!important;padding:12px 22px}.navrow .wp-block-image{margin:0;flex:0 0 auto}.navrow img{max-width:230px;max-height:76px;object-fit:contain}.navrow .wp-block-navigation{font-size:15px;font-weight:700;gap:22px}.navrow a{text-decoration:none}.hero{min-height:540px;display:flex;align-items:center;background:linear-gradient(90deg,rgba(7,39,61,.97) 0%,rgba(7,39,61,.9) 34%,rgba(7,39,61,.22) 75%),var(--konanz-hero-image) center 54%/cover no-repeat;color:white;padding:70px 24px;margin:0!important}.hero>.wp-block-group__inner-container,.hero-content{width:100%;max-width:1360px;margin:auto!important}.hero-content{max-width:630px!important;margin-left:max(20px,calc((100vw - 1360px)/2))!important}.hero h1{font-size:clamp(38px,5vw,69px);line-height:1.07;letter-spacing:-.04em;color:white;margin:20px 0}.hero p{color:#f2f6fa;font-size:19px;max-width:580px}.hero .eyebrow{font-size:13px;color:#fff}.eyebrow{font-size:13px;font-weight:800;letter-spacing:.11em;color:#16425c}.wp-block-button__link{background:var(--teal);border-radius:7px;font-weight:750;padding:13px 22px;text-decoration:none}.hero .wp-block-button__link{background:var(--yellow);color:#09263b}.hero .is-style-outline .wp-block-button__link{background:transparent;color:white;border:2px solid white}.benefits{background:#f0f5f8;padding:24px 30px;margin:0!important}.benefits .wp-block-columns{max-width:1360px;margin:auto;gap:0}.benefits .wp-block-column{padding:8px 25px;border-right:1px solid #d7e1e7}.benefits .wp-block-column:last-child{border:0}.benefits h3{font-size:21px;margin:0 0 3px}.benefits p{font-size:15px;margin:0}.section{padding:72px 24px;margin:0!important}.section>*{max-width:1120px;margin-left:auto;margin-right:auto}.section h2{font-size:clamp(29px,3vw,42px);line-height:1.16;letter-spacing:-.025em}.assortment .product-grid{max-width:1360px;margin:30px auto 0;gap:16px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}.product-grid>.wp-block-column{min-width:0}.product-card{height:100%;margin:0!important}.product-card figure{margin:0 0 14px}.product-card img{display:block;width:100%;height:185px;object-fit:cover;border-radius:9px}.product-card h3{font-size:18px;line-height:1.25;overflow-wrap:break-word;margin:12px 0}.product-card p{font-size:14px;line-height:1.5;margin:0}.service{background:#eaf3f8}.split-grid{max-width:1120px!important;gap:60px;align-items:center}.split-grid>.wp-block-column{min-width:0}.split-grid img{width:100%;max-height:520px;object-fit:cover;border-radius:12px}.split-grid figure{margin:0}.service-copy p{margin:12px 0}.brands{padding-top:38px;padding-bottom:38px}.brands p{font-weight:650;line-height:2.2}.segments{background:#fff}.segment-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-top:25px}.segment-card{background:#edf3f6;padding:20px 10px;border-radius:9px;min-height:110px;text-align:center;font-weight:750;overflow-wrap:break-word}.segment-card p{margin:0}.visit{background:#f0f6f9}.visit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:26px}.visit-grid img{width:100%;height:210px;object-fit:cover;border-radius:9px}.visit-grid figure{margin:0}.site-footer{background:#0c2d42;color:white;padding:58px max(24px,calc((100% - 1360px)/2));margin:0!important}.site-footer a{color:#9cdee2}.site-footer h3{color:white}.legal-page{padding:65px 24px;min-height:60vh}.legal-page h1{font-size:42px}#sortiment,#unger,#service,#kontakt,#maschinenvermietung{scroll-margin-top:145px}@media(max-width:1050px){.topbar{flex-wrap:wrap}.navrow{flex-wrap:wrap}.assortment .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.segment-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-content{margin-left:0!important}}@media(max-width:780px){body.admin-bar header.wp-block-template-part{top:46px}.topbar{font-size:11px;padding:6px 14px}.topbar p:last-child{display:none}.navrow{padding:10px 14px}.navrow img{max-width:180px}.hero{min-height:480px;padding:50px 22px;background-position:center}.hero h1{font-size:43px}.hero p{font-size:17px}.benefits .wp-block-columns{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.benefits .wp-block-column{padding:8px;border:0}.assortment .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section{padding:50px 18px}.split-grid{gap:24px}.segment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.visit-grid{grid-template-columns:1fr}.visit-grid img{height:250px}}@media(max-width:440px){.assortment .product-grid{grid-template-columns:1fr}.product-card img{height:220px}.hero h1{font-size:35px}.hero .wp-block-buttons{gap:10px}.hero .wp-block-button__link{padding:10px 15px}.benefits .wp-block-columns{grid-template-columns:1fr 1fr}}

/* Editable legal pages */
body.page .entry-content h2{scroll-margin-top:145px}

/* Angebote page – editable Gutenberg blocks */
.konanz-offers-intro{background:#eff5f8;padding:58px 24px;margin:0!important}
.konanz-offers-intro>*{max-width:1120px;margin-left:auto;margin-right:auto}
.konanz-offers-intro h1{font-size:clamp(36px,4vw,54px);line-height:1.1;margin:10px auto;color:#0c2d42}
.konanz-offers-intro p{max-width:1120px;line-height:1.6}
.konanz-offers-body{padding:48px 24px 75px;margin:0!important}
.konanz-offers-body>*{max-width:1120px;margin-left:auto;margin-right:auto}
.konanz-offer-card{border:1px solid #d6e4eb;border-radius:12px;padding:28px;background:#fff;box-shadow:0 5px 18px #0c2d4209}
.konanz-offer-card h2{margin-top:0}
.konanz-offer-card .wp-block-buttons{margin-top:18px}
.konanz-offers-notice{border-left:4px solid #087f7d;padding:14px 20px;background:#eff7f7}
@media(max-width:780px){.konanz-offers-intro{padding:40px 18px}.konanz-offers-body{padding:35px 18px}.konanz-offer-card{padding:20px}}

/* Konanz Pro 1.8.4: logo reduces smoothly when scrolling. */
header.wp-block-template-part .navrow .wp-block-image img {
  width: 230px;
  max-width: 100%;
  max-height: 76px;
  object-fit: contain;
  transition: width .22s ease, max-height .22s ease;
}
body.konanz-scrolled header.wp-block-template-part .navrow .wp-block-image img {
  width: 174px;
  max-height: 58px;
}
body.konanz-scrolled header.wp-block-template-part .navrow {
  padding-top: 7px;
  padding-bottom: 7px;
}
@media(max-width:780px){
  header.wp-block-template-part .navrow .wp-block-image img { width:180px; max-height:65px; }
  body.konanz-scrolled header.wp-block-template-part .navrow .wp-block-image img { width:145px; max-height:52px; }
}
@media(prefers-reduced-motion:reduce){
  header.wp-block-template-part .navrow .wp-block-image img { transition:none; }
}

/* Brand display – genuine logos cropped from the Konanz shop photo; others are labels. */
.konanz-pro-placeholder {display:none}
.brand-grid.wp-block-group{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-top:28px}
.brand-grid .brand-tile.wp-block-group{display:flex;align-items:center;justify-content:center;min-width:0;min-height:100px;padding:14px;background:#fff;border:1px solid #e1e8ed;border-radius:12px;box-shadow:0 2px 10px rgba(8,38,56,.045)}
.brand-grid .brand-tile figure{margin:0;width:100%;display:flex;align-items:center;justify-content:center}
.brand-grid .brand-tile img{display:block;width:auto;max-width:100%;height:auto;max-height:66px;object-fit:contain}
.brand-grid .brand-name{margin:0;text-align:center;font-size:clamp(14px,1.15vw,19px);font-weight:750;color:#113b5a;overflow-wrap:anywhere;line-height:1.25}
@media(max-width:950px){.brand-grid.wp-block-group{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.brand-grid.wp-block-group{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.brand-grid .brand-tile.wp-block-group{min-height:82px;padding:9px}}

/* Original manufacturer logos supplied by Konanz GmbH. */
.brand-grid.wp-block-group{grid-template-columns:repeat(4,minmax(0,1fr))}
.brand-grid .brand-tile img{max-height:78px;object-fit:contain}
@media(max-width:700px){.brand-grid.wp-block-group{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 1.8.9 – original brand marks only, never crop */
.brand-grid.wp-block-group{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.brand-grid .brand-tile.wp-block-group{min-height:112px;padding:18px;overflow:hidden}
.brand-grid .brand-tile figure.wp-block-image{width:100%;margin:0;display:flex;align-items:center;justify-content:center}
.brand-grid .brand-tile img{width:100%;height:72px;max-height:72px;max-width:100%;object-fit:contain;object-position:center}
@media(max-width:700px){.brand-grid.wp-block-group{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.brand-grid .brand-tile.wp-block-group{min-height:90px;padding:12px}.brand-grid .brand-tile img{height:58px;max-height:58px}}

/* Konanz Pro 1.9.0 – Objektbelieferung */
.konanz-delivery{background:#f0f6f9}
.konanz-delivery-grid{max-width:1120px;margin-left:auto;margin-right:auto;gap:48px;align-items:center}
.konanz-delivery h2{margin-top:10px}
.konanz-delivery p{line-height:1.65}
.konanz-delivery .konanz-delivery-note{font-size:14px;color:#35566a}
.konanz-delivery figure{margin:0}
.konanz-delivery img{width:100%;height:auto;max-height:420px;object-fit:cover;object-position:center;border-radius:14px}
.konanz-delivery .is-style-outline .wp-block-button__link{background:transparent;color:#0c2d42;border:2px solid #0c2d42}
#lieferservice{scroll-margin-top:145px}
@media(max-width:780px){.konanz-delivery-grid{gap:24px}.konanz-delivery img{max-height:340px}}


/* Konanz Pro 1.9.1 — navigation and readable line wrapping */
/* Never split ordinary words into isolated letters. */
body .wp-site-blocks :is(h1,h2,h3,h4,h5,h6,p,li,a,.wp-block-button__link){
  word-break:normal;
  overflow-wrap:normal;
  hyphens:manual;
}
.product-card h3,.segment-card,.brand-grid .brand-name{
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:manual!important;
}
/* Keep the header logo and menu on one row. */
header.wp-block-template-part .navrow{flex-wrap:nowrap;min-width:0}
header.wp-block-template-part .navrow .wp-block-navigation{min-width:0;flex:1 1 auto;justify-content:flex-end}
header.wp-block-template-part .navrow .wp-block-navigation__container{column-gap:clamp(9px,1.2vw,20px);row-gap:8px}
header.wp-block-template-part .navrow .wp-block-navigation-item__label{white-space:nowrap}
/* WordPress core uses a narrow mobile breakpoint. Show its native accessible
   overlay toggle earlier, before the long B2B menu starts colliding. */
@media(max-width:1120px){
  header.wp-block-template-part .navrow{flex-wrap:nowrap;justify-content:space-between}
  header.wp-block-template-part .navrow .wp-block-navigation__responsive-container:not(.is-menu-open){display:none!important}
  header.wp-block-template-part .navrow .wp-block-navigation__responsive-container-open{display:flex!important;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:#0c2d42}
  header.wp-block-template-part .navrow .wp-block-navigation__responsive-container.is-menu-open{display:flex!important;position:fixed!important;inset:0!important;z-index:99999!important;background:#fff!important;color:#0c2d42!important;padding:24px!important;overflow-y:auto!important}
  header.wp-block-template-part .navrow .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{display:flex!important;align-items:stretch!important;padding-top:65px!important}
  header.wp-block-template-part .navrow .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;width:100%}
  header.wp-block-template-part .navrow .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item{width:100%;border-bottom:1px solid #e2eaf0}
  header.wp-block-template-part .navrow .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{display:block;padding:14px 3px;font-size:17px;line-height:1.4;white-space:normal}
  header.wp-block-template-part .navrow .wp-block-navigation__responsive-container-close{display:flex!important;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:#0c2d42}
  .segment-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  .segment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .segment-card{padding:18px 14px;min-width:0}
  .assortment .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-card h3{font-size:16px}
}
@media(max-width:480px){
  .assortment .product-grid{grid-template-columns:1fr}
  .segment-grid{grid-template-columns:1fr 1fr;gap:9px}
  .segment-card{font-size:14px;padding:14px 9px}
  .topbar{font-size:12px}
}
@media(max-width:360px){.segment-grid{grid-template-columns:1fr}}
/* Avoid horizontal overflow from nested Gutenberg flex layouts. */
.wp-site-blocks .wp-block-columns>.wp-block-column{min-width:0}

/* 1.9.2: Preserve the complete product collage in the rental section. */
.rental .wp-block-image img{width:100%;height:auto;max-height:none;object-fit:contain;background:#f3f7fa;border-radius:14px}

/* 1.9.3: navigation in section order; offers only when published */
.konanz-navigation-193{margin-left:auto;min-width:0;font-family:inherit}
.konanz-navigation-desktop{display:flex;align-items:center;justify-content:flex-end;gap:clamp(10px,1.3vw,22px);flex-wrap:wrap}
.konanz-navigation-193 a{color:#0c2d42;text-decoration:none;font-weight:700;font-size:clamp(13px,1vw,15px);white-space:nowrap;overflow-wrap:normal;word-break:normal}
.konanz-navigation-193 a:hover,.konanz-navigation-193 a:focus-visible{text-decoration:underline;text-underline-offset:5px}
.konanz-navigation-193 .konanz-offers-link{color:#c51d26;font-weight:850;letter-spacing:.04em}
.konanz-navigation-mobile{display:none}
@media(max-width:1120px){
 .konanz-navigation-desktop{display:none}
 .konanz-navigation-mobile{display:block;position:relative}
 .konanz-navigation-mobile summary{cursor:pointer;list-style:none;padding:10px 13px;border:1px solid #d4e1e7;border-radius:8px;font-weight:750;color:#0c2d42}
 .konanz-navigation-mobile summary::-webkit-details-marker{display:none}
 .konanz-navigation-mobile-links{position:absolute;right:0;top:calc(100% + 10px);z-index:2000;display:flex;flex-direction:column;gap:0;background:#fff;border:1px solid #d9e5ea;border-radius:12px;box-shadow:0 15px 35px #092b4140;width:min(90vw,340px);max-height:calc(100dvh - 130px);overflow:auto;padding:10px}
 .konanz-navigation-mobile-links a{padding:13px 12px;font-size:16px;white-space:normal}
 .navrow{flex-wrap:nowrap;justify-content:space-between}
}
/* Subtle official UNGER point-of-sale mark on the right of the hero photo. */
.hero{position:relative;isolation:isolate}
.hero::before{content:"";position:absolute;right:2%;bottom:57px;width:10%;max-width:150px;height:54px;background:var(--konanz-unger-logo) center / contain no-repeat;z-index:2;pointer-events:none;filter:drop-shadow(0 1px 3px #fff8)}
.hero::after{content:"Stützpunkthändler";position:absolute;right:2%;bottom:27px;width:10%;max-width:150px;text-align:center;font-size:clamp(8px,.8vw,12px);line-height:1.2;font-weight:750;color:#fff;text-shadow:0 1px 4px #092638,0 1px 8px #092638;z-index:2;pointer-events:none;overflow-wrap:normal;word-break:normal}
@media(max-width:600px){.hero::before{height:35px;bottom:43px}.hero::after{bottom:21px;font-size:8px}.hero-content{padding-bottom:40px}}

/* 1.9.5 – freigestelltes UNGER-Logo, Beschriftung direkt darunter. */
.hero::before{right:2%;bottom:44px;height:65px;width:10%;max-width:150px;background-size:contain;filter:drop-shadow(0 1px 3px rgba(0,0,0,.32))}
.hero::after{right:2%;bottom:30px;width:10%;max-width:150px;font-size:clamp(8px,.72vw,11px);line-height:1.1;white-space:nowrap}
@media(max-width:600px){.hero::before{bottom:35px;height:42px}.hero::after{bottom:23px;font-size:7px}}

/* 1.9.6: Eight original logos, consistent two-row grid. */
.brand-grid.wp-block-group{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;align-items:stretch}
.brand-grid>.brand-tile.wp-block-group{box-sizing:border-box;min-width:0;width:100%;min-height:118px;display:flex;align-items:center;justify-content:center;padding:16px;overflow:hidden}
.brand-grid>.brand-tile figure.wp-block-image{width:100%;margin:0;display:flex;justify-content:center;align-items:center}
.brand-grid>.brand-tile img{display:block;width:100%;height:78px;max-width:100%;max-height:78px;object-fit:contain;object-position:center}
@media(max-width:700px){.brand-grid.wp-block-group{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.brand-grid>.brand-tile.wp-block-group{min-height:94px;padding:10px}.brand-grid>.brand-tile img{height:60px;max-height:60px}}

/* 1.9.9: consistent rhythm, alternating section backgrounds and mobile overflow fixes */
html,body,.wp-site-blocks{max-width:100%;overflow-x:clip}
.wp-site-blocks > *{min-width:0}
.section{padding-block:50px!important}
@media(max-width:780px){.section{padding-block:35px!important}}
.brands.section{padding-block:27px!important}
.assortment .product-grid{margin-top:21px}
.split-grid{gap:42px!important}
.konanz-delivery-grid{gap:34px!important}
.segment-grid,.visit-grid{margin-top:18px}
.section.assortment{background:#f5f7f8!important}
.section.service{background:#eaf3f8!important}
.section.brands{background:#f5f7f8!important}
.section.segments{background:#eaf3f8!important}
.section.unger{background:#f5f7f8!important}
.section.rental{background:#eaf3f8!important}
.section.konanz-delivery{background:#f5f7f8!important}
.section.visit{background:#eaf3f8!important}
/* Icon-only hamburger, accessible label retained. */
.konanz-navigation-mobile summary{font-size:0!important;line-height:1!important;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0!important}
.konanz-navigation-mobile summary span{font-size:25px!important;line-height:1!important}
/* Keep the UNGER mark and its caption within the hero on narrow screens. */
.hero{overflow:hidden}
.hero::before,.hero::after{box-sizing:border-box;left:auto;max-width:none}
@media(max-width:780px){
 .hero::before{width:clamp(76px,19vw,110px)!important;height:46px!important;right:12px!important;bottom:49px!important}
 .hero::after{width:clamp(92px,24vw,135px)!important;right:6px!important;bottom:35px!important;font-size:clamp(8px,2vw,10px)!important;white-space:normal!important;overflow-wrap:normal!important;line-height:1.15!important}
 .hero-content{padding-bottom:76px!important}
 .split-grid,.konanz-delivery-grid{gap:20px!important}
}
/* Prevent machine section/collage from expanding beyond the viewport. */
.rental,.rental .wp-block-columns,.rental .wp-block-column,.rental figure,.rental img{min-width:0!important;max-width:100%!important;box-sizing:border-box}
.rental .wp-block-columns{width:100%;flex-wrap:wrap}
.rental figure{width:100%!important;margin:0!important}
.rental img{display:block;width:100%!important;height:auto!important;object-fit:contain}
@media(max-width:780px){
 .rental .wp-block-columns{display:flex!important;flex-direction:column!important}
 .rental .wp-block-column{flex-basis:auto!important;width:100%!important}
 .rental h2{overflow-wrap:normal;word-break:normal;hyphens:none}
}
