/* Schriften lokal gehostet – keine Verbindung zu Google (DSGVO) */
@font-face{font-family:"Poppins";src:url(fonts/poppins-regular.woff) format("woff");font-weight:400;font-display:swap}
@font-face{font-family:"Poppins";src:url(fonts/poppins-medium.woff) format("woff");font-weight:500 600;font-display:swap}
@font-face{font-family:"Poppins";src:url(fonts/poppins-bold.woff) format("woff");font-weight:700 800;font-display:swap}
:root{
  --stage:#E7DFD7; --paper:#FFFFFF; --sunk:#F4EFEA; --line:#E6DDD5;
  --ink:#2A2320; --muted:#7A6D63; --red:#E74141; --red-ink:#C42F2F; --red-soft:#FCE7E5;
  --ok:#2F8A4E; --warn:#C98A12; --low:#8E857E; --no:#D23C3C;
  --ok-soft:#E3F2E7; --warn-soft:#FBF0D9; --low-soft:#EEEBE8; --no-soft:#FBE4E3;
  --display:"Poppins",ui-rounded,"Segoe UI",system-ui,sans-serif;
  --body:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%}
body{margin:0;background:var(--stage);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.4;display:flex;flex-direction:column;overflow:hidden}
img{max-width:100%}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.num{font-variant-numeric:tabular-nums}
h1,h2,h3{font-family:var(--display);margin:0;letter-spacing:-.01em;text-wrap:balance}

/* ---------- Werkzeugleiste ---------- */
.bar{flex:none;background:var(--paper);border-bottom:1px solid var(--line);padding-top:env(safe-area-inset-top,0px);z-index:10}
.bar-in{display:flex;align-items:center;gap:12px;padding:8px max(16px,env(safe-area-inset-right,0px)) 8px max(16px,env(safe-area-inset-left,0px))}
.brand{display:flex;align-items:center;gap:10px;min-width:0;margin-right:auto}
.brand img{width:40px;height:40px;flex:none}
.brand b{font-family:var(--display);font-size:16px;display:block;line-height:1.1}
.brand small{color:var(--muted);font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pager{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px}
.pager input[type=range]{width:180px;accent-color:var(--red)}
.tbtn{border:1px solid var(--line);background:var(--paper);border-radius:999px;padding:8px 14px;font-weight:700;font-size:14px;display:flex;align-items:center;gap:7px;white-space:nowrap}
.tbtn:hover{border-color:var(--ink)}
.tbtn.cart{background:var(--red);border-color:var(--red);color:#fff}
.tbtn.cart:hover{background:var(--red-ink)}
.cnt{background:#fff;color:var(--red-ink);border-radius:10px;min-width:20px;height:20px;padding:0 6px;font-size:12px;display:inline-grid;place-items:center}
@media (max-width:899px){.pager{display:none}.tbtn .lbl{display:none}.brand small{max-width:44vw}}

/* ---------- Bühne & Seiten ---------- */
.stage{flex:1;position:relative;display:flex;align-items:center;justify-content:center;min-height:0;padding:18px 70px}
.spread{display:flex;filter:drop-shadow(0 10px 24px rgba(60,40,30,.18));transition:opacity .18s ease,transform .18s ease}
.spread.turn-l{opacity:0;transform:translateX(-24px)}
.spread.turn-r{opacity:0;transform:translateX(24px)}
.page{width:var(--pw);height:var(--ph);font-size:var(--fs);background:var(--paper);position:relative;overflow:hidden;display:flex;flex-direction:column}
.page.left{border-radius:6px 0 0 6px}
.page.right{border-radius:0 6px 6px 0}
.page.single{border-radius:6px}
.page.left::after{content:"";position:absolute;inset:0 0 0 auto;width:3.5em;background:linear-gradient(to left,rgba(0,0,0,.09),transparent);pointer-events:none}
.page.right::before{content:"";position:absolute;inset:0 auto 0 0;width:3.5em;background:linear-gradient(to right,rgba(0,0,0,.11),transparent);pointer-events:none;z-index:1}
.page.blank{background:transparent;box-shadow:none}
.page.blank::after,.page.blank::before{display:none}
.nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:0;background:var(--paper);box-shadow:0 2px 10px rgba(0,0,0,.12);display:grid;place-items:center;z-index:5}
.nav:hover{background:var(--ink);color:#fff}
.nav:disabled{opacity:.3;cursor:default;background:var(--paper);color:var(--ink)}
.nav.prev{left:12px}.nav.next{right:12px}

/* Kopf/Fuß der Produktseiten */
.ph{display:flex;justify-content:space-between;align-items:flex-end;gap:1em;padding:1.6em 2em .7em;border-bottom:1px solid var(--line);flex:none}
.ph .chap{font-family:var(--display);font-weight:700;font-size:1.15em;line-height:1.1}
.ph .worlds{font-family:var(--display);font-weight:500;font-size:.72em;letter-spacing:.08em;text-transform:uppercase;color:var(--red-ink);text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60%}
.pf{display:flex;justify-content:space-between;padding:.6em 2em 1.1em;font-size:.7em;color:var(--muted);flex:none;margin-top:auto}

/* Produktkacheln */
.tiles{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);gap:.8em;padding:1em 1.6em .4em;flex:1;min-height:0}
.tile{border:1px solid var(--line);border-radius:.7em;padding:.7em;display:grid;grid-template-columns:8.4em minmax(0,1fr);grid-template-rows:auto 1fr auto;column-gap:.8em;row-gap:.5em;min-width:0;min-height:0;position:relative;transition:border-color .15s}
.tile.on{border-color:var(--red);box-shadow:0 0 0 1px var(--red) inset}
.tile.hl{animation:hl 1.6s ease}
@keyframes hl{0%,40%{background:var(--red-soft)}100%{background:transparent}}
.tile .pic{grid-row:1/3;width:8.4em;height:8.4em;display:grid;place-items:center;background:#fff;border-radius:.5em;overflow:hidden}
.tile .pic img{max-width:100%;max-height:100%;object-fit:contain}
.tile .nopic{color:var(--muted);font-size:.7em;text-align:center}
.tile .txt{min-width:0;display:flex;flex-direction:column;gap:.2em}
.tile .ser{font-family:var(--display);font-weight:500;font-size:.66em;letter-spacing:.07em;text-transform:uppercase;color:var(--red-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile .nm{font-weight:700;font-size:.92em;line-height:1.22;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tile .meta{font-size:.72em;color:var(--muted);line-height:1.35}
.tile .meta b{color:var(--ink);font-weight:600}
.tags{display:flex;gap:.3em;flex-wrap:wrap}
.tag{font-family:var(--display);font-size:.6em;font-weight:700;letter-spacing:.06em;padding:.2em .6em;border-radius:1em;background:var(--red);color:#fff}
.tag.fresh{background:var(--ok)}
.tile .av{grid-column:2;align-self:end}
.av{display:flex;gap:.45em;align-items:flex-start;font-size:.72em;font-weight:700;line-height:1.25}
.av i{width:.75em;height:.75em;border-radius:50%;flex:none;margin-top:.22em}
.av small{display:block;font-weight:400;color:var(--muted)}
.av.a1 i{background:var(--ok)}.av.a2 i{background:var(--warn)}.av.a3 i{background:var(--low)}.av.a4 i{background:var(--no)}
.tile .step{grid-column:1/3}
.step{display:flex;align-items:center;border:1px solid var(--line);border-radius:2em;overflow:hidden;background:var(--sunk);height:2.5em}
.step button{border:0;background:transparent;width:2.6em;height:100%;font-size:1.1em;font-weight:700;color:var(--ink);flex:none}
.step button:hover{background:var(--line)}
.step input{flex:1;min-width:0;width:100%;text-align:center;border:0;background:transparent;font-weight:700;font-size:1em;height:100%;-moz-appearance:textfield}
.step input::-webkit-outer-spin-button,.step input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.step .ve{font-size:.68em;color:var(--muted);padding-right:.4em;white-space:nowrap}
.tile.on .step{background:var(--red-soft);border-color:var(--red)}

/* Titel */
.cover{background:var(--red);color:#fff;align-items:center;justify-content:center;text-align:center;gap:1.2em;padding:3em}
.cover .disc{width:19em;height:19em;border-radius:50%;background:#fff;display:grid;place-items:center}
.cover .disc img{width:16em;height:16em}
.cover h1{font-size:2.6em;font-weight:700;line-height:1.05}
.cover p{margin:0;font-size:1.05em;opacity:.95}
.cover .stand{font-family:var(--display);font-weight:500;font-size:.9em;background:rgba(255,255,255,.18);padding:.45em 1em;border-radius:2em}
.cover .go{margin-top:1em;border:0;background:#fff;color:var(--red-ink);font-family:var(--display);font-weight:700;font-size:1em;padding:.8em 1.6em;border-radius:2em}

/* Einleitung / Bestellschein */
.prose{padding:2.6em 2.4em 1em;display:flex;flex-direction:column;gap:1.1em;flex:1;min-height:0}
.prose h2{font-size:1.7em;line-height:1.15}
.prose h3{font-size:1em;margin-top:.4em}
.prose p{margin:0;font-size:.92em;color:var(--ink)}
.steps{display:flex;flex-direction:column;gap:.7em;margin:0;padding:0;list-style:none}
.steps li{display:grid;grid-template-columns:2em 1fr;gap:.7em;align-items:start;font-size:.88em}
.steps li span{width:1.8em;height:1.8em;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-weight:700;font-family:var(--display)}
.steps li b{display:block}
.steps li em{font-style:normal;color:var(--muted)}
.legend{display:grid;grid-template-columns:auto 1fr;gap:.45em 1em;font-size:.85em}
.legend .av{font-size:1em}
.legend .ex{color:var(--muted)}
.toc{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.toc button{display:flex;justify-content:space-between;gap:1em;border:0;border-bottom:1px solid var(--line);background:transparent;padding:.55em 0;text-align:left;font-size:.92em}
.toc button:hover{color:var(--red-ink)}
.toc button b{font-family:var(--display);font-weight:600}
.toc button span{color:var(--muted)}
.bigbtn{border:0;background:var(--red);color:#fff;font-family:var(--display);font-weight:600;font-size:1.05em;border-radius:2em;padding:.85em 1.4em;align-self:flex-start}
.bigbtn:hover{background:var(--red-ink)}
.summary{display:flex;gap:1.6em;font-size:1em;font-weight:700;flex-wrap:wrap}
.summary span{color:var(--muted);font-weight:400}

/* ---------- Mobil: eine Seite, natürliche Höhe ---------- */
@media (max-width:899px){
  body{overflow:auto;height:auto;min-height:100%}
  .stage{padding:12px max(12px,env(safe-area-inset-left,0px)) 84px;align-items:flex-start}
  .spread{filter:drop-shadow(0 6px 14px rgba(60,40,30,.15));width:100%}
  .page{width:100%;height:auto;min-height:70vh;font-size:15px}
  .tiles{grid-template-columns:1fr;grid-template-rows:none;padding:.9em}
  .tile{grid-template-columns:6.5em minmax(0,1fr)}
  .tile .pic{width:6.5em;height:6.5em}
  .nav{position:fixed;top:auto;bottom:calc(14px + env(safe-area-inset-bottom,0px));transform:none}
  .nav.prev{left:max(14px,env(safe-area-inset-left,0px))}.nav.next{right:max(14px,env(safe-area-inset-right,0px))}
  .mpager{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(24px + env(safe-area-inset-bottom,0px));background:var(--paper);border-radius:2em;padding:.4em 1em;font-size:13px;box-shadow:0 2px 10px rgba(0,0,0,.12);z-index:5}
  .cover .disc{width:13em;height:13em}.cover .disc img{width:11em;height:11em}
  .cover{min-height:80vh}
}
@media (min-width:900px){.mpager{display:none}}

/* ---------- Schubladen ---------- */
.scrim{position:fixed;inset:0;background:rgba(30,20,15,.35);z-index:30}
.drawer{position:fixed;top:0;bottom:0;width:min(460px,100%);background:var(--paper);z-index:31;display:flex;flex-direction:column;box-shadow:0 0 40px rgba(0,0,0,.2);padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
.drawer.right{right:0}.drawer.left{left:0}
.dh{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid var(--line);flex:none}
.dh h2{font-size:18px}
.close{border:0;background:var(--sunk);width:36px;height:36px;border-radius:50%;font-size:20px}
.db{overflow:auto;padding:16px 18px 28px;display:flex;flex-direction:column;gap:16px;flex:1}
.search input{width:100%;padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:var(--sunk)}
.hits{display:flex;flex-direction:column}
.hit{display:grid;grid-template-columns:44px 1fr auto;gap:10px;align-items:center;border:0;border-bottom:1px solid var(--line);background:transparent;padding:7px 0;text-align:left}
.hit img{width:44px;height:44px;object-fit:contain}
.hit small{display:block;color:var(--muted)}
.hit .pg{color:var(--muted);font-size:13px}
.navlist{display:flex;flex-direction:column}
.navlist button{display:flex;justify-content:space-between;border:0;border-bottom:1px solid var(--line);background:transparent;padding:9px 0;text-align:left}
.navlist button.ch{font-family:var(--display);font-weight:700;font-size:15px;padding-top:16px}
.navlist button.w{padding-left:12px;font-size:14px}
.navlist button span{color:var(--muted);font-size:13px}
.lines{display:flex;flex-direction:column}
.line{display:grid;grid-template-columns:48px minmax(0,1fr) 30px;grid-template-rows:auto auto;column-gap:10px;row-gap:6px;padding:10px 0;border-bottom:1px solid var(--line);font-size:15px}
.line img{width:48px;height:48px;object-fit:contain;grid-row:1/3}
.line .t{font-weight:700;font-size:14px;line-height:1.3}
.line .s{font-size:12.5px;color:var(--muted)}
.line .step{grid-column:2/3;height:36px;max-width:190px}
.x{border:0;background:transparent;color:var(--muted);font-size:20px;width:30px;height:30px;border-radius:50%;grid-column:3;grid-row:1}
.x:hover{background:var(--sunk);color:var(--no)}
.tot{display:flex;gap:18px;font-weight:700;padding-top:4px;flex-wrap:wrap}
.tot span{color:var(--muted);font-weight:400}
form{display:grid;grid-template-columns:1fr 1fr;gap:10px}
form .full{grid-column:1/-1}
@media (max-width:420px){form{grid-template-columns:1fr}}
label{display:flex;flex-direction:column;gap:4px;font-size:12.5px;font-weight:700;color:var(--muted);min-width:0}
label input,label textarea{border:1px solid var(--line);background:var(--sunk);border-radius:10px;padding:9px 11px;font-weight:400;font-size:15px;color:var(--ink);width:100%}
label textarea{min-height:64px;resize:vertical}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.check{flex-direction:row;align-items:flex-start;gap:8px;font-weight:400;color:var(--ink);font-size:13.5px}
.check input{width:18px;height:18px;margin-top:1px;flex:none}
.check a{color:inherit}
.primary{border:0;background:var(--red);color:#fff;font-family:var(--display);font-weight:600;font-size:16px;border-radius:999px;padding:13px 22px;width:100%}
.primary:hover{background:var(--red-ink)}
.primary:disabled{opacity:.5;cursor:default}
.note{font-size:13px;color:var(--muted);margin:0}
.msg{border-radius:12px;padding:14px 16px;font-size:14px;line-height:1.45}
.msg.ok{background:var(--ok-soft)}.msg.err{background:var(--no-soft)}
.msg b{display:block;font-family:var(--display);font-size:16px;margin-bottom:2px}
#err:empty{display:none}
.sec{font-family:var(--display);font-size:16px;margin:10px 0 10px}
.toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 18px;border-radius:999px;font-weight:700;font-size:14px;z-index:40;max-width:calc(100% - 32px)}
.foot-links{display:flex;gap:14px;font-size:12px;color:var(--muted)}
.foot-links a{color:inherit}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---------- Anmeldung ---------- */
.auth{position:fixed;inset:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:var(--paper);overflow:auto;z-index:20}
.auth-brand{background:var(--red);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:40px;text-align:center}
.auth-brand .disc{width:220px;height:220px;border-radius:50%;background:#fff;display:grid;place-items:center}
.auth-brand .disc img{width:190px;height:190px}
.auth-brand h1{font-size:34px;line-height:1.1}
.auth-brand p{margin:0;opacity:.92;font-size:16px;max-width:30ch}
.auth-main{display:flex;flex-direction:column;justify-content:center;padding:40px max(24px,env(safe-area-inset-right,0px)) 40px max(24px,env(safe-area-inset-left,0px));position:relative}
.auth-box{width:100%;max-width:380px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.auth-box h2{font-size:26px}
.auth-box p{margin:0;color:var(--muted);font-size:14.5px}
.auth-box label input{font-size:16px;padding:12px 13px}
.linkbtn{border:0;background:transparent;color:var(--red-ink);font-weight:700;padding:4px 0;align-self:flex-start;font-size:14px}
.auth-lang{position:absolute;top:calc(16px + env(safe-area-inset-top,0px));right:max(16px,env(safe-area-inset-right,0px))}
.langsel{border:1px solid var(--line);background:var(--paper);border-radius:999px;padding:7px 10px;font-weight:700;font-size:13px}
.auth-foot{font-size:12.5px;color:var(--muted);text-align:center;margin-top:8px}
.auth-foot a{color:inherit}
@media (max-width:760px){
  .auth{grid-template-columns:1fr;grid-template-rows:auto 1fr}
  .auth-brand{padding:calc(28px + env(safe-area-inset-top,0px)) 20px 26px;gap:12px;flex-direction:row;justify-content:flex-start;text-align:left}
  .auth-brand .disc{width:72px;height:72px;flex:none}.auth-brand .disc img{width:62px;height:62px}
  .auth-brand h1{font-size:22px}.auth-brand p{font-size:13.5px}
  .auth-main{justify-content:flex-start;padding-top:28px}
  .auth-lang{top:auto;bottom:calc(16px + env(safe-area-inset-bottom,0px));right:50%;transform:translateX(50%)}
}

/* ---------- Konto-Menü ---------- */
.menu-wrap{position:relative}
.menu{position:absolute;right:0;top:calc(100% + 8px);background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.14);min-width:250px;padding:8px;z-index:25;display:flex;flex-direction:column}
.menu .who{padding:8px 10px 10px;border-bottom:1px solid var(--line);margin-bottom:6px;font-size:13px;color:var(--muted)}
.menu .who b{display:block;color:var(--ink);font-size:14.5px}
.menu button,.menu label.mrow{border:0;background:transparent;text-align:left;padding:10px;border-radius:9px;font-size:14.5px;font-weight:600;display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--ink)}
.menu button:hover{background:var(--sunk)}
.menu select{font-size:14px}
.avatar{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:var(--sunk);font-weight:700;font-family:var(--display);font-size:14px}
.cust{background:var(--sunk);border-radius:12px;padding:12px 14px;font-size:14px}
.cust b{display:block}
.cust span{color:var(--muted);font-size:13px}
.ord{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.ord summary{list-style:none;cursor:pointer;padding:12px 14px;display:flex;justify-content:space-between;gap:10px;font-size:14px}
.ord summary::-webkit-details-marker{display:none}
.ord summary b{font-family:var(--display)}
.ord summary span{color:var(--muted)}
.ord .ol{padding:0 14px 12px;font-size:13.5px;display:flex;flex-direction:column;gap:3px}
.ord .ol div{display:grid;grid-template-columns:44px 64px 1fr;gap:6px}
.ord .again{margin:0 14px 12px;border:1px solid var(--line);background:var(--paper);border-radius:999px;padding:8px 14px;font-weight:700;font-size:13.5px}
.install-hint{font-size:13px;color:var(--muted);background:var(--sunk);border-radius:12px;padding:10px 12px}
.loading{display:grid;place-items:center;height:100%;color:var(--muted)}
