@import url('/css/vendor/inter.css');

/* Base styles */
:root {
    --primary: #000000;
    --primary-hover: #1a1a1a;
    --accent: #374151;
    --accent-foreground: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --background: #ffffff;
    --foreground: #1a1a1a;
    --primary-foreground: #ffffff;
    --secondary: #f3f4f6;
    --secondary-foreground: #1f2937;
    --destructive: #dc2626;
    --destructive-foreground: #ffffff;
    --muted: #f3f4f6;
    --muted-foreground: #6b7280;
    --popover: #ffffff;
    --popover-foreground: #1a1a1a;
    --card: #ffffff;
    --card-foreground: #1a1a1a;
    --border: #e5e7eb;
    --input: #e5e7eb;
    --ring: var(--brand-500, #8b5cf6);
    --sidebar-background: #ffffff;
    --sidebar-foreground: #1a1a1a;
    --radius: 0.5rem;
    --input-border: #e5e7eb;
    --input-bg: #f9fafb;
    --error: #ef4444;
    --success: #22c55e;
    --mm-header-inline-space: 1rem;
    --mm-header-mobile-action: #64748b;
}

/*
 * Native fallback: actionable controls must still look interactive if the
 * generated utility stylesheet is unavailable. :where() keeps specificity at
 * zero so every utility class can override these defaults.
 */
/* Grundform nur als Rückfallebene: Knöpfe OHNE jede Klasse, .btn und Submit-Felder.
 * Nicht für Knöpfe mit Utility-Klassen (Symbolknöpfe in Kopfleiste, Schnellstart, FAB):
 * die bringen ihre Gestaltung selbst mit, aber keine Hintergrundklasse, deshalb bekamen
 * sie am 17.10.2026 auf dem Handy alle eine Markenfüllung mit unsichtbarem Symbol. */
:where(button:not([class]), .btn, input[type="submit"]) {
    appearance: none;
    background-color: var(--brand-600, #7c3aed);
    border: 1px solid transparent;
    border-radius: 0.5rem;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    line-height: 1.25;
    padding: 0.625rem 1rem;
}

:where(button, .btn, input[type="submit"]):focus-visible {
    outline: 3px solid rgb(var(--brand-400-rgb, 167 139 250) / 0.65);
    outline-offset: 2px;
}

:where(button, input[type="submit"]):disabled,
:where(.btn[aria-disabled="true"]) {
    cursor: not-allowed;
    opacity: 0.55;
}

:where(button[data-variant="secondary"]) {
    background-color: transparent;
    border-color: var(--brand-600, #7c3aed);
    color: var(--brand-600, #7c3aed);
}

.app-header,
#app-header-mobile {
    padding-inline: var(--mm-header-inline-space);
}

/* Dark mode variables */
.dark {
    --primary: #ffffff;
    --primary-hover: #e5e7eb;
    --primary-foreground: #111827;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --background: #1a1a1a;
    --foreground: #f9fafb;
    --secondary: #1f2937;
    --secondary-foreground: #f9fafb;
    --muted: #1f2937;
    --muted-foreground: #9ca3af;
    --accent: #374151;
    --accent-foreground: #f9fafb;
    --popover: #111827;
    --popover-foreground: #f9fafb;
    --card: #111827;
    --card-foreground: #f9fafb;
    --border: #374151;
    --input: #374151;
    --sidebar-background: #111827;
    --sidebar-foreground: #f9fafb;
    --input-border: #374151;
    --input-bg: #111827;
    --mm-header-mobile-action: #d1d5db;
}

/* Global styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
}

/* Layout components */
.auth-container {
    width: 100%;
    max-width: 448px;
    margin: 64px auto;
    padding: 0 16px;
}

.page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

/* Typography */
.page-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

/* Form Components */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 500;
    color: #000000;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(205, 149, 12, 0.1);
}

/* Buttons */
.btn {
    height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--input-bg);
    color: var(--text-primary);
    border: 1px solid var(--input-border);
}

.btn-secondary:hover {
    background-color: var(--input-border);
}

/* Links */
.link {
    color: rgb(75 85 99);
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-decoration: none;
    transition: all 0.2s;
}

.link:hover {
    color: rgb(17 24 39);
    text-decoration: underline;
}

/* Speziell für den Registrieren-Link */
.link-register {
    font-weight: 500;
    color: #000000;
}

.link-register:hover {
    color: rgb(17 24 39);
}

/* Messages */
.message {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.message-success {
    background-color: var(--success);
    color: white;
}

.message-error {
    background-color: var(--error);
    color: white;
}

/* Tables */
.table-container {
    overflow-x: auto;
    background-color: var(--background);
    border: 1px solid var(--input-border);
    border-radius: 12px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background-color: var(--input-bg);
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
    color: var(--text-secondary);
}

.table td {
    padding: 12px 16px;
    border-top: 1px solid var(--input-border);
}

/* Cards */
.card {
    background-color: var(--background);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 24px;
}
