/* ═══════════════════════════════════════════════════════════
   RIS - Rezept Index System
   CSS Reset & Normalisierung
   ═══════════════════════════════════════════════════════════ */

/* Box-Sizing für alle Elemente */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Margin & Padding Reset */
* {
  margin: 0;
  padding: 0;
}

/* HTML & Body Basis */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: var(--line-height-base);
  background-color: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Listen Reset */
ul,
ol {
  list-style: none;
}

/* Link Reset */
a {
  color: inherit;
  text-decoration: none;
}

/* Button Reset */
button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Input Reset */
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* Image Reset */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Tabellen Reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Scrollbar Styling (Dark Theme) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-border);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Selection Styling */
::selection {
  background: var(--accent-glow);
  color: var(--accent);
}
