:root {
    --bg: #0f172a;
    --card-bg: #1e293b;
    --text: #e2e8f0;
    --accent: #22c55e;
    --danger: #ef4444;
    --hint: #94a3b8;
    --border: #334155;
}

/* Theme: Paper – helles, papierartiges Erscheinungsbild */
[data-theme="paper"] {
    --bg: #e8e4d9;
    --card-bg: #fdfcf0;
    --text: #2c3e50;
    --accent: #1abc9c;
    --danger: #c0392b;
    --hint: #6b7280;
    --border: #dcdde1;
}

body[data-theme="paper"] {
    font-family: "Georgia", "Times New Roman", serif;
}

body[data-theme="paper"] .save-btn {
    color: #ffffff;
}

/* Theme: Matrix – schwarz/grüner Terminal-Look */
[data-theme="matrix"] {
    --bg: #000000;
    --card-bg: #060a06;
    --text: #d0ffd0;
    --accent: #00ff41;
    --danger: #ff4d4d;
    --hint: #4caf50;
    --border: #1f3a1f;
}

body[data-theme="matrix"] {
    font-family: "Courier New", Courier, monospace;
    text-shadow: 0 0 4px rgba(0, 255, 65, 0.35);
}

body[data-theme="matrix"] .save-btn {
    color: #001a00;
    text-shadow: none;
}

/* Theme: Archify – minimalistisches Terminal-Theme, angelehnt an Arch Linux
   (Markenfarbe #1793d1) */
[data-theme="archify"] {
    --bg: #0d1117;
    --card-bg: #161b22;
    --text: #c9d1d9;
    --accent: #1793d1;
    --danger: #f85149;
    --hint: #8b949e;
    --border: #30363d;
}

body[data-theme="archify"] {
    font-family: "Fira Code", "Courier New", monospace;
}

body[data-theme="archify"] .save-btn {
    color: #ffffff;
}

/* Theme: Rage – aggressives Rot/Schwarz */
[data-theme="rage"] {
    --bg: #0a0000;
    --card-bg: #1a0000;
    --text: #ffdddd;
    --accent: #ff1744;
    --danger: #b71c1c;
    --hint: #ff8a80;
    --border: #4d0000;
}

body[data-theme="rage"] {
    font-family: system-ui, sans-serif;
    font-weight: 600;
}

body[data-theme="rage"] h1,
body[data-theme="rage"] h2,
body[data-theme="rage"] h3 {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body[data-theme="rage"] .save-btn {
    color: #1a0000;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, sans-serif;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.gap-2 {
    gap: 0.5rem;
}

.items-center {
    align-items: center;
}

input,
select,
textarea,
button {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 3rem;
}

button {
    cursor: pointer;
}

.save-btn {
    background: var(--accent);
    color: #04260f;
    border: none;
    font-weight: 600;
}

.logout-btn,
.danger-btn {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
}

.hint-text {
    color: var(--hint);
    font-size: 0.85rem;
}

.error-msg {
    color: var(--danger);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}

li:last-child {
    border-bottom: none;
}

.mb-1 {
    margin-bottom: 1rem;
}

.nav-btn {
    background: transparent;
}

.nav-btn.active {
    background: var(--accent);
    color: #04260f;
    border-color: var(--accent);
    font-weight: 600;
}

.login-form {
    max-width: 320px;
    margin: 0 auto;
}

.theme-select {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
}

.app-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--hint);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.build-info {
    text-align: right;
}
