/* assets/style.css – System-Fonts, kein Google Fonts */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --clr-bg:       #f5f5f5;
    --clr-surface:  #ffffff;
    --clr-primary:  #2563eb;
    --clr-primary-h:#1d4ed8;
    --clr-accent:   #2563eb;      /* NEU — Alias für Themes */
    --clr-accent-h: #1d4ed8;      /* NEU */
    --clr-danger:   #dc2626;
    --clr-danger-h: #b91c1c;
    --clr-success:  #16a34a;
	--clr-track:    #334155;    /* NEU — Standard hell */
    --clr-border:   #e2e8f0;
    --clr-text:     #1e293b;
    --clr-muted:    #64748b;
    --clr-topbar-bg:var(--clr-surface);   /* NEU */
    --clr-topbar-tx:var(--clr-text);      /* NEU */
    --clr-topbar-bd:var(--clr-border);   /* NEU */
	--clr-brand-text: #1a1a1a;
    --radius: 8px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
body {
    font-family: var(--font);
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    font-size: 15px;
}

/* ---- Layout ---- */
.container { max-width: 960px; margin: 2rem auto; padding: 0 1rem; }

/* ---- Topbar ---- */

	.topbar {
    background: var(--clr-topbar-bg);
    border-bottom: 1px solid var(--clr-topbar-bd);
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.topbar__name { font-weight: 600; font-size: 1.05rem; color: var(--clr-topbar-tx); }
.topbar nav { display: flex; gap: 1.25rem; }
.topbar nav a { color: var(--clr-topbar-tx); text-decoration: none; font-size: .9rem; opacity: .75; }
.topbar nav a:hover { opacity: 1; text-decoration: underline; }
.topbar nav a.nav-active { opacity: 1; font-weight: 700; }
	
/* ---- Auth Card ---- */
.auth-card {
    max-width: 420px;
    margin: 4rem auto;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 2rem;
}
.auth-card h1 { margin-bottom: 1.5rem; font-size: 1.4rem; }
.auth-footer  { margin-top: 1rem; font-size: .9rem; color: var(--clr-muted); }
.auth-footer a { color: var(--clr-primary); }

/* ---- Forms ---- */
label {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: 1rem;
    font-size: .9rem;
    font-weight: 500;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: .55rem .75rem;
    border: 1px solid var(--clr-border);
    border-radius: calc(var(--radius) - 2px);
    font-family: var(--font);
    font-size: .95rem;
    background: var(--clr-surface);
    color: var(--clr-text);
    transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .6rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}
.btn--primary       { background: var(--clr-accent);   color: #fff; }
.btn--primary:hover { background: var(--clr-accent-h); }
.btn--secondary { background: var(--clr-border);    color: var(--clr-text); }
.btn--secondary:hover { background: #cbd5e1; }
.btn--danger    { background: var(--clr-danger);    color: #fff; }
.btn--danger:hover { background: var(--clr-danger-h); }
.btn--sm        { padding: .35rem .75rem; font-size: .8rem; }
.btn--full      { width: 100%; }

/* ---- Alerts ---- */
.alert {
    border-radius: var(--radius);
    padding: .85rem 1rem;
    margin-bottom: 1rem;
    font-size: .9rem;
}
.alert--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert--success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert--error li { margin-left: 1.2rem; }

/* ---- Filter Bar ---- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.filter-bar label { margin-bottom: 0; min-width: 150px; }

/* ---- Data Table ---- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: .88rem;
}
.data-table th {
    background: #f1f5f9;
    padding: .65rem .85rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--clr-border);
}
.data-table td {
    padding: .6rem .85rem;
    border-bottom: 1px solid var(--clr-border);
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.row--cancelled { opacity: .6; }

/* ---- Badges ---- */
.badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}
.badge--confirmed { background: #dcfce7; color: #166534; }
.badge--cancelled { background: #fee2e2; color: #991b1b; }

/* ---- Misc ---- */
.muted       { color: var(--clr-muted); }
.empty-hint  { color: var(--clr-muted); padding: 2rem; text-align: center; }

h1 { font-size: 1.5rem; margin-bottom: 1.25rem; }
h2 { font-size: 1.2rem; margin: 1.5rem 0 .75rem; }
	
	/* ═══════════════════════════════════════════════════════════════
   table_assign.css  –  Ergänzungen zu style.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Tischzuweisung im Dashboard ── */
.ta-widget {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.ta-widget--assigned {
    padding: .5rem .65rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
}

.ta-partial {
    margin-top: .35rem;
    padding-top: .35rem;
    border-top: 1px solid #d1fae5;
}

.ta-select {
    font-size: .82rem;
    padding: .3rem .45rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    background: #fff;
    color: inherit;
    min-width: 180px;
}

/* ── Seat-Dots (wiederverwendbar) ── */
.seat-row {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    align-items: center;
}

.seat-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid;
    flex-shrink: 0;
}

.seat-dot--free { background: #dcfce7; border-color: #16a34a; }
.seat-dot--used { background: #fee2e2; border-color: #dc2626; }

/* ── Badges (falls noch nicht vorhanden) ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .73rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge--green  { color: #166534; background: #dcfce7; }
.badge--yellow { color: #713f12; background: #fef9c3; }
.badge--red    { color: #7f1d1d; background: #fee2e2; }
.badge--gray   { color: #374151; background: #f3f4f6; }
.badge--blue   { color: #1e3a5f; background: #dbeafe; }

/* ── Auslastungsbalken ── */
.cap-bar {
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: #e5e7eb;
    overflow: hidden;
    margin-top: 3px;
}
.cap-bar__fill            { height: 100%; border-radius: 3px; background: #16a34a; transition: width .3s; }
.cap-bar__fill--warn      { background: #d97706; }
.cap-bar__fill--full      { background: #dc2626; }

	/* ── Themes ─────────────────────────────────────────────── */
body.theme-light {
    --clr-bg:       #f3f4f6;
    --clr-surface:  #ffffff;
    --clr-border:   #e5e7eb;
    --clr-text:     #111827;
    --clr-muted:    #6b7280;
    --clr-accent:   #4f46e5;
    --clr-accent-h: #4338ca;
    --clr-topbar-bg:#ffffff;
    --clr-topbar-tx:#111827;
    --clr-topbar-bd:#e5e7eb;
}

body.theme-dark {
    --clr-bg:       #0f172a;
    --clr-surface:  #1e293b;
    --clr-border:   #334155;
    --clr-text:     #e2e8f0;
    --clr-muted:    #94a3b8;
    --clr-accent:   #6366f1;
    --clr-accent-h: #818cf8;
    --clr-topbar-bg:#1e293b;
    --clr-topbar-tx:#f1f5f9;
    --clr-topbar-bd:#334155;
    --clr-track:    #1e3a5f;
	--clr-brand-text: #f1f5f9;
}

body.theme-ocean {
    --clr-bg:       #f0f7ff;
    --clr-surface:  #ffffff;
    --clr-border:   #bfdbfe;
    --clr-text:     #0c2d4a;
    --clr-muted:    #3d6b8e;
    --clr-accent:   #1a6fa8;
    --clr-accent-h: #1a4e7a;
    --clr-topbar-bg:#1a4e7a;
    --clr-topbar-tx:#e0f0ff;
    --clr-topbar-bd:#1a4e7a;
	--clr-brand-text: #e0f0ff;
}

body.theme-sand {
    --clr-bg:       #faf7f2;
    --clr-surface:  #ffffff;
    --clr-border:   #e8ddd0;
    --clr-text:     #2c1e14;
    --clr-muted:    #7a5c45;
    --clr-accent:   #8b5e3c;
    --clr-accent-h: #6b4a2e;
    --clr-topbar-bg:#3d2b1f;
    --clr-topbar-tx:#f5ede3;
    --clr-topbar-bd:#3d2b1f;
	--clr-brand-text: #f5ede3;
}
