/* =========================== */
/*        VARIABLEN           */
/* =========================== */
:root {
  --dark-blue: #00203f;
  --silver-gray: #c0c0c0;
  --accent-blue: #00aaff;
  --white: #ffffff;
}

/* =========================== */
/*         BODY & FONTS       */
/* =========================== */
body {
  font-size: 18px;
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: var(--dark-blue);
  color: var(--silver-gray);
  line-height: 1.6;
}

body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
  width: 100vw;
}

section:not(.intro-video)  {
  margin-bottom: 4rem;
}

body > section {
  padding-top: 100px; /* fallback, falls JS deaktiviert ist */
}

/* =========================== */
/*           HEADER           */
/* =========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: auto;
  z-index: 1000;

  background-color: var(--dark-blue);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  box-sizing: border-box;
}

nav.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 1.3rem;
  font-weight: 500;
}

nav.nav-links a {
  color: white; /* Menü-Links weiß */
  text-decoration: none;
  transition: color 0.3s ease;
}

nav.nav-links a:hover {
  color: var(--accent-blue); /* Hover in deinem Blauton */
}

/* Hamburger Button */
.menu-toggle {
  display: none;
}

.menu-toggle i {
  font-size: 1.5rem;
  color: white;
  display: inline-block;
}

/* Mobile Styles */
@media (max-width: 768px) {
  header {
    padding: 40px 20px;
  }
  /* Hamburger sichtbar machen */
  .menu-toggle {
    display: block;
    position: fixed;      /* Fixiert oben rechts */
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10001;       /* ganz oben */
  }

  /* Logo links oben fixieren */
  .logo {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 11000;       /* knapp unter Hamburger */
  }

  /* Navigation Vollbild Overlay */
  nav.nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;  /* volle Breite */
    height: 100vh; /* volle Höhe */
    background-color: var(--dark-blue);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.8rem;
    z-index: 9999;   /* unter Logo und Hamburger */
  }

  /* Navigation sichtbar wenn .active */
  nav.nav-links.active {
    display: flex;
  }

  /* Links größer und klickbar */
  nav.nav-links a {
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
  }

  nav.nav-links a:hover {
    color: var(--accent-blue);
    background-color: rgba(255, 255, 255, 0.1);
  }

  .intro-video {
      margin-top: 100px !important;
      margin-bottom: 0 !important;
      padding-top: 0 !important;
      padding-bottom: 0 !important;
    }

    .intro-video + section {
      margin-top: 0 !important;
      padding-top: 2rem !important;
    }
}

/* =========================== */
/*           HERO             */
/* =========================== */
.hero {
  text-align: left;
  background-color: var(--dark-blue);
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.2em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 30px;
}

.cta-button {
  margin-top: 20px;
  padding: 15px 30px;
  font-size: 1em;
  background-color: var(--accent-blue);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #0090dd;
}

/* =========================== */
/*         CONTAINER          */
/* =========================== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* =========================== */
/*           FOOTER           */
/* =========================== */
footer {
  background-color: #00172D;
  color: white;
  padding: 2rem 1rem;
  font-size: 1rem;
}

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

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-section {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-section h4 {
  margin-bottom: 0.5rem;
  color: var(--accent-blue);
  font-size: 1.3rem;
}

.footer-section a {
  color: #ddd;
  text-decoration: none;
  font-size: 1rem;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #bbb;
  border-top: 1px solid #333;
  padding-top: 1rem;
}

/* =========================== */
/*         VIDEO              */
/* =========================== */
.video-container {
  max-width: 100%;
  overflow: hidden;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;  /* oder fehlt das? */
  z-index: 1;          /* niedriger Wert, falls vorhanden */
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  border: none;
}

/* =========================== */
/*        SERVICES GRID       */
/* =========================== */
.services-title {
  text-align: left;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
}

.service-box {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  transition: background-color 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-box i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-blue);
}

.service-box:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================== */
/*       SERVICE DETAIL       */
/* =========================== */
.service-detail {
  padding: 3rem 1rem;
  color: var(--white);
  background-color: var(--dark-blue);
}

.service-content {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.service-content img {
  max-width: 45%;
  border-radius: 12px;
  height: auto;
}

.service-text {
  flex: 1;
  min-width: 250px;
}

.service-text h1 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .service-content {
    flex-direction: column;
  }

  .service-content img {
    max-width: 100%;
  }
}

/* =========================== */
/*       CONTACT SECTION      */
/* =========================== */
.contact-section {
  margin-top: 3rem;
  padding: 2rem 1rem;
  background-color: var(--dark-blue);
  color: var(--white);
  overflow-x: hidden;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;   /* zentriert Inhalt horizontal */
  gap: 1.5rem;           /* Abstand zwischen Überschrift und Formular */
}

.contact-heading {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;    /* für Desktop und Mobile */
  max-width: 700px;
  width: 100%;
}

.contact-wrapper {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  box-sizing: border-box;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #e0e0e0;
}

input,
textarea {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 1rem;
  border-radius: 6px;
  resize: vertical;

  /* Verhindert, dass Inputs/Textareas breiter als ihr Container werden */
  max-width: 100%;
  box-sizing: border-box;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form button {
  padding: 1rem 2rem;
  background-color: var(--accent-blue);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  align-self: flex-start;
}

.contact-form button:hover {
  background-color: #0090dd;
}

.error {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

@media (max-width: 700px) {
  .contact-section {
    padding: 1.5rem 1rem;
  }

  .contact-heading {
    font-size: 1.6rem;
    padding: 0 0.5rem;
  }

  .contact-wrapper {
    padding: 1rem;
    max-width: 100%;
  }
}

/* =========================== */
/*    SUCCESS / ERROR PAGES   */
/* =========================== */
.success-message,
.error-page {
  margin-top: 1rem;
  padding: 2rem 1rem;
  box-sizing: border-box;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.success-message i,
.error-page i {
  font-size: 5rem;
  color: #28a745;
  margin-bottom: 1rem;
}

.success-message h1,
.error-page h2 {
  margin-bottom: 1rem;
}

.success-message p,
.error-page p,
.contact-info p {
  margin-bottom: 2rem;
}


/* ---------- Scroll to top Button ----------- */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(5px);
  user-select: none;
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  pointer-events: none; /* unsichtbar und nicht klickbar */
}

/* Sichtbar wenn aktiv */
#scrollTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
}

#scrollTopBtn:hover {
  transform: scale(1.2);
}

#scrollTopBtn:focus,
#scrollTopBtn:active {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


/* ------------- Cookie Banner ------------ */
.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 32, 63, 0.75); /* Dunkles halbtransparentes Overlay */
  z-index: 999; /* Unter dem Popup */
  display: none; /* Standard unsichtbar */
}

/* Popup-Banner zentriert */
.cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--dark-blue);
  color: var(--silver-gray);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 1000; /* Über dem Overlay */
  max-width: 400px;
  width: 90%;
  text-align: center;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

/* Text im Banner etwas luftiger */
.cookie-banner p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.4;
}

/* Buttons nebeneinander mit Abstand */
.cookie-banner button {
  background-color: var(--accent-blue);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  min-width: 110px;
  box-sizing: border-box;
}

.cookie-banner button:hover {
  background-color: #008ecc;
}

/* Modal für Einstellungen */
.cookie-settings-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--dark-blue);
  color: var(--silver-gray);
  padding: 2rem 2.5rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  width: 90%;
  z-index: 1001; /* Über Banner und Overlay */
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  overflow-y: auto;
  max-height: 80vh;
}

/* Überschrift im Modal */
.cookie-settings-modal h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
}

/* Checkbox-Labels im Modal */
.cookie-settings-modal label {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
}

/* Checkbox mit Abstand */
.cookie-settings-modal input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Buttons im Modal */
.cookie-settings-modal button {
  background-color: var(--accent-blue);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 10px;
  transition: background-color 0.3s ease;
  min-width: 110px;
  box-sizing: border-box;
}

.cookie-settings-modal button:hover {
  background-color: #008ecc;
}

/* Letzter Button ohne rechten Margin */
.cookie-settings-modal button:last-child {
  margin-right: 0;
}

/* Responsive Anpassungen */
@media (max-width: 480px) {
  .cookie-banner {
    width: 90vw;
    max-width: 350px;
    padding: 1rem 1.5rem;
  }

  .cookie-banner p {
    font-size: 0.95rem;
  }

  .cookie-banner button {
    margin: 6px 4px 0 4px;
    min-width: 100px;
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .cookie-settings-modal {
    width: 95vw;
    padding: 1.5rem 1.8rem;
  }

  .cookie-settings-modal h2 {
    font-size: 1.3rem;
  }

  .cookie-settings-modal button {
    min-width: auto;
    width: 100%;
    margin: 0 0 10px 0;
  }

  .cookie-settings-modal button:last-child {
    margin-bottom: 0;
  }
}




