/* Fallback-Styles für den Fall, dass Vite/Tailwind im lokalen Setup nicht läuft.
   Diese Datei ist bewusst klein und neutral gehalten. */

:root {
  /* --primary is set dynamically via inline style in layouts/app.blade.php */
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Lato, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.link-primary { color: var(--primary); }
.link-primary:hover { text-decoration: underline; }

.hover-border-primary:hover { border-color: var(--primary) !important; }

nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

main { max-width: 72rem; margin: 0 auto; padding: 1.25rem 1rem; }

/* simple utility-ish */
.rounded { border-radius: 2px; }
.border { border: 1px solid var(--border); }
.bg-white { background: var(--card); }
.text-sm { font-size: 0.875rem; }
.text-gray { color: var(--muted); }

button, .btn {
  text-decoration: none;
  appearance: none;
  border: 0;
  background: var(--card);
  color: var(--text);
  border-radius: 2px;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, filter .15s ease, transform .05s ease;
}
button:hover:not(.btn-primary),
.btn:hover:not(.btn-primary) {
  background: color-mix(in srgb, var(--primary) 28%, white);
  border-color: transparent;
  text-decoration: none;
}

.btn.btn-primary,
button.btn-primary {

  /* Menü-Button-Style wie Header-Buttons (gradient/bevel) */
  border: 0;
  background: var(--primary);
  color: var(--btn-text, #fff);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .10);
}
.btn.btn-primary:hover,
button.btn-primary:hover {

  background: var(--btn-hover-bg, #3b3b3b);
  border-color: transparent;
  color: var(--btn-hover-text, #fff);
  filter: none;
  text-decoration: none;
}

.btn.btn-primary:active,
button.btn-primary:active {

  transform: translateY(1px);
}

.btn-primary-auth:hover {
  color: #fff;
  text-decoration: none;
}

.badge-primary {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--primary) 12%, white);
  color: color-mix(in srgb, var(--primary) 85%, black);
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: var(--card);
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0.25rem;
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem 1rem; border-top: 1px solid var(--border); vertical-align: top; }
th { text-align: left; color: var(--muted); font-weight: 700; background: #f8fafc; }

/* Modern-ish tables even without Vite */
.table-modern thead { background: #f8fafc; }
.table-modern tbody tr:hover { background: color-mix(in srgb, var(--primary) 6%, transparent); }
.table-modern tbody tr:nth-child(odd) { background: #fdfeff; }
.table-modern tbody tr:nth-child(even) { background: #ffffff; }

/* mobile */
@media (max-width: 640px) {
  main { padding: 1rem 0.75rem; }
  th, td { padding: 0.6rem 0.75rem; }
}
