/* Kundenportal – modernes, ruhiges Design (passend zu Odin, mit FIM-Blau als Akzent) */
:root {
  --bg: #f5f7fb; --panel: #fff; --panel-2: #f8fafc; --line: rgba(15, 23, 42, .09); --line2: rgba(15, 23, 42, .06); --text: #0f172a; --muted: #64748b;
  --blau: #2563eb; --blau-2: #4f46e5; --blau-hell: rgba(37, 99, 235, .09); --grad: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --rot: #e11d48; --gruen: #059669; --gruen-hell: rgba(5, 150, 105, .1); --gelb-hell: #fff7e0; --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 28px -10px rgba(15, 23, 42, .1); --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--text); font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 15px; -webkit-font-smoothing: antialiased; letter-spacing: -.003em;
  background: radial-gradient(1000px 500px at 100% -10%, #e8efff 0%, transparent 60%), radial-gradient(800px 420px at -10% 0%, #eef2ff 0%, transparent 55%), var(--bg);
  background-attachment: fixed; min-height: 100%; }
a { color: var(--blau); text-decoration: none; } a:hover { text-decoration: underline; }
#kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 12px 24px;
  background: rgba(255, 255, 255, .75); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
#logo { height: 34px; }
.titel { font-weight: 600; font-size: 15px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; }
.grow { flex: 1; }
#nutzer { display: flex; gap: 8px; align-items: center; font-size: 14px; }
main { max-width: 1080px; margin: 0 auto; padding: 32px 20px 64px; }
main > * { animation: auftauchen .4s var(--ease) both; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(6px); } }
h1 { font-size: 30px; margin: 4px 0 6px; letter-spacing: -.03em; font-weight: 750; }
h2 { font-size: 18px; margin: 34px 0 14px; letter-spacing: -.015em; font-weight: 700; }
h3 { font-size: 15px; margin: 18px 0 8px; color: var(--muted); }
.muted { color: var(--muted); } .klein { font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 9px 15px;
  font: inherit; font-weight: 550; cursor: pointer; color: var(--text); text-decoration: none !important; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05); transition: transform .15s var(--ease), box-shadow .2s, border-color .15s, background .15s; }
.btn:hover { border-color: rgba(15, 23, 42, .18); background: #f8fafc; }
.btn:active { transform: translateY(1px); }
.btn.primaer { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .6); }
.btn.primaer:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn.klein { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
.karte { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.einheit { transition: transform .2s var(--ease), box-shadow .25s; }
.einheit:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgba(37, 99, 235, .3), var(--shadow); }
.einheit .kopf { font-size: 13px; color: var(--muted); } .einheit .nr { font-size: 21px; font-weight: 700; margin: 2px 0 12px; letter-spacing: -.02em; }
.wert { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line2); font-size: 14px; }
.wert b { font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--line2); color: var(--muted); }
.badge.neu { background: var(--rot); color: #fff; } .badge.ok { background: var(--gruen-hell); color: var(--gruen); } .badge.blau { background: var(--blau-hell); color: var(--blau); }
.badge.schlecht { background: rgba(225, 29, 72, .1); color: #be123c; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filter input, .filter select, .feld input { border: 1px solid var(--line); border-radius: 11px; padding: 10px 13px; font: inherit; background: #fff;
  transition: border-color .15s, box-shadow .15s; }
.filter input:focus, .filter select:focus, .feld input:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); }
.filter input { flex: 1; min-width: 200px; }
.doks { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gruppe { padding: 10px 20px; background: var(--panel-2); border-bottom: 1px solid var(--line2); font-weight: 650; font-size: 11.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; }
.dok { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line2); transition: background .12s; }
.dok:hover { background: var(--panel-2); }
.dok:last-child { border-bottom: 0; }
.dok .sym { width: 38px; height: 46px; border-radius: 9px; background: linear-gradient(160deg, #eff4ff, #dfe8ff); color: var(--blau); display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; flex: none; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .15); }
.dok .text { flex: 1; min-width: 0; } .dok .text b { display: block; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.dok .aktionen { display: flex; gap: 6px; }
.leer { padding: 34px; text-align: center; color: var(--muted); }
.anmeldung { max-width: 440px; margin: 48px auto; border-radius: 22px; padding: 28px; box-shadow: 0 30px 70px -24px rgba(37, 99, 235, .35), var(--shadow); }
.reiter { display: flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin: 0 0 20px; gap: 2px; }
.reiter a { flex: 1; text-align: center; padding: 9px; cursor: pointer; color: var(--muted); border-radius: 9px; text-decoration: none !important; font-weight: 550; transition: .15s; }
.reiter a.aktiv { color: #fff; background: var(--grad); box-shadow: 0 4px 12px -4px rgba(37, 99, 235, .6); }
.feld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; } .feld label { font-size: 13px; color: var(--muted); font-weight: 550; }
.feld input { width: 100%; }
.fehler { color: #be123c; font-size: 14px; min-height: 18px; margin-bottom: 8px; }
.info { background: var(--blau-hell); border: 1px solid rgba(37, 99, 235, .15); border-radius: 12px; padding: 13px 15px; font-size: 14px; color: #1e3a8a; line-height: 1.5; }
#fuss { max-width: 1080px; margin: 0 auto; padding: 0 20px 36px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
#hinweis { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: rgba(15, 23, 42, .94); backdrop-filter: blur(10px); color: #fff;
  padding: 11px 18px; border-radius: 12px; display: none; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .4); font-weight: 500; }
#schleier { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); backdrop-filter: blur(4px); z-index: 20; display: grid; place-items: center; padding: 16px;
  animation: einblenden .2s ease both; }
#schleier .karte { width: min(460px, 100%); max-height: 90vh; overflow: auto; border-radius: 20px; animation: aufpoppen .26s var(--ease) both; }
@keyframes einblenden { from { opacity: 0; } } @keyframes aufpoppen { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (max-width: 640px) {
  #kopf { padding: 10px 14px; } .titel { display: none; } #nutzer .name { display: none; }
  .dok { flex-wrap: wrap; } .dok .aktionen { width: 100%; } .dok .aktionen .btn { flex: 1; }
  h1 { font-size: 24px; } main { padding: 22px 14px 50px; }
}

/* Versammlungen & Umlauf-Abstimmung */
.vers { margin-bottom: 14px; }
.vers .vkopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.vers .tops { margin: 10px 0 12px; padding-left: 20px; } .vers .tops li { margin: 4px 0; }
.abst { border-top: 1px solid var(--line2); padding: 12px 0; }
.abst .antrag { background: var(--panel-2); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: 14px; line-height: 1.5; }
.abst .wahl { display: flex; gap: 18px; }
.abst .wahl label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
input[type=radio], input[type=checkbox] { accent-color: var(--blau); width: 16px; height: 16px; }

/* Vorschau aus Odin */
#vorschau { background: linear-gradient(90deg, #fff7e0, #fff1c2); color: #6b4b00; padding: 9px 24px; font-size: 13px; border-bottom: 1px solid #f3dc8f; }

/* Termine, Objektbilder, Kontakte */
.termine { padding: 6px 22px; }
.termin { display: flex; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.termin:last-child { border-bottom: 0; }
.termin .tdat { display: flex; flex-direction: column; align-items: center; min-width: 56px; background: var(--grad); color: #fff; border-radius: 12px; padding: 7px 4px;
  box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .6); }
.termin .tdat span { font-size: 11.5px; opacity: .85; }
.termin .text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.einheit .titelbild { width: calc(100% + 44px); margin: -20px -22px 14px; height: 150px; object-fit: cover; display: block; border-radius: var(--radius) var(--radius) 0 0; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.galerie a { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.galerie img { width: 100%; height: 140px; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.galerie a:hover img { transform: scale(1.05); }
.galerie span { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.kontakt { display: flex; flex-direction: column; gap: 1px; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.kontakt:last-child { border-bottom: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.sig-pad { width: 100%; height: 170px; background: #fff; border: 1.5px dashed #cbd5e1; border-radius: 12px; cursor: crosshair; touch-action: none;
  background-image: linear-gradient(to right, #cbd5e1, #cbd5e1); background-size: 86% 1px; background-repeat: no-repeat; background-position: 7% 75%; }
.unterschrift-karte { border-left: 4px solid #f59e0b; }

/* Stand der Hausgeldabrechnung */
.abr .vkopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.abr-balken { height: 6px; border-radius: 99px; background: var(--line2); margin: 14px 0 6px; overflow: hidden; }
.abr-balken span { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.abr-schritte { list-style: none; padding: 0; margin: 10px 0 8px; }
.abr-schritte li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 14px; position: relative; }
.abr-schritte li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 25px; bottom: -5px; width: 2px; background: var(--line); }
.abr-punkt { flex: 0 0 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; box-sizing: border-box; position: relative; z-index: 1; }
.abr-erledigt .abr-punkt { background: var(--gruen); border-color: var(--gruen); }
.abr-erledigt b { font-weight: 550; }
.abr-laeuft .abr-punkt { border-color: var(--blau); box-shadow: 0 0 0 4px var(--blau-hell); }
.abr-laeuft b { color: var(--blau); }
.abr-offen { color: var(--muted); } .abr-offen b { font-weight: 500; }
.abr-gut { color: var(--gruen); }
.abr-hinweis { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: var(--gelb-hell); font-size: 13.5px; }

/* Belegpruefung */
.pr-konto summary { cursor: pointer; list-style: none; }
.pr-konto summary::-webkit-details-marker { display: none; }
.pr-konto[open] summary { margin-bottom: 8px; }
.pr-zeile { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line2); }
.pr-zeile .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pr-zeile .betrag { font-weight: 600; white-space: nowrap; padding-top: 2px; }
.pr-zeile .aktionen { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pr-haken input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gruen); }
.pr-ki { background: var(--blau-hell); border-radius: 8px; padding: 8px 10px; margin-top: 6px; white-space: pre-wrap; }
.pr-anm { border-left: 3px solid var(--rot); padding: 4px 8px; margin-top: 6px; background: var(--panel-2); border-radius: 0 6px 6px 0; }
.pr-anm.verw { border-left-color: var(--blau); }
.pr-eingabe, textarea.pr-eingabe { border: 1px solid var(--line); border-radius: 11px; padding: 10px 13px; font: inherit; width: 100%; box-sizing: border-box; }
@media (max-width: 640px) { .pr-zeile { flex-wrap: wrap; } .pr-zeile .aktionen { width: 100%; justify-content: flex-start; } }
