:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'ui-monospace', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', monospace;
  
  --bg-color: #fcfcf9;
  --text-color: #242424;
  --primary-color: #d2691e; /* Döner Brown */
  --secondary-color: #f0f0ed;
  --accent-color: #8c8c8c; /* Rat Grey */
  --border-color: #d1d1cf;
  
  --header-bg: rgba(252, 252, 249, 0.9);
  --glass-effect: blur(4px);
}

[data-theme='dark'] {
  --bg-color: #1a1a18;
  --text-color: #e4e4e0;
  --primary-color: #e67e22;
  --secondary-color: #252522;
  --accent-color: #7a7a78;
  --border-color: #3d3d3a;
  
  --header-bg: rgba(26, 26, 24, 0.9);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.2s, color 0.2s;
}

#root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

a:hover {
  border-bottom-color: var(--primary-color);
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: -0.01em;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 600px) {
  h1 { font-size: 2.2rem !important; }
  h2 { font-size: 1.8rem !important; }
  .container { padding: 0 1rem; }
  
  header .container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  nav {
    gap: 0.75rem !important;
    font-size: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .card {
    padding: 1rem;
  }

  .card div[style*="grid-template-columns"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }
}

/* UI Elements */
.card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden; /* Prevent horizontal scroll on mobile */
}


button {
  font-family: var(--font-mono);
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

button:hover {
  border-color: var(--primary-color);
  background: var(--bg-color);
}

/* Utilities */
.subtle {
  color: var(--accent-color);
  font-size: 0.9rem;
}

/* Rat Escape Animation */
.rat-actor {
  position: fixed;
  z-index: 10000;
  font-size: 1.5rem;
  transition: all 0.6s cubic-bezier(0.5, 0, 0.5, 1);
  pointer-events: none;
}

.mouse-hole {
  position: fixed;
  width: 40px;
  height: 20px;
  background: #000;
  border-radius: 50% 50% 0 0;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  display: none;
}

#tunnel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  z-index: 10001;
  clip-path: circle(0% at 0 0); /* Wird per JS gesetzt */
  transition: clip-path 0.8s ease-in;
  pointer-events: none;
}

#tunnel-overlay.active {
  /* clip-path wird jetzt rein per JS gesteuert, um den Ursprung zu wahren */
}



