/* Q-Vision Styleguide CSS */

/* 1. Variables */
:root {
  --black: #1a1a1a;
  --gray: #c7c7c7;
  --white: #ffffff;
  --blue: #7ad0ff;
  --red: #d30000;
  --font-main: 'Manrope', sans-serif;
  --font-accent: 'DM Serif Display', serif;
}

/* manrope-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/manrope-v15-latin-300.woff2') format('woff2'); /* Modern Browsers */
}
/* manrope-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/manrope-v15-latin-600.woff2') format('woff2'); /* Modern Browsers */
}


/* 2. Base Styles */
body {
  margin: 0;
  font-family: var(--font-main);
  background: url('../images/carbon-bg.png') repeat, var(--black);
  color: var(--white);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

textarea {
  resize: vertical;
}

/* 3. Global Animations */
@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Animationsregeln */
/* Geteilte Basiseigenschaften für alle animierbaren Elemente */
.slide-in, .slide-in-left, .slide-in-right, [data-animate] {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Standard-Startposition (von links) */
.slide-in, .slide-in-left, [data-animate] {
  transform: translateX(-100px);
}

/* Spezifische Startposition für Slide-In von rechts (gilt nur für Desktop, wird oben für mobile überschrieben) */
.slide-in-right {
  transform: translateX(100px); /* Startet 100px rechts von der Endposition */
}

/* Endposition für alle sichtbaren Elemente */
.slide-in.visible, .slide-in-left.visible, .slide-in-right.visible, [data-animate].visible {
  opacity: 1;
  transform: translateX(0); /* Bewegt sich zur ursprünglichen Position */
}


/* 4. Layout & Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* 5. Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(8px);
  padding: 1rem 0;
  color: var(--white);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-accent);
  font-size: 1.5rem;
}

.logo img {
  height: 25px;
  width: auto;
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease; /* Füge eine Transition hinzu, damit die Skalierung sanft ist */
}

.main-nav a:hover,
.main-nav a.active {
  color: #ff3333;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
  transform: scale(1.05); /* Fügt einen leichten Skalierungseffekt hinzu */
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  transition: all 0.3s ease; /* Add transition for smooth animation */
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease; /* Add transition for smooth animation */
}

/* Neue Stile für den aktiven Burger-Button (X-Form) */
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg); /* Obere Linie dreht sich und bewegt sich nach unten */
}

.burger.active span:nth-child(2) {
  opacity: 0; /* Mittlere Linie wird ausgeblendet */
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg); /* Untere Linie dreht sich und bewegt sich nach oben */
}

/* 6. Hero Sections */
.hero-logo {
  height: 30px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.hero {
  background: url('../images/contact_hero.webp') no-repeat center center;
  background-size: cover;
  background-color: #1a1a1a;
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 8rem 2rem;
  text-align: center;
  max-height: 600px;
}

/* Optional: Overlay für bessere Lesbarkeit des Textes */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-container {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeSlideIn 1.2s ease-out forwards;
  animation-delay: 0.3s;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-accent);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: 2rem;
  border: 2px solid var(--blue);
  color: var(--blue);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 2rem; /* Abstand nach oben für den Hero-Button */
}

.hero-btn::before {
  content: "";
  position: absolute;
  background: var(--blue);
  width: 100%;
  height: 100%;
  top: 100%;
  left: 0;
  transition: top 0.3s ease;
  z-index: -1;
}

.hero-btn:hover::before {
  top: 0;
}

.hero-btn:hover {
  color: var(--white);
}

/* Neuer Intro-Abschnitt für die Über uns-Seite */
/* Dieser Stil wird nun auf alle page-intro Sektionen angewendet */
.page-intro {
  padding: 6rem 2rem; /* Konsistenter Abstand zu anderen Sektionen */
  text-align: center;
  background-color: var(--black); /* Passend zum dunklen Hintergrund */
  position: relative; /* Für animations */
  z-index: 1;
  /* Hinzugefügte Hero-Stile für page-intro */
  background: url('../images/hero_bg.webp') no-repeat center center;
  background-size: cover;
  max-height: 400px; /* Optional: Stellt sicher, dass das Hintergrundbild auch bei wenig Inhalt sichtbar ist */
}

.page-intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dunkleres Overlay */
    z-index: -1;
}

/* NEW: Styling for the transparent box in page-intro */
.page-intro-container {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
  max-width: 800px;
  margin: 0 auto; /* Center the container */
  position: relative;
  z-index: 2;
  opacity: 0; /* Initial state for animation */
  transform: translateY(50px); /* Initial state for animation */
  animation: fadeSlideIn 1.2s ease-out forwards;
  animation-delay: 0.3s;
}

.page-intro-title {
  font-family: var(--font-accent); /* Akzent-Schriftart */
  font-size: 3.5rem; /* Groß und wirkungsvoll */
  color: var(--white);
  margin-bottom: 0.8rem;
  line-height: 1.1;
  /* Animation rules moved to .page-intro-container */
  opacity: 1; /* Override initial opacity for direct children within the animated container */
  transform: translateY(0); /* Override initial transform for direct children within the animated container */
  animation: none; /* Disable individual animation for title */
}

.page-intro-subtitle {
  font-family: var(--font-main); /* Haupt-Schriftart */
  font-size: 1.3rem;
  color: var(--gray);
  max-width: 800px;
  margin: 0 auto; /* Zentriert den Untertitel */
  /* Animation rules moved to .page-intro-container */
  opacity: 1; /* Override initial opacity for direct children within the animated container */
  transform: translateY(0); /* Override initial transform for direct children within the animated container */
  animation: none; /* Disable individual animation for subtitle */
}

/* 7. Section Separators */
.section-separator {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--blue), transparent);
  margin: 0;
  opacity: 0.5;
  animation: pulse 2s infinite ease-in-out;
}

.section-separator.red {
  background: linear-gradient(to right, transparent, var(--red), transparent);
}

.section-separator.blue {
  background: linear-gradient(to right, transparent, var(--blue), transparent);
}

/* 8. Call to Action Buttons */
.cta-btn {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: 2rem;
  border: 2px solid;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-btn.red {
  border-color: var(--red);
  color: var(--red);
}

.cta-btn.red:hover {
  background: var(--red);
  color: var(--white);
}

/* 9. Content Blocks */
.content-block {
  padding: 4rem 1rem;
}

.content-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
  align-items: center;
}

.content-inner .text {
  flex: 1;
  color: var(--gray);
}

.content-inner .image {
  flex-shrink: 0;
  flex-grow: 0;
  max-width: 300px;
  width: 100%;
  margin-left: auto;
}

.content-inner .image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: block;
}

/* 10. Karriere Section */
.karriere {
  padding: 6rem 0;
  text-align: center; /* Der Button in dieser Sektion ist bereits zentriert */
}

.karriere h2, .karriere p, .karriere h3 {
  color: var(--gray);
}

.karriere .cta-btn {
  margin-bottom: 2rem;
}

.karriere-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem; /* Dieser Margin kann bleiben, um Abstand nach oben zu halten */
}

.step {
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  opacity: 0;
  transform: scale(0.95);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.6s ease-out;
}

.step.visible {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 8px 20px rgba(122, 208, 255, 0.2);
}

.step:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(122, 208, 255, 0.3);
}

.step h3, .step p {
  color: var(--gray);
}

/* Styling für die Karriere-Schritt Icons */
.karriere-steps .step .step-icon {
  width: 80px; /* Oder die gewünschte Größe */
  height: auto;
  margin-bottom: 1.5rem; /* Abstand zwischen Icon und Überschrift */
  display: block; /* Stellt sicher, dass margin-bottom funktioniert und es eine eigene Zeile bekommt */
  margin-left: auto; /* Zentriert das Icon im Flex-Container */
  margin-right: auto; /* Zentriert das Icon im Flex-Container */
}

/* Optional: Wenn Sie möchten, dass die Icons eine bestimmte Farbe haben, falls es SVG ist */
.karriere-steps .step .step-icon.svg-icon {
  fill: var(--blue); /* Füllt SVG-Icons mit einer Farbe */
}

/* 11. Contact Section */
.contact-section {
  padding: 4rem 0;
}

.contact-info, .map {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 0rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.map {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid black;
}

.map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.5rem;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.map small {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    color: var(--white);
    font-size: 0.8rem;
    z-index: 10;
}

.map small a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.map small a:hover {
    color: var(--red);
}

.contact-info h2 {
  margin-bottom: 1rem;
  color: var(--gray);
}

.contact-info p a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info p a:hover {
  color: var(--blue);
}

/* 12. Partners Section */
.partners {
  padding: 4rem 0;
  text-align: center;
}

.partners h2 {
  font-family: var(--font-accent);
  font-size: 2rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.partner-logo {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.partner-logo.visible {
  opacity: 1;
  transform: translateX(0);
}

.partner-logo img {
  width: 100%;
  max-width: 90px;
  height: auto;
  filter: grayscale(0%);
  transition: filter 0.3s ease;
}

.partner-logo img:hover {
  filter: grayscale(0%);
}

/* 13. Application Form (Bewerbungsformular) */
/* Styling für die Ansporn-Sektion (CTA zum Bewerben) */
.cta-apply .text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-apply .cta-btn {
  margin-top: 2rem;
}

/* Verbesserte Styling für das Bewerbungsformular */
.application-form {
  background-color: rgba(0, 0, 0, 0.4); /* Dunkler, transparenter Hintergrund */
  padding: 3rem; /* Etwas mehr Innenabstand für ein geräumigeres Gefühl */
  border-radius: 1rem;
  max-width: 700px;
  margin: 2rem auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.application-form .form-group {
  margin-bottom: 1.8rem; /* Etwas mehr Abstand zwischen den Feldern */
}

.application-form label {
  display: block;
  margin-bottom: 0.7rem; /* Mehr Abstand zwischen Label und Feld */
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
}

.application-form input[type="text"],
.application-form input[type="email"],
.application-form input[type="tel"],
.application-form textarea {
  width: calc(100% - 30px); /* 100% Breite minus (2x Padding) */
  padding: 12px 15px; /* Mehr Innenabstand für die Felder */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Weichere, transparente Border */
  border-radius: 8px; /* Größerer Border-Radius für einen weicheren Look */
  background-color: rgba(255, 255, 255, 0.08); /* Sehr subtiler transparenter Hintergrund */
  color: var(--white);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.application-form input[type="text"]:focus,
.application-form input[type="email"]:focus,
.application-form input[type="tel"]:focus,
.application-form textarea:focus {
  border-color: var(--blue);
  background-color: rgba(255, 255, 255, 0.15); /* Heller beim Fokus */
  box-shadow: 0 0 0 3px rgba(122, 208, 255, 0.3); /* Subtiler blauer Glow beim Fokus */
  outline: none;
}

/* Placeholder Styling */
.application-form ::placeholder {
  color: rgba(255, 255, 255, 0.6);
  opacity: 1; /* Stellt sicher, dass der Platzhalter immer sichtbar ist */
}

/* Styling für das Dateiupload-Feld */
.application-form input[type="file"] {
  width: calc(100% - 30px); /* Breite anpassen wie bei anderen Inputs */
  padding: 12px 15px; /* Konsistentes Padding */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white); /* Textfarbe für den Dateinamen */
  font-family: var(--font-main);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.application-form input[type="file"]:focus {
  border-color: var(--blue);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(122, 208, 255, 0.3);
  outline: none;
}

.application-form .file-info {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 0.5rem;
  text-align: right;
}

/* Button-Styling bleibt von .cta-btn blue */
.application-form button[type="submit"] {
  margin-top: 2.5rem; /* Mehr Abstand zum Button */
  width: auto;
  padding: 12px 30px; /* Mehr Padding für den Button */
  font-size: 1.15rem; /* Etwas größere Schrift */
  border-radius: 8px; /* Passender Border-Radius */
  background-color: var(--blue);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.application-form button[type="submit"]:hover {
  background-color: #5aaee0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(122, 208, 255, 0.4); /* Leichter Schatten beim Hover */
}


/* 14. Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--gray);
  font-size: 0.9rem;
}

/* 15. Media Queries */
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .content-inner {
    flex-direction: column;
    padding: 1.5rem;
  }

  /* CTA Button Zentrierung für "Über uns" */
  .content-inner .text {
    flex: none;
    width: 100%;
    order: 0;
    text-align: center; /* Zentriert Text und inline-block Elemente wie Buttons */
  }

  .content-inner .image {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    order: 1;
  }

  .content-inner .image img {
    height: auto;
    max-height: 300px;
    width: 100%;
    margin: 0 auto;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0; /* Position an den rechten Rand */
    background: rgba(26, 26, 26, 0.8); /* Transparenterer Hintergrund */
    backdrop-filter: blur(10px); /* Stärkerer Blur für bessere Abgrenzung */
    width: 200px; /* Kleinere, feste Breite */
    display: none;
    flex-direction: column;
    align-items: center; /* Zentriert die Elemente horizontal in der Flexbox */
    gap: 2rem;
    padding: 1rem 0;
    border-radius: 0.5rem; /* Leichte Abrundung der Ecken */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Dezenter Schatten */
    overflow: hidden;
  }

  .main-nav.active {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .karriere-steps {
    grid-template-columns: 1fr;
  }

  /* CTA Button Zentrierung für "Vertrieb" und "Schulung" (innerhalb der .step Boxen) */
  .step {
    text-align: center; /* Zentriert Text und inline-block Elemente wie Buttons */
  }

  /* NEU: Anpassung der Slide-In von rechts für mobile Ansicht */
  /* Auf Mobilgeräten sollen Elemente mit .slide-in-right auch von links kommen,
     um Überlauf zu vermeiden. */
  .slide-in-right {
    transform: translateX(-100px); /* Überschreibt die Desktop-Regel für Mobile */
  }

  /* Media Query Anpassungen für kleinere Bildschirme (page-intro) */
  .page-intro {
    padding: 4rem 1rem;
  }
  .page-intro-container {
      padding: 1.5rem; /* Adjust padding for smaller screens */
  }
  .page-intro-title {
    font-size: 2.5rem;
  }
  .page-intro-subtitle {
    font-size: 1.1rem;
  }

  /* Media Query Anpassungen für Formular auf kleinen Bildschirmen */
  .application-form {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }
  .application-form input[type="text"],
  .application-form input[type="email"],
  .application-form input[type="tel"],
  .application-form textarea,
  .application-form input[type="file"] {
    width: calc(100% - 30px);
  }

  .main-nav ul {
    flex-direction: column; /* Fügt dies hinzu, um die Listenelemente untereinander anzuzeigen */
    width: 100%; /* Stellt sicher, dass die Liste die volle Breite einnimmt */
    /* text-align: center; -- This is now handled by align-items on .main-nav itself */
  }

  .main-nav ul li {
    width: 100%; /* Stellt sicher, dass jedes Listenelement die volle Breite einnimmt */
    padding: 0.5rem 0; /* Fügt etwas vertikalen Abstand hinzu */
    text-align: center; /* Ensures the text inside list item is centered */
  }

  /* Prevent shifting on hover for nav links */
  .main-nav a {
    display: inline-block; /* Treat as block to control padding/margin, but allow it to size to content */
    padding: 0; /* Remove default padding that might affect size */
    transition: color 0.3s ease, font-weight 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease; /* Add transform to transition */
    white-space: nowrap; /* Prevents text from wrapping */
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: #ff3333;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    /* No transform here, as it can cause shifting. If you want a subtle effect, use scale. */
    /* Example: transform: scale(1.05); */
  }
}

@media (max-width: 480px) {
  .karriere-steps {
    grid-template-columns: 1fr;
  }
}

.footer-social {
  text-align: center;
  margin-top: 1.5rem;
}

.footer-social a img {
  width: 30px;
  height: 30px;
  opacity: 0.75;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social a:hover img {
  transform: scale(1.2);
  opacity: 1;
  filter: drop-shadow(0 0 5px var(--blue));
}

