/* Bodo Cloud – Portal im Stil von iCloud.com: hell, ruhig, große Karten */
:root {
  --grund: #f5f5f7; --karte: #fff; --text: #1d1d1f; --text-2: #6e6e73; --text-3: #86868b;
  --linie: rgba(0, 0, 0, .08); --akzent: #0071e3; --akzent-hell: rgba(0, 113, 227, .1);
  --rot: #e30000; --gruen: #1f9d55; --orange: #f56300;
  --rund: 18px; --schatten: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 28px rgba(0, 0, 0, .06);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  color: var(--text); background: var(--grund); -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #000; --karte: #1c1c1e; --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #8e8e93;
    --linie: rgba(255, 255, 255, .1); --akzent: #2997ff; --akzent-hell: rgba(41, 151, 255, .14);
    --schatten: none; }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-size: 15px; line-height: 1.45; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1 { font-size: 34px; letter-spacing: -.02em; margin: 0 0 6px; font-weight: 700; }
h2 { font-size: 22px; letter-spacing: -.01em; margin: 0; font-weight: 700; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); font-weight: 600;
  margin: 30px 4px 10px; }

/* ---------- Knöpfe und Felder ---------- */
.knopf { background: var(--akzent); color: #fff; border: 0; border-radius: 980px; padding: 9px 20px; font-weight: 600;
  transition: filter .15s, scale .15s; }
.knopf:hover { filter: brightness(1.08); }
.knopf:active { scale: .97; }
.knopf.gross { width: 100%; padding: 13px; font-size: 17px; border-radius: 14px; }
.knopf.leise { background: var(--akzent-hell); color: var(--akzent); }
.knopf.warn { background: rgba(227, 0, 0, .1); color: var(--rot); }
.knopf:disabled { opacity: .5; cursor: default; }
.textknopf { background: none; border: 0; color: var(--akzent); padding: 6px 4px; font-weight: 500; }
.textknopf.warn { color: var(--rot); }
input, select, textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--linie); border-radius: 12px;
  background: var(--karte); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--akzent); box-shadow: 0 0 0 4px var(--akzent-hell); }
textarea { min-height: 110px; resize: vertical; }
label.feld { display: block; margin: 0 0 14px; }
label.feld span { display: block; font-size: 13px; color: var(--text-2); margin: 0 0 6px 4px; }
.feldgruppe { border-radius: 14px; overflow: hidden; border: 1px solid var(--linie); background: var(--karte); }
.feldgruppe input { border: 0; border-radius: 0; }
.feldgruppe input + input { border-top: 1px solid var(--linie); }
.feldgruppe input:focus { box-shadow: inset 0 0 0 2px var(--akzent); }
.fehler { color: var(--rot); margin: 12px 4px 0; font-size: 14px; }

/* ---------- Anmelden ---------- */
.tor { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(120% 80% at 50% -10%, rgba(90, 200, 250, .25), transparent 60%), var(--grund); }
.tor-karte { width: min(420px, 100%); text-align: center; }
.tor-logo { width: 96px; height: 96px; margin-bottom: 18px; filter: drop-shadow(0 12px 28px rgba(10, 96, 255, .3)); }
.tor-text { color: var(--text-2); margin: 0 auto 26px; max-width: 340px; }
.tor form { display: grid; gap: 14px; text-align: left; }
.fuss { color: var(--text-3); font-size: 13px; margin-top: 26px; }
.fuss code { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; }

/* ---------- Portal ---------- */
.leiste { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 24px; padding: 12px 28px;
  background: color-mix(in srgb, var(--grund) 78%, transparent); backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid var(--linie); }
.marke { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.marke img { width: 30px; height: 30px; }
.reiter { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.reiter button { background: none; border: 0; padding: 7px 14px; border-radius: 980px; color: var(--text-2); font-weight: 500;
  white-space: nowrap; }
.reiter button.aktiv { background: var(--karte); color: var(--text); box-shadow: var(--schatten); }
.ich-knopf { background: none; border: 0; padding: 0; }
.avatar { --farbe: var(--akzent); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--farbe) 75%, #fff), var(--farbe)); color: #fff;
  font-weight: 700; font-size: 14px; }
.avatar.gross { width: 72px; height: 72px; font-size: 28px; }
.inhalt { max-width: 980px; margin: 0 auto; padding: 34px 28px 80px; animation: auf .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes auf { from { opacity: 0; translate: 0 8px; } }
.unter { color: var(--text-2); margin: 0 0 8px; }

.karte { background: var(--karte); border-radius: var(--rund); box-shadow: var(--schatten); padding: 22px; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.zahl { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.zahl small { font-size: 15px; color: var(--text-2); font-weight: 500; margin-left: 4px; }
.abstand-oben { margin-top: 18px; }
.kachel-titel { color: var(--text-2); font-size: 13px; font-weight: 600; margin-bottom: 6px; }

/* Speicherbalken wie bei iCloud */
.speicher { margin-top: 14px; }
.balken { height: 12px; border-radius: 6px; background: var(--linie); overflow: hidden; display: flex; }
.balken i { --anteil: 0; display: block; width: calc(var(--anteil) * 100%); background: linear-gradient(90deg, #5ac8fa, #0a60ff);
  transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.balken.voll i { background: linear-gradient(90deg, #ff9f0a, #ff3b30); }
.speicher-text { display: flex; justify-content: space-between; margin-top: 8px; color: var(--text-2); font-size: 13px; }

/* Listen */
.liste { background: var(--karte); border-radius: var(--rund); box-shadow: var(--schatten); overflow: hidden; }
.zeile { display: flex; align-items: center; gap: 14px; padding: 14px 20px; min-height: 64px; }
.zeile + .zeile { border-top: 1px solid var(--linie); }
.zeile-text { flex: 1; min-width: 0; }
.zeile-titel { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile-unter { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.karte > .zeile-unter { white-space: normal; }
.zeile-rechts { display: flex; align-items: center; gap: 8px; flex: none; }
.symbol { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--akzent-hell); color: var(--akzent); }
.symbol svg { width: 24px; height: 24px; fill: currentColor; }
.leer { color: var(--text-3); text-align: center; padding: 34px 20px; }
.marke-klein { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 980px; background: var(--akzent-hell);
  color: var(--akzent); }
.marke-klein.beta { background: rgba(245, 99, 0, .12); color: var(--orange); }
.marke-klein.aus { background: var(--linie); color: var(--text-3); }
.marke-klein.gut { background: rgba(31, 157, 85, .12); color: var(--gruen); }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }

/* Hochladen */
.ablage { border: 2px dashed var(--linie); border-radius: var(--rund); padding: 30px; text-align: center; color: var(--text-2);
  transition: border-color .15s, background .15s; cursor: pointer; }
.ablage.ueber { border-color: var(--akzent); background: var(--akzent-hell); }
.ablage b { color: var(--akzent); }
.fortschritt { height: 6px; border-radius: 3px; background: var(--linie); overflow: hidden; margin-top: 14px; }
.fortschritt i { --anteil: 0; display: block; height: 100%; width: calc(var(--anteil) * 100%); background: var(--akzent); }

/* Blatt */
.schicht { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); animation: einblenden .2s; }
@keyframes einblenden { from { opacity: 0; } }
.blatt { width: min(520px, 100%); max-height: 90vh; overflow: auto; background: var(--karte); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3); animation: hoch .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes hoch { from { translate: 0 24px; opacity: 0; } }
.blatt-kopf { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 4px; }
.blatt-inhalt { padding: 14px 22px 22px; }
.zu { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--linie); font-size: 20px; line-height: 1; }
.knoepfe { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.code { font-size: 40px; letter-spacing: .25em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.kennung { font-family: ui-monospace, Menlo, monospace; font-weight: 600; letter-spacing: .04em; }
.erklaerung { color: var(--text-2); font-size: 14px; margin: 0 0 16px; }

.hinweis { position: fixed; left: 50%; bottom: 28px; translate: -50% 0; z-index: 30; padding: 12px 20px; border-radius: 14px;
  background: rgba(29, 29, 31, .92); color: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); animation: hoch .25s; }
.hinweis.fehler { background: #c00; margin: 0; }

@media (max-width: 640px) {
  .leiste { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .reiter { order: 3; flex-basis: 100%; }
  .inhalt { padding: 22px 16px 60px; }
  h1 { font-size: 28px; }
}
