/* Only DE pages load this stylesheet. The existing three rubrics retain their styles. */
.rubric-switch-menu:has(#menu-tab-quality)>.rubric-tabs{display:flex!important;flex-wrap:wrap;gap:4px 20px}
.rubric-switch-menu:has(#menu-tab-quality)>.rubric-tabs>[role=tab]{order:0!important}
.rubric-switch-menu:has(#menu-tab-quality)>.rubric-tabs>[role=tab][aria-selected=true]{order:-1!important}
/* Uses the same iot-menu-group / iot-menu-links stack as the other rubrics. */
.site-header .knowledge-mega a.quality-menu-entry{display:flex!important;align-items:center;gap:12px;padding:0!important;color:#dbc38a!important;text-decoration:none!important;min-width:0}
.quality-menu-entry .iot-menu-icon{width:34px;height:34px;flex:0 0 34px}
.quality-menu-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.quality-menu-copy strong{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.quality-menu-copy small{font-size:13px;line-height:1.5;font-weight:400}
.site-header .knowledge-mega a.quality-menu-entry:hover,.site-header .knowledge-mega a.quality-menu-entry[aria-current]{color:#e5c77c!important}
.quality-menu-entry:focus-visible{outline:2px solid #dbc38a;outline-offset:4px}
.quality-related{margin:40px 0 24px;padding-top:24px;border-top:1px solid rgba(203,183,127,.35)}
.quality-related h2{margin-top:0}
.quality-related ul{display:flex;flex-wrap:wrap;gap:12px 28px;list-style:none;padding:0}
.quality-related a{text-underline-offset:3px}
/* Two complete rows, unchanged 190px desktop rubric slot. */
.quality-row-frame{position:relative;min-width:0;padding-right:28px}
body.systemwissen-hub-page .rubric-switch-overview .iot-overview-grid.quality-row-revolver{position:relative!important;display:block!important;height:138px!important;overflow:visible!important;padding:0!important;touch-action:pan-x pinch-zoom;perspective:600px}
body.systemwissen-hub-page .rubric-switch-overview .rubric-panel .quality-row-revolver a.iot-overview-card{position:absolute!important;left:calc(var(--column) * (100% + 18px) / 3)!important;top:calc(var(--row) * 74px)!important;width:calc((100% - 36px)/3)!important;height:60px!important;user-select:none;-webkit-user-drag:none}
body.systemwissen-hub-page .rubric-switch-overview .rubric-panel .quality-row-revolver a.is-row-out{clip-path:inset(50%);width:1px!important;height:1px!important;overflow:hidden!important;top:0!important;left:0!important;pointer-events:none}
.quality-row-controls{position:absolute;right:-4px;top:-23px;bottom:0;display:flex;flex-direction:column;justify-content:space-between;align-items:center;color:#173a31}
.quality-row-controls span{position:absolute;right:28px;top:0;font-size:11px;white-space:nowrap}
.quality-row-controls button{width:26px;height:26px;border:1px solid #173a3155;border-radius:50%;background:transparent;color:inherit;cursor:pointer}
.quality-row-controls button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
/* The menu feature owns a stable left stack and a separate right teaser. */
html[lang=de] body .site-header .knowledge-mega .knowledge-feature{align-items:center!important}
html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-stack-controls{display:flex;align-items:center;gap:5px;min-width:68px!important;right:0!important}
.iot-stack-controls button{padding:1px 4px;border:1px solid #dbc38a55;background:transparent;color:#dbc38a;font:12px/1.2 inherit;cursor:pointer}
@media(max-width:860px){
 html[lang=de] body .site-header .knowledge-mega .knowledge-feature{display:flex!important;flex-direction:column!important;height:auto!important;gap:20px!important}
 html[lang=de] body .site-header .knowledge-mega .knowledge-feature>a{position:relative!important;inset:auto!important;width:100%!important;order:2!important;flex:none!important}
 html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-menu-group{display:block!important;height:170px!important;min-height:170px!important;max-height:170px!important;position:relative!important;margin:0!important;padding:0!important}
 html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-menu-group>summary{display:flex!important;width:100%!important;min-height:44px!important;pointer-events:none}
 html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-menu-group>summary a{pointer-events:auto}
 html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-menu-group>summary::before{display:none!important}
 html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-menu-links{display:flex!important;flex-direction:column!important;position:absolute!important;left:0!important;right:0!important;top:60px!important;height:100px!important;gap:0!important;padding:0 0 20px 42px!important;overflow:visible!important;touch-action:pan-x pinch-zoom}
 html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-menu-links li{display:block!important;flex:none!important;height:22px!important;min-height:22px!important;max-height:22px!important;padding:0!important}
 html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-menu-links li.is-iot-active{height:46px!important;min-height:46px!important;max-height:46px!important}
 html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-menu-links li.is-iot-far{display:none!important}
 html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-menu-links a{display:flex!important;align-items:center!important;height:100%!important;min-height:0!important;padding:2px 6px!important;font-size:14px!important;line-height:1.2!important}
 html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-menu-links li:not(.is-iot-active) a{opacity:.5}
 html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-menu-links li.is-iot-active a{border-left:2px solid #dbc38a!important;background:#dbc38a10!important}
 html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-stack-controls{position:absolute!important;bottom:-3px!important;right:0!important;height:20px!important}
}
@media(max-width:1000px){.quality-row-frame{margin-top:28px}}
@media(max-width:700px){
 body.systemwissen-hub-page .rubric-switch-overview .iot-overview-grid.quality-row-revolver{height:246px!important}
 body.systemwissen-hub-page .rubric-switch-overview .rubric-panel .quality-row-revolver a.iot-overview-card{left:calc(var(--column) * (100% + 12px) / 3)!important;top:calc(var(--row) * 126px)!important;width:calc((100% - 24px)/3)!important;height:120px!important;grid-template-rows:50px 10px auto!important}
 body.systemwissen-hub-page .rubric-switch-overview .rubric-panel .quality-row-revolver .iot-overview-media{height:50px!important;aspect-ratio:auto!important}
 body.systemwissen-hub-page .rubric-switch-overview .rubric-panel .quality-row-revolver a strong{padding-left:0;font-size:11px!important;line-height:1.3!important;hyphens:manual;overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){.quality-row-revolver *{animation:none!important;transition:none!important}}
html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-menu-links li.is-iot-prev{order:0!important}
html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-menu-links li.is-iot-active{order:1!important}
html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-menu-links li.is-iot-next{order:2!important}
html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-stack-controls{display:flex!important;visibility:inherit!important;z-index:3}
@media(max-width:860px){html[lang=de] body .site-header .knowledge-mega .knowledge-feature .iot-stack-controls{bottom:-18px!important;font-size:11px!important}}
@media(max-width:860px){
 html[lang=de] body .site-header #knowledge-mega .rubric-switch-menu .iot-menu-group .iot-menu-links{display:flex!important;flex-direction:column!important}
}
html[lang=de] body .site-header #knowledge-mega .iot-stack-controls{width:auto!important;min-width:76px!important;gap:6px!important;justify-content:flex-end!important}
html[lang=de] body .site-header #knowledge-mega .iot-stack-count{position:static!important;display:block!important;width:auto!important;min-width:24px!important;line-height:18px!important;transform:none!important;text-align:center!important}
@media(max-width:700px){
 body.systemwissen-hub-page .rubric-switch-overview .iot-overview-grid:not(.quality-row-revolver){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px 12px!important;overflow:visible!important;scroll-snap-type:none!important;padding:20px 0 12px!important}
 body.systemwissen-hub-page .rubric-switch-overview .rubric-panel .iot-overview-grid:not(.quality-row-revolver) a.iot-overview-card{min-width:0!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:42px 6px auto!important;align-content:start!important;flex:none!important}
 body.systemwissen-hub-page .rubric-switch-overview .iot-overview-grid:not(.quality-row-revolver) .iot-overview-media{width:100%!important;height:42px!important;aspect-ratio:auto!important}
 body.systemwissen-hub-page .rubric-switch-overview .iot-overview-grid:not(.quality-row-revolver) a strong{padding-left:0!important;font-size:10.5px!important;line-height:1.25!important;overflow-wrap:anywhere!important;hyphens:manual!important}
 .quality-row-frame{margin-top:0}
 body.systemwissen-hub-page .rubric-switch-overview .iot-overview-grid.quality-row-revolver{height:var(--quality-row-height)!important}
 body.systemwissen-hub-page .rubric-switch-overview .rubric-panel .quality-row-revolver a.iot-overview-card{top:calc(20px + var(--row) * ((var(--quality-row-height) - 32px) / 2))!important;height:calc((var(--quality-row-height) - 32px) / 2)!important;grid-template-rows:42px 6px auto!important}
 body.systemwissen-hub-page .rubric-switch-overview .rubric-panel .quality-row-revolver .iot-overview-media{height:42px!important}
 body.systemwissen-hub-page .rubric-switch-overview .rubric-panel .quality-row-revolver a strong{font-size:10.5px!important;line-height:1.25!important}
 .quality-row-controls{top:0}
}
body.systemwissen-hub-page .rubric-switch-overview .iot-overview-grid.quality-row-revolver{overflow:hidden!important}

@media(min-width:1001px){body.systemwissen-hub-page #overview-panel-quality .iot-overview-head{top:126px!important}}
html[lang=de] body .site-header #knowledge-mega .iot-menu-group>summary{height:48px!important;min-height:48px!important;align-items:center!important}
html[lang=de] body .site-header #knowledge-mega .iot-menu-copy small,html[lang=de] body .site-header #knowledge-mega .quality-menu-copy small{font-size:13px!important;line-height:19px!important;text-align:left!important;white-space:normal!important}
/* Stable two-by-two category selector, independent of the selected label. */
@media(max-width:860px){
 html[lang=de] body .site-header #knowledge-mega .rubric-switch-menu>.rubric-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px 12px!important;align-items:stretch!important;width:100%!important}
 html[lang=de] body .site-header #knowledge-mega .rubric-switch-menu>.rubric-tabs>[role=tab]{order:0!important;grid-column:auto!important;grid-row:auto!important;justify-self:stretch!important;white-space:normal!important;min-width:0!important;min-height:52px!important;font-size:14px!important;line-height:1.35!important;border-bottom-width:3px!important;overflow-wrap:normal!important;hyphens:manual!important}
}
@media(min-width:861px){
 html[lang=de] body .site-header #knowledge-mega .rubric-switch-menu>.rubric-tabs{display:grid!important;grid-template-columns:max-content max-content!important;gap:4px 16px!important;justify-content:start!important}
 html[lang=de] body .site-header #knowledge-mega .rubric-switch-menu>.rubric-tabs>[role=tab]{order:0!important;grid-column:auto!important;grid-row:auto!important;white-space:nowrap!important;font-size:16px!important;border-bottom-width:3px!important}
}

/* Mobile controls remain tappable on bundled article pages as well as the hub. */
@media(max-width:860px){
 html[lang=de] body .site-header #knowledge-mega .knowledge-feature .iot-stack-controls button{display:inline-flex!important;align-items:center;justify-content:center;width:36px!important;height:36px!important;flex:0 0 36px;visibility:inherit!important;font-size:18px;touch-action:manipulation}
 html[lang=de] body .site-header #knowledge-mega .knowledge-feature .iot-stack-controls{height:36px!important;bottom:-28px!important}
 html[lang=de] body .site-header #knowledge-mega .knowledge-feature .iot-menu-group{height:190px!important;min-height:190px!important;max-height:190px!important}
}
@media(max-width:700px){
 body.systemwissen-hub-page .rubric-switch-overview>.rubric-panels>.rubric-panel[hidden]{display:none!important}
 body.systemwissen-hub-page .blockchain-overview-feature{margin-top:24px!important}
}
