/* Kundendienst – Gestaltung nach Klickdummy. Keine Inline-Styles nötig (CSP). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; color: #1b2433; background: #dbe3f0; }
a { color: #1d4f9f; }
a:hover { color: #123a73; }
h1 { margin: 0; }
.muted { color: #46526a; }
.strong { font-weight: 600; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: #1d4f9f; text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: #123a73; }

/* Kopfzeile */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 12px 24px; background: #eef1f6; border-bottom: 1px solid #b9c5da; font-size: 14px; }

/* Kundenansicht */
.wrap { display: flex; flex-wrap: wrap; align-items: flex-start; min-height: calc(100vh - 50px); }
.side { flex: 0 0 220px; background: #2a62b8; border-right: 1px solid #14336b; }
.side-title { background: #14336b; color: #fff; padding: 12px 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.side-item { display: block; padding: 8px 10px; background: #2a62b8; color: #fff; border-bottom: 1px solid #5b8fd6; font-size: 13px; font-weight: 600; text-decoration: none; }
.side-item:hover { background: #3470c8; color: #fff; }
.side-item.aktiv { text-decoration: underline; background: #1f55a3; }
.side-item.l1 { padding-left: 24px; font-weight: 400; }
.side-item.l2 { padding-left: 38px; font-weight: 400; }
.side-item.l3, .side-item.l4, .side-item.l5 { padding-left: 52px; font-weight: 400; }
.main { flex: 999 1 560px; min-width: 0; padding: 40px 48px; display: flex; flex-direction: column; gap: 20px; }
.titel { font-size: 22px; font-weight: 600; color: #1d4f9f; }
.filebox { background: #fff; border: 1px solid #b9c5da; }
.listhead { display: flex; border: 2px solid #2a62b8; }
.listhead-fill { flex: 0 0 80%; background: #2a62b8; color: #fff; padding: 3px 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.listhead-rest { flex: 1; background: #fff; }
.files { margin: 0; padding: 8px 0; list-style: none; }
.files li { padding: 5px 8px; }
.files a { display: flex; align-items: center; gap: 10px; color: #1b2433; text-decoration: none; }
.files a:hover { color: #1d4f9f; text-decoration: underline; }
.arrow { flex: 0 0 22px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; background: #2a62b8; }
.desc { margin: 2px 0 4px 32px; font-size: 13px; color: #46526a; }
.empty { color: #46526a; }
.panel { background: #fff; border: 1px solid #b9c5da; padding: 28px; max-width: 460px; width: 100%; }

/* Anmeldung und ähnliche Karten */
.loginwrap { min-height: 100vh; padding: 24px; display: flex; align-items: center; justify-content: center; }
.card { width: 100%; max-width: 420px; background: #fff; border: 1px solid #b9c5da; box-shadow: 0 6px 24px rgba(20, 51, 107, .15); }
.card-wide { max-width: 480px; }
.card-head { background: #14336b; color: #fff; padding: 14px 28px; font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.card-body { padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 20px; }
.card-body h1 { font-size: 24px; line-height: 1.25; color: #1d4f9f; }
.card-body p { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.hint { font-size: 13px; color: #46526a; }
input[type=text], input[type=password], input[type=email], input[type=search], input[type=number], select, textarea {
  font: inherit; font-size: 16px; padding: 0 12px; height: 44px; border: 1px solid #8a99b5; background: #fff; color: #1b2433; max-width: 100%;
}
.field input { width: 100%; }
textarea { height: auto; padding: 8px 10px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #f2b705; outline-offset: 1px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border: 1px solid #8a99b5; background: #f4f4f4; color: #1b2433; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: #e8ebf0; color: #1b2433; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-primary { background: #2a62b8; border-color: #2a62b8; color: #fff; }
.btn-primary:hover { background: #1f55a3; color: #fff; }
.btn-danger { color: #8a1c1c; }
.btn-block { width: 100%; height: 46px; font-size: 16px; }
.flash { padding: 12px 14px; background: #e6f2ea; border: 1px solid #5c9a73; line-height: 1.45; }
.fehler { padding: 12px 14px; background: #fbe9e9; border: 1px solid #c25555; color: #5c1111; line-height: 1.45; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

/* Administration */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 32px 48px; display: flex; flex-direction: column; gap: 14px; }
body.admin { background: #dfe3e6; }
body.admin .topbar { background: #eef1f6; }
.back { font-size: 14px; font-weight: 700; color: #1b2433; }
.bar { background: #c8c8c8; padding: 8px 12px; text-align: center; font-size: 18px; font-weight: 700; }
.bar-sub { font-size: 16px; margin-top: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; padding: 6px 0; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: #fff; border: 1px solid #b9c5da; text-decoration: none; color: #1b2433; }
.tile:hover { border-color: #31699b; color: #1b2433; }
.tile-title { font-size: 18px; font-weight: 700; color: #31699b; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: flex-end; }
.toolbar.between { justify-content: space-between; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.inline-form input { height: 38px; font-size: 15px; }
.pad { padding: 4px 0; }
.tablewrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.tbl th { background: #31699b; color: #fff; text-align: left; padding: 10px 12px; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid #d5dbe5; vertical-align: middle; }
.formtbl { display: flex; flex-direction: column; gap: 2px; }
.frow { display: flex; flex-wrap: wrap; background: #fff; }
.frow > label { flex: 1 1 200px; padding: 10px 12px; background: #31699b; color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; }
.frow > div { flex: 3 1 360px; padding: 6px 8px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.frow > div.row { flex-direction: row; }
.frow input[type=text], .frow input[type=password], .frow input[type=email], .frow input[type=number], .frow select { height: 36px; font-size: 15px; padding: 0 10px; }
.frow input[type=text], .frow input[type=password], .frow input[type=email] { width: 100%; max-width: 420px; }
.frow input.wide, .frow textarea.wide { max-width: 520px; width: 100%; }
.frow input.short { width: 90px; }
.frow select { min-width: 200px; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 4px 0 8px; }
.checks { margin: 0; border: 0; padding: 14px 16px; background: #fff; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
.check { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 14px; }
.check input { width: 18px; height: 18px; }
.chips { list-style: none; margin: 0; padding: 0; background: #fff; }
.chips li { display: flex; align-items: center; gap: 14px; padding: 6px 12px; border-bottom: 1px solid #d5dbe5; }
.xbtn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: #c62828; border: 1px solid #8a1c1c; cursor: pointer; padding: 0; }

@media (max-width: 720px) {
  .main { padding: 24px 16px; }
  .admin-wrap { padding: 16px; }
  .side { flex-basis: 100%; }
}
