/* Farben und Schrift laut Corporate-Design-Handbuch 1 VJC (Stand 22.11.2026): rechtwinklig, kein Schatten */
@font-face{font-family:"Montserrat";font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/montserrat-latin.woff2) format("woff2")}
:root{
  --rot:#d60000; --rot-dunkel:#8f0000; --text:#404040; --linie:#d4d0d0; --papier:#ededed; --weiss:#fff; --schwarz:#000;
  --ok:#157f4b; --warn:#9a6200; --fehler:#b42318;
  --schrift:"Century Gothic","Montserrat",Arial,sans-serif;
  --h:48px;            /* einheitliche Höhe aller Felder und Knöpfe */
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.45 var(--schrift);background:var(--papier);color:var(--text);border-left:10px solid var(--rot);min-height:100vh;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom)}
a{color:var(--rot-dunkel);text-decoration:none}
:focus-visible{outline:3px solid var(--rot-dunkel);outline-offset:2px}
h1{margin:0 0 6px;font-size:1.5rem;color:#000;line-height:1.2}
h2{margin:0 0 12px;font-size:1.1rem;color:var(--rot-dunkel)}
.lead{margin:0 0 12px}
[hidden]{display:none!important}

header{background:var(--weiss);border-bottom:1px solid var(--linie)}
.kopf{max-width:1000px;margin:0 auto;padding:8px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.marke{display:flex;align-items:center;gap:10px;color:#000;font-weight:700}
.marke img{display:block}
.menue{display:flex;align-items:center;gap:6px}
.menue form{margin:0}
.menue a,.textlink{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;font:600 .95rem var(--schrift);color:var(--text);background:none;border:0;border-bottom:3px solid transparent;cursor:pointer}
.menue a[aria-current=page]{border-bottom-color:var(--rot);color:#000}
.menue a:hover,.textlink:hover{color:var(--rot-dunkel)}

main{flex:1;width:100%;max-width:1000px;margin:0 auto;padding:16px}
main.schmal{max-width:560px}
main.app{max-width:720px;padding-bottom:120px}

/* Formularfelder: alle exakt gleich hoch, Beschriftung über dem Feld */
label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;font-weight:600}
input,select,textarea,button,.knopf{font-family:var(--schrift);font-size:1rem}
input,select{height:var(--h);padding:0 12px;border:2px solid var(--linie);border-radius:0;background:var(--weiss);color:var(--text);width:100%;font-weight:400}
textarea{padding:10px 12px;border:2px solid var(--linie);border-radius:0;width:100%;min-height:72px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--rot-dunkel);outline:none}
.zeile{display:grid;gap:12px;align-items:end;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.zeile.eng{grid-template-columns:1fr auto}
.feld-hinweis{font-size:.8rem;font-weight:400;color:#6b6b6b}

.knopf{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:var(--h);padding:0 18px;border:2px solid var(--rot);background:var(--rot);color:#fff;font-weight:600;border-radius:0;cursor:pointer;text-decoration:none;white-space:nowrap}
.knopf:hover{background:var(--rot-dunkel);border-color:var(--rot-dunkel)}
.knopf.zweit{background:var(--weiss);color:var(--rot-dunkel);border-color:var(--linie)}
.knopf.zweit:hover{border-color:var(--rot-dunkel);background:var(--weiss)}
.knopf.klein{height:40px;padding:0 12px;font-size:.9rem}
.knopf:disabled{opacity:.5;cursor:not-allowed}
.knopf.voll{width:100%}

.karte{background:var(--weiss);border:1px solid var(--linie);padding:14px;margin-bottom:12px}
.karte>h2{margin-top:0}

/* Umschalter (Mitglied / Neuer Kunde, Karte / Bar) */
.umschalter{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;border:2px solid var(--linie);background:var(--weiss)}
.umschalter button{height:44px;border:0;background:var(--weiss);color:var(--text);font-weight:600;cursor:pointer;border-radius:0}
.umschalter button+button{border-left:2px solid var(--linie)}
.umschalter button[aria-pressed=true]{background:var(--rot);color:#fff}

/* Kundensuche */
.treffer{list-style:none;margin:0;padding:0;border:1px solid var(--linie);border-top:0;background:var(--weiss);max-height:260px;overflow:auto}
.treffer button{display:flex;justify-content:space-between;width:100%;min-height:48px;align-items:center;padding:0 12px;border:0;border-bottom:1px solid var(--linie);background:none;text-align:left;cursor:pointer;color:var(--text)}
.treffer button:hover,.treffer button:focus-visible{background:var(--papier)}
.gewaehlt{display:flex;justify-content:space-between;align-items:center;gap:8px;border:2px solid var(--rot);padding:8px 12px;min-height:var(--h);background:var(--weiss)}

/* Produktkacheln und Positionen */
.kacheln{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.kachel{display:flex;flex-direction:column;justify-content:space-between;min-height:76px;padding:8px 10px;border:2px solid var(--linie);border-bottom:4px solid var(--linie);background:var(--weiss);text-align:left;cursor:pointer;color:var(--text);border-radius:0}
.kachel:active,.kachel:hover{border-color:var(--rot-dunkel);border-bottom-color:var(--rot)}
.kachel b{color:#000;line-height:1.2}
.kachel span{font-size:.85rem}
.pos{display:grid;grid-template-columns:1fr auto;gap:8px 12px;padding:10px 0;border-bottom:1px solid var(--linie)}
.pos:last-child{border-bottom:0}
.pos .name{font-weight:600;color:#000}
.pos .ctrl{display:grid;grid-template-columns:auto 84px 24px 110px auto;gap:6px;align-items:center;grid-column:1/-1}
.pos .ctrl input{text-align:right;padding:0 8px}
.pos .ctrl .x{text-align:center}
.pos button.kl{width:var(--h);height:var(--h);border:2px solid var(--linie);background:var(--weiss);font-size:1.3rem;font-weight:600;cursor:pointer;border-radius:0;color:var(--text)}
.pos .summe{font-weight:600;justify-self:end;color:#000;font-variant-numeric:tabular-nums}
.leer{color:#6b6b6b;padding:12px 0}

/* Fußleiste mit Summe */
.fuss{position:fixed;left:0;right:0;bottom:0;background:var(--weiss);border-top:3px solid var(--rot);padding:10px 16px calc(10px + env(safe-area-inset-bottom))}
.fuss .innen{max-width:720px;margin:0 auto;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}
.fuss .gesamt{font-size:1.5rem;font-weight:700;color:#000;font-variant-numeric:tabular-nums}
.fuss small{display:block;color:#6b6b6b;font-weight:400;font-size:.8rem}

/* Hinweise, Marken, Tabellen */
.hinweis{padding:10px 12px;border-left:4px solid var(--rot-dunkel);background:var(--weiss);margin:8px 0}
.hinweis.fehler{border-left-color:var(--fehler);color:var(--fehler)}
.hinweis.ok{border-left-color:var(--ok)}
.status{display:inline-block;padding:2px 8px;font-size:.78rem;font-weight:700;background:var(--papier);color:var(--text)}
.status.ok{background:#e1f2e9;color:var(--ok)}
.status.warn{background:#fbf0d6;color:var(--warn)}
.status.fehler{background:#fbe4e1;color:var(--fehler)}
table{width:100%;border-collapse:collapse;background:var(--weiss)}
th{background:var(--rot-dunkel);color:#fff;font-size:.8rem;text-align:left;padding:8px 10px;font-weight:600}
td{padding:8px 10px;border-bottom:1px solid var(--linie);vertical-align:middle}
td input,td select{height:40px}
.tabelle-scroll{overflow-x:auto}
.leiste{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.meldung{position:fixed;left:50%;transform:translateX(-50%);bottom:100px;max-width:92vw;background:#000;color:#fff;padding:10px 16px;z-index:10}
.meldung.fehler{background:var(--fehler)}
.netz{padding:6px 16px;text-align:center;font-size:.85rem;font-weight:600;background:var(--warn);color:#fff}
.netz.online{background:var(--ok)}
.warteschlange li{display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid var(--linie)}
.warteschlange{list-style:none;margin:0;padding:0}
.google-box{margin:16px 0}

@media (max-width:480px){
  body{border-left-width:6px}
  .kopf{padding:6px 10px}
  .marke span{display:none}
  main{padding:12px 10px}
  .pos .ctrl{grid-template-columns:auto 1fr 20px 1fr auto}
}
@media (prefers-reduced-motion:no-preference){.kachel{transition:border-color .12s}}

.umschalter.tabs{margin-bottom:12px;max-width:520px}
h2.abstand{margin-top:18px}
.abstand-o{margin-top:12px}
.kacheln .leer{grid-column:1/-1}
input[type=checkbox]{width:24px;height:24px;accent-color:var(--rot);margin:0}
td .leiste{margin:0}
@media (max-width:480px){
  .menue{gap:0}
  .menue a,.textlink{padding:0 8px;font-size:.9rem}
  .zeile>.knopf{grid-column:1/-1}
  .zeile{grid-template-columns:1fr 1fr}
}
html,body{max-width:100%;overflow-x:hidden}
tr.gruppe td{background:#f6f3f3;font-weight:600;color:var(--rot-dunkel);border-bottom:2px solid var(--rot)}
td .feld-hinweis{margin-top:4px}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.chips:empty{display:none}
.chips button{height:44px;padding:0 14px;border:2px solid var(--linie);background:var(--weiss);color:var(--text);font-weight:600;cursor:pointer;border-radius:0}
.chips button[aria-pressed=true]{background:var(--rot);border-color:var(--rot);color:#fff}
.kachel-gruppe{grid-column:1/-1;margin-top:6px;font-size:.85rem;font-weight:600;color:var(--rot-dunkel);border-bottom:1px solid var(--linie);padding-bottom:2px}
.kachel-gruppe:first-child{margin-top:0}
#produkte-liste td:nth-child(1) input,#produkte-liste td:nth-child(2) input{min-width:165px}
#produkte-liste td:nth-child(3) input{min-width:260px}
#produkte-liste td:nth-child(4) input{min-width:100px}
.pos .ctrl{justify-content:start}
.pos>.knopf{grid-column:1/-1;justify-self:start}
@media (max-width:480px){.pos .ctrl{justify-content:stretch}}
#produkte-liste td:nth-child(1) input{min-width:110px}
#produkte-liste td:nth-child(2) input,#produkte-liste td:nth-child(3) input,#produkte-liste td:nth-child(5) input{min-width:150px}
#produkte-liste td:nth-child(4) input{min-width:240px}
#produkte-liste td:nth-child(6) input{min-width:95px}
#import-ergebnis{margin-top:12px}
#import-ergebnis ul{margin:8px 0;padding-left:20px}
.kachel .her{font-size:.78rem;color:#6b6b6b;line-height:1.2}
main.breit{max-width:1400px}
#produkte-liste td:nth-child(1) input{min-width:90px}
#produkte-liste td:nth-child(2) input,#produkte-liste td:nth-child(3) input,#produkte-liste td:nth-child(5) input{min-width:120px}
#produkte-liste td:nth-child(4) input{min-width:200px}
#produkte-liste td:nth-child(6) input{min-width:80px}
#produkte-liste td{padding:6px 6px}
#produkte-liste .knopf.klein{padding:0 10px}

/* ===== Tabellenzeilen: alle Felder, Haken und Knöpfe exakt auf einer Linie (Oberkante, gleiche Höhe) ===== */
td{vertical-align:top}
td input:not([type=checkbox]),td select{height:40px}
td .knopf.klein{height:40px}
td input[type=checkbox]{display:block;margin:8px 0}          /* 24 px Haken + 2 × 8 px = 40 px wie die Felder */
td .leiste{flex-wrap:nowrap;margin:0}
td>.feld-hinweis,td .feld-hinweis{margin-top:4px}
td.mitte{vertical-align:middle}
.offline-status{margin:4px 0 12px;font-size:.85rem;padding:8px 12px;border-left:4px solid var(--linie);background:var(--weiss)}
.offline-status.ok{border-left-color:var(--ok);color:var(--ok)}
.offline-status.warn{border-left-color:var(--warn);color:var(--warn)}
#produkte-liste td:nth-child(4){width:34%}
.symbolknopf{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;background:none;border:0;cursor:pointer;color:var(--rot-dunkel)}
.symbolknopf:hover{background:var(--papier)}
.symbolknopf svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hinweis.warn{border-left-color:var(--warn)}
.modus{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:8px 0 12px;padding:8px 12px;background:var(--weiss);border-left:4px solid var(--warn)}
.modus.live{border-left-color:var(--rot)}
.modus p{margin:0}
.status.test{background:#fbf0d6;color:var(--warn)}
.testmail{flex:1 1 100%;width:100%;margin-top:6px}
.testmail label{flex:1}
.testmail-hinweis{flex:1 1 100%;margin:0}
.modus .zeile.eng{grid-template-columns:1fr auto}
@media (max-width:480px){.modus .zeile.eng{grid-template-columns:1fr}}
