/* ===== VBS Design: Gelb #fff900, Schwarz, Poppins ===== */
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-Bold.ttf') format('truetype'); font-weight: 600 800; font-display: swap; }

:root {
  --y: #fff900; --y-soft: #fffde0; --ink: #111; --ink-2: #2b2b24; --muted: #5d5d52; --line: #e6e3b8;
  --paper: #fff; --bg: #fafaf2; --ok: #137a3d; --warn: #a15c00; --bad: #b3261e;
  --r: 20px; --r-sm: 12px; --shadow: 0 6px 24px rgba(17, 17, 17, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 'Poppins', system-ui, sans-serif; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .4em; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 40ch; }
.lead.dark { color: var(--ink-2); }
.link { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .7em 1.3em; border-radius: 999px; background: var(--ink); color: #fff; font: 600 .95rem 'Poppins', sans-serif; text-decoration: none; border: 2px solid var(--ink); cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; min-height: 44px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(17, 17, 17, .15); }
.btn:active { transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--y); }
.btn.big { padding: .9em 1.7em; font-size: 1.05rem; }
.btn.sm { padding: .35em .9em; min-height: 36px; font-size: .85rem; }
.btn.full { width: 100%; }
.btn.off { background: #ddd; border-color: #ddd; color: #666; cursor: default; pointer-events: none; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; }
.linkbtn { background: none; border: 0; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; color: inherit; padding: 0; }

/* ----- Header ----- */
.top { position: sticky; top: 0; z-index: 50; background: var(--y); border-bottom: 2px solid var(--ink); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { display: block; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font-size: 1.5rem; font-weight: 800; font-style: italic; letter-spacing: -.02em; }
.brand small { font-size: .7rem; font-weight: 500; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; padding: .5em .8em; border-radius: 999px; font-size: .95rem; }
.nav a:hover { background: rgba(17, 17, 17, .08); }
.nav a.on { background: var(--ink); color: var(--y); }
.bar-r { display: flex; align-items: center; gap: 10px; }
.social { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.social:hover { background: rgba(17, 17, 17, .1); }
.burger { display: none; width: 44px; height: 44px; border: 2px solid var(--ink); background: transparent; border-radius: 12px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: var(--ink); }
@media (max-width: 960px) {
  .burger { display: flex; } .bar-r .btn { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--y); flex-direction: column; padding: 8px 16px 18px; border-bottom: 2px solid var(--ink); }
  .nav.open { display: flex; } .nav a { padding: .8em 1em; font-size: 1.05rem; }
}

/* ----- Hero ----- */
.hero { background: var(--y) url('/img/muster.jpg') center/cover; border-bottom: 2px solid var(--ink); }
.hero-in { padding: clamp(40px, 8vw, 96px) 0 clamp(44px, 8vw, 100px); }
.hero-logo { width: clamp(90px, 14vw, 150px); height: auto; margin-bottom: 18px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .15)); }
.hero h1 { max-width: 16ch; margin-bottom: .45em; }
.hero .lead { margin-bottom: 1.6em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.page-head { background: var(--y) url('/img/muster.jpg') center/cover; border-bottom: 2px solid var(--ink); padding: clamp(32px, 6vw, 64px) 0 clamp(24px, 4vw, 40px); }
.page-head h1 { margin-bottom: .2em; } .page-head .lead { margin: 0; }
.page-head.ok { background-image: none; }

/* ----- Sections ----- */
.sec { padding: clamp(36px, 6vw, 72px) 0; }
.sec.alt { background: var(--y-soft); border-block: 2px solid var(--ink); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .two.start { align-items: start; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.tile { display: block; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: 28px; text-decoration: none; box-shadow: 6px 6px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.tile:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ink); }
.tile-ic { font-size: 2rem; display: block; margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.facts b { display: block; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.1; }
.facts span { font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }

/* ----- Termine ----- */
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { font: 500 .9rem 'Poppins', sans-serif; padding: .45em 1em; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; min-height: 40px; }
.chip.on { background: var(--ink); color: var(--y); }
.month { margin-bottom: 40px; }
.month-h { display: inline-block; background: var(--y); border: 2px solid var(--ink); border-radius: 999px; padding: .15em .8em; font-size: clamp(1.2rem, 3vw, 1.7rem); margin-bottom: 18px; }
.week { margin-bottom: 18px; } .week-h { font-size: .85rem; color: var(--muted); margin-bottom: 8px; } .week-h b { color: var(--ink); }
.ev-list { display: grid; gap: 14px; }
.ev { display: grid; grid-template-columns: 92px 1fr auto; gap: 20px; align-items: center; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: 16px 20px 16px 16px; box-shadow: var(--shadow); }
.ev[hidden] { display: none; }
.ev-date { background: var(--y); border: 2px solid var(--ink); border-radius: 16px; text-align: center; padding: 8px 4px; line-height: 1; }
.ev-date .wd { display: block; font-size: .8rem; font-weight: 600; text-transform: uppercase; }
.ev-date .d { display: block; font-size: 2.2rem; font-weight: 800; margin: 2px 0; }
.ev-date .m { display: block; font-size: .85rem; font-weight: 600; text-transform: uppercase; }
.ev-main h3 { margin: 0 0 2px; font-size: 1.25rem; } .ev-main p { margin: 0 0 8px; } .ev-main .eyebrow { margin-bottom: 4px; }
.ev-act { display: flex; flex-direction: column; gap: 8px; min-width: 180px; }
.chips { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: var(--ink); color: #fff; border-radius: 999px; padding: .15em .8em; font-size: .82rem; } .chips b { color: var(--y); }
.badge { display: inline-block; background: var(--y-soft); border: 1px solid var(--ink); border-radius: 999px; padding: .15em .8em; font-size: .78rem; font-weight: 500; margin: 0 0 6px; }
.note { font-size: .85rem; }
@media (max-width: 760px) {
  .ev { grid-template-columns: 70px 1fr; gap: 14px; padding: 14px; } .ev-act { grid-column: 1 / -1; flex-direction: row; min-width: 0; } .ev-act .btn { flex: 1; }
  .ev-date .d { font-size: 1.7rem; } .ev-date { align-self: start; } .ev-act .btn { padding-inline: .6em; font-size: .88rem; }
}

/* ----- Preise / Standorte / Karten ----- */
.card { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin-bottom: 28px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { padding: .55em .4em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl td { text-align: right; font-weight: 600; } .tbl.wide td { text-align: left; font-weight: 400; }
.tbl .sub th { padding-top: 1em; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.tbl .tot th, .tbl .tot td { font-size: 1.1rem; font-weight: 800; border-top: 2px solid var(--ink); }
.tbl.wide th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tablewrap { overflow-x: auto; }
.info-box { background: var(--y-soft); border: 2px solid var(--ink); border-radius: var(--r); padding: 22px 24px; margin: 24px 0; }
.info-box h3 { margin-bottom: .4em; } .info-box p:last-child { margin: 0; }
.loc-list { display: grid; gap: 22px; }
.loc { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.loc h2 { font-size: 1.5rem; } .loc-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.loc-plan img { width: 100%; border-radius: var(--r-sm); border: 2px solid var(--ink); display: block; }
.plan-ph { min-height: 200px; height: 100%; border: 2px dashed var(--ink); border-radius: var(--r-sm); display: grid; place-content: center; text-align: center; padding: 20px; background: var(--y-soft); } .plan-ph span { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .loc { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: 18px 20px 6px 76px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 42px; height: 42px; border-radius: 50%; background: var(--y); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; }
.prose p { max-width: 65ch; }

/* ----- Buchungsformular ----- */
.book { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .book { grid-template-columns: 1fr; } }
fieldset.step { border: 2px solid var(--ink); border-radius: var(--r); padding: 22px; margin: 0 0 18px; background: var(--paper); }
fieldset.step legend { font-weight: 700; font-size: 1.15rem; padding: 0 10px; display: flex; align-items: center; gap: 10px; }
.n { width: 32px; height: 32px; border-radius: 50%; background: var(--y); border: 2px solid var(--ink); display: inline-grid; place-items: center; font-size: .95rem; }
.pick { display: grid; gap: 10px; margin-bottom: 16px; max-height: 420px; overflow: auto; padding: 2px; }
.pick.three { grid-template-columns: repeat(3, 1fr); max-height: none; } .pick.four { grid-template-columns: 1fr 1fr; max-height: none; } .pick.two { grid-template-columns: 1fr 1fr; max-height: none; }
@media (max-width: 760px) { .pick.three, .pick.two, .pick.four { grid-template-columns: 1fr; } }
.mixbox { background: var(--y-soft, #fff8d6); border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 14px 16px; }
.mixbox input[type=range] { width: 100%; accent-color: var(--ink); height: 32px; margin: 6px 0; }
.mix-split { display: flex; justify-content: space-between; gap: 12px; font-size: 1.05rem; }
.opt { display: block; position: relative; cursor: pointer; }
.opt[hidden] { display: none; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt > span { display: block; border: 2px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: var(--paper); transition: border-color .1s, background .1s; }
.opt small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; margin-top: 2px; }
.opt:hover > span { border-color: var(--ink); }
.opt input:checked + span { border-color: var(--ink); background: var(--y); box-shadow: 3px 3px 0 var(--ink); } .opt input:checked + span small { color: var(--ink); }
.opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.opt.disabled { opacity: .5; cursor: not-allowed; } .opt.disabled input { cursor: not-allowed; }
.field { margin-bottom: 14px; } .field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
input, select { font: 400 1rem 'Poppins', sans-serif; padding: .65em .9em; border: 2px solid var(--ink); border-radius: var(--r-sm); background: #fff; width: 100%; min-height: 46px; color: var(--ink); }
input:focus, select:focus { outline: 3px solid var(--y); outline-offset: 0; box-shadow: 0 0 0 2px var(--ink); }
input.bad { border-color: var(--bad); background: #fff3f2; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; } .span2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.stepper { display: flex; align-items: center; gap: 8px; } .stepper input { width: 110px; text-align: center; font-weight: 700; font-size: 1.15rem; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: var(--y); font-size: 1.4rem; font-weight: 700; cursor: pointer; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; cursor: pointer; } .check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; accent-color: #111; flex: none; }
.sum { position: sticky; top: 88px; }
.sum-in { background: var(--y); border: 2px solid var(--ink); border-radius: var(--r); padding: 22px; box-shadow: 6px 6px 0 var(--ink); }
.sum-ev { font-weight: 600; margin-bottom: 10px; } #sumLines { margin: 0 0 12px; } #sumLines div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(17, 17, 17, .35); font-size: .92rem; } #sumLines dt, #sumLines dd { margin: 0; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; margin-bottom: 8px; } .sum-total b { font-size: 1.9rem; font-weight: 800; }
@media (max-width: 960px) { .sum { position: static; } }
.alert { border: 2px solid var(--bad); background: #fff3f2; border-radius: var(--r-sm); padding: 14px 18px; margin-bottom: 18px; } .alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert.ok { border-color: var(--ok); background: #effaf3; } .alert.test { border-color: var(--warn); background: #fff7e6; }
.pill { display: inline-block; border-radius: 999px; padding: .05em .7em; font-size: .78rem; font-weight: 600; background: #eee; } .pill.ok { background: #d9f5e3; color: var(--ok); } .pill.warn { background: #ffe9c7; color: var(--warn); }

/* ----- Footer ----- */
.foot { background: var(--ink); color: #fff; padding: 48px 0 24px; }
.foot a { color: var(--y); text-decoration: none; } .foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; } .foot-h { color: var(--y); display: block; margin-bottom: 8px; }
.foot p { font-size: .92rem; margin: 0; } .copy { border-top: 1px solid #333; margin-top: 28px !important; padding-top: 16px; color: #aaa; font-size: .8rem !important; }
.socials { display: flex; gap: 6px; margin-top: 10px; } .socials .social { color: var(--y); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ----- Interner Bereich ----- */
.admin { background: var(--bg); }
.adminbar { background: var(--ink); } .adminbar nav { display: flex; gap: 20px; align-items: center; padding: 10px 0; flex-wrap: wrap; } .adminbar a, .adminbar .linkbtn { color: #fff; font-weight: 500; text-decoration: none; padding: .2em 0; border-bottom: 2px solid transparent; } .adminbar a.on { color: var(--y); border-color: var(--y); } .adminbar form { margin-left: auto; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 24px; } .kpis div { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 12px 16px; } .kpis b { display: block; font-size: 1.5rem; font-weight: 800; } .kpis span { font-size: .8rem; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; } .toolbar form { margin: 0; }
.search { max-width: 460px; margin-bottom: 14px; }
.brows { display: grid; gap: 8px; }
.brow { display: grid; grid-template-columns: 2.2fr 1fr 1.4fr 1.2fr auto; gap: 14px; align-items: center; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 10px 14px; }
.brow.dead { opacity: .5; } .brow[hidden] { display: none; } .brow small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; } .brow .wish { color: var(--warn); }
.b-no { display: flex; gap: 6px; } .b-no input { min-height: 40px; width: 84px; text-align: center; font-weight: 700; } .b-act { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 960px) { .brow { grid-template-columns: 1fr 1fr; } }
.daylist .dl td, .daylist .dl th { padding: .7em .6em; font-size: 1.05rem; } .daylist .no { font-size: 1.6rem; font-weight: 800; width: 80px; } .daylist tr[hidden] { display: none; } .daylist .wish { color: var(--warn); }
.daylist .search { max-width: none; font-size: 1.2rem; min-height: 56px; }
@media print { .top, .foot, .noprint, .adminbar, .skip { display: none !important; } body { background: #fff; } .daylist .dl td { font-size: 11pt; } }

/* ----- Rechnungen / Live ----- */
textarea { font: 400 .95rem 'Poppins', sans-serif; padding: .65em .9em; border: 2px solid var(--ink); border-radius: var(--r-sm); width: 100%; background: #fff; color: var(--ink); }
code { background: var(--y-soft); padding: .05em .4em; border-radius: 6px; border: 1px solid var(--line); font-size: .9em; }
.pill.bad { background: #ffd9d6; color: var(--bad); }
.acts { white-space: nowrap; } .acts .inl { display: inline; margin: 0 0 0 4px; } .tbl small.muted { font-weight: 400; }
.daylist .dl small { display: block; color: var(--bad); font-size: .75rem; }
a.chip { text-decoration: none; display: inline-flex; align-items: center; }
#toast { position: fixed; right: 16px; bottom: 16px; z-index: 99; display: none; align-items: center; gap: 12px; background: var(--ink); color: var(--y); border-radius: 16px; padding: 14px 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font-weight: 600; max-width: calc(100vw - 32px); }
#toast.on { display: flex; animation: pop .25s ease-out; } #toast .btn { background: var(--y); color: var(--ink); border-color: var(--y); }
@keyframes pop { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.admin .sec h2 { margin-top: 1.8em; }

/* --- Liste / Stammplätze / manuelle Buchung --- */
.b-no input.mini { width: 62px; padding: 8px 6px; text-align: center; } .b-no input.mini.wide { width: 86px; }
.b-no { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
small.stamm { color: #8a6d00; font-weight: 600; display: block; }
tr.chg td { background: #fffbd1; }
.mailprev { white-space: pre-wrap; font-size: .9rem; background: #f6f6f6; padding: 12px; border-radius: 8px; }
details.manual { margin: 0 0 18px; } details.manual summary { cursor: pointer; padding: 4px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }

/* --- Ausgebucht / Abgesagt --- */
.notice { border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; margin: 0 0 10px; font-size: .95rem; }
.notice.soldout { background: #fff7c2; } .notice.cancelled { background: #ffe1e1; border-color: #b00020; }
.ev-cancelled .ev-main h3 { text-decoration: line-through; text-decoration-thickness: 1px; }

/* Popup (Fahrzeug-Hinweis) */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 100; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border: 3px solid var(--ink); border-radius: 20px; padding: 26px; max-width: 460px; }
.modal-box .btn { margin-top: 8px; }

/* Live-Liste (Markttag, iPad) */
.live-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 12px; }
.live-bar .search { flex: 1 1 220px; min-width: 180px; font-size: 1rem; padding: .6rem .8rem; border: 2px solid var(--ink); border-radius: 10px; }
.live-bar .seg { display: flex; gap: 6px; }
.conn { font-size: .85rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; } .conn.ok { background: #d9f5e3; color: var(--ok); } .conn.bad { background: #ffd9d6; color: var(--bad); }
table.live { width: 100%; border-collapse: collapse; } table.live th { position: sticky; top: 0; background: var(--paper); z-index: 1; text-align: left; }
table.live td { padding: 6px 8px; vertical-align: middle; border-bottom: 1px solid #ddd; }
table.live input.li { font-size: 1rem; padding: .55rem .5rem; border: 2px solid #bbb; border-radius: 8px; width: 100%; min-width: 3.2em; background: #fff; }
table.live input.li:focus { border-color: var(--ink); outline: none; } table.live input.li[data-dirty] { border-color: #d98a00; }
table.live input.li.stale { background: #fff3cd; } table.live input.li.saved { border-color: var(--ok); background: #eaf9ef; }
table.live .nm b { display: block; } table.live .nm small { display: block; } table.live .wsh { max-width: 14em; font-size: .9rem; }
button.pb { font-size: .95rem; font-weight: 700; border: 2px solid var(--ink); border-radius: 999px; padding: .5rem .9rem; min-height: 44px; cursor: pointer; white-space: nowrap; }
button.pb.ok { background: #d9f5e3; color: var(--ok); } button.pb.open { background: #ffe9c7; color: var(--warn); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 50; max-width: 92vw; }

/* ----- Markttag-Modus (iPad) ----- */
.bare .top, .bare .foot, .bare .skip { display: none !important; } .bare main { min-height: 100vh; }
.mt-top { position: sticky; top: 0; z-index: 20; background: var(--y); border-bottom: 2px solid var(--ink); padding: env(safe-area-inset-top) 14px 10px; }
.mt-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .mt-tools { margin-top: 8px; }
.mt-home { font-size: 2rem; line-height: 1; text-decoration: none; padding: 0 8px; } .mt-title { flex: 1; display: grid; } .mt-title small { color: var(--ink-2); font-size: .8rem; }
.mt-conn { border: 2px solid var(--ink); border-radius: 999px; padding: .5em 1em; font: 600 .9rem 'Poppins', sans-serif; background: #fff; cursor: pointer; min-height: 44px; } .mt-conn.ok { color: var(--ok); } .mt-conn.bad { color: var(--bad); }
.mt-search { flex: 1 1 260px; font: 500 1.1rem 'Poppins', sans-serif; padding: .7em 1em; border: 2px solid var(--ink); border-radius: 14px; min-height: 52px; }
.mt-seg { display: flex; gap: 6px; flex-wrap: wrap; } .mt-seg button { border: 2px solid var(--ink); background: #fff; border-radius: 999px; padding: .5em 1em; font: 600 .9rem 'Poppins', sans-serif; min-height: 44px; cursor: pointer; } .mt-seg button.on { background: var(--ink); color: var(--y); }
.mt-list { display: grid; align-content: start; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 14px 14px 120px; }
.mt-card { text-align: left; display: grid; gap: 4px; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 14px 16px; font: inherit; color: inherit; cursor: pointer; } .mt-card.open { border-color: var(--warn); background: #fffaf0; } .mt-card.pend { border-style: dashed; cursor: default; }
.mt-card b { font-size: 1.1rem; } .mt-place { font-weight: 700; font-size: 1.05rem; } .mt-place.none { color: var(--muted); font-weight: 500; } .mt-sub { color: var(--muted); font-size: .88rem; }
.mt-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; } .mt-pills i { font-style: normal; font-size: .78rem; font-weight: 600; padding: .1em .7em; border-radius: 999px; background: #eee; } .mt-pills i.ok { background: #d9f5e3; color: var(--ok); } .mt-pills i.warn { background: #ffe9c7; color: var(--warn); } .mt-pills i.wait { background: #dbe9ff; color: #1a4fa0; }
.mt-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
.mt-note { margin: 10px 14px 0; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; } .mt-note.warn { border-color: var(--warn); background: #fff7e6; } .mt-note.bad { border-color: var(--bad); background: #fff3f2; }
.mt-link { background: none; border: 0; text-decoration: underline; font: inherit; font-weight: 600; cursor: pointer; padding: 6px; }
.mt-fab { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 12px; justify-content: center; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(255,255,255,.95) 30%); z-index: 15; }
.mt-btn { border: 2px solid var(--ink); background: var(--ink); color: #fff; border-radius: 999px; padding: .8em 1.5em; font: 700 1rem 'Poppins', sans-serif; min-height: 52px; cursor: pointer; } .mt-btn.alt { background: #fff; color: var(--ink); } .mt-btn.small { min-height: 44px; padding: .5em 1.1em; font-size: .9rem; }
.mt-sheet { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; } .mt-sheet[hidden] { display: none; }
.mt-panel { position: relative; background: #fff; width: min(720px, 100%); max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 22px 22px calc(26px + env(safe-area-inset-bottom)); border: 3px solid var(--ink); border-bottom: 0; }
.mt-panel h2 { margin: 0 40px 4px 0; } .mt-panel h3 { margin: 0 0 8px; font-size: 1.05rem; } .mt-panel h3 small { color: var(--muted); font-weight: 400; }
.mt-x { position: absolute; right: 14px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.mt-sec { border-top: 1px solid var(--line); padding: 14px 0 6px; margin-top: 12px; } .mt-panel label { display: block; font-weight: 600; font-size: .85rem; margin: 8px 0; } .mt-panel input, .mt-panel select { display: block; width: 100%; margin-top: 4px; font: 500 1.05rem 'Poppins', sans-serif; padding: .65em .8em; border: 2px solid var(--ink); border-radius: 12px; min-height: 48px; background: #fff; }
.mt-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .mt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; } .mt-inline { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; } .mt-inline input { flex: 1 1 140px; width: auto; margin: 0; }
.mt-warn { color: var(--warn); font-weight: 600; } .okc { color: var(--ok); } .warnc { color: var(--warn); } .mt-wish { background: var(--y-soft); border-radius: 10px; padding: 8px 12px; }
.mt-queue { padding-left: 18px; } .mt-queue li { margin: 8px 0; }
.mt-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; z-index: 60; max-width: 90vw; } .mt-toast[hidden] { display: none; }
.mt-pick { display: grid; gap: 2px; text-decoration: none; color: inherit; margin: 10px 0; }
@media (max-width: 600px) { .mt-grid2, .mt-grid3 { grid-template-columns: 1fr; } }

/* Markttag: Vorbereitungstag / Markttag */
.mt-tabs { margin: 8px 0 0; } .mt-tabs button { flex: 1; font-size: 1.05rem; padding: 12px 8px; }
.mt-pick.big { display: block; padding: 22px; margin-bottom: 14px; } .mt-pick.big b { display: block; font-size: 1.5rem; margin-bottom: 4px; } .mt-pick.big span { color: var(--muted); }
.mt-pills i.grey { background: #e7e7e7; color: #555; }
.mt-ksum { margin: 6px 4px 12px; font-size: 1.05rem; }
.mt-krow { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.mt-krow.isdone { opacity: .6; border-color: var(--line); }
.mt-kname { flex: 1; min-width: 0; cursor: pointer; } .mt-kname b { display: block; font-size: 1.15rem; }
.mt-kb { min-width: 170px; min-height: 56px; border-radius: 12px; border: 2px solid var(--ink); font: inherit; font-weight: 700; font-size: 1rem; padding: 8px 12px; text-align: center; }
.mt-kb.todo { background: var(--y); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); } .mt-kb.done { background: #dff3df; cursor: pointer; } .mt-kb.done small { display: block; font-weight: 400; font-size: .75rem; }
.mt-kb.none { display: grid; place-items: center; background: #ececec; color: #666; border-color: #ccc; } .mt-kb.miss { background: #fde8e2; cursor: pointer; }
.mt-mix { background: #fff8d6; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; margin: 8px 0; } .mt-mix input[type=range] { width: 100%; height: 36px; accent-color: #111; } .mt-mixt { display: flex; justify-content: space-between; font-size: 1.05rem; }
.mt-price { background: #111; color: #fff; border-radius: 12px; padding: 12px 16px; margin: 12px 0; font-size: 1.2rem; } .mt-price small { display: block; font-size: .85rem; opacity: .85; margin-top: 2px; } .mt-price .mt-sub { color: #ddd; }
.mt-fs { border: 2px solid var(--line); border-radius: 12px; margin: 10px 0; padding: 8px 12px; } .mt-fs legend { font-weight: 700; padding: 0 6px; }
.mt-rad { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 1.05rem; } .mt-rad input { width: 24px; height: 24px; }
.mt-receipt { background: #f6f6f6; border: 2px dashed var(--ink); border-radius: 12px; padding: 14px 16px; margin: 10px 0; } .mt-receipt p { margin: 4px 0; } .mt-big { font-size: 2rem; font-weight: 700; }
details.mt-sec > summary { cursor: pointer; padding: 6px 0; font-size: 1.05rem; }

.mt-card.sel, .mt-rrow.sel { outline: 4px solid #111; background: var(--y); }
.mt-swap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 12px 0; } .mt-swap > div:not(.arrow) { background: #f6f6f6; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px; } .mt-swap span { display: block; font-size: .95rem; } .mt-swap .to { font-weight: 700; margin-top: 4px; } .mt-swap .arrow { font-size: 2rem; }
.mt-reihe { margin: 0 0 18px; } .mt-reihe h3 { margin: 4px 4px 8px; font-size: 1.3rem; } .mt-reihe h3 small { font-weight: 400; font-size: .9rem; color: var(--muted); }
.mt-rrow { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; cursor: pointer; }
.mt-rrow .no { min-width: 56px; font-size: 1.5rem; font-weight: 700; text-align: center; } .mt-rrow .nm { flex: 1; } .mt-rrow .nm b { display: block; } .mt-rrow .nm small { color: var(--muted); } .mt-rrow .mm { color: var(--muted); }

.mt-pills i.owe { background: #ffe2a8; color: #6b3d00; border: 1px solid #d98a00; }
.mt-dep { border-radius: 12px; padding: 12px 14px; margin: 8px 0 10px; border: 3px solid; } .mt-dep b { display: block; font-size: 1.15rem; } .mt-dep span { display: block; margin-top: 2px; }
.mt-dep.owe { background: #ffe2a8; border-color: #d98a00; color: #4d2c00; } .mt-dep.done { background: #dff3df; border-color: #2e8b3a; color: #12401a; } .mt-dep.none { background: #ececec; border-color: #999; color: #444; } .mt-dep.miss { background: #fde8e2; border-color: #d2452b; color: #5a1608; }
.mt-kst { display: block; font-size: .9rem; font-weight: 600; margin-top: 2px; } .mt-kst.owe { color: #8a4b00; } .mt-kst.done { color: #1f6b2a; } .mt-kst.none { color: #777; }

/* Listenzeilen, Filterleiste */
[hidden] { display: none !important; }
.mt-tools2 { display: grid; gap: 8px; padding: 8px 0 4px; }
.mt-grp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .mt-lbl { font-weight: 700; font-size: .85rem; min-width: 110px; }
.mt-list { display: block; padding: 14px 14px 120px; }
.mt-lrow { display: grid; grid-template-columns: 64px minmax(160px, 1.6fr) minmax(90px, .6fr) minmax(220px, 2fr); gap: 12px; align-items: center; width: 100%; text-align: left; font: inherit; color: inherit; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; cursor: pointer; }
.mt-lrow.open { border-color: #d98a00; } .mt-lrow.pend { opacity: .7; cursor: default; } .mt-lrow.slot { cursor: default; } .mt-lrow.isdone { opacity: .55; }
.mt-lrow .no { font-size: 1.5rem; font-weight: 700; text-align: center; } .mt-lrow .no.none { color: var(--muted); font-weight: 500; }
.mt-lrow .nm b { display: block; font-size: 1.1rem; } .mt-lrow small { display: block; color: var(--muted); font-size: .85rem; } .mt-lrow .mm { font-weight: 600; }
.mt-lrow .mt-pills, .mt-lrow .mt-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.mt-lrow .mt-acts .mt-btn.small { padding: .5em .9em; font-size: .85rem; }
@media (max-width: 760px) { .mt-lrow { grid-template-columns: 52px 1fr; } .mt-lrow .mm, .mt-lrow .mt-pills, .mt-lrow .mt-acts { grid-column: 2; justify-content: flex-start; } }
.mt-frei { display: grid; gap: 6px; } .mt-slist { max-height: 50vh; overflow: auto; margin-top: 10px; }

.mt-lrow small.wish { color: #7a4b00; font-weight: 600; }
.mt-wishbox { background: #fff8d6; border: 2px solid #d9b400; border-radius: 12px; padding: 10px 14px; margin: 10px 0; } .mt-wm { margin-top: 8px; display: grid; gap: 6px; justify-items: start; } .mt-wm small { color: #555; }

.mt-lrow small.given { color: #1f6b2a; font-weight: 600; }

/* ---- Testbericht 21.10.: Zeilenaufbau Name | Reihe | Nr. | Meter | Status ---- */
.mt-lrow.h { grid-template-columns: minmax(180px, 1.7fr) 100px 100px 110px minmax(160px, 1.5fr); }
.mt-lrow.h .rw { font-weight: 600; } .mt-lrow.h .rw.none, .mt-lrow.h .no.none { color: var(--muted); font-weight: 500; }
.mt-lrow.h .no { font-size: 1.3rem; text-align: left; }
.mt-lrow.nonr { background: #fde3dc; border-color: #d9552f; } .mt-lrow.nonr .no { color: #b3261e; font-size: 1rem; font-weight: 700; }
@media (max-width: 760px) { .mt-lrow.h { grid-template-columns: 1fr 1fr; } .mt-lrow.h .nm, .mt-lrow.h .mt-pills { grid-column: 1 / -1; justify-content: flex-start; } .mt-lrow.h .mm { grid-column: auto; } }
.mt-rbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 12px; }
.mt-rtog { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; font-weight: 800; font-size: 1.3rem; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.mt-rtog .arr { display: inline-block; width: 1.2em; } .mt-rtog small { font-weight: 400; font-size: .9rem; color: var(--muted); }
.mt-reihe.none h3.noroof { background: #fde3dc; border: 2px solid #d9552f; border-radius: 12px; padding: 10px 14px; margin: 0 0 8px; }
.mt-reihe.none h3.noroof small { font-weight: 400; font-size: .9rem; color: #7a2a12; }
.mt-kb.todo small { display: block; font-weight: 400; font-size: .75rem; } .mt-btnsub { display: block; font-weight: 400; font-size: .8rem; }
.mt-mfilt { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 10px 0 4px; } .mt-mfilt label { display: grid; gap: 2px; font-size: .8rem; font-weight: 600; } .mt-mfilt input { width: 84px; padding: .5em .6em; font: inherit; border: 2px solid var(--ink); border-radius: 10px; }
.mt-chip { font: inherit; font-weight: 600; font-size: .9rem; padding: .55em .9em; border: 2px solid var(--ink); border-radius: 999px; background: #fff; cursor: pointer; } .mt-chip.on { background: var(--ink); color: var(--y); }

/* ---- Testbericht 21.10. (2) ---- */
.headrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .headrow h1 { margin-right: auto; } .headrow form { margin: 0; }
.mt-lrow.h { grid-template-columns: minmax(200px, 330px) 130px 120px 140px 1fr; gap: 18px; padding: 14px 18px; }
.mt-lrow.h .rw { font-size: 1.15rem; font-weight: 700; } .mt-lrow.h .no { font-size: 1.4rem; font-weight: 800; } .mt-lrow.h .mm { font-size: 1.15rem; font-weight: 700; }
.mt-lrow.h .mm small { font-size: .85rem; font-weight: 500; }
.mt-lrow.nonr .no { font-size: 1.05rem; }
.mt-pills i.bad { background: #fbd5cf; color: #8a1c10; border: 1px solid #e0705f; } .mt-pills i.part { background: #ffe9cf; color: #8a4b00; border: 1px solid #f0b46a; }
.mt-pills i.amt { background: #fff; color: #333; border: 1px solid #ccc; }
@media (max-width: 1000px) { .mt-lrow.h { grid-template-columns: minmax(150px, 1.4fr) 100px 100px 110px; } .mt-lrow.h .mt-pills { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---- Testbericht 21.10. (3) ---- */
.remindrow { margin: 1.1rem 0 .4rem; } .remindrow form { margin: 0; display: inline-block; }
.btn.soft-ok { background: #d9f5e3; color: #1a6b3a; border: 2px solid #8fd1a8; } .btn.soft-ok:hover { background: #c5eed5; }
.btn.soft-bad { background: #fbd5cf; color: #8a1c10; border: 2px solid #e0958a; } .btn.soft-bad:hover { background: #f8c3ba; }
.daylist .dl td:not(:first-child), .daylist .dl th:not(:first-child) { white-space: nowrap; width: 1%; }
/* ----- Kundenkonto ----- */
.acct { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); } .acct:hover { background: var(--ink); color: var(--y); }
.kto h2 { margin: 1.6em 0 .6em; font-size: 1.3rem; }
.kto-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.kto-credit small { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; font-size: .75rem; }
.kto-credit b { display: block; font-size: 2.2rem; line-height: 1.2; } .kto-go { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }
.kto-go p { margin: 0 0 6px; }
.kb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kb { display: flex; justify-content: space-between; gap: 14px; align-items: center; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 14px 18px; }
.kb-main { display: grid; gap: 2px; } .kb-main small { color: var(--muted); } .kb-side { display: grid; gap: 8px; justify-items: end; }
.kb-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; } .inl { display: inline; margin: 0; }
.kto-foot { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 28px; } .kto-del { flex: 1 1 320px; }
.kto-note { background: var(--y-soft); border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 10px 14px; font-size: .9rem; margin: 0 0 16px; } .kto-note.ok { background: #effaf3; border-color: var(--ok); }
@media (max-width: 640px) { .kto-top { grid-template-columns: 1fr; } .kb { flex-direction: column; align-items: flex-start; } .kb-side { justify-items: start; width: 100%; } .kb-act { justify-content: flex-start; } .acct { width: 36px; height: 36px; } }

.hello { font-weight: 600; font-size: .9rem; white-space: nowrap; padding: .35em .8em; border-radius: 999px; background: rgba(17,17,17,.08); text-decoration: none; } .hello:hover { background: var(--ink); color: var(--y); }
@media (max-width: 960px) { .hello { font-size: .8rem; padding: .3em .6em; } } @media (max-width: 420px) { .hello { display: none; } }
.nav a, .bar-r .btn { white-space: nowrap; }
.bar-r:has(.hello) .social { display: none; }
@media (min-width: 421px) { .bar-r:has(.hello) .acct { display: none; } }
.hello { border: 2px solid var(--ink); background: transparent; } .hello:hover { background: var(--ink); color: var(--y); }
.adminbar ~ section .alert:not(.ok):not(.test) { background: #fbd5cf; color: #8a1c10; border: 2px solid #e0958a; }

/* Stammhändler-Vorschlag (intern) */
.stamm-box{grid-column:1/-1;border:1px solid #e0c97a;background:#fffbe6;border-radius:10px;padding:.6rem .8rem;margin:.3rem 0 .6rem;font-size:.95rem}
.stamm-row+.stamm-row{border-top:1px dashed #e0c97a;margin-top:.5rem;padding-top:.5rem}
.stamm-act{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.35rem}
.stamm-abs{margin-top:.4rem;padding:.4rem .6rem;border-radius:8px;background:#fde8e8;color:#7a2b2b}
.mt-absent{opacity:.75;background:#f3f3f3}
.mt-abs h3{color:#555}

.stamm-tbl input.mini{width:5.5em}.stamm-tbl input.mini.wide{width:11em}.stamm-tbl select{min-width:8.5em;width:auto}.stamm-tbl td{vertical-align:middle}
.stamm-checks{max-height:14em;overflow:auto;border:1px solid #ddd;border-radius:10px;padding:.4rem .6rem;background:#fff}

.hp{position:absolute;left:-5000px;width:1px;height:1px;overflow:hidden}

/* Markttag auf dem Handy: untere Knopfleiste und lange Hinweis-Pillen dürfen nicht mehr über den Rand laufen */
.mt-card { min-width: 0; } .mt-pills i { max-width: 100%; white-space: normal; line-height: 1.3; padding-top: .2em; padding-bottom: .2em; }
@media (max-width: 600px) {
  .mt-fab { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .mt-fab .mt-btn { flex: 1 1 0; min-width: 0; padding: .6em .2em; font-size: .78rem; line-height: 1.2; white-space: nowrap; }
}
@media (max-width: 760px) {
  .mt-lrow.h { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px 12px; }
  .mt-lrow.h .nm, .mt-lrow.h .mt-pills { grid-column: 1 / -1; justify-content: flex-start; }
  .mt-lrow.h .mm { grid-column: auto; text-align: right; }
}
/* Handy: Kopfbereich und Filter schmaler */
@media (max-width: 600px) {
  .mt-top { padding-bottom: 6px; } .mt-tools { margin-top: 6px; }
  .mt-seg { gap: 4px; } .mt-seg button { min-height: 36px; padding: .25em .75em; font-size: .8rem; border-width: 1.5px; }
  .mt-search { min-height: 42px; padding: .4em .9em; font-size: 1rem; border-width: 1.5px; flex-basis: 100%; }
  .mt-grp { gap: 4px 6px; } .mt-lbl { min-width: 0; width: 100%; font-size: .72rem; margin-top: 2px; opacity: .8; }
  .mt-conn { min-height: 38px; padding: .3em .8em; font-size: .8rem; }
  .mt-row { gap: 8px; }
}

/* Umschalter Rechnungen / Storno */
.umschalter { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; padding: 3px; background: var(--paper); margin: 0 0 22px; gap: 3px; }
.umschalter a { text-decoration: none; padding: .45em 1.6em; border-radius: 999px; font-weight: 600; color: var(--ink); min-height: 40px; display: inline-flex; align-items: center; }
.umschalter a.on { background: var(--ink); color: var(--y); }
.stamm-plaetze summary { cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--ink-2); padding: 2px 0; } .stamm-plaetze[open] summary { margin-bottom: 4px; }
.art-filter { display: flex; gap: 10px 26px; flex-wrap: wrap; margin: 14px 0 18px; } .art-filter .check { margin: 0; align-items: center; }

.stamm-tbl input[name=spot_wish]{min-width:10rem;width:100%}
.stamm-tbl td,.stamm-tbl th{padding-left:.3rem;padding-right:.3rem}
.stamm-tbl input.wide{min-width:0;width:7.5rem}

/* Admin-Übersicht: am Handy Karten statt breiter Tabelle, ganze Karte ist der Öffnen-Knopf */
.dash-cards { display: none; }
@media (max-width: 760px) {
  .dash-table { display: none; }
  .dash-cards { display: grid; gap: .6rem; margin-top: .6rem; }
  .dash-card { display: grid; grid-template-columns: 1fr auto; gap: .3rem .6rem; align-items: center; padding: .8rem .9rem; border: 2px solid var(--ink, #111); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; }
  .dash-card .dc-top { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
  .dash-card .dc-top b { font-size: 1.05rem; }
  .dash-card .dc-nums { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .88rem; color: var(--muted, #555); }
  .dash-card .dc-nums b { color: #111; }
  .dash-card .dc-open { grid-row: 1; grid-column: 2; }
}

.mt-hintbox { background: #f4f4f4; border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; color: #555; font-size: .9rem; } .mt-hintbox small { display: block; color: #777; margin-top: 4px; } .mt-hintbox .mt-btn { margin-left: 8px; }
.mt-hintcard { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 82%; margin: -2px 0 8px 0; padding: 5px 12px; background: #efeafc; border: 1px solid #d3c9f0; border-radius: 10px; color: #4b3f78; font-size: .88rem; cursor: pointer; } .mt-hintcard small { display: block; color: #7a6fa3; font-size: .74rem; } .mt-hintcard .hx { padding: 0 8px; border-radius: 6px; font-size: 1.1rem; color: #7a6fa3; } .mt-hintcard .hx:hover { background: #ddd5f5; }

/* Admin: Menügruppen, Zu erledigen, nächste Märkte, kompakte Buchungszeilen */
.adminbar nav { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.navgrp { position: relative; } .navgrp > summary { list-style: none; cursor: pointer; padding: 0; font-weight: 600; color: #fff; } .adminbar .navgrp > summary:hover, .adminbar .navgrp.on > summary { color: var(--yellow, #fff200); } .navgrp > summary::-webkit-details-marker { display: none; }
.navgrp.on > summary { text-decoration: underline; text-underline-offset: 4px; }
.navdrop { position: absolute; z-index: 30; top: 100%; left: 0; min-width: 260px; background: var(--paper, #fff); border: 2px solid var(--ink, #111); border-radius: 12px; padding: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.18); display: grid; }
.adminbar .navdrop a { color: var(--ink, #111); padding: 9px 12px; border-radius: 8px; white-space: nowrap; } .navdrop a:hover, .navdrop a.on { background: #fff6b3; }
.todo { background: #fffbe6; border: 2px solid #e0c200; border-radius: 12px; padding: 4px 16px 10px; margin: 0 0 18px; } .todo h2 { margin: 8px 0 6px; font-size: 1.35rem; } .todo ul { margin: 0 0 6px; padding-left: 20px; } .todo li { margin: 4px 0; }
.nextm { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-bottom: 14px; }
.nm-card { background: var(--paper, #fff); border: 2px solid var(--ink, #111); border-radius: 12px; padding: 10px 14px; display: grid; gap: 2px; } .nm-card small { color: var(--muted, #666); } .nm-act { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.brow2 { background: var(--paper, #fff); border: 2px solid var(--ink, #111); border-radius: 10px; margin-bottom: 6px; } .brow2[hidden] { display: none; } .brow2.dead { opacity: .5; }
.brow2 > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2fr 1.1fr 1.3fr 1.5fr auto auto; gap: 10px; align-items: center; padding: 6px 12px; font-size: .95rem; line-height: 1.25; } .brow2 > summary::-webkit-details-marker { display: none; }
.brow2 summary small { display: block; color: var(--muted, #666); font-size: .76rem; } .brow2 summary .wish { color: var(--warn, #a15c00); }
.brow2 .c-edit { font-size: .85rem; font-weight: 700; padding: 4px 10px; border: 2px solid var(--ink, #111); border-radius: 999px; white-space: nowrap; } .brow2[open] > summary { background: #fffbe6; border-radius: 8px 8px 0 0; } .brow2[open] .c-edit { background: var(--ink, #111); color: #fff; }
.brow2 .brow-edit { padding: 10px 12px 12px; display: grid; gap: 10px; border-top: 2px solid var(--ink, #111); } .brow2 .b-info small { display: block; color: var(--muted, #666); font-size: .8rem; }
@media (max-width: 860px) { .brow2 > summary { grid-template-columns: 1fr 1fr; } .brow2 .c-edit { justify-self: start; } .navdrop { position: static; box-shadow: none; } }

.brow2 .c-doc { display: flex; gap: 6px; }

.adminbar .navdrop a.on { color: var(--ink, #111); font-weight: 700; }
