/* roboto-regular - latin */
@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/roboto-v50-latin-regular.woff2") format("woff2");
}
/* roboto-600 - latin */
@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 600;
  src: url("./fonts/roboto-v50-latin-600.woff2") format("woff2");
}
/* roboto-700 - latin */
@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  src: url("./fonts/roboto-v50-latin-700.woff2") format("woff2");
}

/* =========================================
   1. VARIABLEN & GRUNDEINSTELLUNGEN
   ========================================= */
:root {
  --color-primary: #2563eb;
  --color-secondary: #03396c;

  /* NEU: Etwas dunkleres Grün für Barrierefreiheit (besserer Kontrast zu weißer Schrift) */
  --color-accent: #059669;
  --color-accent-hover: #047857;

  --color-text-main: #1f2937;
  --color-text-light: #6b7280;
  --color-bg-light: #f3f4f6;
  --color-bg-white: #ffffff;
  --color-white: #ffffff;
  --color-border: #e5e7eb;

  --font-main: "Roboto", sans-serif;

  --max-width: 1200px;
  --header-height: 100px;
  --container-padding: 2rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text-main);
  padding-top: var(--header-actual-height, 80px);
  line-height: 1.6;
}

h1,
h2 {
  color: var(--color-secondary);
  font-weight: 700;
  margin-top: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

/* Barrierefreiheit: Sichtbarer Fokus für Tastatur-Nutzer */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Barrierefreiheit: Skip-to-content Link */
.skip-to-content {
  position: absolute;
  top: -60px; /* Standardmäßig außerhalb des Bildschirms versteckt */
  left: 0;
  background-color: var(--color-primary);
  color: white;
  padding: 10px 15px;
  font-weight: bold;
  z-index: 2000;
  transition: top 0.3s ease;
}

/* Sobald ein Tastatur-Nutzer (Tab) den Link anwählt, wird er sichtbar */
.skip-to-content:focus {
  top: 0;
}

section {
  scroll-margin-top: calc(var(--header-actual-height, 100px) + 20px);
}

/* =========================================
   2. UTILITY CLASSES
   ========================================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  width: 100%;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.bg-light {
  background-color: var(--color-bg-light);
}
.bg-white {
  background-color: var(--color-bg-white);
}

/* =========================================
   3. HEADER
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-white);
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}

.header-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  text-decoration: none;
}

.logo-img {
  height: 70px;
  width: auto;
  display: block;
  transition: 0.25s;
}

.logo-img:hover {
  opacity: 0.7;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-secondary);
  font-weight: 600;
  transition: 0.25s;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.btn-nav {
  background-color: var(--color-accent);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.btn-nav:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
  /* Fallback für ältere Browser */
  min-height: calc(100vh - var(--header-actual-height, 100px));
  /* Moderner Fix für mobile Browser (iOS/Android Leisten) */
  min-height: calc(100dvh - var(--header-actual-height, 100px));

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../img/background-image.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-white);
}

.hero h1 {
  color: #99e3f5;
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 100%;
  opacity: 0.9;
}

/* =========================================
   5. INHALT (Leistungen etc.)
   ========================================= */

.check-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.check-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.8rem;
  position: relative;
  font-size: 1.1rem;
}

.check-list li::before {
  content: "✔";
  color: var(--color-accent);
  position: absolute;
  left: 0;
  top: 2px;
  font-weight: bold;
}

.intro-text {
  font-size: 1.2rem;
  max-width: 1200px;
  text-align: left;
}

.contact-details p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* =========================================
   6. FOOTER
   ========================================= */
.site-footer {
  width: 100%;
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 2rem 0;
  font-size: 1.1rem;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  text-decoration: none;
  color: var(--color-white);
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.25s;
}

.footer-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* =========================================
   7. PRICING SECTION
   ========================================= */

.pricing-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 3rem;
}

.pricing-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.pricing-card.recommended {
  border: 2px solid var(--color-primary);
  z-index: 1;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: var(--color-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.pricing-card h3 {
  color: var(--color-secondary);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-bg-light);
  padding-bottom: 1rem;
}

.checkliste {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.checkliste li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.checkliste li::before {
  content: "✔";
  color: var(--color-accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.price {
  background-color: var(--color-bg-light);
  padding: 1.5rem;
  border-radius: 6px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  margin-top: auto;
}

.sub-price {
  display: block;
  font-size: 1rem;
  color: var(--color-text-main);
  margin-top: 0.3rem;
}

.price-note {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-top: 0.2rem;
}

.extra-info {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed var(--color-border);
  padding-top: 1rem;
}

.extra-info li {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.4rem;
  padding-left: 1rem;
  position: relative;
}

.extra-info li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--color-text-light);
}

@media (max-width: 992px) {
  .pricing-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    width: 100%;
    max-width: 500px;
  }
  .hero {
    background-attachment: scroll;
  }
}

/* =========================================
   8. MOBILE ANPASSUNGEN (Handy) & HAMBURGER
   ========================================= */

/* Button für Hamburger Menü (auf Desktop unsichtbar) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle .bar {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .site-header {
    height: auto;
    padding: 10px 0;
  }
  .hero {
    background-attachment: scroll;
  }
  .header-layout {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .logo-img {
    height: 50px;
    margin-left: 0;
  }

  /* Hamburger anzeigen */
  .menu-toggle {
    display: flex;
  }

  /* Navigation anpassen */
  .main-nav {
    display: none; /* Standardmäßig versteckt */
    width: 100%;
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
    margin-top: 10px;
  }

  /* Wird per JS hinzugefügt */
  .main-nav.is-open {
    display: block;
    animation: fadeIn 0.3s ease;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
  }

  /* X-Animation des Hamburgers */
  .menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .main-nav a,
  .btn-nav {
    font-size: 0.9rem;
  }

  .footer-layout {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-nav ul {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   9. ÜBER UNS (Team Section)
   ========================================= */

.team-wrapper {
  display: flex;
  gap: 40px;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.team-card {
  flex: 1;
  min-width: 300px;
  background-color: var(--color-bg-light);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
}

.team-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.team-card h3 {
  margin-bottom: 0.2rem;
  color: var(--color-secondary);
}

.team-role {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  text-align: left;
  hyphens: manual;
}

.team-card p {
  text-align: justify;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

/* =========================================
   10. KONTAKT
   ========================================= */

.contact-details {
  margin-top: 2rem;
}

.contact-block {
  margin-bottom: 2rem;
}

.contact-link {
  font-size: 1rem;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.phone-link {
  display: block;
  margin-top: 0.3rem;
  width: fit-content;
}
