/* Glassmorphism for Cards and Toggle */
:root {
  --accent: #ff9500;
  --bg-light: #ffffff;
  --bg-dark: #000000;
  --term-bg: rgba(0, 0, 0, 0.82);
  --term-color: #00ff99;
  --term-highlight: rgba(0, 255, 153, 0.08);
  --card-radius: 16px;
  --card-padding: 20px;
  --media-width: 180px;
  --transition: 0.18s;
  --text-light: #111;
  --text-dark: #eaeaea;
  --glass-light: rgba(255, 255, 255, 0.55);
  --glass-dark: rgba(0, 0, 0, 0.45);
  --button-text: #111;
}

/* General Body and Background */
body {
  font-family: 'Inter', system-ui, Arial, sans-serif;
  line-height: 1.35;
  transition: background 0.25s, color 0.25s;
  background-image: url('Bilder/bg-lightmode.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

body.light {
  background-image: url('Bilder/bg-lightmode.png');
  color: var(--text-light);
}

body.dark {
  background-image: url('Bilder/bg-darkmode.png');
  color: var(--text-dark);
}

/* Glassmorphism Card Styles */
.card, .card-container {
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  transition: transform var(--transition) ease, box-shadow var(--transition) ease;
}

body.dark .card {
  background: var(--glass-dark);
  backdrop-filter: blur(12px);
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card button {
  background: var(--glass-light);
  padding: 10px 14px;
  border-radius: 18px;
  border: none;
  color: var(--button-text);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.card button:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.7);
}

/* Dark Mode Toggle */
.toggle {
  width: 72px;
  height: 36px;
  border-radius: 999px;
  background: #ddd;
  padding: 2px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.25s;
}

body.dark .toggle {
  background: #666;
}

.toggle-ball {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s;
}

body.dark .toggle-ball {
  transform: translateX(36px);
}

.toggle-ball img {
  width: 20px;
  height: 20px;
}