/* Sidebar reference: original AgrarMarkt layout from user image 3. */
:root{--am-sidebar:#062628;--am-green:#59dc48}
body.site-guest .site-sidebar.portal-sidebar [data-portal-navigation]>a,
body.market-guest .app-sidebar.portal-sidebar [data-portal-navigation]>a,
body.market-guest .app-sidebar.portal-sidebar [data-portal-navigation]>button,
.portal-sidebar [data-portal-navigation]>a,
.portal-sidebar [data-portal-navigation]>button{display:grid!important;position:relative;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;justify-items:stretch;width:100%;min-height:48px;padding:0 16px 0 20px;border:0;border-radius:0;background:transparent;color:#c8d5d4;font-family:"Roboto Condensed Local","Arial Narrow",Arial,sans-serif;font-size:14px;font-style:normal;font-weight:700;line-height:1.12;text-align:left;text-decoration:none;text-shadow:none;transform:none;cursor:pointer}
.portal-sidebar [data-portal-navigation]>:is(a,button)>span{display:block;min-width:0;font-weight:700}
.portal-sidebar [data-portal-navigation]>:is(a,button) svg{display:block;width:22px;height:22px;color:#b3ccd2;stroke-width:2.2}
.portal-sidebar [data-portal-navigation]>:is(a,button):hover{background:#0b3838;color:#fff}
.portal-sidebar [data-portal-navigation]>:is(a,button).active{background:#0d443b;color:#fff}
.portal-sidebar [data-portal-navigation]>:is(a,button)::before{position:absolute;inset:0 auto 0 0;width:5px;background:transparent;content:""}
.portal-sidebar [data-portal-navigation]>:is(a,button).active::before{background:#59dc48;box-shadow:0 0 14px #59dc488c}
.portal-sidebar [data-portal-navigation]>:is(a,button).active svg{color:#fff}
.portal-sidebar [data-portal-navigation]>:is(a,button).nav-child{grid-template-columns:25px minmax(0,1fr) auto;min-height:43px;padding-left:51px;padding-right:7px;background:#0b2729}
.portal-sidebar [data-portal-navigation]>.nav-child svg{width:18px;height:18px}
.portal-sidebar [data-portal-navigation]>.nav-child>span{font-size:13px}
.portal-sidebar :is(.site-brand,.app-brand){display:flex;align-items:center;flex:0 0 84px;min-height:84px;padding:6px 7px 6px 10px}
.portal-sidebar :is(.site-brand,.app-brand)>img{display:block;width:188px;height:68px;object-fit:contain}
.portal-sidebar :is(.site-navigation,.app-navigation){display:grid;align-content:start;flex:1 1 auto;min-height:0;padding:0;gap:1px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#2d6962 transparent}
body.site-guest .portal-sidebar .site-sidebar-community,
.portal-sidebar :is(.site-sidebar-community,.sidebar-community){position:relative;display:flex!important;align-items:flex-end;flex:0 0 140px;min-height:140px;margin-top:0;padding:0 18px 26px;background:#052123 url("../layout/agrarmarket-farm-hero-1200.11219c0a2a61.webp") 15% bottom/auto 100% no-repeat;box-shadow:inset 0 0 0 999px #041c1e57,inset 0 30px 40px #042628f2}
.portal-sidebar :is(.site-sidebar-community,.sidebar-community)>p{position:relative;z-index:1;margin:0;color:#fff;font-family:"Segoe Script","Bradley Hand",cursive;font-size:15px;font-style:italic;font-weight:400;line-height:1.45;text-shadow:0 2px 5px #000;transform:translateY(-11px) rotate(-5deg)}
/* One fixed grid column, never an implicit row above the page content. */
.agrar-start-integrated .site-app-shell{display:grid;grid-template-columns:205px minmax(0,1fr);align-items:start;min-height:100vh}
.agrar-start-integrated .site-sidebar{position:sticky;inset:auto;top:0;z-index:50;display:flex;flex-direction:column;width:205px;height:100dvh;overflow:hidden;background:#062628;border-right:1px solid #164649}
.agrar-start-integrated .am-start-main{margin-left:0;min-width:0}
.agrar-start-integrated .am-market-toggle{display:none}
.agrar-start-integrated>.skip-link{position:fixed!important;left:14px!important;top:12px!important;z-index:10001;transform:translateY(calc(-100% - 30px));margin:0;white-space:nowrap}
.agrar-start-integrated>.skip-link:focus-visible{transform:none}
.agrar-start-integrated>.skip-link:not(:focus-visible){width:1px;height:1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%)}
@media(max-width:900px){
 .agrar-start-integrated .site-app-shell{display:block}
 .agrar-start-integrated .site-sidebar{position:fixed;top:0;left:-235px;z-index:80;width:220px;transition:left .2s ease}
 body.site-sidebar-open.agrar-start-integrated .site-sidebar{left:0}
 .agrar-start-integrated .am-market-toggle{display:grid}
 .agrar-start-integrated .site-sidebar-overlay{position:fixed;inset:0;z-index:79;display:block;border:0;background:#000a0cb3;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}
 body.site-sidebar-open.agrar-start-integrated .site-sidebar-overlay{opacity:1;visibility:visible}
 .agrar-start-integrated .site-app-main{margin:0}
}
@media(prefers-reduced-motion:reduce){.agrar-start-integrated .site-sidebar{transition:none}}

/* Exact login rule: three public destinations; Startseite is guest-only. */
body:not(.market-authenticated) :is(.site-sidebar,.app-sidebar).portal-sidebar [data-portal-navigation]>[data-nav-visibility="member"],
body.market-authenticated :is(.site-sidebar,.app-sidebar).portal-sidebar [data-portal-navigation]>[data-nav-visibility="guest"]{display:none!important}

.web-history-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 17px;margin:0 0 20px;border:1px solid #17504d;border-radius:6px;background:#082b2c;color:#dce8df}.web-history-toolbar label{font-weight:700}.web-history-toolbar select{padding:9px 32px 9px 12px;border:1px solid #3d6960;border-radius:4px;background:#062628;color:#f4f8f4;font:inherit}.web-history-toolbar>span{flex:1;min-width:220px;font-size:12px;color:#adc0b5}.web-history-more{width:100%;margin:12px 0;padding:10px;border:1px solid #3d6960;border-radius:4px;background:#0b3434;color:#e0ebdb;font:inherit;cursor:pointer}.web-history-more[hidden]{display:none}.live-feed{max-height:520px;overflow-y:auto}.activity-item time{white-space:normal}@media(max-width:600px){.web-history-toolbar>span{flex-basis:100%;min-width:0}}

/* AgrarMarkt 239a: public market news with a neutral style for an exact zero effect. */
.am238-news{margin:14px 0;padding:24px 26px;border:1px solid var(--line,#363d36);border-radius:12px;background:var(--panel,#1c211c);scroll-margin-top:24px}.am238-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.am238-heading h2{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.am238-heading p{margin:9px 0 0;color:var(--muted,#929a91);font-size:12px;line-height:1.5}.am238-heading small{display:block;margin-top:4px;color:var(--muted,#929a91)}.am238-heading-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.am238-heading-actions{justify-content:flex-end}.am238-heading-actions button,.am238-more{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 14px;border:1px solid var(--lime,#b5dc38);border-radius:7px;background:var(--lime,#b5dc38);color:#17200d;text-decoration:none;font:700 12px/1.35 Arial,Helvetica,sans-serif;cursor:pointer}.am238-heading-actions button{border-color:var(--line,#363d36);background:var(--raised,#252a25);color:var(--white,#f3f5ef)}.am238-heading-actions button:hover{filter:brightness(1.12)}.am238-count{padding:4px 8px;border-radius:5px;background:#b5dc3818;color:var(--lime,#b5dc38);font-size:11px;font-weight:700}.am238-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.am238-card{display:flex;flex-direction:column;align-items:stretch;overflow:hidden;min-width:0;padding:0;border:1px solid var(--line,#363d36);border-radius:8px;background:#1a1e1a;color:var(--white,#f3f5ef);font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,background .15s}.am238-card:hover{border-color:#76884b;background:#242b20}.am238-card-content{display:flex;flex-direction:column;gap:12px;flex:1;padding:17px}.am238-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted,#929a91);font-size:11px}.am238-card strong{font-size:15px;line-height:1.35}.am238-card-text{font-size:12px;line-height:1.6;color:#c5cdc0;overflow-wrap:anywhere}.am238-card-link{display:flex;justify-content:space-between;gap:10px;margin-top:auto;padding-top:5px;color:var(--lime,#b5dc38);font-size:11px;font-weight:700}.am238-cover{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.am238-status{display:inline-block;width:max-content;padding:4px 7px;border-radius:4px;font-size:10px;font-weight:700;line-height:1.2;white-space:nowrap}.am238-active{background:#b5dc381b;color:#c9e877}.am238-easing{background:#eab96120;color:#e5c182}.am238-ended{background:#ffffff0c;color:#aeb8a8}.am238-empty{grid-column:1/-1;margin:0;padding:26px 16px;border:1px dashed var(--line,#363d36);border-radius:7px;text-align:center;color:var(--muted,#929a91);font-size:13px;line-height:1.6}.am238-more{display:flex;margin:18px auto 0;background:transparent;color:var(--lime,#b5dc38)}.am238-warning{color:#edbe77!important}.am238-news [hidden],.am238-dialog [hidden],.am238-product-impact[hidden]{display:none!important}.am238-quick-link{margin-left:auto;color:var(--lime,#b5dc38);font-size:12px;text-decoration:none;font-weight:700;white-space:nowrap}.am238-quick-link:hover{text-decoration:underline}.am238-impact{display:block!important;width:max-content;max-width:100%;margin-top:5px;padding:3px 5px;border-radius:4px;background:#ffffff0b;font-size:10px!important;font-weight:700;letter-spacing:0;line-height:1.3;white-space:normal}.am238-up{color:#c4e471}.am238-down{color:#ed9a91}.am238-product-impact{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding:12px;border:1px solid #6b7f443f;border-left:3px solid #b5dc38;border-radius:6px;background:#b5dc3808}.am238-product-impact strong{display:block;font-size:12px;color:#dceec4}.am238-product-impact small{display:block;margin-top:5px;color:var(--muted,#929a91);font-size:10px;line-height:1.5}.am238-product-impact button{max-width:48%;padding:0;border:0;background:none;color:var(--lime,#b5dc38);font:700 11px/1.5 Arial,sans-serif;text-align:right;cursor:pointer}.am238-dialog{width:min(680px,calc(100% - 28px));max-height:calc(100vh - 38px);padding:0;border:1px solid #4e5b47;border-radius:12px;background:#1c231b;color:#eff4ea;box-shadow:0 25px 90px #0009;overflow:auto}.am238-dialog::backdrop{background:#071008c9;backdrop-filter:blur(3px)}.am238-dialog-header{position:sticky;top:0;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 24px;border-bottom:1px solid #3b4735;background:#1c231bf5}.am238-dialog-header h2{font-size:21px;line-height:1.3}.am238-close{flex:none;width:32px;height:32px;padding:0;border:1px solid #4d5946;border-radius:6px;background:#293124;color:#e9f3df;font-size:24px;line-height:1;cursor:pointer}.am238-dialog-body{padding:24px}.am238-detail-cover{display:block;width:100%;max-height:340px;aspect-ratio:16/9;object-fit:cover;border-radius:7px;margin-bottom:18px}.am238-detail-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:11px;color:#aebca3}.am238-detail-text{margin:18px 0;font-size:15px;line-height:1.65}.am238-note{margin:12px 0;font-size:12px;line-height:1.6;color:#aab7a0}.am238-dialog h3{margin:24px 0 10px;font-size:14px}.am238-product-list{display:grid;gap:0;list-style:none;padding:0;margin:0 0 20px;max-height:330px;overflow:auto}.am238-product-list li{display:grid;grid-template-columns:1fr auto;gap:5px 15px;padding:10px 0;border-bottom:1px solid #35402f;font-size:12px}.am238-product-list small{grid-column:1/-1;color:#aab7a0;font-size:10px}.am238-chart-markers line{stroke-width:1;stroke-dasharray:4 5;opacity:.55}.am238-chart-start line{stroke:#d4ea92}.am238-chart-start circle{fill:#d4ea92;stroke:#1c211c;stroke-width:2}.am238-chart-end line{stroke:#aab8a2}.am238-chart-end circle{fill:#aab8a2;stroke:#1c211c;stroke-width:2}.am238-chart-markers [role=button]{cursor:pointer}.am238-chart-markers [role=button]:hover line,.am238-chart-markers [role=button]:focus line{opacity:1;stroke-width:2}.am238-news button:focus-visible,.am238-dialog button:focus-visible{outline:2px solid var(--lime,#b5dc38);outline-offset:3px}@media(max-width:1180px){.am238-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.am238-news{padding:20px 14px}.am238-heading{display:block}.am238-heading-actions{justify-content:flex-start;margin-top:14px}.am238-grid{grid-template-columns:1fr}.am238-dialog-header,.am238-dialog-body{padding:18px}.am238-quick-link{margin-left:0}.am238-product-impact{display:block}.am238-product-impact button{max-width:100%;text-align:left;margin-top:8px}.am238-product-list li{grid-template-columns:1fr;gap:5px}.am238-dialog{max-height:calc(100dvh - 28px)}}@media(prefers-reduced-motion:reduce){.am238-card{transition:none}}

.product-item.selected .am238-impact{background:#00000012;color:#273014}
.am238-neutral,.am238-product-impact strong.am238-neutral{color:var(--muted,#929a91)}

/* AgrarMarkt Update244 — event detail redesign. Directly styles the renderer that creates the dialog. */
#marketEventDetail238.am244-detail{width:min(980px,calc(100% - 32px));max-height:calc(100dvh - 28px);border:1px solid #405545;border-radius:18px;background:#0d201b;box-shadow:0 28px 90px #000b;overflow:auto;color:#eef5ed}
#marketEventDetail238.am244-detail::backdrop{background:#020b09d9;backdrop-filter:blur(6px)}
#marketEventDetail238.am244-detail .am238-dialog-header{position:absolute;top:0;right:0;left:0;z-index:5;padding:18px 20px;border:0;background:transparent;pointer-events:none}
#marketEventDetail238.am244-detail .am238-dialog-header h2{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
#marketEventDetail238.am244-detail .am238-close{pointer-events:auto;margin-left:auto;width:38px;height:38px;border:1px solid #70816c;border-radius:9px;background:#17251dcc;color:#eef4e9;backdrop-filter:blur(8px);font-size:24px;box-shadow:0 4px 16px #0005}
#marketEventDetail238.am244-detail .am238-dialog-body{padding:0;background:#0d201b}
.am244-hero{position:relative;min-height:350px;overflow:hidden;border-radius:17px 17px 0 0;background:radial-gradient(circle at 80% 30%,#395b2b 0,#173527 40%,#0a1d18 100%)}
.am244-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.am244-hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,14,11,.08) 0%,rgba(4,14,11,.18) 38%,rgba(5,19,15,.94) 100%),linear-gradient(90deg,rgba(5,20,16,.72) 0%,rgba(5,20,16,.08) 70%)}
.am244-hero-fallback::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 75% 30%,rgba(181,220,56,.18),transparent 32%)}
.am244-hero-content{position:absolute;z-index:2;left:34px;right:76px;bottom:28px}
.am244-hero-content h2{margin:0 0 14px;font-size:clamp(28px,4vw,44px);line-height:1.05;letter-spacing:-.02em;color:#f4f8f0;text-shadow:0 3px 18px #000b}
.am244-hero-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#dce5d8;font-size:13px}
.am244-hero-meta .am238-status{padding:7px 12px;border-radius:999px;font-size:12px;box-shadow:0 4px 15px #0004}
.am244-hero-date{display:inline-flex;align-items:center;gap:7px;padding:6px 0;text-shadow:0 2px 8px #000}
.am244-hero-date svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.am244-content{padding:28px 32px 32px}
.am244-summary{display:grid;grid-template-columns:42px 1fr;gap:16px;align-items:start;padding:0 4px 22px}
.am244-summary p{margin:0;color:#edf3e9;font-size:17px;line-height:1.58;font-weight:600}
.am244-summary-icon,.am244-fact-icon,.am244-section-icon{display:grid;place-items:center;color:#c9ef55}
.am244-summary-icon{width:38px;height:38px;border:1px solid #9bc72d66;border-radius:10px;background:#a6d52a1a}
.am244-summary-icon svg,.am244-fact-icon svg,.am244-section-icon svg,.am244-note svg,.am244-direction-badge svg,.am244-product-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.am244-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}
.am244-fact{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:center;min-height:76px;padding:14px 16px;border:1px solid #375244;border-radius:12px;background:linear-gradient(180deg,#143128,#102920);box-shadow:inset 0 1px rgba(255,255,255,.025)}
.am244-fact-icon{width:40px;height:40px;border-radius:9px;background:#b5dc3810}
.am244-fact small{display:block;margin-bottom:4px;color:#98aa9c;font-size:11px}
.am244-fact strong{display:block;color:#f1f5ef;font-size:15px;line-height:1.25}
.am244-dir-up{color:#c9ef55!important}.am244-dir-down{color:#ef9c8e!important}.am244-dir-mixed{color:#e9c878!important}
.am244-note{display:flex;align-items:center;gap:10px;margin:0 0 26px;padding:12px 14px;border:1px solid #77923655;border-radius:10px;background:#92b72a12;color:#bac7b8;font-size:12px;line-height:1.5}
.am244-note svg{flex:none;width:18px;height:18px;color:#c9ef55}
.am244-section-title{display:grid;grid-template-columns:30px auto 1fr;gap:10px;align-items:center;margin:0 0 12px}
.am244-section-title h3{margin:0!important;color:#f1f6ed;font-size:20px!important}.am244-section-icon svg{width:23px;height:23px}.am244-section-line{height:1px;margin-left:8px;background:linear-gradient(90deg,#b5dc38,transparent)}
.am244-product-table{overflow:hidden;border:1px solid #365247;border-radius:12px;background:#0c241e}
.am244-product-head,.am244-product-row{display:grid;grid-template-columns:minmax(190px,1.25fr) minmax(210px,1fr) minmax(180px,.8fr);gap:18px;align-items:center}
.am244-product-head{padding:10px 16px;border-bottom:1px solid #365247;background:#15352d;color:#9fb0a1;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.am244-product-row{min-height:68px;padding:9px 16px;border-bottom:1px solid #284039}.am244-product-row:last-child{border-bottom:0}
.am244-product-row:hover{background:#ffffff05}
.am244-product-name{display:flex;align-items:center;gap:11px;min-width:0}.am244-product-name strong{overflow:hidden;color:#edf4ea;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.am244-product-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border:1px solid #56714966;border-radius:9px;background:#b5dc380b;color:#bfe24f}.am244-product-icon svg{width:20px;height:20px}
.am244-product-impact{min-width:0}.am244-product-impact strong{display:block;font-size:16px;line-height:1.2}.am244-product-impact small{display:block;margin-top:4px;color:#91a397;font-size:10px;line-height:1.25}
.am244-impact-up{color:#c9ef55}.am244-impact-down{color:#ef9c8e}.am244-impact-neutral{color:#dbe4d8}
.am244-product-direction{display:flex;justify-content:flex-end}.am244-direction-badge{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:7px 11px;border:1px solid currentColor;border-radius:999px;background:#ffffff06;font-size:11px;font-weight:700;white-space:nowrap}.am244-direction-badge svg{width:16px;height:16px}
.am244-empty{padding:22px;color:#9bad9e;text-align:center}
@media(max-width:760px){#marketEventDetail238.am244-detail{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.am244-hero{min-height:280px;border-radius:11px 11px 0 0}.am244-hero-content{left:20px;right:58px;bottom:20px}.am244-content{padding:22px 18px 24px}.am244-summary{grid-template-columns:34px 1fr;gap:12px}.am244-summary p{font-size:15px}.am244-summary-icon{width:32px;height:32px}.am244-facts{grid-template-columns:1fr}.am244-product-head{display:none}.am244-product-row{grid-template-columns:1fr auto;gap:7px 12px;padding:12px 14px}.am244-product-impact{grid-column:1/2;padding-left:49px}.am244-product-direction{grid-column:2/3;grid-row:1/3}.am244-direction-badge span{display:none}.am244-direction-badge{padding:7px}.am244-section-title h3{font-size:18px!important}}

