:root {
  --main-color: #00ADEF;
  --secondary-color: #0088BE;
  --accent-color: #00C6FF;
  --dark-blue: #003B5C;
  --bg-color: #ffffff;
  --light-bg: #f8fafb;
  --text-color: #2c3e50;
  --text-light: #6c757d;
  --border-color: #e9ecef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  scroll-behavior: smooth;
  line-height: 1.6;
  padding-top: 280px; /* Viel mehr Platz für den fixen Header */
  padding-bottom: 80px; /* Platz für den fixen Footer */
}

.header-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
  box-shadow: 0 4px 20px rgba(0, 173, 239, 0.15);
  border-bottom: 1px solid rgba(0, 173, 239, 0.1);
}

/* Logo-Header CSS entfernt, da Logo jetzt im Header ist */

header {
  background: linear-gradient(135deg, var(--main-color) 0%, #0099d4 25%, var(--secondary-color) 75%, #006999 100%);
  color: white;
  padding: 30px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.1) 100%);
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

header img {
  display: block;
  /* Keine Skalierung - behält originale Größe */
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.2s ease;
}

header a {
  text-decoration: none;
  display: block;
  cursor: pointer;
}

header a:hover img {
  transform: scale(1.02);
}

.header-text-group {
  text-align: left;
  position: relative;
  z-index: 2;
}

header h1 {
  margin: 0 0 8px 0;
  font-size: 2.2em;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: white;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

header p {
  margin: 0;
  font-size: 1.1em;
  opacity: 0.95;
  color: white;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 400;
}

.content-container {
  max-width: 1000px;
  margin: 0 auto;
  min-height: 400px;
  position: relative;
  /* background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%); */
  border-radius: 0px;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
  margin-top: 0;
  margin-bottom: 20px;
}

.content-section {
  padding: 0px 40px;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 12px;
}

/* Header h1 und p Styles sind jetzt oben definiert */

nav {
  background-color: var(--dark-blue);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 16px 24px;
  display: block;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

nav a:hover, nav a.active {
  background-color: var(--main-color);
  border-bottom-color: var(--accent-color);
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

footer a.active {
  color: white;
  font-weight: bold;
}

/* Alte section Styles entfernt, da jetzt .content-section verwendet wird */

h2 {
  color: var(--dark-blue);
  margin-bottom: 25px;
  font-size: 2em;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--main-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
  border-radius: 2px;
  /* box-shadow: 0 2px 4px rgba(0, 173, 239, 0.3); */
}

h3 {
  color: var(--secondary-color);
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: 600;
}

h4 {
  color: var(--dark-blue);
  font-size: 1.2em;
  margin: 25px 0 12px 0;
  font-weight: 600;
}

p {
  color: var(--text-color);
  margin-bottom: 16px;
  line-height: 1.7;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.two-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.column {
  flex: 1;
  min-width: 280px;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
}

ul li::before {
  content: "▶";
  color: var(--main-color);
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 0.8em;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--dark-blue) 0%, #1a2f4a 25%, var(--secondary-color) 75%, #006999 100%);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 173, 239, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
  }
  
  header {
    flex-direction: column;
    gap: 20px;
    padding: 30px 20px;
  }
  
  .header-text-group {
    text-align: center;
  }
  
  header h1 {
    font-size: 1.8em;
  }
  
  .content-section {
    padding: 40px 20px;
  }
  
  .content-container {
    margin: 10px;
    border-radius: 8px;
  }
  
  /* Mobile: Header und Footer nicht feststehend */
  .header-container {
    position: relative;
  }
  
  footer {
    position: relative;
  }
  
  body {
    padding-top: 0; /* Kein Padding mehr für mobil */
    padding-bottom: 0;
  }
}

/* Editor Styles - Syntax Highlighting */
.editor-container {
  position: relative;
  margin: 10px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #1e1e1e;
}

.editor-container pre {
  margin: 0;
  padding: 15px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  tab-size: 2;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #d4d4d4;
  background: transparent;
}

.editor-container textarea {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 15px;
  border: none;
  background: transparent;
  color: transparent;
  caret-color: #fff;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  tab-size: 2;
  resize: none;
  outline: none;
}

/* HTML Syntax Highlighting */
.html-editor .tag { color: #569cd6; }
.html-editor .attribute { color: #9cdcfe; }
.html-editor .string { color: #ce9178; }
.html-editor .comment { color: #6a9955; }
.html-editor .doctype { color: #808080; }
.html-editor .content { color: #d4d4d4; }

/* CSS Syntax Highlighting */
.css-editor .selector { color: #d7ba7d; }
.css-editor .property { color: #9cdcfe; }
.css-editor .value { color: #ce9178; }
.css-editor .unit { color: #b5cea8; }
.css-editor .comment { color: #6a9955; }
.css-editor .punctuation { color: #d4d4d4; }
.css-editor .important { color: #569cd6; }
.css-editor .media { color: #c586c0; }

/* JavaScript Syntax Highlighting */
.js-editor .keyword { color: #569cd6; }
.js-editor .string { color: #ce9178; }
.js-editor .number { color: #b5cea8; }
.js-editor .function { color: #dcdcaa; }
.js-editor .method { color: #dcdcaa; }
.js-editor .class { color: #4ec9b0; }
.js-editor .operator { color: #d4d4d4; }
.js-editor .comment { color: #6a9955; }
.js-editor .variable { color: #9cdcfe; }
.js-editor .constant { color: #4fc1ff; }
.js-editor .boolean { color: #569cd6; }
.js-editor .null { color: #569cd6; }
.js-editor .this { color: #569cd6; }
.js-editor .punctuation { color: #d4d4d4; }
.js-editor .regex { color: #d16969; }
.js-editor .object { color: #9cdcfe; }

/* Editor Theme Enhancements */
.editor-container {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #2d2d2d;
}

.editor-container:focus-within {
  border-color: var(--main-color);
  box-shadow: 0 0 0 2px rgba(0, 173, 239, 0.2);
}

/* Scrollbar Styling */
.editor-container ::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.editor-container ::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.editor-container ::-webkit-scrollbar-thumb {
  background: #3e3e3e;
  border-radius: 6px;
  border: 3px solid #1e1e1e;
}

.editor-container ::-webkit-scrollbar-thumb:hover {
  background: #4e4e4e;
} 