/* ============================================
   01 – RESET
   Browser-Grundlagen vereinheitlichen
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  position: relative;
}

/* iOS: Verhindert Gummiband-Scrollen komplett */
html {
  -webkit-overflow-scrolling: auto;
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
}

body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-deep);

  /* Radialer Lichtkegel als Hintergrund-Ambiente */
  background-image:
    radial-gradient(
      ellipse 900px 600px at 20% 0%,
      rgba(0, 230, 118, 0.06),
      transparent 60%
    ),
    radial-gradient(
      ellipse 800px 500px at 100% 100%,
      rgba(59, 130, 246, 0.05),
      transparent 60%
    );

  background-attachment: fixed;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="light"] body {
  background-image:
    radial-gradient(
      ellipse 900px 600px at 20% 0%,
      rgba(0, 154, 74, 0.05),
      transparent 60%
    ),
    radial-gradient(
      ellipse 800px 500px at 100% 100%,
      rgba(59, 130, 246, 0.04),
      transparent 60%
    );
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}

input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

::selection {
  background: var(--accent-primary);
  color: #0A0E14;
}

/* Text-Auswahl standardmäßig verhindern (App-Feel) */
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 8px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}