/* ===== GRUNDLAGEN & VARIABLEN ===== */
:root {
  --c-blue-dark: #2c3e50;
  --c-blue-primary: #006ec6;
  --c-blue-light: #e4effb;
  --c-white: #ffffff;
  --c-text: #4a4f55;
  --c-text-muted: #666;

  --header-height: 80px;
  --content-width: 1400px;
  --section-padding: 4rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  /* Gleiche Schriftart wie der Rest der Website */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--c-text);
  background-color: var(--c-blue-light);
  padding-top: var(--header-height);
  width: 100%;
  overflow-x: hidden; /* Verhindert seitliches Scrollen */
}

/* Konsistente Schrift im Slogan */
.hero-title, .hero-subtitle {
  font-family: inherit;
}

*:focus-visible { outline: 2px solid var(--c-blue-primary); outline-offset: 2px; }
section[id] { scroll-margin-top: calc(var(--header-height) + 20px); }

/* Unsichtbarer Skip-Link für Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}
.skip-link:focus { left: 0; top: 0; width: auto; height: auto; opacity: 1; background: white; z-index: 2000; padding: 10px; }

/* ===== HEADER ===== */
.site-header {
  background: var(--c-white);
  height: var(--header-height);
  border-bottom: 1px solid #e6e6e6;
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center;
}

.site-header__inner {
  width: 100%; max-width: var(--content-width); margin: 0 auto; padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center;
}

.header-left, .header-right { display: flex; align-items: center; gap: 1rem; }

/* Logo Styling */
.logo-link img {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.logo-link:hover img { opacity: 0.8; }

/* Navigation Desktop */
.site-nav { flex-grow: 1; display: flex; justify-content: center; }
.site-nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--c-text); font-weight: 600; transition: color 0.2s; font-size: 1.05rem; }
.site-nav a:hover { color: var(--c-blue-primary); }

/* Burger Menu Button (Initial aus) */
.burger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1100; }
.burger-line { display: block; width: 25px; height: 3px; background: #333; margin: 5px 0; border-radius: 2px; transition: all 0.3s; }

/* Burger Animation */
.burger-menu.active .burger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.burger-menu.active .burger-line:nth-child(2) { opacity: 0; }
.burger-menu.active .burger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ===== HERO BANNER ===== */
.hero-banner {
  background: linear-gradient(135deg, #0077cc 0%, #004a8c 50%, #003366 100%);
  text-align: center;
  padding: 3rem 1.5rem;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  max-width: 900px;
  width: 100%;
}

.hero-title {
  /* clamp(MIN, VAL, MAX) - Stufenloses Skalieren */
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin: 0 auto;
}

/* ===== MAIN CONTENT ===== */
.page { width: 100%; max-width: 100vw; }
.card--full-width { width: 100%; padding: var(--section-padding) 0; }
.bg-blue { background-color: var(--c-blue-light); }
.bg-white { background-color: var(--c-white); }

.card__header, .card__body { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.card__title { font-size: 2rem; color: var(--c-blue-primary); margin-bottom: 1.5rem; text-align: center; }
.card__subtitle { font-size: 1.4rem; color: var(--c-blue-primary); margin: 2rem 0 1rem 0; font-weight: 600; }

p { margin-bottom: 1rem; max-width: 100%; }

/* Layouts */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem 0; }
.media-item img, .media-item video {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.media-caption { font-size: 0.9rem; color: var(--c-text-muted); font-style: italic; margin-top: 0.5rem; }

/* ===== SLIDER ===== */
.mac-slider-wrapper { display: flex; justify-content: center; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.mac-frame-container { position: relative; width: 100%; max-width: 900px; }
.mac-frame-img { width: 100%; display: block; position: relative; z-index: 2; pointer-events: none; }

.slider-container { position: absolute; top: 4.5%; left: 3.2%; width: 93.6%; height: 70%; overflow: hidden; z-index: 1; }
.slider-wrapper, .slider-track { width: 100%; height: 100%; position: relative; }
.slider-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.slider-slide.active { opacity: 1; pointer-events: auto; }
.slider-slide img { width: 115%; margin-left: -7%; height: 100%; object-fit: cover; object-position: top left; }

/* Pfeile */
.slider-arrow {
  position: absolute; top: 37%; transform: translateY(-50%);
  background: none; color: #006ec6; border: none;
  font-size: 2.5rem; cursor: pointer; z-index: 10;
  transition: transform 0.2s;
}
.slider-arrow:hover { transform: translateY(-50%) scale(1.2); }
.slider-arrow--prev { left: -60px; }
.slider-arrow--next { right: -60px; }

/* Dots */
.slider-dots { display: flex; justify-content: center; gap: 12px; margin-top: 1rem; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: #ccc; border: none; cursor: pointer; }
.slider-dot.active { background: #006ec6; transform: scale(1.2); }

/* ===== TEAM & TOOLS ===== */
.team-grid-simple { display: flex; flex-direction: column; align-items: center; gap: 3rem; }
.team-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem 4rem; }
.team-member { text-align: center; width: 140px; }
.team-photo-simple { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; display: block; }
.team-name-simple { color: var(--c-blue-primary); font-weight: 600; font-size: 1rem; line-height: 1.3; }

.tools-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; padding: 2rem 0; }
.tool-icon { height: 50px; width: auto; transition: transform 0.2s; }
.tool-icon:hover { transform: scale(1.1); }

.site-footer { text-align: center; padding: 2rem; background: var(--c-white); border-top: 1px solid #ddd; margin-top: 2rem; }
.footer-link { color: var(--c-text); text-decoration: none; margin: 0 0.5rem; }

/* ========================================= */
/* ============= RESPONSIVE ================ */
/* ========================================= */

/* 1. TABLET & MOBILE MENU ( < 1000px ) */
@media (max-width: 1000px) {
  .burger-menu { display: block; }

  /* Navigation wird zum Vollbild-Overlay */
  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height)); /* Nimmt Rest-Höhe ein */
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    transform: translateX(100%); /* Aus dem Bild geschoben */
    transition: transform 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
  }

  .site-nav.active {
    transform: translateX(0); /* Reinschieben */
  }

  .site-nav ul {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
  }

  .site-nav a {
    font-size: 1.3rem;
  }
}

/* 2. TABLET ( < 900px ) */
@media (max-width: 900px) {
  /* Pfeile ausblenden, da sie aus dem Bild ragen würden */
  .slider-arrow { display: none; }
}

/* 3. MOBILE ( < 768px ) */
@media (max-width: 768px) {
  :root {
    --section-padding: 2.5rem;
    --header-height: 70px;
  }

  .site-header__inner, .card__header, .card__body {
    padding: 0 1.5rem;
  }

  .media-row { grid-template-columns: 1fr; }
  .card__title { font-size: 1.7rem; }
  .card__subtitle { font-size: 1.3rem; }
}

/* 4. SMALL MOBILE ( < 480px ) */
@media (max-width: 480px) {
  :root {
    --section-padding: 2rem;
    --header-height: 60px;
  }

  /* Logos verkleinern, damit sie neben Burger passen */
  .logo-link img { height: 32px; }
  .burger-menu { padding: 5px; }

  .site-header__inner, .card__header, .card__body {
    padding: 0 1rem;
  }

  /* Team */
  .team-row { gap: 2rem; }

  /* Tools */
  .tool-icon { height: 40px; }
}