/* Gemeinsame Grundlagen: Farben, Schrift, Flaechen. Gilt fuer Anmeldung und App. */
:root {
  --grund: #0b0f17;
  --grund-2: #0f1522;
  --flaeche: rgba(255, 255, 255, 0.035);
  --flaeche-hover: rgba(255, 255, 255, 0.06);
  --flaeche-stark: rgba(255, 255, 255, 0.075);
  --rand: rgba(255, 255, 255, 0.08);
  --rand-stark: rgba(255, 255, 255, 0.16);
  --text: #e9edf5;
  --text-2: #b3bccd;
  --text-3: #8791a6;
  --akzent: #49dcc4;
  --akzent-tief: #1f9e8b;
  --akzent-glanz: rgba(73, 220, 196, 0.16);
  --violett: #9a8cff;
  --warn: #f5b454;
  --fehler: #ff7a8a;
  --gut: #6fe39a;
  --radius: 14px;
  --radius-klein: 10px;
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --schatten: 0 20px 60px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--grund);
  -webkit-font-smoothing: antialiased;
}
/* Der Farbverlauf liegt auf einer eigenen festen Ebene. background-attachment: fixed
   wuerde bei jedem Scrollen die ganze Seite neu zeichnen lassen. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(73, 220, 196, 0.10), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(154, 140, 255, 0.10), transparent 55%),
    linear-gradient(180deg, var(--grund-2), var(--grund) 60%);
}

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 28px; line-height: 1.2; }
h2 { font-size: 22px; line-height: 1.25; }
h3 { font-size: 17px; }

a { color: var(--akzent); }

button, input, textarea, select { font: inherit; color: inherit; }

/* Glasflaeche ohne Weichzeichner: hinter den Tafeln liegt nur der ruhige Verlauf, ein
   backdrop-filter braechte optisch nichts, kostet aber mit Videos darunter viel Rechenzeit. */
.glas {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid var(--rand-stark);
  background: var(--flaeche-stark);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  text-decoration: none;
  white-space: nowrap;
}
.knopf:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); }
.knopf:active { transform: translateY(1px); }
.knopf:disabled { opacity: 0.45; cursor: not-allowed; }
.knopf.haupt {
  background: linear-gradient(180deg, #58e6cf, #2fbea7);
  border-color: transparent;
  color: #04201b;
}
.knopf.haupt:hover { background: linear-gradient(180deg, #6cefd9, #38c9b1); }
.knopf.leise { background: transparent; border-color: transparent; color: var(--text-2); }
.knopf.leise:hover { background: var(--flaeche-hover); color: var(--text); }
.knopf.gefahr { color: var(--fehler); }
.knopf.klein { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 9px; }

:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

.feld {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: var(--radius-klein);
  border: 1px solid var(--rand-stark);
  background: rgba(8, 12, 20, 0.55);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.feld:hover { border-color: rgba(255, 255, 255, 0.24); }
.feld:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-glanz); }
textarea.feld { resize: vertical; line-height: 1.45; }
select.feld { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select.feld option { background: #121827; color: var(--text); }

.beschriftung { display: block; font-size: 14px; font-weight: 600; color: var(--text-2); margin: 0 0 7px; }
.hinweis { font-size: 14px; color: var(--text-3); }
.fehlertext { color: var(--fehler); font-size: 15px; }
.versteckt { display: none !important; }
