/* CSS-Seite: Weltraum-Thema */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Space+Mono&display=swap');

:root {
  --primary: #00ff9d;
  --secondary: #ff00e6;
  --text-primary: #ffffff;
  --text-secondary: #adb5bd;
  --bg-primary: #0a1128;
  --bg-secondary: #1c2541;
  --bg-tertiary: #252d4a;
  --border-color: #4a5568;
  --code-bg: #131a35;
  --code-text: #00ff9d;
  --code-border: #3a506b;
}

/* Allgemeiner Stil bleibt erhalten */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 255, 157, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 0, 230, 0.1) 0%, transparent 20%);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

/* Header-Bereich */
header {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 30px 20px;
  text-align: center;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
  border: 2px solid var(--primary);
}

header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
  letter-spacing: 2px;
}

header .subtitle {
  font-size: 1.2rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* Navigation */
nav {
  background-color: var(--bg-tertiary);
  border-radius: 50px;
  margin-bottom: 30px;
  position: sticky;
  top: 10px;
  z-index: 100;
  box-shadow: 0 0 15px rgba(255, 0, 230, 0.3);
  border: 2px solid var(--secondary);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 5px;
}

nav li {
  margin: 10px;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s;
  font-size: 0.95em;
  position: relative;
  border: 1px solid transparent;
}

nav a:hover {
  background-color: var(--bg-primary);
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
  transform: scale(1.05);
}

/* Hauptinhaltsbereich */
main {
  background-color: var(--bg-secondary);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  padding: 40px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  border: 2px solid var(--border-color);
}

section {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

section:last-child {
  border-bottom: none;
}

h2 {
  font-family: 'Orbitron', sans-serif;
  color: var(--primary);
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--secondary);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--secondary);
  margin: 25px 0 15px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Inhaltsboxen */
.content-box {
  background-color: var(--bg-tertiary);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.content-box p {
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(0, 255, 157, 0.2);
}

.content-box ul, .content-box ol {
  margin-left: 30px;
  margin-bottom: 15px;
}

.content-box li {
  margin-bottom: 12px;
}

/* Code-Beispiele */
.code-example {
  background-color: var(--code-bg);
  border-radius: 15px;
  padding: 15px;
  margin: 15px 0;
  overflow-x: auto;
  border: 1px solid var(--code-border);
  position: relative;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.code-example::before {
  content: "</>";
  position: absolute;
  top: -10px;
  right: 20px;
  background-color: var(--secondary);
  color: var(--bg-primary);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: bold;
}

.code-example pre {
  margin: 0;
}

.code-example code {
  color: var(--code-text);
  font-family: 'Space Mono', monospace;
  font-size: 0.95rem;
  white-space: pre;
}

/* Erklärungsliste */
.explanation {
  list-style-type: none;
  margin: 15px 0;
}

.explanation li {
  margin-bottom: 15px;
  display: flex;
  align-items: baseline;
  transition: transform 0.3s;
}

.explanation li:hover {
  transform: translateX(10px);
}

.explanation code {
  background-color: var(--code-bg);
  padding: 4px 8px;
  border-radius: 8px;
  margin-right: 12px;
  font-family: 'Space Mono', monospace;
  color: var(--code-text);
  border-left: 3px solid var(--secondary);
  box-shadow: 0 0 8px rgba(0, 255, 157, 0.2);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: 20px;
  font-size: 0.9rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-color);
}

footer p {
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  main {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav li {
    margin: 5px 0;
  }
}