:root {
  --squad-bg: #111827;
  --squad-bg-outer: #0c111b; /* Neuer, dunklerer Hintergrund für außen */
  --squad-card: #1f2937;
  --squad-border: #374151;
  --squad-accent: #38bdf8;
  --squad-text: #d1d5db;
  --squad-text-heading: #f9fafb;
}

/* --- Globale Stile & Resets --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: var(
    --squad-bg-outer
  ); /* Geändert auf den äußeren Hintergrund */
  color: var(--squad-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Container für zentrierten Inhalt --- */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  /* 24px */
  padding-right: 1.5rem;
  /* 24px */
}

/* --- Hauptlayout-Container --- */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 80rem; /* Setzt die maximale Breite des zentralen Blocks */
  margin: 0 auto; /* Zentriert den Block */
  background-color: var(--squad-bg); /* Gibt dem Block die Inhaltsfarbe */
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5); /* <-- Geändert (keine 5px Verschiebung) */
}

/* --- Header / Hero Sektion --- */
.hero-header {
  padding-top: 6rem;
  /* 96px */
  padding-bottom: 4rem;
  /* 64px */
}

.hero-header .container {
  /* max-width: 80rem; <-- Wird jetzt vom .page-wrapper gesteuert */
  width: 100%;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  /* Standard (mobil) */
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  /* 48px */
}

.hero-text {
  text-align: center;
  /* Standard (mobil) */
}

.hero-text h1 {
  font-size: 3.75rem;
  /* 60px (text-6xl) */
  font-weight: 700;
  color: var(--squad-text-heading);
  line-height: 1.2;
}

.hero-text h1 span {
  color: var(--squad-accent);
}

.hero-text p {
  margin-top: 1.5rem;
  /* 24px */
  font-size: 1.25rem;
  /* 20px (text-xl) */
  max-width: 36rem;
  /* 576px (max-w-lg) */
  margin-left: auto;
  margin-right: auto;
}

.hero-image-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-image {
  width: 100%;
  max-width: 36rem;
  /* 576px (max-w-xl) */
  height: auto;
  border-radius: 0.5rem;
  /* 8px (rounded-lg) */
  border: 1px solid var(--squad-border);
  /* Permanenter Leuchteffekt */
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
}

/* --- Main / Service Sektion --- */
.services-main {
  flex-grow: 1;
  /* Nimmt verfügbaren Platz ein */
  padding-top: 4rem;
  /* 64px */
}

.services-main .container {
  /* max-width: 80rem; <-- Wird jetzt vom .page-wrapper gesteuert */
  width: 100%;
}

.services-heading {
  font-size: 2.25rem;
  /* 36px (text-4xl) */
  font-weight: 700;
  color: var(--squad-text-heading);
  text-align: center;
  margin-bottom: 3rem;
  /* 48px */
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Standard (mobil) */
  gap: 1.5rem;
  /* 24px */
}

/* --- Service Karten --- */
.service-card {
  display: block;
  text-decoration: none;
  padding: 2rem;
  /* 32px (p-8) */
  background-color: var(--squad-card);
  border: 1px solid var(--squad-border);
  border-radius: 0.5rem;
  /* 8px (rounded-lg) */
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--squad-accent);
  background-color: #1f2937cc;
  /* Leichte Transparenz */
  transform: translateY(-4px);
}

.service-card-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  /* 16px (space-x-4) */
}

.service-card-icon {
  flex-shrink: 0;
  width: 3rem;
  /* 48px (w-12) */
  height: 3rem;
  /* 48px (h-12) */
  color: var(--squad-accent);
}

.service-card-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.service-card h2 {
  font-size: 1.5rem;
  /* 24px (text-2xl) */
  font-weight: 600;
  color: var(--squad-text-heading);
  transition: color 0.3s ease;
}

.service-card:hover h2 {
  color: var(--squad-accent);
}

.service-card p {
  margin-top: 0.25rem;
  /* 4px */
  color: var(--squad-text);
}

/* --- Footer --- */
.page-footer {
  text-align: center;
  padding-top: 3rem;
  /* 48px */
  padding-bottom: 3rem;
  /* 48px */
  margin-top: 4rem;
  /* 64px */
  border-top: 1px solid var(--squad-border);
}

.page-footer .container {
  /* max-width: 80rem; <-- Wird jetzt vom .page-wrapper gesteuert */
  width: 100%;
}

.page-footer p {
  font-size: 0.875rem;
  /* 14px (text-sm) */
  color: var(--squad-text);
}

/* --- Custom Alert Modal --- */
.custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-alert-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.custom-alert-box {
  background: var(--squad-card);
  border: 1px solid var(--squad-border);
  border-radius: 0.5rem;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.custom-alert-overlay.visible .custom-alert-box {
  transform: scale(1);
}

.custom-alert-box h3 {
  color: var(--squad-text-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.custom-alert-box p {
  color: var(--squad-text);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.custom-alert-box button {
  background-color: var(--squad-accent);
  color: var(--squad-bg);
  border: none;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.custom-alert-box button:hover {
  background-color: #0ea5e9; /* Etwas dunklerer Akzentton */
}

/* --- Responsive Design (Media Queries) --- */

/* Extra Small (xs) Breakpoint - 400px (NEU) */
@media (max-width: 400px) {
  .container {
    padding-left: 1rem; /* 16px */
    padding-right: 1rem; /* 16px */
  }

  .hero-header {
    padding-top: 3rem; /* 48px */
    padding-bottom: 2rem; /* 32px */
  }

  .hero-text h1 {
    font-size: 2.5rem; /* 40px */
  }

  .hero-text p {
    font-size: 1rem; /* 16px */
  }

  .services-heading {
    font-size: 1.75rem; /* 28px */
    margin-bottom: 1.5rem; /* 24px */
  }

  .service-card {
    padding: 1.5rem; /* 24px */
  }
}

/* Small (sm) Breakpoint - 640px (NEU) */
@media (max-width: 640px) {
  .hero-header {
    padding-top: 4rem; /* 64px */
    padding-bottom: 3rem; /* 48px */
  }

  .hero-text h1 {
    font-size: 3rem; /* 48px (war 3.75rem) */
  }

  .hero-text p {
    font-size: 1.125rem; /* 18px (war 1.25rem) */
  }

  .services-heading {
    font-size: 1.875rem; /* 30px (war 2.25rem) */
    margin-bottom: 2rem; /* 32px */
  }
}

/* Medium (md) Breakpoint - 768px */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    /* 32px (lg:gap-8) */
  }
}

/* Large (lg) Breakpoint - 1024px */
@media (min-width: 1024px) {
  .hero-layout {
    flex-direction: row;
    /* Wechsel zu 2 Spalten */
  }

  .hero-text {
    flex-basis: 50%;
    text-align: left;
    /* Text linksbündig */
  }

  .hero-text p {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-image-wrapper {
    flex-basis: 50%;
    justify-content: flex-end;
    /* Bild rechtsbündig */
  }
}
