:root {
  --bg-blur: 6px;
  --card-bg: rgba(255, 255, 255, 0.78);
  --card-border: rgba(255, 255, 255, 0.55);
  --text: #1a1f2b;
  --muted: #5b6472;
  --accent: #c8102e;
  --accent-ink: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0,0,0,0.25);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
}
.bg {
  position: fixed; inset: 0;
  background: url('/img/zentrale.jpg') center/cover no-repeat;
  filter: blur(var(--bg-blur)) brightness(0.85);
  transform: scale(1.05);
  z-index: -2;
}
.overlay {
  position: fixed; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.45));
  z-index: -1;
}
.card {
  max-width: 720px;
  margin: 24px auto;
  padding: 22px 20px 26px;
  background: var(--card-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.lang { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  background: none; border: 0; padding: 4px 6px;
  font: inherit; color: var(--muted); cursor: pointer;
  border-radius: 6px;
}
.lang-btn[aria-pressed="true"] { color: var(--text); background: rgba(0,0,0,0.06); font-weight: 600; }
.lang .sep { color: var(--muted); }
h1 {
  font-size: clamp(20px, 4.5vw, 28px);
  line-height: 1.25;
  margin: 6px 0 8px;
}
.subline { color: var(--muted); margin: 0 0 18px; font-size: 15px; line-height: 1.45; }
.field { display: block; margin: 0 0 16px; }
.field-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
#username {
  width: 100%; padding: 12px 14px; font-size: 16px;
  border: 1px solid rgba(0,0,0,0.15); border-radius: 10px;
  background: rgba(255,255,255,0.7);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
#username:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.18);
}
.hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.turnstile-wrap { margin: 4px 0 16px; min-height: 65px; }
.uppy-mount {
  border-radius: 12px;
  overflow: hidden;
  transition: opacity .2s;
}
.uppy-mount[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.footnote {
  margin: 14px 2px 0;
  font-size: 12px; color: var(--muted); text-align: center;
}
.uppy-Dashboard-inner { background: rgba(255,255,255,0.55) !important; }
.uppy-Dashboard-AddFiles { border-color: rgba(0,0,0,0.15) !important; }
.uppy-c-btn-primary { background: var(--accent) !important; }
.uppy-c-btn-primary:hover { background: #a40d25 !important; }
@media (max-width: 520px) {
  .card { margin: 0; border-radius: 0; min-height: 100dvh; box-shadow: none; }
  h1 { font-size: 22px; }
}

/* Brand-Logo */
.brand { gap: 10px; }
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}
.brand-sep {
  color: var(--muted);
  opacity: 0.6;
}
.brand .dot { display: none; }

/* Legal Footer */
.legal {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.legal a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.legal a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.legal-sep {
  margin: 0 8px;
  color: var(--muted);
  opacity: 0.6;
}
