:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #182230; background: #f4f6f9; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: #135e96; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { background: #17324d; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 14px max(22px, calc((100vw - 1180px)/2)); gap: 18px; }
.brand, .brand-large { color: #fff; font-size: 1.45rem; font-weight: 800; letter-spacing: .04em; }
.brand span, .brand-large span { color: #7fd0c3; }
.user-area { display: flex; align-items: center; gap: 14px; }
.user-area form { margin: 0; }
.navigation { display: flex; flex-wrap: wrap; align-items: stretch; gap: 4px; padding: 0 max(16px, calc((100vw - 1180px)/2)); background: #fff; border-bottom: 1px solid #dce2e9; }
.navigation > a, .nav-dropdown > summary { display: block; padding: 13px 12px; color: #30465c; font-weight: 600; cursor: pointer; list-style: none; }
.navigation > a:hover, .nav-dropdown > summary:hover { background: #edf3f8; text-decoration: none; }
.nav-dropdown { position: relative; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after { content: " ▾"; font-size: .8em; }
.nav-menu { position: absolute; z-index: 20; top: 100%; left: 0; min-width: 220px; display: flex; flex-direction: column; padding: 6px; background: #fff; border: 1px solid #dce2e9; border-radius: 0 0 8px 8px; box-shadow: 0 8px 22px rgba(25,45,65,.14); }
.nav-menu a { display: block; padding: 10px 12px; color: #30465c; border-radius: 5px; font-weight: 500; }
.nav-menu a:hover { background: #edf3f8; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin: 28px auto; flex: 1; }
.container-narrow { width: min(440px, calc(100% - 28px)); display: flex; align-items: center; }
.footer { color: #7b8794; text-align: center; font-size: .82rem; padding: 18px; }
h1 { margin: 0 0 5px; font-size: clamp(1.5rem, 3vw, 2rem); }
h2 { margin: 0 0 16px; font-size: 1.08rem; }
p { line-height: 1.5; }
.muted, .hint { color: #697887; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.panel, .login-card, .notice { background: #fff; border: 1px solid #dfe5eb; border-radius: 12px; padding: 22px; margin: 0 0 20px; box-shadow: 0 3px 14px rgba(20,40,60,.04); }
.login-card { width: 100%; padding: 30px; }
.brand-large { color: #17324d; text-align: center; font-size: 1.8rem; margin-bottom: 16px; }
.login-card h1 { text-align: center; }
.login-card > p { text-align: center; margin-bottom: 24px; }
.stack { display: grid; gap: 15px; }
label { display: grid; gap: 6px; color: #314256; font-weight: 600; font-size: .92rem; }
input:not([type=checkbox]), select, textarea { width: 100%; border: 1px solid #cbd5df; border-radius: 7px; padding: 10px 11px; color: #182230; font: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid #a9d5f1; border-color: #3986b8; }
.form-row { display: flex; gap: 13px; align-items: end; flex-wrap: wrap; }
.form-row label { min-width: 150px; }
.form-row .grow { flex: 1; }
.button { display: inline-flex; border: 0; border-radius: 7px; padding: 10px 15px; min-height: 40px; align-items: center; justify-content: center; font: inherit; font-weight: 650; cursor: pointer; white-space: nowrap; }
.button-primary { background: #176b9e; color: white; }
.button-primary:hover { background: #12577f; }
.button-light { background: #e9eff4; color: #263b4e; }
.align-end { margin-bottom: 1px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tile { display: grid; gap: 7px; background: white; border: 1px solid #dfe5eb; border-radius: 12px; padding: 22px; color: #18334a; box-shadow: 0 3px 14px rgba(20,40,60,.04); }
.tile strong { font-size: 1.18rem; }
.tile span { color: #697887; font-size: .92rem; }
.tile:hover { border-color: #8bbad5; text-decoration: none; transform: translateY(-1px); }
.notice { background: #eef6fa; border-color: #d4e7f0; }
.notice p { margin: 7px 0 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; border-bottom: 1px solid #e6ebf0; padding: 10px 9px; vertical-align: middle; }
th { background: #f6f8fa; color: #42576a; font-size: .82rem; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td form { margin: 0; }
.status { display: inline-block; border-radius: 99px; background: #edf2f6; padding: 3px 9px; font-size: .82rem; }
.number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.flash { padding: 12px 15px; border-radius: 8px; margin-bottom: 14px; background: #edf4fa; }
.flash-success { background: #e8f6ed; color: #195b34; }
.flash-error { background: #fff0ed; color: #8a3022; }
.flash-info { background: #edf4fa; color: #254c69; }
fieldset { border: 1px solid #e1e7ed; border-radius: 8px; padding: 12px; }
legend { color: #506477; padding: 0 6px; font-weight: 650; }
.check-grid { display: flex; gap: 12px 20px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.check input, .rights-table input { width: 17px; height: 17px; accent-color: #176b9e; }
.rights-table td:not(:first-child), .rights-table th:not(:first-child) { text-align: center; }
.rights-table small { display: block; color: #758392; margin-top: 3px; font-weight: 400; }
.hint { font-size: .88rem; }
@media (max-width: 700px) { .topbar { align-items: flex-start; flex-direction: column; padding: 14px 18px; } .user-area { width: 100%; justify-content: space-between; } .navigation { padding: 0 8px; } .navigation a { padding: 11px 9px; } .container { margin: 18px auto; } .panel { padding: 16px; } .page-heading { align-items: flex-start; flex-direction: column; } }

.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; color: #135e96; cursor: pointer; font: inherit; }
.link-button:hover { text-decoration: underline; }
.checkout-total { display: flex; justify-content: flex-end; padding: 16px 4px; font-size: 1.25rem; }

/* BASAR Logo */
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; }
.brand span { color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: .04em; }
.brand-large { display: grid; justify-items: center; gap: 10px; }
.brand-large img { width: min(190px, 60vw); height: auto; aspect-ratio: 1; object-fit: contain; }
.brand-large span { color: #17324d; font-size: 1.2rem; }
@media (max-width: 700px) { .brand img { width: 42px; height: 42px; } }

/* Login: Hinweise innerhalb des Dialogs und deutlich vergroessertes Logo */
.login-flash { width: 100%; box-sizing: border-box; margin: 0 0 20px; }
.container-narrow { width: min(680px, calc(100% - 28px)); }
.login-card { box-sizing: border-box; }
.brand-large img {
  width: min(570px, 100%);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
@media (max-width: 520px) {
  .login-card { padding: 22px 18px; }
  .brand-large img { width: min(570px, 100%); }
}
