/* Portal-Stile (externe Datei wegen CSP default-src 'self': keine Inline-Stile). Ansicht nach static/kunde.html. */
:root {
  --bg: #f5f6f8; --card: #ffffff; --line: #e2e6eb; --text: #1e2832; --muted: #687482; --accent: #2c6e8a;
}
* { box-sizing: border-box; }

/* Login (P2) */
body.login { font-family: system-ui, sans-serif; max-width: 26rem; margin: 3rem auto; padding: 0 1rem; color: #222; }
body.login label, body.login input, body.login button { display: block; width: 100%; font-size: 1rem; }
body.login input { padding: .5rem; margin: .3rem 0 1rem; }
body.login button { padding: .6rem; cursor: pointer; }
.fehler { color: #a00; }

/* Ansicht (P3) */
body.ansicht { margin: 0; background: var(--bg); color: var(--text);
               font: 15px/1.55 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 32px 24px 48px; }
header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
         margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
h1 { font-size: 28px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
section { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; }
h2 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
     margin: 0 0 14px; display: flex; justify-content: space-between; gap: 8px; }
h2 small { font-weight: 400; letter-spacing: 0; text-transform: none; }
.empty { color: var(--muted); font-style: italic; margin: 4px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 6px 8px;
     border-bottom: 1px solid var(--line); }
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.path { word-break: break-word; }
.path .dir { color: var(--muted); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.back { margin: 0 0 16px; }
button.link { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 12px; color: var(--accent);
              font: inherit; cursor: pointer; }
footer { margin-top: 28px; font-size: 12px; color: var(--muted); text-align: center; }
