:root {
  /* Restored original color palette */
  --primary-color: #00aaa0; /* Teal/turquoise - main accent */
  --primary-dark: #008e87; /* Darker teal for hover states */
  --secondary-color: #2d3436; /* Dark gray/almost black for header/footer */
  --background-color: #f5f7fa; /* Light gray background */
  --text-color: #2d3436; /* Dark text */
  --card-bg: #ffffff; /* White card backgrounds */
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Subtle shadow */
  --highlight-color: #e67e22; /* Orange for highlights/accents */
  --button-color: #00aaa0; /* Teal for buttons */
  --button-hover: #008e87; /* Darker teal for button hover */
  --code-bg: #f0f2f5; /* Light gray for code blocks */
  --border-color: #eaeaea; /* Very light gray for borders */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: var(--secondary-color);
  color: white;
  padding: 30px 0;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
}

header h1 {
  margin-bottom: 10px;
  color: white;
}

header p {
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.9;
}

nav {
  background-color: var(--secondary-color);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid var(--primary-color);
}

nav ul {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: var(--primary-color);
}

section {
  padding: 40px 0;
  scroll-margin-top: 60px;
}

h2,
h3 {
  color: var(--primary-color);
}

.github-buttons {
  margin-top: 20px;
}

.github-buttons a {
  display: inline-block;
  background-color: var(--button-color);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  margin: 5px;
  transition: background-color 0.3s;
  font-weight: 500;
}

.github-buttons a:hover {
  background-color: var(--code-bg);
  color: var(--button-hover);
}

.screenshot {
  max-width: 100%;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

/* Feature cards - restore original styling */
.feature-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  border-top: 3px solid var(--primary-color);
  transition: transform 0.2s ease;
}

/* Remove alternating colors that were added */
.feature-card:nth-child(3n-1),
.feature-card:nth-child(3n) {
  border-top-color: var(--primary-color);
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-card h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.code-block {
  background-color: var(--code-bg);
  border-left: 4px solid var(--primary-color);
  padding: 15px;
  margin: 20px 0;
  overflow-x: auto;
  border-radius: 0 4px 4px 0;
}

.code-block pre {
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
}

footer {
  background-color: var(--secondary-color);
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
}

footer a {
  color: var(--primary-color);
  text-decoration: underline;
}

footer a:hover {
  color: white;
}

/* Language toggle */
.language-toggle {
  position: absolute;
  top: 10px;
  right: 20px;
}

.language-toggle button {
  background: transparent;
  color: white;
  border: 1px solid var(--primary-color);
  padding: 5px 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.language-toggle button:hover {
  background-color: var(--primary-color);
}

.language-toggle button.active {
  background-color: var(--primary-color);
  color: white;
}

/* Add fixed language toggle for scrolled state */
.floating-language-toggle {
  position: fixed;
  top: 20px;
  right: 20px; /* Changed from left: 20px to right: 20px */
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1000;
  opacity: 0;
  transform: translateX(
    20px
  ); /* Changed from translateX(-20px) to translateX(20px) */
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-language-toggle.visible {
  opacity: 0.8;
  transform: translateX(0);
  pointer-events: all;
}

.floating-language-toggle:hover {
  opacity: 1;
}

.floating-language-toggle button {
  background-color: var(--secondary-color);
  color: white;
  border: 1px solid var(--primary-color);
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  width: 40px;
}

.floating-language-toggle button:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.floating-language-toggle button.active {
  background-color: var(--primary-color);
}

/* Responsive design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }

  nav li {
    width: 100%;
    text-align: center;
  }
}

/* Language specific content */
.de {
  display: none;
}

body.german .en {
  display: none;
}

body.german .de {
  display: block;
}

/* Additional styling */
a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

strong {
  color: var(--primary-dark);
}

ul li,
ol li {
  margin-bottom: 8px;
}

/* Audio wave decoration for header */
.wave-decoration {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 30px;
  opacity: 0.1;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.5) 10px,
    rgba(255, 255, 255, 0.5) 20px
  );
}

/* Tab Interface Styles */
.tab-container {
  width: 100%;
  margin: 20px 0;
}

.tab-buttons {
  display: flex;
  overflow-x: auto;
  border-bottom: 2px solid var(--primary-color);
}

.tab-button {
  background-color: #f0f2f5;
  border: none;
  padding: 15px 25px;
  margin-right: 5px;
  cursor: pointer;
  font-weight: 500;
  border-radius: 5px 5px 0 0;
  transition: background-color 0.3s, color 0.3s;
}

.tab-button:hover {
  background-color: #e0e2e5;
}

.tab-button.active {
  background-color: var(--primary-color);
  color: white;
}

.tab-content {
  display: none;
  padding: 10px 40px;
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow);
  border-radius: 0 5px 5px 5px;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 0.8;
}

.back-to-top:hover {
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Monospaced subtitle */
.mono-subtitle {
  font-family: "JetBrains Mono", "Space Mono", monospace;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  margin: 10px 0;
  padding: 5px 10px;
  background-color: rgba(0, 0, 0, 0.15);
  display: inline-block;
  border-radius: 3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border-left: 3px solid var(--primary-color);
  border-right: 3px solid var(--primary-color);
  transition: all 0.3s ease;
}

.mono-subtitle:hover {
  transform: translateY(-2px);
  background-color: rgba(0, 0, 0, 0.25);
}

/* Screenshot container */
.screenshot-container {
  margin: auto;
  text-align: center;
  max-width: 90%;
  margin-top: 90px;
}

.screenshot-container figcaption {
  font-style: italic;
  color: #555;
  margin-top: 10px;
  font-size: 0.9rem;
}

.screenshot {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

.intro {
  margin: auto;
  max-width: 70%;
  font-weight: 500;
  text-align: center;
}

/* Add these styles for the installation section */
.installation-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 20px 0;
}

/* Installation options - restore original styling */
.installation-option {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  border-left: 3px solid var(--primary-color);
}

/* Remove alternating colors that were added */
.installation-option:nth-child(even) {
  border-left-color: var(--primary-color);
}

.installation-option h3 {
  margin-top: 0;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.installation-option ol {
  padding-left: 20px;
}

.installation-option li {
  margin-bottom: 10px;
}

/* Note box - restore original styling */
.note-box {
  background-color: rgba(255, 240, 200, 0.5);
  border-left: 4px solid var(--highlight-color);
  padding: 10px 15px;
  margin-top: 15px;
  border-radius: 0 4px 4px 0;
}

.note-box p {
  margin: 0;
}

code {
  background-color: var(--code-bg);
  padding: 2px 5px;
  border-radius: 3px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

/* Warning box - restore original styling */
.warning-box {
  background-color: rgba(255, 221, 87, 0.2);
  border-left: 4px solid #ffbb00;
  padding: 10px 15px;
  margin: 15px 0;
  border-radius: 0 4px 4px 0;
}

.warning-box p {
  margin: 0;
  color: #664d03;
}

.warning-box strong {
  color: #664d03;
}

.muted {
  color: #6c757d;
  font-style: italic;
  font-size: 0.9em;
}

/* Sponsor logos in footer */
.sponsors {
  margin: 20px 0 30px;
  text-align: center;
  padding: 35px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sponsors p {
  font-weight: 500;
  margin-bottom: 25px;
  font-size: 1.05rem;
  color: white;
}

.sponsor-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
  margin: 0 auto;
  max-width: 90%;
}

.sponsor-logos a {
  text-decoration: none;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-logos a:hover {
  transform: scale(1.03);
}

/* Significantly larger logos */
.sponsor-logo {
  height: auto;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  transition: transform 0.2s;
}

/* Only apply subtle effects on hover */
.sponsor-logo:hover {
  transform: translateY(-2px);
}

/* Special handling for PrototypeFund logo */
a[href="https://prototypefund.de"] .sponsor-logo
{
  filter: brightness(0) invert(1);
}

/* Responsive adjustments for logos */
@media (max-width: 992px) {
  .sponsor-logos {
    gap: 40px;
  }

  .sponsor-logo {
    max-height: 100px;
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .sponsor-logos {
    flex-direction: column;
    gap: 40px;
  }

  .sponsor-logo {
    max-height: 90px;
    max-width: 320px;
  }

  nav ul {
    flex-direction: column;
  }

  nav li {
    width: 100%;
    text-align: center;
  }
}

/* Language-specific visibility classes */
.en-only {
  display: block;
}

.de-only {
  display: none;
}

body.german .en-only {
  display: none;
}

body.german .de-only {
  display: block;
}

/* Video examples styling */
.video-example {
  margin-bottom: 50px;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.video-example h3 {
  color: var(--primary-color);
  margin-top: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  margin-top: 20px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

/* Add subtle hover effect to video containers */
.video-container:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Before/after comparison container for videos (if needed later) */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

@media (max-width: 768px) {
  .comparison-container {
    grid-template-columns: 1fr;
  }
}

/* Instruction box styling */
.instruction-box {
  background-color: #e8f4f2;
  border-left: 4px solid var(--primary-color);
  padding: 15px 20px;
  margin: 20px 0 30px 0;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.instruction-box h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.instruction-box p {
  margin-bottom: 0;
  line-height: 1.5;
}

/* Add icon to instruction box */
.instruction-box h3::before {
  content: "▶ ";
  color: var(--primary-color);
}
