/* BubbleView online - Gestaltung der Seiten (O1, 16.11.2026). Farben als Variablen, hell und dunkel. */
:root {
  --grund: #f6f7f9; --flaeche: #ffffff; --flaeche2: #eef0f3; --linie: #d9dde3;
  --text: #1c2026; --leise: #5f6773; --akzent: #2f6fdf; --akzent-text: #ffffff;
  --gut: #1f8a4c; --warn: #b26b00; --schlecht: #c0392b;
  --rund: 8px; --schatten: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #14171c; --flaeche: #1c2027; --flaeche2: #252a33; --linie: #343a45;
    --text: #e6e9ee; --leise: #9aa3b0; --akzent: #5b93f5; --akzent-text: #0b1220;
    --gut: #43c07a; --warn: #e3a440; --schlecht: #ef6b5d; --schatten: 0 1px 2px rgba(0,0,0,.4); }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--grund); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--akzent); }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 1rem 0 .5rem; }
small, .leise { color: var(--leise); }

.kopf { display: flex; align-items: center; gap: 1.25rem; padding: .6rem 1.25rem; background: var(--flaeche); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 5; }
.kopf .marke { display: flex; align-items: center; gap: .45rem; font-weight: 650; color: var(--text); text-decoration: none; }
.kopf nav { display: flex; gap: .25rem; flex: 1; }
.kopf nav a, .kopf .wer a { padding: .35rem .6rem; border-radius: var(--rund); color: var(--text); text-decoration: none; }
.kopf nav a:hover, .kopf .wer a:hover { background: var(--flaeche2); }
.kopf a.aktiv { background: var(--flaeche2); font-weight: 600; }
.kopf .wer { display: flex; align-items: center; gap: .5rem; }

main { max-width: 1080px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.titelzeile { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.titelzeile .rechts { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 1.1rem 1.25rem; box-shadow: var(--schatten); margin-bottom: 1rem; overflow-x: auto; }

button, .knopf { font: inherit; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); border-radius: var(--rund); padding: .45rem .85rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
button:hover, .knopf:hover { background: var(--flaeche2); }
button.haupt, .knopf.haupt { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); font-weight: 600; }
button.haupt:hover { filter: brightness(1.07); }
button.gefahr { color: var(--schlecht); }
button.leise { border-color: transparent; background: transparent; color: var(--leise); }
button.klein { padding: .2rem .5rem; font-size: .88rem; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

input, select, textarea { font: inherit; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: .45rem .6rem; min-width: 0; }
.feld { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .8rem; }
.feld > span { font-weight: 550; font-size: .92rem; }
.feld small { font-size: .82rem; }
.zeile { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.zeile > .feld { flex: 1 1 180px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem .5rem; border-bottom: 1px solid var(--linie); vertical-align: middle; }
th { font-weight: 600; font-size: .85rem; color: var(--leise); }
td .knoepfe, .knoepfe { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }

.liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.projekt { display: block; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 1rem 1.1rem; color: var(--text); text-decoration: none; box-shadow: var(--schatten); }
.projekt:hover { border-color: var(--akzent); }
.projekt h3 { margin: 0 0 .35rem; }
.marke-klein { display: inline-block; font-size: .78rem; padding: .05rem .45rem; border-radius: 999px; background: var(--flaeche2); color: var(--leise); margin-right: .3rem; }
.marke-klein.warn { color: var(--warn); }
.leer { padding: 2rem; text-align: center; color: var(--leise); }

.anmeldung { max-width: 420px; margin: 8vh auto 0; }
.anmeldung .marke { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: 1.35rem; font-weight: 650; margin-bottom: 1.25rem; }
.anmeldung button.haupt { width: 100%; justify-content: center; margin-top: .25rem; }
.geheimnis { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; letter-spacing: .06em; background: var(--flaeche2); padding: .6rem .75rem; border-radius: var(--rund); word-break: break-all; user-select: all; }
.codes { columns: 2; font-family: ui-monospace, Consolas, monospace; background: var(--flaeche2); padding: .75rem 1rem; border-radius: var(--rund); }

.dialog { border: 1px solid var(--linie); border-radius: var(--rund); background: var(--flaeche); color: var(--text); padding: 1.25rem 1.4rem; width: min(520px, calc(100vw - 2rem)); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.dialog::backdrop { background: rgba(10,14,20,.45); }
.dialog .knoepfe { margin-top: 1rem; }
.hinweis { background: var(--flaeche2); border-radius: var(--rund); padding: .6rem .8rem; margin: .5rem 0; font-size: .92rem; word-break: break-all; }

#meldungen { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 50; max-width: min(420px, calc(100vw - 2rem)); }
.meldung { background: var(--flaeche); border: 1px solid var(--linie); border-left: 4px solid var(--akzent); padding: .6rem .8rem; border-radius: var(--rund); box-shadow: var(--schatten); }
.meldung.fehler { border-left-color: var(--schlecht); }
.meldung.gut { border-left-color: var(--gut); }

details > summary { cursor: pointer; font-weight: 600; margin: .5rem 0; }
.verlauf { background: var(--flaeche2); }
@media (max-width: 640px) {
  .kopf { flex-wrap: wrap; gap: .5rem; padding: .5rem .75rem; }
  .kopf nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  main { padding: 1rem .75rem 3rem; }
  th.weg, td.weg { display: none; }
}
