/* Responsive soil cutaway with native-size, accessible sensor readings. */
#garten-bodenprofil .bp-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr);gap:14px;align-items:center}
#garten-bodenprofil .bp-illustration{overflow:hidden;border-radius:12px;background:var(--garden-soft);min-width:0}
#garten-bodenprofil .bp-svg{display:block;width:100%;height:auto;min-height:0;max-height:none;background:none}
#garten-bodenprofil .bp-readings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
#garten-bodenprofil .bp-reading{display:flex;flex-direction:column;gap:3px;min-width:0;border:1px solid var(--garden-border);border-radius:10px;padding:11px;background:var(--garden-soft)}
#garten-bodenprofil .bp-reading>span{font-size:12px;line-height:1.3;color:var(--garden-muted)}
#garten-bodenprofil .bp-reading strong{font-size:22px;line-height:1.3;font-variant-numeric:tabular-nums;color:var(--garden-text)}
#garten-bodenprofil .bp-reading small{font-size:12px;color:var(--garden-muted)}
#garten-bodenprofil .bp-caption{display:flex;flex-wrap:wrap;gap:6px 20px;justify-content:space-between;font-size:12px;color:var(--garden-muted);margin:9px 0 0}
#garten-bodenprofil .bp-depth-label text{fill:#fff4df;stroke:#4b382c;stroke-width:3px;paint-order:stroke;stroke-linejoin:round;font-size:21px;font-weight:800}
#garten-bodenprofil .bp-diagram-label text{fill:#203d50!important;stroke:#e3f4ff;stroke-width:3px;paint-order:stroke;font-size:17px;font-weight:700}
#garten-bodenprofil .bp-wet-zone{fill:#89949c;opacity:.13}
#garten-bodenprofil [data-state=trocken]>.bp-wet-zone{fill:#d4aa6d;opacity:.3}
#garten-bodenprofil [data-state=halbtrocken]>.bp-wet-zone{fill:#ad975e;opacity:.26}
#garten-bodenprofil [data-state=feucht]>.bp-wet-zone{fill:#5ca5d2;opacity:.36}
#garten-bodenprofil [data-state=nass]>.bp-wet-zone{fill:#3c91d5;opacity:.52}
#garten-bodenprofil .bp-ripple{fill:none;stroke:#b7e5ff;stroke-width:3;opacity:0}
#garten-bodenprofil [data-state=feucht]>.bp-ripple,#garten-bodenprofil [data-state=nass]>.bp-ripple{animation:bpMoisture 5s ease-in-out infinite}
#garten-bodenprofil .bp-night,#garten-bodenprofil .bp-snow,#garten-bodenprofil .bp-frost,#garten-bodenprofil .bp-leaf-drop{display:none}
#garten-bodenprofil [data-daypart=night] .bp-night{display:inline}
#garten-bodenprofil [data-daypart=night] .bp-day{display:none}
#garten-bodenprofil [data-season=winter] .bp-snow{display:inline}
#garten-bodenprofil [data-season=winter] .bp-foliage{fill:#9d9e86}
#garten-bodenprofil [data-season=autumn] .bp-foliage{fill:#ce9557}
#garten-bodenprofil [data-season=spring] .bp-foliage{fill:#b1d87b}
#garten-bodenprofil [data-season=spring] .bp-sprout{animation:bpGrow 7s ease-in-out infinite;transform-origin:305px 158px}
#garten-bodenprofil .bp-season-leaves{opacity:0}
#garten-bodenprofil [data-season=autumn] .bp-season-leaves{animation:bpLeafFall 8s ease-in-out infinite}
#garten-bodenprofil [data-season=summer] .bp-sun{animation:bpSun 8s ease-in-out infinite;transform-origin:90px 66px}
#garten-bodenprofil #gardenLeafWetVisual[data-state=nass] .bp-leaf-drop{display:inline;animation:bpDrip 2.5s ease-in infinite}
#garten-bodenprofil #gardenSoilTempVisual[data-state=gefroren] .bp-frost{display:inline;animation:bpMoisture 4s ease-in-out infinite}
@keyframes bpMoisture{0%,100%{opacity:.15}50%{opacity:.7}}
@keyframes bpGrow{50%{transform:scaleY(1.04)}}
@keyframes bpLeafFall{0%{opacity:0;transform:translate(0,0)}12%{opacity:.9;transform:translate(2px,8px)}85%{opacity:.65;transform:translate(12px,63px)}100%{opacity:0;transform:translate(15px,78px)}}
@keyframes bpSun{50%{opacity:.65}}
@keyframes bpDrip{0%{opacity:0;transform:translateY(-4px)}30%{opacity:1}100%{opacity:0;transform:translateY(26px)}}
@media(max-width:760px){#garten-bodenprofil .bp-layout{grid-template-columns:1fr;gap:10px}#garten-bodenprofil .bp-readings{grid-template-columns:repeat(3,minmax(0,1fr))}#garten-bodenprofil .bp-reading{padding:9px}#garten-bodenprofil .bp-reading strong{font-size:20px}}
@media(max-width:480px){#garten-bodenprofil .bp-readings{grid-template-columns:repeat(2,minmax(0,1fr))}#garten-bodenprofil .bp-reading strong{font-size:21px}#garten-bodenprofil .bp-caption{display:block}#garten-bodenprofil .bp-caption span{display:block;margin-top:4px}}
@media(prefers-reduced-motion:reduce){#garten-bodenprofil .bp-svg *{animation:none!important}#garten-bodenprofil [data-state=feucht]>.bp-ripple,#garten-bodenprofil [data-state=nass]>.bp-ripple{opacity:.5}}

#garten-bodenprofil .bp-layout>*{min-width:0}#garten-bodenprofil .bp-svg{min-width:0!important;max-width:100%!important;}

/* Values belong to the illustrated profile, with a readable narrow layout. */
#garten-bodenprofil .bp-layout{display:block}
#garten-bodenprofil .bp-illustration{position:relative;max-width:1000px;margin:0 auto}
#garten-bodenprofil .bp-readings{position:absolute;inset:0;display:block;pointer-events:none}
#garten-bodenprofil .bp-reading{position:absolute;left:5%;width:24%;padding:6px 9px;gap:1px;background:var(--garden-card);border-color:var(--garden-border);box-shadow:0 1px 4px #10203012}
#garten-bodenprofil .bp-reading:nth-child(1){top:42%}
#garten-bodenprofil .bp-reading:nth-child(2){top:54%}
#garten-bodenprofil .bp-reading:nth-child(3){top:66%}
#garten-bodenprofil .bp-reading:nth-child(4){top:78%}
#garten-bodenprofil .bp-reading:nth-child(5){left:72%;top:62%;width:24%}
#garten-bodenprofil .bp-reading:nth-child(6){left:31%;top:3%;width:27%}
#garten-bodenprofil .bp-reading strong{font-size:22px;line-height:1.2}
#garten-bodenprofil .bp-depth-label{display:none}
@media(max-width:1000px){
 #garten-bodenprofil .bp-readings{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:10px;gap:8px}
 #garten-bodenprofil .bp-reading{position:static!important;inset:auto!important;width:auto!important;box-shadow:none;padding:9px;gap:3px}
 #garten-bodenprofil .bp-depth-label{display:inline}
}
@media(max-width:480px){#garten-bodenprofil .bp-readings{grid-template-columns:repeat(2,minmax(0,1fr))}#garten-bodenprofil .bp-reading>span{font-size:12px}}

/* Translucent readouts close to the corresponding probes. */
#garten-bodenprofil .bp-reading{background:rgba(255,255,255,.58);border-color:rgba(255,255,255,.62);box-shadow:0 1px 5px #10203020;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
@media(min-width:1001px){
 #garten-bodenprofil .bp-reading{width:18%}
 #garten-bodenprofil .bp-reading:nth-child(1){left:16%;top:41%}
 #garten-bodenprofil .bp-reading:nth-child(2){left:24%;top:53%}
 #garten-bodenprofil .bp-reading:nth-child(3){left:32%;top:65%}
 #garten-bodenprofil .bp-reading:nth-child(4){left:40%;top:77%}
 #garten-bodenprofil .bp-reading:nth-child(5){left:75%;top:56%;width:22%}
 #garten-bodenprofil .bp-reading:nth-child(6){left:42%;top:8%;width:20%}
}
html.dark #garten-bodenprofil .bp-reading,body.dark #garten-bodenprofil .bp-reading,body.dark-mode #garten-bodenprofil .bp-reading,body.theme-dark #garten-bodenprofil .bp-reading,[data-theme=dark] #garten-bodenprofil .bp-reading{background:rgba(21,37,51,.68);border-color:rgba(159,190,211,.5)}

/* Leave the leaf-sensor title and temperature depth label unobstructed. */
@media(min-width:1001px){
 #garten-bodenprofil .bp-reading:nth-child(6){left:38%;top:8%;width:20%}
 #garten-bodenprofil .bp-reading:nth-child(5){left:75%;top:64%;width:22%}
}

#garten-bodenprofil #gardenSoilTempVisual[data-state=kalt] path[stroke="#df7057"],#garten-bodenprofil #gardenSoilTempVisual[data-state=gefroren] path[stroke="#df7057"]{stroke:#378dcf}
#garten-bodenprofil #gardenSoilTempVisual[data-state=kalt] circle[fill="#df7057"],#garten-bodenprofil #gardenSoilTempVisual[data-state=gefroren] circle[fill="#df7057"]{fill:#378dcf}
