@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/space-grotesk-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/space-grotesk-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/space-grotesk-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/jetbrains-mono-latin-700-normal.woff2) format('woff2')}
:root{
  /* Layout: eine Spalte am Handy, ab ca. 900px Hauptspalte plus Seitenspalte.
     Leitmotiv ist das Zelt bei Nacht: dunkles Gruen, Lampenlicht von oben, die Bluetezeit als Balkenreihe. */
  --bg:#0B0F0C; --panel:#131913; --inset:#0D120E; --line:#26322A; --line2:#3A4A3D;
  --text:#EDF2EA; --muted:#A7B4A8;
  --accent:#B8F35A; --now:#FF5FD2; --warn:#FFB547; --cool:#5AD1FF;
  --display:'Space Grotesk',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color-scheme:dark;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);background-image:radial-gradient(circle,#1A231B 1px,transparent 1.5px);background-size:22px 22px;color:var(--text);font-family:var(--display);font-size:16px;line-height:1.45}
body.lock{overflow:hidden}
h1,h2,h3{margin:0;text-wrap:balance}
h1{font-size:18px;letter-spacing:.01em}
h2{font-size:20px}
h3{font-size:16px}
p{margin:0}
button{font:inherit;color:inherit}
a{color:var(--accent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
[hidden]{display:none!important}
.wrap{max-width:1180px;margin:0 auto;padding:20px clamp(16px,3vw,40px) 56px;display:flex;flex-direction:column;gap:16px}
.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}
.label{font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.muted{color:var(--muted)}
.small{font-size:13px}
.panel{background:linear-gradient(180deg,#161D17,#111611);border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.05);min-width:0}
.inset{background:var(--inset);border:1px solid var(--line);border-radius:14px;padding:14px 16px}
.note{font-size:13px;line-height:1.5;color:#C9D3C8}
.ph{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin-bottom:14px}
.stack{display:flex;flex-direction:column;gap:12px}
.cols{display:flex;flex-wrap:wrap;gap:16px;align-items:stretch}
.cols>.grow{flex:999 1 480px}
.cols>.side{flex:1 1 320px}

/* Buttons und Felder */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:12px;border:1px solid var(--line2);background:#182019;cursor:pointer;font-weight:500;text-align:center}
.btn:hover{border-color:#5C6B5E}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#0B0F0C;font-weight:700}
.btn.primary:hover{background:#CBFA7C}
.btn.small{min-height:38px;padding:6px 12px;font-size:14px}
.btn.danger{border-color:#6A3030;color:#FFA3A3}
.btn:disabled{opacity:.55;cursor:default}
.link{background:none;border:0;padding:0;min-height:44px;display:inline-flex;align-items:center;color:var(--accent);text-decoration:underline;cursor:pointer;font-weight:500}
.sync{font-size:11px;color:var(--muted);white-space:nowrap}
.sync.bad{color:var(--warn)}
.spin{width:36px;height:36px;border-radius:50%;border:3px solid var(--line2);border-top-color:var(--accent);animation:spin .9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.doc{max-width:720px;margin:0 auto;padding:28px clamp(16px,4vw,40px) 64px;display:flex;flex-direction:column;gap:14px}
.doc h1{font-size:28px}
.doc h2{font-size:19px;margin-top:14px}
.doc p,.doc li{color:#C9D3C8;max-width:68ch}
.doc ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}
.todo{border:1px dashed var(--warn);border-radius:14px;padding:14px 16px;color:var(--warn);background:#1E1708}
mark{background:#3A2A10;color:var(--warn);padding:0 4px;border-radius:4px}
input,select,textarea{font:inherit;color:var(--text);background:var(--inset);border:1px solid var(--line2);border-radius:10px;padding:10px 12px;min-height:44px;width:100%;min-width:0}
textarea{min-height:88px;font-family:var(--mono);font-size:12px;resize:vertical}
input[type=checkbox]{width:22px;height:22px;min-height:0;padding:0;accent-color:var(--accent);flex:none}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field label{font-size:14px;font-weight:500}
.field small{color:var(--muted);font-size:13px;line-height:1.4}
.fields{display:grid;gap:14px}
@media (min-width:520px){.fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}}
.check{display:flex;align-items:center;gap:12px;min-height:44px;font-size:15px;cursor:pointer}
.err{color:#FFA3A3;font-size:14px}
.okmsg{color:var(--accent);font-size:14px}

/* Kopf */
.top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand .sub{font-size:12px;color:var(--muted)}
.tools{display:flex;align-items:center;gap:8px}
.seg{display:inline-flex;border:1px solid var(--line2);border-radius:12px;overflow:hidden}
.seg button{min-width:48px;min-height:44px;border:0;background:transparent;cursor:pointer;font-family:var(--mono);font-size:13px;font-weight:700;color:var(--muted)}
.seg button[aria-pressed=true]{background:var(--accent);color:#0B0F0C}
.demo{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;padding:14px 18px;border-radius:16px;border:1px dashed var(--accent);background:#141C10}
.demo div{display:flex;flex-direction:column;gap:2px;flex:1 1 260px;min-width:0}
.demo span{font-size:14px;color:#C9D3C8}

/* Bluete-Kopf */
.hero{position:relative;overflow:hidden;isolation:isolate;display:flex;flex-wrap:wrap;gap:22px 44px;align-items:flex-end;padding:clamp(20px,3vw,30px)}
.hero>*{position:relative;z-index:1}
.hero::before{content:"";position:absolute;z-index:0;left:50%;top:-65%;width:130%;height:150%;transform:translateX(-50%);background:radial-gradient(ellipse at 50% 0%,rgba(255,95,210,.16),rgba(184,243,90,.07) 38%,transparent 62%);animation:lamp 7s ease-in-out infinite;pointer-events:none}
.hero-top{flex:1 1 340px;min-width:0;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px}
.hero-txt{flex:1 1 0;display:flex;flex-direction:column;gap:10px;min-width:0}
.day{white-space:nowrap;font-size:clamp(44px,12vw,100px);font-weight:700;line-height:.9;letter-spacing:-.035em;text-shadow:0 0 28px rgba(184,243,90,.2)}
.pillrow{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.pill{font-family:var(--mono);font-size:13px;font-weight:700;text-transform:uppercase;padding:7px 12px;border-radius:999px;background:var(--accent);color:#0B0F0C}
.ring{position:relative;width:84px;height:84px;flex:none}
.ring b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-size:17px}
.hero-weeks{flex:999 1 400px;min-width:0;display:flex;flex-direction:column;gap:10px}
.bars{display:grid;gap:6px;align-items:end}
.bars div{display:flex;flex-direction:column;gap:8px}
.bars i{display:block;height:16px;margin-top:12px;border-radius:5px;background:var(--line)}
.bars .done i{background:var(--accent)}
.bars .cur i{height:28px;margin-top:0;background:var(--now)}
.bars span{font-family:var(--mono);font-size:12px;text-align:center;color:#7C8A7E}
.bars .done span{color:var(--muted)}
.bars .cur span{color:#fff;font-weight:700}
.split{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px}
.veg-hint{flex:999 1 400px;min-width:0;display:flex;flex-direction:column;gap:12px;align-items:flex-start}

/* Status */
.status{display:flex;align-items:center;gap:14px;padding:14px 18px}
.status .s-head{font-size:16px;font-weight:700}
.status .s-hint{font-size:14px;color:#C9D3C8;line-height:1.4}
.status.ok{--c:var(--accent)}
.status.hi{--c:var(--warn);border-color:#5A4318}
.status.lo{--c:var(--cool);border-color:#1D4A5E}
.status.none{--c:var(--muted)}
.status .s-head{color:var(--c)}
.dot{position:relative;width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.dot.big{width:12px;height:12px;color:var(--c)}
.dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:inherit;animation:ping 2.4s ease-out infinite}

/* Heute */
.task{width:100%;min-height:52px;display:flex;align-items:center;gap:12px;text-align:left;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--inset);cursor:pointer;transition:background .2s ease,border-color .2s ease}
.task:hover{border-color:var(--line2)}
.task .box{width:24px;height:24px;border-radius:8px;border:2px solid #5C6B5E;display:flex;align-items:center;justify-content:center;flex:none}
.task .box svg{opacity:0}
.task .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.task .tt{font-size:15px;line-height:1.35}
.task.on{background:#141C12;border-color:#3C5A2A}
.task.on .box{background:var(--accent);border-color:var(--accent)}
.task.on .box svg{opacity:1}
.task.on .tt{color:var(--muted);text-decoration:line-through}
.tag-cut{color:#FF8FE2}.tag-feed{color:var(--warn)}.tag-light{color:#F4E04D}.tag-harvest{color:var(--cool)}.tag-phase{color:var(--accent)}
.prog{height:6px;border-radius:3px;background:#1D261F;overflow:hidden}
.prog i{display:block;height:6px;border-radius:3px;background:var(--accent);transition:width .4s ease}
.soon{display:flex;gap:12px;align-items:baseline;font-size:14px;line-height:1.4}
.soon .mono{width:84px;flex:none;font-size:12px;color:var(--muted)}

/* Klima */
.clim-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:12px;align-items:end;margin-bottom:6px}
.gauges{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:24px 28px;margin-top:18px}
.gauge{display:flex;flex-direction:column;gap:12px;min-width:0}
.g-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.g-name{font-size:14px;color:var(--muted)}
.chip{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:999px;font-family:var(--mono);font-size:11px;font-weight:700;letter-spacing:.06em;white-space:nowrap}
.chip.ok{background:#1F2C14;color:var(--accent)}
.chip.hi{background:#3A2A10;color:var(--warn)}
.chip.lo{background:#10293A;color:var(--cool)}
.chip.none{background:#1D261F;color:var(--muted)}
.chip.none .dot::after{animation:none}
.g-val{font-size:32px;font-weight:700;line-height:1}
.g-val span{font-size:16px;font-weight:500;color:var(--muted)}
.g-val.hi{color:var(--warn)}.g-val.lo{color:var(--cool)}
.track{position:relative;height:12px;border-radius:6px;background:linear-gradient(90deg,#141B16,#1F2A22);box-shadow:inset 0 1px 2px rgba(0,0,0,.7)}
.zone{position:absolute;top:0;bottom:0;border-radius:6px;background:#4C7F2C}
.marker{position:absolute;top:-5px;width:4px;height:22px;margin-left:-2px;border-radius:2px;background:#fff;box-shadow:0 0 0 3px var(--panel)}
.g-scale{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}
.g-scale .tg{color:var(--accent)}

/* Mischen, Pflanzen, Plan */
.mx-h,.mx{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.mx-h{font-size:11px;color:var(--muted)}
.mx{font-size:15px;border-top:1px solid var(--line);padding-top:11px}
.mx-h span:first-child,.mx span:first-child{flex:1;min-width:0}
.mx-h span:nth-child(2),.mx span:nth-child(2){width:72px;text-align:right}
.mx-h span:nth-child(3),.mx span:nth-child(3){width:64px;text-align:right}
.mx .a{color:var(--warn);font-weight:700}
.mx .m{color:var(--muted)}
.plants{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:10px}
.plant{display:flex;gap:14px;align-items:center}
.plant .ico{width:52px;height:52px;border-radius:14px;background:#1A2414;display:flex;align-items:center;justify-content:center;flex:none}
.plant .nm{font-weight:700;overflow-wrap:anywhere}
.scroll{overflow-x:auto}
table{width:100%;min-width:560px;border-collapse:collapse;font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:13px;text-align:center}
th,td{padding:9px 8px}
thead th{color:var(--muted);font-weight:500}
tbody tr{border-top:1px solid var(--line)}
tbody th{text-align:left;font-weight:500;position:sticky;left:0;background:#131913}
thead th:first-child{text-align:left;position:sticky;left:0;background:#131913}
.cur{background:#22331A;color:var(--accent)}
tbody td.cur{color:var(--text)}
.ec th,.ec td{color:var(--warn);font-weight:700}
details{border-top:1px solid var(--line);padding:4px 0}
details:first-of-type{border-top:0}
summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700}
details p{color:#C9D3C8;font-size:15px;line-height:1.5;padding:0 0 12px;max-width:65ch}
footer{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);padding:4px 2px;max-width:75ch}
footer nav{display:flex;gap:18px}
footer nav a{min-height:44px;display:inline-flex;align-items:center}

/* Dialog */
.overlay{position:fixed;inset:0;z-index:50;background:rgba(5,8,6,.78);display:flex;align-items:flex-end;justify-content:center}
.sheet{width:min(640px,100%);max-height:94%;display:flex;flex-direction:column;background:#121812;border:1px solid var(--line2);border-radius:20px 20px 0 0}
@media (min-width:700px){.overlay{align-items:center;padding:24px}.sheet{border-radius:20px;max-height:90%}}
.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}
.sheet-body{overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:26px}
.sheet-foot{display:flex;justify-content:space-between;gap:12px;padding:14px 20px;border-top:1px solid var(--line)}
.grp{display:flex;flex-direction:column;gap:14px}
.grp>h3{color:var(--accent)}
.rowline{display:flex;gap:8px;align-items:flex-end}
.rowline>.field{flex:1}
.prod{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--line);border-radius:12px}
.prod .four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.prod .four label{font-size:11px;color:var(--muted);font-family:var(--mono)}
.opt{width:100%;display:flex;gap:12px;align-items:flex-start;text-align:left;padding:14px;border-radius:14px;border:1px solid var(--line2);background:var(--inset);cursor:pointer}
.opt .rad{width:20px;height:20px;border-radius:50%;border:2px solid #5C6B5E;flex:none;margin-top:2px}
.opt[aria-pressed=true]{border-color:var(--accent);background:#162012}
.opt[aria-pressed=true] .rad{border-color:var(--accent);background:radial-gradient(circle,var(--accent) 45%,transparent 50%)}
.opt b{display:block}
.opt span span{display:block;font-size:14px;color:#C9D3C8}
.stepper{display:flex;align-items:center;gap:12px}
.stepper b{font-family:var(--mono);font-size:28px;min-width:44px;text-align:center}
.steps{display:flex;gap:6px}
.steps i{width:28px;height:4px;border-radius:2px;background:var(--line2)}
.steps i.on{background:var(--accent)}
.wz-lead{font-size:16px;color:#C9D3C8;max-width:52ch}

/* Bewegung: nur beim ersten Laden, danach ruhig */
@keyframes rise{from{opacity:0;transform:translateY(16px)}}
@keyframes lamp{0%,100%{opacity:.55;transform:translateX(-53%)}50%{opacity:1;transform:translateX(-47%)}}
@keyframes ping{0%{transform:scale(.7);opacity:.7}100%{transform:scale(2.4);opacity:0}}
@keyframes slide{from{left:0%}}
@keyframes ringin{from{stroke-dashoffset:226.2}}
@keyframes barin{from{transform:scaleY(0);opacity:0}}
.boot .panel,.boot .demo{animation:rise .6s cubic-bezier(.2,.8,.2,1) backwards}
.boot .panel:nth-of-type(2){animation-delay:.06s}
.boot .panel:nth-of-type(3){animation-delay:.12s}
.boot .cols .panel{animation-delay:.18s}
.boot .marker{animation:slide 1.3s cubic-bezier(.2,.8,.2,1) .4s backwards}
.boot .ring .arc{animation:ringin 1.5s cubic-bezier(.2,.8,.2,1) .3s backwards}
.boot .bars i{transform-origin:50% 100%;animation:barin .6s cubic-bezier(.2,.8,.2,1) backwards;animation-delay:calc(.2s + var(--i)*.06s)}
@media (max-width:520px){.hide-s{display:none}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
