@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url('schriften/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url('schriften/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600;
  font-display: swap; src: url('schriften/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600;
  font-display: swap; src: url('schriften/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Grundgestaltung „Aurora“, immer heller Modus (html[data-theme="light"]). */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 15px/1.45 var(--font-sans); color: var(--text);
  background: var(--bg-gradient); background-attachment: fixed; min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: var(--tracking-tight); line-height: 1.15; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
mark { background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 0 2px; font-weight: 600; }
[hidden] { display: none !important; }

.label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: var(--tracking-wide); color: var(--text-muted); }
.muted { color: var(--text-muted); }
.klein { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopfzeile */
.oben { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border); background: var(--surface);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); }
.oben .marke { font-weight: 700; font-size: 18px; background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.oben .marke:hover { text-decoration: none; }
.oben nav { display: flex; gap: var(--space-1); }
.oben nav a { padding: 6px 12px; border-radius: var(--r-pill); color: var(--text); font-size: 14px; }
.oben nav a:hover { background: var(--accent-soft); text-decoration: none; }
.oben nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.oben .suchform { flex: 1; display: flex; }
.oben form.abmelden { margin: 0; display: flex; align-items: center; gap: .25rem; }
.oben .konto-name { color: var(--text-muted); font-size: .9rem; margin-right: .25rem; }
/* Schmale Fenster: Die Kopfzeile bricht um, statt die Seite waagerecht rollen zu lassen. Bis 1000 px (iPad hoch)
   rutscht das Suchfeld bei Bedarf in eine zweite Zeile; am Telefon stehen Navigation und Suche je in einer eigenen. */
@media (max-width: 1000px) {
  .oben { flex-wrap: wrap; row-gap: var(--space-2); }
  .oben .suchform { flex: 1 1 200px; }
}
@media (max-width: 700px) {
  .oben { column-gap: var(--space-3); padding: var(--space-2) var(--space-3); }
  .oben .marke { margin-right: auto; }
  .oben nav { order: 1; flex: 1 0 100%; min-width: 0; overflow-x: auto; }
  .oben nav a { padding: 6px 10px; white-space: nowrap; }
  .oben .suchform { order: 2; flex: 1 0 100%; }
}

/* Inhalt */
.inhalt { max-width: 960px; margin: 0 auto; padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }

/* Karten */
.karte { background: var(--surface); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.karte-kopf a { font-size: 13px; white-space: nowrap; }

/* Listen */
.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.liste li { padding: var(--space-2) 0; border-top: 1px solid var(--border); display: flex; gap: var(--space-3); align-items: baseline; }
.liste li:first-child { border-top: 0; padding-top: 0; }
.liste .zeit { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); min-width: 52px; }
.liste .titel { font-weight: 550; color: var(--text); }
.liste .rest { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.liste .rest p { color: var(--text-muted); font-size: 13px; overflow-wrap: anywhere; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--font-mono); font-size: 11px; padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border); }
a.chip:hover { text-decoration: none; border-color: var(--accent); }
.chip[aria-current="true"] { border-color: var(--accent); font-weight: 600; }

/* Bedienelemente */
.btn { font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; border-radius: var(--r-pill);
  padding: 8px 16px; border: 1px solid var(--border-input); background: var(--surface-solid); color: var(--text);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
a.btn:hover { text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.btn.primaer { background: var(--gradient); color: var(--text-on-accent); border-color: transparent; box-shadow: var(--glow); }
.btn.leise { border-color: transparent; background: transparent; color: var(--text-muted); }
.btn.gefahr { color: var(--error); }
.feld { font: inherit; width: 100%; padding: 10px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border-input); background: var(--surface-solid); color: var(--text); }
textarea.feld { border-radius: var(--r-sm); resize: vertical; line-height: var(--leading-body); }
.feld:focus, .btn:focus-visible, a:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label.feldname { display: flex; flex-direction: column; gap: var(--space-1); font-size: 13px; font-weight: 600; }
.knoepfe { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }

/* Meldungen: Farbe nie allein, immer mit Rand und Text */
.meldung { border: 1px solid var(--border-strong); border-left-width: 1px; border-radius: var(--r-sm);
  padding: var(--space-3); background: var(--surface-solid); font-size: 14px; }
.meldung.fehler { border-color: var(--error); color: var(--error); }
.meldung.erfolg { border-color: var(--success); color: var(--success); }

/* Anmeldung */
.anmeldung { max-width: 420px; margin: 12vh auto 0; }
.anmeldung form { display: flex; flex-direction: column; gap: var(--space-3); }

/* Dialog „Schnell ablegen“ */
.ablegen-dialog { border: 0; padding: 0; background: transparent; width: min(640px, calc(100vw - 32px)); }
.ablegen-dialog::backdrop { background: #12141c66; backdrop-filter: blur(4px); }
.ablegen-dialog .karte { background: var(--surface-solid); box-shadow: var(--shadow-lg); border-radius: var(--r-lg); padding: var(--space-5); }
.schnellform { max-width: 640px; }

/* Ablagefeld für Dateien (Dialog „Schnell ablegen“, Notizansicht, Übersicht) */
.ablage { flex: 1 1 320px; }
.ablage { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3); border: 1px dashed var(--border-input); border-radius: var(--r-md); background: var(--surface-solid); }
.ablage.ueber { border-style: solid; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ablage-text { font-size: 13px; font-weight: 600; }
.ablage-feld { font: inherit; max-width: 100%; }
