:root {
  --font-main: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Outfit", system-ui, -apple-system, sans-serif;
}

/* Dark Theme - Einheitlich */
body {
  background-color: #0b132b; /* Dark Blue - Body */
  color: #e0e0e0;
  font-family: var(--font-main);
  margin: 0;
}

html,
body {
  min-height: 100%;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100dvh; /* Dynamic Viewport Height for Mobile */
  overflow-x: hidden; /* Prevent horizontal layout shifts */
}

/* NAVBAR - Noch heller als Body (#1e2a4b) */
.navbar {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px;
  background: linear-gradient(
    135deg,
    #1e2a4b 0%,
    #243a5e 100%
  ); /* Heller Gradient */
  border-bottom: 1px solid #2a365c;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
}

.navbar a:hover {
  transform: scale(1.15);

  box-shadow: 0 4px 15px whitesmoke;
}

/* ACTIVE Link - Hervorhebung */
.navbar a.active {
  color: #3cb371 !important;
}

/* CONTENT */
.content {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* FOOTER - Heller als Navbar (#243a5e) */
.footer {
  text-align: center;
  padding: 30px 20px;
  background: #1c2541; /* Solid color fallback */
  background: linear-gradient(135deg, #243a5e 0%, #1c2541 100%);
  border-top: 1px solid #2a365c;
  color: #a0a0a0;
  margin-top: auto; /* Push to bottom if content is short */
  position: relative;
  z-index: 5000; /* Ensure it stays above slider transforms */
}

.footer p {
  margin-bottom: 0;
}

/* Page Title ENTFERNT - Navbar zeigt Position */

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .content {
    padding: 20px 15px;
  }
}

/* Verstecktes Formular */
.hidden {
  display: none !important;
}

/* Button für Öffnen/Schließen Kontaktformular */
.contact-button {
  padding: 12px 20px;
  background-color: #3cb371;
  color: #f8f9fa;
  border: 1px solid #2a365c;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  margin-right: 10px; /* Kleiner Abstand zum GitHub-Icon */
}

.contact-button:hover {
  background-color: #2c8b5a;
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Kontakt-Wrapper (Formular + GitHub-Icon) */
.contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  width: 100%;
  margin-top: 20px;
}

/* Auf Smartphones Formular unter den GitHub-Block */
@media (max-width: 700px) {
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .contact-button {
    align-self: flex-start;
    margin-right: 0;
  }
}
