:root {
  --bg: #f6f2ec;
  --card: #ffffff;
  --ink: #2b2420;
  --muted: #7a6e66;
  --line: #e6ddd2;
  --brand: #7a4a2a;
  --brand-dark: #5c3519;
  --brand-soft: #f1e6da;
  --ok: #2f7d4f;
  --ok-soft: #e3f3e8;
  --warn: #9a6a00;
  --warn-soft: #fbf0d3;
  --bad: #b23b32;
  --bad-soft: #fbe4e1;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 14px rgba(60, 40, 20, .05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
a { color: var(--brand); }
h1 { font-size: 1.6rem; margin: 0; line-height: 1.25; }
h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
h3 { font-size: .95rem; margin: 1rem 0 .4rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 1rem; }
.mt-s { margin-top: .4rem; }
.pt { padding-top: 1.6rem; }
.ok-text { color: var(--ok); font-weight: 600; }

/* Topbar */
.topbar { background: var(--brand-dark); color: #fff; position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.brand-icon { font-size: 1.3rem; }
.mainnav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.mainnav a, .nav-logout {
  color: #f3e7dc; text-decoration: none; padding: 8px 11px; border-radius: 8px; font-size: .93rem;
  background: none; border: 0; cursor: pointer; font: inherit;
}
.mainnav a:hover, .nav-logout:hover { background: rgba(255,255,255,.1); color: #fff; }
.mainnav a.active { background: rgba(255,255,255,.18); color: #fff; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

main { padding-top: 22px; padding-bottom: 40px; }
.page-head { margin-bottom: 18px; }
.page-head p { margin: 4px 0 0; }
.footer { padding: 20px 16px 40px; font-size: .8rem; text-align: center; }

/* Cards & layout */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px; border: 1px solid var(--line); }
.card.narrow { max-width: 440px; }
.card.inactive, .inactive { opacity: .6; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.grid2 > .card, .grid2 > div > .card { margin-bottom: 16px; }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.rider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.rider-grid > .card { margin: 0; }
.product-grid, .group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.product-grid > .card, .group-grid > .card { margin: 0; }

/* Forms */
label { display: block; margin-bottom: 12px; font-size: .9rem; color: var(--muted); }
input, select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 9px 11px; font: inherit; color: var(--ink);
  border: 1px solid #d6cabd; border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
input[type=color] { padding: 2px; height: 42px; }
input[type=checkbox] { display: inline-block; width: auto; margin: 0 6px 0 0; transform: scale(1.15); }
label.check { display: flex; align-items: center; color: var(--ink); }
.checks { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.checks .check { margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 6px; margin: 0 0 12px; }
legend { font-weight: 600; padding: 0 6px; }
form.inline { display: inline; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; margin: 0; }
.inline-form label { margin: 0; }
.inline-form .grow, .grow { flex: 1 1 200px; }
.wrap-form label { display: flex; flex-direction: column; font-size: .8rem; }
.wrap-form label input, .wrap-form label select { margin-top: 2px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-bar select, .filter-bar input { width: auto; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 8px; border: 1px solid #d6cabd;
  background: #fff; color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn:hover { background: var(--brand-soft); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger:hover { filter: brightness(.92); background: var(--bad); }
.btn-ok { background: var(--ok-soft); border-color: #bfe0ca; color: var(--ok); }
.btn-sm { padding: 6px 10px; font-size: .85rem; }

/* Badges / tags */
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .75rem; font-weight: 600; background: #eee8e1; color: var(--muted); white-space: nowrap; vertical-align: middle; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.tag { --c: var(--brand); display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; color: #fff; background: var(--c); text-decoration: none; }

/* Flash */
.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; background: var(--ok-soft); color: #1d5434; border: 1px solid #bfe0ca; }
.flash-bad { background: var(--bad-soft); color: #7d241d; border-color: #f0c2bc; }
.flash-warn { background: var(--warn-soft); color: #6b4a00; border-color: #eedca6; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 2px solid var(--line); }
td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.muted td { color: var(--muted); }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain > li { padding: 7px 0; border-bottom: 1px solid var(--line); }
ul.plain > li:last-child { border-bottom: 0; }

/* Credits */
.credit { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0 6px; }
.credit.expired { opacity: .6; }
.credit-count { font-size: .95rem; color: var(--muted); white-space: nowrap; text-align: right; }
.credit-count span { font-size: 1.6rem; font-weight: 700; color: var(--brand); }
.bar { height: 6px; background: var(--brand-soft); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.bar span { display: block; height: 100%; background: var(--brand); }

/* Booking lists */
.booking-list { list-style: none; margin: 0; padding: 0; }
.booking-list li { --c: var(--brand); display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0 8px 12px; border-left: 4px solid var(--c); margin-bottom: 6px; background: #fbf8f4; border-radius: 0 8px 8px 0; padding-right: 8px; }
.booking-list.compact li { border-left-color: var(--line); padding-top: 4px; padding-bottom: 4px; }
details summary { cursor: pointer; color: var(--brand); font-weight: 500; margin-top: 10px; }

/* Lessons */
.day-head { margin: 22px 0 8px; font-size: 1rem; color: var(--muted); }
.lesson-row {
  --c: var(--brand); display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-left: 5px solid var(--c); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; color: inherit; text-decoration: none;
}
a.lesson-row:hover { background: #fbf8f4; }
.lesson-time { font-weight: 700; font-size: 1.05rem; min-width: 52px; text-align: center; line-height: 1.15; }
.lesson-time span { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.lesson-main { flex: 1; min-width: 0; }
.lesson-action { margin-left: auto; }

/* Week view */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day-col { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-height: 140px; }
.day-col.today { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.day-col h3 { margin: 0 0 6px; font-size: .85rem; color: var(--ink); text-transform: none; letter-spacing: 0; }
.lesson-chip { --c: var(--brand); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fbf8f4; border-left: 4px solid var(--c); border-radius: 6px; padding: 6px 8px; margin-bottom: 6px; font-size: .88rem; line-height: 1.3; }
.lesson-chip:hover { background: var(--brand-soft); }
.lesson-chip.cancelled { opacity: .5; text-decoration: line-through; }
.lesson-chip .small { color: var(--muted); }

/* Attendance (check-off) */
.attendance-list { display: flex; flex-direction: column; gap: 8px; }
.att-row { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 12px; border: 1px solid var(--line); border-radius: 10px; border-left: 5px solid #d6cabd; }
.att-row.att-present { border-left-color: var(--ok); background: #f6fbf7; }
.att-row.att-absent { border-left-color: var(--bad); background: #fdf6f5; }
.att-row.att-excused { border-left-color: var(--warn); background: #fdfaf0; }
.att-who { flex: 1 1 260px; }
.att-buttons { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.att-btn { padding: 9px 13px; font-size: .9rem; }
.att-btn-present.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.att-btn-absent.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.att-btn-excused.on { background: var(--warn); border-color: var(--warn); color: #fff; }
.danger-zone { border-color: #f0c2bc; }

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--muted); font-size: .9rem; box-shadow: var(--shadow); }
.stat span { display: block; font-size: 1.9rem; font-weight: 700; color: var(--brand); line-height: 1.1; }
.stat:hover { border-color: var(--brand); }

/* Products & groups */
.product-card .price { font-size: 1.5rem; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.group-card { --c: var(--brand); border-top: 6px solid var(--c); text-decoration: none; color: inherit; }
.group-card:hover { box-shadow: 0 4px 18px rgba(60,40,20,.12); }

.wish { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: #fcfaf7; }
.request-list li .reply { background: var(--brand-soft); padding: 6px 10px; border-radius: 8px; margin-top: 4px; }

/* Notifications */
.mainnav a.has-unread { background: #e0a23b; color: #2b2420; font-weight: 700; }
.notif-list li { padding: 0; }
.notif-list li a { display: block; padding: 10px 12px; color: inherit; text-decoration: none; border-radius: 8px; }
.notif-list li a:hover { background: #fbf8f4; }
.notif-list li.unread a { background: var(--brand-soft); border-left: 4px solid var(--brand); }
.menu-toggle { white-space: nowrap; flex-shrink: 0; }
.brand { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.menu-badge { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 99px; background: #e0a23b; color: #2b2420; font-size: .8rem; font-weight: 700; vertical-align: middle; }
.category-head { margin: 26px 0 10px; font-size: 1.1rem; }
.footer a { color: var(--muted); }

/* ---------- Kalender ---------- */
.cal-card { padding: 14px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-nav-btns, .cal-views { display: flex; gap: 6px; }
.cal-title { margin: 0; font-size: 1.1rem; }

.cal-week { display: grid; grid-template-columns: 50px repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cal-col-head { height: 42px; display: flex; align-items: center; justify-content: center; gap: 4px; border-bottom: 1px solid var(--line); background: #fbf8f4; font-size: .88rem; position: relative; }
.cal-col-head .wd { font-weight: 700; }
.cal-col-head .dn { color: var(--muted); }
.cal-col.today .cal-col-head { background: var(--brand); color: #fff; }
.cal-col.today .cal-col-head .dn { color: #f3e7dc; }
.cal-col { border-left: 1px solid var(--line); min-width: 0; }
.cal-col.past .cal-col-body { background-color: #faf7f3; }
.cal-times-body, .cal-col-body { position: relative; height: calc(var(--hours) * var(--hpx)); }
.cal-col-body { background-image: repeating-linear-gradient(to bottom, var(--line) 0, var(--line) 1px, transparent 1px, transparent var(--hpx)); }
.has-slots .cal-col-body { cursor: copy; }
.has-slots .cal-col-body:hover { background-color: #fdfbf8; }
.cal-hour { position: absolute; left: 0; right: 6px; text-align: right; font-size: .72rem; color: var(--muted); transform: translateY(-1px); }
.cal-none { display: none; }
.cal-ev { position: absolute; z-index: 1; }
.cal-ev-inner {
  display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; text-align: left;
  background: color-mix(in srgb, var(--c) 14%, #fff); border: 0; border-left: 4px solid var(--c); border-radius: 6px;
  padding: 3px 6px; font: inherit; font-size: .78rem; line-height: 1.25; color: var(--ink); text-decoration: none; cursor: pointer;
}
.cal-ev { --c: #8b5e3c; }
.cal-ev .cal-ev-inner, .cal-mev .cal-ev-inner, .list-ev .cal-ev-inner { border-left-color: var(--c); }
.cal-ev-inner:hover { background: color-mix(in srgb, var(--c) 26%, #fff); }
.cal-ev-inner .t { font-size: .72rem; color: var(--muted); }
.cal-ev-inner strong { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev-inner .i { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev-inner.cancelled { opacity: .5; text-decoration: line-through; }
.cal-ev-inner.done { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 50%, transparent); }
.cal-ev-inner.mine { background: var(--c); color: #fff; }
.cal-ev-inner.mine .t, .cal-ev-inner.mine .i { color: rgba(255,255,255,.85); }
.cal-ev-inner.full { background: #f1eeea; border-left-color: #c9bfb4; color: var(--muted); }
.cal-add { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand); font-weight: 700; cursor: pointer; line-height: 1; padding: 0; }
.cal-add:hover { background: var(--brand); color: #fff; }

.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-mhead { padding: 6px; font-size: .78rem; font-weight: 700; color: var(--muted); text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbf8f4; }
.cal-mcell { min-height: 104px; padding: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.cal-mcell.other { background: #faf7f3; }
.cal-mcell.other .cal-mday a { color: #b8aca0; }
.cal-mcell.today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal-mday { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; position: relative; min-height: 22px; }
.cal-mday a { font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--ink); }
.cal-mday .cal-add { position: static; transform: none; width: 20px; height: 20px; font-size: .8rem; opacity: 0; }
.cal-mcell:hover .cal-add { opacity: 1; }
.cal-mev { --c: var(--brand); margin-bottom: 3px; }
.cal-mev .cal-ev-inner { display: block; height: auto; white-space: nowrap; text-overflow: ellipsis; padding: 2px 5px; font-size: .74rem; }
.cal-more { font-size: .74rem; }

.list-ev { --c: var(--brand); margin-bottom: 6px; }
.list-ev .cal-ev-inner { padding: 8px 10px; font-size: .9rem; }
.list-ev .cal-ev-inner strong { font-size: .95rem; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.lg { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-left: 6px; }
.lg-free { background: color-mix(in srgb, var(--brand) 18%, #fff); border-left: 3px solid var(--brand); }
.lg-mine { background: var(--brand); }
.lg-full { background: #f1eeea; border-left: 3px solid #c9bfb4; }

/* Dialoge */
.dlg { border: 0; border-radius: 14px; padding: 18px 20px; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 20px 60px rgba(40, 25, 10, .35); }
.dlg::backdrop { background: rgba(40, 25, 10, .45); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.dlg-head h2 { margin: 0; }
#book-dialog { width: min(480px, calc(100vw - 24px)); }
.bd-when { font-weight: 600; margin: 0 0 6px; }
.bd-mine-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 6px; background: var(--ok-soft); border-radius: 8px; color: var(--ok); font-weight: 600; }

.seg { display: inline-flex; border: 1px solid #d6cabd; border-radius: 10px; overflow: hidden; margin: 4px 0 14px; }
.seg-opt { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 14px; color: var(--ink); cursor: pointer; }
.seg-opt input { width: auto; margin: 0; }
.seg-opt:has(input:checked) { background: var(--brand); color: #fff; }
.only-weekly, .lbl-weekly { display: none; }
.is-weekly .only-weekly { display: block; }
.is-weekly .lbl-weekly { display: inline; }
.is-weekly .only-single, .is-weekly .lbl-single { display: none; }
.wd-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 16px; margin-bottom: 6px; }
.wd-row { display: grid; grid-template-columns: 120px 1fr auto 1fr; gap: 6px; align-items: center; padding: 4px 8px; border-radius: 8px; border: 1px solid transparent; }
.wd-row.on { background: var(--brand-soft); border-color: #e2cfba; }
.wd-row label { margin: 0; }
.wd-row input[type=time] { margin: 0; padding: 6px 8px; }
.wd-row:not(.on) input[type=time] { opacity: .45; }

/* ---------- Meine Stunden ---------- */
.todo-card { border-color: #f0c2bc; background: #fffaf9; }
.todo-card h2 { color: var(--bad); }
.day-card { padding: 12px 14px; }
.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.day-nav h2 { margin: 0; text-align: center; flex: 1; }
.week-strip { display: flex; gap: 6px; align-items: stretch; overflow-x: auto; }
.ws-day { flex: 1 0 44px; display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; line-height: 1.2; }
.ws-day .wd { font-size: .72rem; color: var(--muted); }
.ws-day .dn { font-weight: 700; font-size: 1.05rem; }
.ws-day .cnt { font-size: .72rem; color: var(--brand); font-weight: 700; }
.ws-day.today { border-color: var(--brand); }
.ws-day.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.ws-day.sel .wd, .ws-day.sel .cnt { color: #f3e7dc; }
.lesson-card { --c: var(--brand); border-left: 6px solid var(--c); scroll-margin-top: 70px; }
.lesson-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; flex-wrap: wrap; }
.lc-time { font-weight: 700; font-size: 1.2rem; min-width: 56px; text-align: center; line-height: 1.15; }
.lc-time span { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.lc-main { flex: 1 1 220px; min-width: 0; }
.lc-main h2 { margin: 0 0 2px; }
.lc-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.lesson-card:target { box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }

/* ---------- Zahlung ---------- */
.pay-card { border-color: #eedca6; background: #fffdf6; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.pay-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; }
.price-sm { font-weight: 700; color: var(--brand); white-space: nowrap; }
.pay-box { margin: 8px 0; padding: 10px 12px; border-radius: 8px; background: var(--brand-soft); }
.pay-dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 6px 0 0; font-size: .9rem; }
.pay-dl dt { color: var(--muted); }
.pay-dl dd { margin: 0; font-weight: 600; word-break: break-word; }
.copy-btn { border: 1px solid #d6cabd; background: #fff; border-radius: 6px; cursor: pointer; padding: 0 6px; font-size: .8rem; margin-left: 4px; color: var(--brand); }
.pay-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 10px; }
.pay-opt { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--ink); }
.pay-opt input { width: auto; margin-top: 4px; }
.pay-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.field-label { font-size: .9rem; color: var(--muted); margin-top: 4px; }
.mini-select { display: inline-block; width: auto; padding: 2px 6px; margin: 2px 0; font-size: .82rem; }
.account-card h2 { margin: 0; }
a.badge { text-decoration: none; }
@media (max-width: 720px) { .pay-choice { grid-template-columns: 1fr; } .pay-grid { grid-template-columns: 1fr; } }

/* Responsive */
@media (max-width: 960px) {
  .week { grid-template-columns: 1fr; }
  .day-col { min-height: 0; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1120px) {
  .menu-toggle { display: block; }
  .mainnav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--brand-dark); flex-direction: column; align-items: stretch; padding: 8px 12px 14px; }
  .nav-open .mainnav { display: flex; }
  .mainnav a, .nav-logout { padding: 12px; text-align: left; width: 100%; }
}
@media (max-width: 720px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .span2, .span3 { grid-column: auto; }
  .rider-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.35rem; }
  .card { padding: 14px; }
  .lesson-row { flex-wrap: wrap; }
  .lesson-action { width: 100%; }
  .att-buttons .btn { flex: 1 1 auto; justify-content: center; }
  .pt { padding-top: 0; }

  /* Woche wird auf dem Handy zur Tagesliste */
  .cal-week { display: block; border: 0; }
  .cal-times { display: none; }
  .cal-col { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
  .cal-col-head { justify-content: flex-start; padding: 0 12px; height: 38px; }
  .cal-col-body { height: auto !important; background-image: none; padding: 6px; min-height: 0; }
  .cal-col.past { display: none; }
  .cal-none { display: block; font-size: .85rem; color: var(--muted); padding: 2px 6px; }
  .cal-ev { position: static !important; width: auto !important; height: auto !important; margin-bottom: 6px; }
  .cal-ev-inner { padding: 8px 10px; font-size: .9rem; }
  .cal-ev-inner strong { font-size: .95rem; white-space: normal; }
  .has-slots .cal-col-body { cursor: default; }
  .cal-month { font-size: .8rem; }
  .cal-mcell { min-height: 64px; padding: 2px; }
  .cal-mev .cal-ev-inner { font-size: .66rem; padding: 1px 3px; }
  .cal-mev .cal-ev-inner .t { display: none; }
  .cal-mday .cal-add { opacity: 1; }
  .wd-row { grid-template-columns: 100px 1fr auto 1fr; }
  .cal-nav { justify-content: center; }
}
