/* Dein Husum – Stylesheet nach FDP Corporate Design (Public Sans, Dunkelblau #032D67, Gelb #FFE000, Cyan #00A7E7) */
:root {
  --blue: #032D67; --blue-2: #0A3D82; --blue-3: #043072;
  --cyan: #00A7E7; --cyan-dk: #0089C4; --cyan-bg: #E1F1F9;
  --yellow: #FFE000;
  --ink: #14284A; --ink-2: #182C4C; --ink-3: #26374F; --text: #42536E; --text-2: #32425C;
  --muted: #5B6B85; --muted-2: #7A889F; --faint: #9AA7BD; --faint-2: #8798B0;
  --line: #E7ECF4; --line-2: #E1E9F3; --line-3: #DDE5F0; --line-4: #CBD6E6;
  --bg: #F4F7FB; --chip: #EDF2F9; --chip-2: #E7EDF6; --panel: #FFFFFF;
  --rose: #B4607A; --rose-dk: #7A2E45; --rose-bg: #F7EAEE; --rose-line: #EAD3D9;
  --green: #1F5B4C; --green-2: #2E7D6B; --green-bg: #E6F1EE;
  --amber: #7A5900; --amber-2: #B98900; --amber-bg: #FBF3D6;
  --shadow-card: 0 6px 18px rgba(16,42,86,.05);
  --shadow-float: 0 12px 26px rgba(3,45,103,.3);
  --radius: 18px;
  --nav-h: 66px;
}
/* Schriftgröße: die Oberfläche nutzt feste Pixelgrößen, daher wird die ganze Seite skaliert */
html.text-small body { zoom: .88; }
html.large body { zoom: 1.15; }
html.text-xlarge body { zoom: 1.3; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  color: var(--ink); background: #F1F5FB;
  background-image: radial-gradient(120% 80% at 15% 0%, #EAF1FB 0%, #F1F5FB 45%, #FBFCFE 100%);
  background-attachment: fixed; min-height: 100dvh;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; font-size: inherit; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
input, textarea, select { font-family: inherit; font-size: 16px; color: var(--ink); }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--cyan-dk); }
::placeholder { color: var(--faint); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(3,45,103,.16); border-radius: 8px; }
h1, h2, h3, h4 { margin: 0; color: var(--blue); letter-spacing: -.02em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@keyframes floatB { 0%,100% { transform: translate(0,0) scale(1) } 50% { transform: translate(24px,-30px) scale(1.08) } }
@keyframes floatB2 { 0%,100% { transform: translate(0,0) scale(1) } 50% { transform: translate(-26px,22px) scale(1.1) } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: translateY(0) } }
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
@keyframes pulseGlow { 0%,100% { opacity: .55 } 50% { opacity: .9 } }
@keyframes shimmer { 0% { background-position: -400px 0 } 100% { background-position: 400px 0 } }
@keyframes spin { to { transform: rotate(360deg) } }

/* Boot-Platzhalter bis JS geladen ist */
.boot { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.boot-logo { font-weight: 900; font-size: 28px; color: var(--blue); letter-spacing: -.03em; }
.boot-bar { width: 70px; height: 7px; border-radius: 3px; background: var(--yellow); animation: pulseGlow 1.2s infinite; }

/* Ambient-Glows */
.glow { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; }
.glow-1 { top: -140px; left: -120px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(0,167,231,.30), transparent 66%); filter: blur(24px); animation: floatB 16s ease-in-out infinite; }
.glow-2 { bottom: -160px; right: -120px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(255,224,0,.22), transparent 66%); filter: blur(28px); animation: floatB2 20s ease-in-out infinite; }
.glow-3 { top: 30%; right: -80px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(3,45,103,.18), transparent 68%); filter: blur(26px); }

/* ---------- Layout ---------- */
.shell { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; }
.content { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 0 calc(var(--nav-h) + 16px); }
.content.narrow { max-width: 880px; }
@media (min-width: 900px) { .content { padding: 0 32px 40px; } }
.page { padding: 20px 16px 28px; }
.page-title { font-weight: 900; font-size: 28px; letter-spacing: -.03em; color: var(--blue); }
.page-sub { color: var(--muted); font-size: 15.5px; margin-top: 6px; line-height: 1.5; }
.yellow-bar { width: 70px; height: 7px; border-radius: 3px; background: var(--yellow); margin: 12px 0 18px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); } }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mt8 { margin-top: 8px } .mt12 { margin-top: 12px } .mt16 { margin-top: 16px } .mt20 { margin-top: 20px } .mt24 { margin-top: 24px } .mb12 { margin-bottom: 12px } .mb16 { margin-bottom: 16px } .mb20 { margin-bottom: 20px }
.hide-desktop { display: block } .show-desktop, .btn.show-desktop { display: none }
@media (min-width: 900px) { .hide-desktop { display: none } .show-desktop { display: block } .btn.show-desktop { display: inline-flex } }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: rgba(255,255,255,.8); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid rgba(3,45,103,.08); }
@media (min-width: 900px) { .topbar { padding: 12px 32px; } }
.topbar-inner { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--blue); }
.brand-sep { width: 1px; height: 20px; background: var(--line-4); }
.brand-name { font-weight: 800; font-size: 16.5px; letter-spacing: -.02em; color: var(--blue); white-space: nowrap; }
.brand-sub { display: block; font-size: 10.5px; font-weight: 700; color: var(--faint-2); letter-spacing: .04em; text-transform: uppercase; margin-top: -1px; }
.back-btn { width: 38px; height: 38px; border-radius: 11px; background: var(--chip); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.header-title { font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: none; align-items: center; gap: 4px; margin-left: 18px; }
@media (min-width: 900px) { .topnav { display: flex; } }
.topnav a, .topnav button { display: flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 11px; font-weight: 700; font-size: 15px; color: var(--muted); }
.topnav a.active { background: var(--chip); color: var(--blue); }
.topbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.avatar-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(3,45,103,.28); }
.avatar-name { display: none; font-weight: 700; font-size: 14.5px; color: var(--blue); }
@media (min-width: 900px) { .avatar-name { display: inline; } }
.link-btn { font-weight: 800; color: var(--blue); }

/* ---------- Bottom nav (mobil) ---------- */
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(3,45,103,.08); }
@media (min-width: 900px) { .bottomnav { display: none; } }
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; color: var(--faint); position: relative; font-size: 11px; font-weight: 700; }
.bottomnav a.active { color: var(--blue); }
.bottomnav a .ind { position: absolute; top: -8px; width: 26px; height: 3px; border-radius: 2px; background: var(--yellow); opacity: 0; }
.bottomnav a.active .ind { opacity: 1; }
.bottomnav .fab { width: 46px; height: 46px; border-radius: 15px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(3,45,103,.36); margin-top: -2px; }

/* ---------- Footer ---------- */
.footer { text-align: center; color: #7688A2; font-size: 13.5px; line-height: 1.7; padding: 28px 16px 8px; }
.footer a { color: #7688A2; font-weight: 600; margin: 0 6px; }
.footer a:hover { color: var(--cyan-dk); }
.footer-note { color: #AAB6C8; font-size: 12.5px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 14px; font-weight: 800; font-size: 15.5px; transition: transform .16s, box-shadow .16s, background .16s; text-decoration: none; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-float); }
.btn-primary:hover { color: #fff; background: var(--blue-2); }
.btn-secondary { background: rgba(255,255,255,.75); backdrop-filter: blur(12px); border: 1px solid var(--line-3); color: var(--blue); }
.btn-secondary:hover { color: var(--blue); background: #fff; }
.btn-yellow { background: var(--yellow); color: var(--blue); box-shadow: 0 8px 18px rgba(255,224,0,.25); }
.btn-ghost { background: var(--chip); color: var(--blue); }
.btn-danger { background: #fff; border: 1.5px solid var(--rose-line); color: var(--rose); }
.btn-danger-solid { background: var(--rose-dk); color: #fff; }
.btn-lg { padding: 16px 28px; font-size: 17px; border-radius: 15px; }
.btn-sm { padding: 9px 14px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-dashed { width: 100%; padding: 15px; border-radius: 15px; border: 1.5px dashed #B9C6DA; background: rgba(255,255,255,.6); color: var(--blue); font-weight: 800; font-size: 15.5px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn-secondary .spinner, .btn-ghost .spinner { border-color: rgba(3,45,103,.2); border-top-color: var(--blue); }

/* ---------- Cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-card); }
.card-glass { background: rgba(255,255,255,.75); backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; box-shadow: 0 10px 30px rgba(16,42,86,.06); }
.card-blue { border-radius: 22px; padding: 20px; background: linear-gradient(155deg, #043072, #032D67 62%, #022351); box-shadow: 0 18px 40px rgba(3,45,103,.32); position: relative; overflow: hidden; color: #fff; }
.card-blue .orb { position: absolute; top: -30px; right: -24px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(0,167,231,.5), transparent 66%); filter: blur(4px); }
.card-blue > * { position: relative; }
.section-label { font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-bottom: 10px; }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 8px; white-space: nowrap; }
.badge-fdp { background: var(--blue); color: var(--yellow); }
.badge-pin { background: rgba(255,224,0,.28); color: #7A5900; }
.pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 4px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex-shrink: 0; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; background: #fff; color: var(--muted); border: 1px solid var(--line-2); transition: all .16s; }
.pill.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.segmented { display: flex; gap: 6px; padding: 5px; background: var(--chip-2); border-radius: 14px; }
.segmented button { flex: 1; padding: 10px 4px; border-radius: 10px; font-weight: 700; font-size: 14.5px; color: #67768E; transition: all .2s; }
.segmented button.active { background: #fff; color: var(--blue); box-shadow: 0 3px 8px rgba(3,45,103,.14); }
.sortbar { display: flex; gap: 6px; }
.sortbar button { padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--muted); background: #fff; border: 1px solid var(--line-2); }
.sortbar button.active { background: var(--chip); color: var(--blue); border-color: var(--chip); }

/* ---------- Avatare ---------- */
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--chip); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.avatar.fdp { background: var(--blue); color: var(--yellow); }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }

/* ---------- Formulare ---------- */
.field { margin-bottom: 16px; }
.label { display: block; font-weight: 700; font-size: 14.5px; color: var(--text-2); margin-bottom: 8px; }
.input, .textarea, .select { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-3); background: #fff; font-size: 16px; color: var(--ink); outline: none; transition: border-color .16s, box-shadow .16s; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,167,231,.15); }
.input.error, .textarea.error, .select.error { border-color: #E0B4C1; }
.input[readonly] { background: var(--bg); color: var(--muted); }
.textarea { min-height: 130px; line-height: 1.5; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6B85' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field-error { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--rose); margin-top: 7px; }
.field-hint { font-size: 13px; color: var(--faint-2); margin-top: 7px; }
.counter { font-size: 12.5px; font-weight: 600; color: var(--faint-2); text-align: right; margin-top: 6px; }
.counter.over { color: var(--rose); }
.form-banner { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--rose); background: var(--rose-bg); border: 1px solid var(--rose-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.info-box { display: flex; gap: 8px; align-items: flex-start; background: #EDF6FB; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.45; color: #3C6B85; }
.info-box svg { flex-shrink: 0; color: var(--cyan-dk); margin-top: 1px; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-4); background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; transition: all .16s; }
.check input:checked + .box { background: var(--blue); border-color: var(--blue); }
.check input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(0,167,231,.25); }
.toggle { width: 50px; height: 30px; border-radius: 16px; background: #D3DBE6; position: relative; transition: background .2s; flex-shrink: 0; }
.toggle.on { background: var(--blue); }
.toggle span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: left .2s; }
.toggle.on span { left: 23px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.street-wrap { position: relative; }
.street-wrap .pin { position: absolute; left: 15px; top: 16px; color: var(--faint); }
.street-wrap .input { padding-left: 44px; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 12; background: rgba(255,255,255,.97); backdrop-filter: blur(16px); border: 1px solid var(--line-3); border-radius: 14px; overflow: hidden; box-shadow: 0 16px 34px rgba(3,45,103,.18); }
.suggest button { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; border-bottom: 1px solid #F0F3F8; }
.suggest button:last-child { border-bottom: 0; }
.suggest button:hover, .suggest button.hl { background: var(--chip); }
.suggest b { font-weight: 700; font-size: 15px; color: var(--ink-3); }
.suggest small { font-size: 12.5px; font-weight: 700; color: var(--cyan-dk); white-space: nowrap; }
.district-ok { display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-radius: 14px; background: rgba(0,167,231,.10); border: 1px solid rgba(0,167,231,.28); margin-bottom: 16px; }
.district-ok .ico { width: 32px; height: 32px; border-radius: 10px; background: var(--cyan); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 12px rgba(0,167,231,.55); }
.district-ok small { display: block; font-size: 12.5px; font-weight: 700; color: var(--cyan-dk); }
.district-ok b { display: block; font-weight: 800; font-size: 15.5px; color: var(--blue); }
.district-pending { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-radius: 14px; background: #F1F4F9; border: 1px solid var(--line-2); margin-bottom: 16px; font-size: 13.5px; font-weight: 600; color: var(--muted-2); }

/* ---------- Auth-Layout ---------- */
.auth { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; }
@media (min-width: 900px) { .auth { flex-direction: row; } }
.auth-panel { background: linear-gradient(160deg, #043072, #032D67); padding: 38px 26px 34px; position: relative; overflow: hidden; color: #fff; }
@media (min-width: 900px) { .auth-panel { flex: 1 1 46%; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; } }
.auth-panel .orb { position: absolute; top: -30px; right: -20px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(0,167,231,.45), transparent 66%); filter: blur(4px); }
.auth-panel > * { position: relative; }
.auth-panel h1 { color: #fff; font-weight: 900; font-size: 32px; letter-spacing: -.03em; line-height: 1; }
@media (min-width: 900px) { .auth-panel h1 { font-size: 44px; } }
.auth-panel p { color: #AFC6E4; font-size: 15px; margin-top: 12px; line-height: 1.5; }
.auth-back { color: #AFC6E4; font-weight: 600; font-size: 14.5px; margin-bottom: 22px; display: inline-flex; align-items: center; gap: 6px; }
.auth-back:hover { color: #fff; }
.auth-form { background: var(--bg); padding: 28px 22px 40px; flex: 1; }
@media (min-width: 900px) { .auth-form { flex: 1 1 54%; display: flex; flex-direction: column; justify-content: center; padding: 40px; } }
.auth-form-inner { width: 100%; max-width: 520px; margin: 0 auto; }
.auth-switch { text-align: center; margin-top: 22px; font-size: 15px; color: var(--muted); }
.auth-switch a, .auth-switch button { font-weight: 800; color: var(--blue); }

/* ---------- Landing ---------- */
.landing { position: relative; z-index: 1; width: min(100%, 1060px); margin: 0 auto; padding: clamp(18px,4vw,40px) clamp(16px,4vw,40px) 60px; }
.landing-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px,5vw,52px); flex-wrap: wrap; }
.hero { display: flex; gap: clamp(24px,4vw,48px); flex-wrap: wrap; align-items: center; }
.hero-text { flex: 1 1 380px; min-width: min(100%, 380px); }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(0,167,231,.12); color: var(--cyan-dk); font-weight: 700; font-size: 13.5px; margin-bottom: 22px; text-transform: uppercase; letter-spacing: .04em; }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.hero h1 { font-weight: 900; font-size: clamp(40px,7vw,68px); line-height: .96; letter-spacing: -.035em; color: var(--blue); }
.hero .yellow-bar { width: 96px; height: 9px; margin: 14px 0 22px; box-shadow: 0 3px 14px rgba(255,224,0,.5); }
.hero p { font-size: clamp(17px,2.2vw,20px); line-height: 1.5; color: var(--text); max-width: 460px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-social { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.hero-social .stack-av { display: flex; }
.hero-social .stack-av span { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; border: 2px solid #fff; }
.hero-social .stack-av span + span { margin-left: -10px; }
.hero-card-wrap { flex: 1 1 320px; min-width: min(100%, 320px); display: flex; justify-content: center; }
.hero-card { width: 100%; max-width: 380px; border-radius: 28px; padding: 22px; background: linear-gradient(160deg, #043072, #032D67 60%, #022351); box-shadow: 0 30px 70px rgba(3,45,103,.35); position: relative; overflow: hidden; color: #fff; }
.hero-card .orb { position: absolute; top: -40px; right: -30px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(0,167,231,.5), transparent 65%); filter: blur(6px); }
.hero-card > * { position: relative; }
.hero-card .inner { background: rgba(255,255,255,.1); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 18px; }
.bar-row { display: flex; justify-content: space-between; color: #EAF3FB; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.bar-track { height: 9px; border-radius: 5px; background: rgba(255,255,255,.14); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; background: rgba(255,255,255,.45); transition: width .5s; }
.bar-fill.lead { background: linear-gradient(90deg, #00A7E7, #5ED0F5); }
.features { display: flex; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px,6vw,68px); }
.feature { flex: 1 1 240px; min-width: 240px; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature h3 { font-weight: 800; font-size: 18px; color: var(--blue); margin-bottom: 6px; }
.feature p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.steps { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.step { flex: 1 1 240px; min-width: 240px; }
.step .num { font-weight: 900; font-size: 32px; color: var(--cyan); letter-spacing: -.03em; line-height: 1; margin-bottom: 12px; }
.landing h2 { font-weight: 900; font-size: clamp(26px,4vw,36px); letter-spacing: -.03em; color: var(--blue); }
.landing-section { margin-top: clamp(44px,7vw,80px); }
.reasons { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 12px; }
.reasons li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text); line-height: 1.45; }
.reasons li .tick { width: 26px; height: 26px; border-radius: 8px; background: var(--green-bg); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cta-final { margin-top: clamp(44px,7vw,80px); border-radius: 28px; padding: clamp(28px,5vw,48px); background: linear-gradient(160deg, #043072, #032D67 60%, #022351); color: #fff; text-align: center; box-shadow: 0 30px 70px rgba(3,45,103,.3); }
.cta-final h2 { color: #fff; }
.cta-final .hero-actions { justify-content: center; margin-top: 22px; }

/* ---------- Vorschlagskarte ---------- */
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-card); }
.pcard.clickable, .survey-card.clickable { cursor: pointer; transition: transform .16s, box-shadow .16s; }
.pcard.clickable:hover, .survey-card.clickable:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16,42,86,.10); }
.pcard.pinned { border-color: rgba(255,224,0,.7); box-shadow: 0 6px 18px rgba(255,224,0,.16); }
.pcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.pcard-title { font-weight: 800; font-size: 17.5px; line-height: 1.25; color: var(--ink-2); letter-spacing: -.01em; margin: 0 0 6px; display: block; }
.pcard-title:hover { color: var(--cyan-dk); }
.pcard-text { font-size: 14.5px; line-height: 1.5; color: #66748C; white-space: pre-line; word-break: break-word; }
.pcard-more { font-weight: 700; font-size: 13.5px; color: var(--cyan-dk); margin-top: 4px; }
.author { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; min-width: 0; }
.author-name { font-weight: 700; font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.author-time { font-size: 12.5px; color: var(--faint); }
.vote-bar { height: 8px; border-radius: 5px; background: #EDF1F7; overflow: hidden; display: flex; margin: 12px 0 10px; }
.vote-bar div { background: linear-gradient(90deg, #00A7E7, #0089C4); transition: width .4s; }
.pcard-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--muted-2); }
.vote-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 10px; font-weight: 800; font-size: 13.5px; background: #fff; border: 1.5px solid var(--line-2); color: var(--muted); transition: all .16s; }
.vote-btn.up { color: var(--cyan-dk); border-color: #CDE7F5; }
.vote-btn.up.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 14px rgba(3,45,103,.28); }
.vote-btn.down { color: var(--rose); border-color: #F0D8DF; }
.vote-btn.down.active { background: var(--rose-dk); border-color: var(--rose-dk); color: #fff; box-shadow: 0 6px 14px rgba(122,46,69,.28); }
.pos-chip { font-weight: 700; font-size: 11.5px; padding: 4px 9px; border-radius: 7px; margin-left: auto; }
.comments-toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--muted); padding: 8px 4px; }
.comments-toggle:hover { color: var(--blue); }
.comments { margin-top: 12px; border-top: 1px solid #F0F3F8; padding-top: 14px; }
.comment { background: var(--bg); border: 1px solid #EAEFF6; border-radius: 14px; padding: 12px 14px; }
.comment p { font-size: 14.5px; line-height: 1.5; color: var(--text); margin-top: 6px; white-space: pre-line; word-break: break-word; }
.comment.deleted p { color: var(--faint); font-style: italic; }
.comment-form { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.comment-form .textarea { min-height: 52px; padding: 13px 14px; font-size: 15px; }
.send-btn { width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(3,45,103,.28); }
.empty { text-align: center; padding: 40px 20px; color: var(--faint-2); font-size: 15px; }
.empty.small { padding: 14px; font-style: italic; }

/* ---------- Detail-Header ---------- */
.detail-hero { height: 150px; background: linear-gradient(150deg, var(--cat, #0A3D82), #032D67); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 16px; border-radius: 0 0 22px 22px; }
@media (min-width: 900px) { .detail-hero { border-radius: 22px; margin-top: 16px; } }
.detail-hero .orb { position: absolute; top: -30px; right: -24px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 66%); }
.detail-hero .badge { background: rgba(255,255,255,.92); position: relative; }
.detail-title { font-weight: 900; font-size: 25px; line-height: 1.15; letter-spacing: -.025em; color: var(--blue); margin: 0 0 14px; }
.detail-text { font-size: 16px; line-height: 1.6; color: #3C4C66; white-space: pre-line; word-break: break-word; margin-bottom: 22px; }
.pos-box { border: 1px solid var(--line); border-left: 5px solid var(--pos, #5B6B85); border-radius: 16px; padding: 16px; background: #fff; box-shadow: var(--shadow-card); margin-bottom: 22px; }
.pos-box .ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.admin-panel { border-radius: 18px; padding: 16px; background: linear-gradient(150deg, #032D67, #0A3D82); box-shadow: 0 10px 24px rgba(3,45,103,.26); margin-bottom: 22px; color: #fff; }
.admin-panel .textarea { border: 1.5px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1); color: #fff; }
.admin-panel .textarea::placeholder { color: rgba(255,255,255,.5); }
.admin-panel .select { background-color: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; }
.admin-panel .select option { color: var(--ink); }
.chip-choice { padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px; border: 1.5px solid transparent; transition: all .16s; }
.vote-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-card); margin-bottom: 22px; }
.vote-block .big { flex: 1; padding: 14px; border-radius: 14px; font-weight: 800; font-size: 15.5px; display: flex; align-items: center; justify-content: center; gap: 7px; }

/* ---------- Umfragen ---------- */
.survey-card { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-card); }
.mini-pie { position: relative; width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; box-shadow: 0 4px 12px rgba(3,45,103,.14); }
.mini-pie::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.state-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.option { width: 100%; text-align: left; position: relative; overflow: hidden; border-radius: 16px; padding: 16px 18px; background: #fff; border: 1.5px solid var(--line-2); transition: all .2s; }
.option .fill { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(3,45,103,.07); transition: width .5s; }
.option.chosen { border-color: var(--cyan); box-shadow: 0 6px 16px rgba(0,167,231,.18); }
.option.chosen .fill { background: rgba(0,167,231,.20); }
.option.winner .fill { background: rgba(0,167,231,.16); }
.option.faded { opacity: .78; }
.option .in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.option .lab { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; color: var(--ink-3); }
.option .radio { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; border: 2px solid #C4D0E0; display: flex; align-items: center; justify-content: center; }
.option.chosen .radio, .option.selected .radio { border-color: var(--cyan); background: var(--cyan); color: #fff; }
.option.selected { border-color: var(--cyan); box-shadow: 0 6px 16px rgba(0,167,231,.18); }
.option .pct { display: block; font-weight: 800; font-size: 15px; color: var(--text-2); }
.option .votes { display: block; font-size: 12px; font-weight: 600; color: var(--faint); }
.donut { position: relative; width: 184px; height: 184px; border-radius: 50%; box-shadow: 0 10px 26px rgba(3,45,103,.16); margin: 0 auto 18px; }
.donut::after { content: ''; position: absolute; inset: 21px; border-radius: 50%; background: #fff; box-shadow: inset 0 1px 4px rgba(3,45,103,.08); }
.donut .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 16px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); }
.swatch { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }

/* ---------- Profil ---------- */
.profile-hero { background: linear-gradient(160deg, #043072, #032D67); padding: 26px 20px 46px; position: relative; overflow: hidden; color: #fff; border-radius: 0 0 24px 24px; }
@media (min-width: 900px) { .profile-hero { border-radius: 24px; margin-top: 16px; } }
.profile-hero .orb { position: absolute; top: -30px; right: -24px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(0,167,231,.45), transparent 66%); filter: blur(4px); }
.profile-hero > * { position: relative; }
.profile-av { width: 66px; height: 66px; border-radius: 50%; background: var(--yellow); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 24px; box-shadow: 0 8px 20px rgba(0,0,0,.2); flex-shrink: 0; }
.stat-row { display: flex; gap: 10px; padding: 0 16px; margin-top: -28px; position: relative; }
.stat { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px; text-align: center; box-shadow: 0 6px 18px rgba(16,42,86,.07); }
.stat b { display: block; font-weight: 900; font-size: 22px; color: var(--blue); }
.stat small { font-size: 12px; font-weight: 600; color: var(--muted-2); }
.settings-list { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid #F0F3F8; }
.settings-row:last-child { border-bottom: 0; }
.settings-row .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--chip); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 900; }
.admin-link { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: linear-gradient(150deg, #032D67, #0A3D82); box-shadow: 0 10px 24px rgba(3,45,103,.28); color: #fff; text-align: left; }
.admin-link .ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,224,0,.16); color: var(--yellow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.danger-zone { border: 1.5px solid var(--rose-line); background: #FFF8FA; border-radius: 18px; padding: 18px; }
.danger-zone h3 { color: var(--rose-dk); font-size: 16px; }

/* ---------- Toasts / Modal / Skeleton ---------- */
.toasts { position: fixed; bottom: calc(var(--nav-h) + 14px); left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 460px); pointer-events: none; }
@media (min-width: 900px) { .toasts { bottom: 32px; } }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px; background: rgba(3,45,103,.94); backdrop-filter: blur(10px); color: #fff; font-weight: 700; font-size: 14.5px; box-shadow: 0 14px 34px rgba(3,45,103,.4); animation: toastIn .28s ease; pointer-events: auto; max-width: 100%; }
.toast .ico { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast.success .ico { background: var(--yellow); color: var(--blue); }
.toast.error { background: rgba(122,46,69,.95); }
.toast.error .ico { background: #fff; color: var(--rose-dk); }
.toast.info { background: rgba(0,137,196,.95); }
.toast.info .ico { background: #fff; color: var(--cyan-dk); }
.modal-bg { position: fixed; inset: 0; z-index: 90; background: rgba(3,45,103,.45); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 900px) { .modal-bg { align-items: center; } }
.modal { width: 100%; max-width: 520px; background: #fff; border-radius: 24px 24px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); animation: sheetIn .25s ease; position: relative; }
@media (min-width: 900px) { .modal { border-radius: 24px; padding: 26px; } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; background: var(--chip); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.skel { background: linear-gradient(90deg, #EDF1F7 0%, #F6F8FB 50%, #EDF1F7 100%); background-size: 800px 100%; animation: shimmer 1.4s infinite linear; border-radius: 10px; }
.skel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-card); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid #F0F3F8; vertical-align: middle; color: var(--text); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.pinned td { background: #FFFBE0; }
.tbl tr.blocked td { opacity: .5; }
.tbl tr.lead td { font-weight: 700; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tbl .actions { flex-wrap: nowrap; }
.tbl .actions .btn-sm { padding: 7px 10px; font-size: 12.5px; }

/* ---------- Admin-Layout ---------- */
.admin { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; }
@media (min-width: 900px) { .admin { flex-direction: row; } }
.sidebar { background: linear-gradient(170deg, #043072, #032D67); color: #fff; padding: 14px 12px; display: flex; gap: 6px; overflow-x: auto; position: sticky; top: 0; z-index: 20; scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .sidebar { flex-direction: column; width: 250px; flex-shrink: 0; padding: 26px 18px; position: sticky; top: 0; height: 100dvh; overflow: auto; } }
.sidebar-head { display: none; }
@media (min-width: 900px) { .sidebar-head { display: block; margin-bottom: 26px; } }
.sidebar-head b { display: block; font-weight: 900; font-size: 22px; color: #fff; letter-spacing: -.02em; }
.sidebar-head small { color: #AFC6E4; font-weight: 600; font-size: 13px; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; color: #AFC6E4; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.sidebar a.active { background: rgba(255,255,255,.12); color: #fff; }
.sidebar a.active svg { color: var(--yellow); }
.sidebar .grow { flex: 1; }
.sidebar .back { margin-left: auto; }
@media (min-width: 900px) { .sidebar .back { margin-left: 0; margin-top: 12px; } }
.admin-main { flex: 1; min-width: 0; padding: 20px 16px 40px; width: 100%; }
.admin-main.wide { max-width: none; }
.admin-main.wide .table-wrap.fill { min-height: calc(100dvh - 250px); }
.admin-main.wide .tbl { font-size: 14.5px; }
.admin-main.wide .tbl td { padding: 14px 16px; }
@media (min-width: 900px) { .admin-main { padding: 32px; } }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 6px 16px rgba(16,42,86,.06); display: flex; align-items: center; gap: 12px; }
.tile .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--chip); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tile b { display: block; font-weight: 900; font-size: 24px; color: var(--blue); line-height: 1.1; }
.tile small { font-size: 12.5px; font-weight: 600; color: var(--muted-2); }
.tile.dark { background: linear-gradient(150deg, #043072, #032D67); border: 0; }
.tile.dark b { color: var(--yellow); } .tile.dark small { color: #AFC6E4; } .tile.dark .ico { background: rgba(255,255,255,.12); color: #fff; }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 6px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.chart .col .b { background: var(--cyan-dk); border-radius: 4px 4px 0 0; min-height: 2px; transition: height .4s; }
.chart .col:hover .b { background: var(--blue); }
.chart .col .tip { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.chart .col:hover .tip { opacity: 1; }
.chart-x { display: flex; gap: 4px; margin-top: 6px; }
.chart-x span { flex: 1; text-align: center; font-size: 10px; font-weight: 600; color: var(--faint); }
.hbar { display: grid; grid-template-columns: 170px 1fr 40px; gap: 10px; align-items: center; font-size: 13.5px; margin-bottom: 8px; }
.hbar .name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { height: 12px; background: #EDF1F7; border-radius: 4px; overflow: hidden; }
.hbar .track div { height: 100%; background: var(--cyan-dk); border-radius: 4px; }
.hbar .val { font-weight: 800; color: var(--blue); text-align: right; }
.alert { border: 1px solid var(--line); border-left: 5px solid var(--amber-2); border-radius: 14px; padding: 12px 14px; background: #fff; }
.alert pre { margin: 6px 0 0; font-size: 12px; color: var(--muted); white-space: pre-wrap; font-family: ui-monospace, monospace; background: var(--bg); padding: 8px 10px; border-radius: 8px; }
.msg-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .msg-layout { grid-template-columns: 340px 1fr; align-items: start; } }
.msg-item { display: block; width: 100%; text-align: left; padding: 12px 14px; border-bottom: 1px solid #F0F3F8; }
.msg-item:hover { background: var(--bg); }
.msg-item.active { background: var(--chip); }
.msg-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); display: inline-block; margin-right: 6px; }
.msg-item.unread b { color: var(--blue); }
.mini-track { height: 8px; background: #EDF1F7; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.mini-track div { height: 100%; border-radius: 4px; }
