/* ==========================================================================
   1. UTILITIES & DESIGN SYSTEM variables
   ========================================================================== */
:root {
  --header-height: 104px;
  --logo-height: 74px;
  --container: 1320px;
  --gutter: 28px;
  --section-pad: 70px;
  --section-bg-a: #ffffff;
  --section-bg-b: #f7f9fc;
  --divider: rgba(0,0,0,0.08);
  --accent: #009fe4;
  --accent-soft: rgba(0,159,228,0.25);
}

body {
  margin-top: 0;
  padding-top: var(--header-height);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 10px 14px;
  z-index: 2000;
  border-radius: 8px;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ==========================================================================
   2. LAYOUT & SECTION SEPARATION
   ========================================================================== */
main section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--divider);
}

main section.hero {
  padding: 0;
  border-top: 0;
}

main section:not(.hero):not(.about-content):nth-of-type(odd) { background: var(--section-bg-a); }
main section:not(.hero):not(.about-content):nth-of-type(even) { background: var(--section-bg-b); }

main section:not(.hero) h2 {
  text-align: center;
  margin-bottom: 28px;
}

.section-intro {
  max-width: 780px;
  margin: 0 auto 28px auto;
  text-align: center;
}

main section:not(.hero) .container::before {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 0 auto 18px auto;
  background: rgba(0,159,228,0.35);
  border-radius: 99px;
}

/* About Layout Grid */
.about-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text, .about-image { flex: 1; }
.about-image img { width: 100%; height: auto; border-radius: 12px; }

/* ==========================================================================
   3. RESPONSIVE NAVIGATION (HAMBURGER)
   ========================================================================== */
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: #003366;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
}
.nav-toggle:focus { outline: 3px solid rgba(0,159,228,0.35); outline-offset: 2px; }

#nav-menu { display: none; gap: 6px; align-items: center; }
#nav-menu.is-open { display: flex; }

.nav-cta { background: var(--accent); color: #fff !important; border-radius: 6px; }
.nav-cta:hover { background: #00509e; }

/* ==========================================================================
   4. SERVICES CARD GRID
   ========================================================================== */
.services-grid {
  width: 100%;
  margin: 28px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: stretch;
}

.service-card {
  background-color: #fff;
  padding: 34px 26px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  flex: 1 1 280px;
  max-width: 380px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 26px rgba(0,0,0,0.14);
}

/* ==========================================================================
   5. PROCESS TIMELINE / STEPPER (MOBILE BY DEFAULT)
   ========================================================================== */
.steps {
  list-style: none;
  padding: 0;
  margin: 34px auto 0;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: block;
  width: 100%;
}

.step-dot { display: none; }

.step-card {
  background: #1e293b; 
  border: 1px solid #334155;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.step-card h3 {
  font-size: 18px;
  color: #f8fafc;
  margin: 0 0 8px;
  font-weight: 600;
}

.step-card p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   6. CONTACT FORM & WHATSAPP
   ========================================================================== */
section.contact {
  padding-bottom: calc(var(--section-pad) + 60px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  margin-top: 30px;
}

.contact-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.07);
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: #003366;
  margin-bottom: 16px;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  font: inherit;
  display: block;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: rgba(0,159,228,0.7);
  box-shadow: 0 0 0 4px rgba(0,159,228,0.18);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.btn-primary:hover { background: #00509e; }

.contact-card-whatsapp { background: #f3fbf7; }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: #25D366;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  margin: 12px 0 16px;
}
.btn-whatsapp:hover { filter: brightness(0.95); }

/* ==========================================================================
   7. ABOUT PAGE & DSGVO SPECIFICS
   ========================================================================== */
.dsgvo-container { max-width: 800px; margin: 0 auto; padding: 10px 15px; }
.dsgvo-container h1, .dsgvo-container h2, .dsgvo-container p { text-align: left; }
.dsgvo-container h2 { border-bottom: 2px solid rgba(0,0,0,0.06); padding-bottom: 8px; margin-top: 45px; }

/* ==========================================================================
   8. MEDIA QUERIES BY BREAKPOINT (Sauber gebündelt)
   ========================================================================== */

/* --- DESKTOP PROZESS / STEPPER (Ab 900px) --- */
@media (min-width: 900px) {
  .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1200px;
    position: relative;
  }
  .steps::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 26px;
    height: 2px;
    background: var(--accent-soft);
  }
  .step { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .step-dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--accent);
    margin: 18px auto 0;
    box-shadow: 0 0 0 6px rgba(0,159,228,0.18);
    z-index: 2;
  }
  .step-card { background: #fff; border: 1px solid rgba(0,0,0,0.08); text-align: center; min-height: 170px; }
  .step-card h3 { color: #003366; }
  .step-card p { color: #444; }
  
  .main-nav li:last-child { margin-left: 18px; }
  .main-nav li:last-child a.nav-cta { padding: 10px 16px; box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
}

/* --- TABLET BREAKPOINT (Max 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --header-height: 96px;
    --logo-height: 64px;
    --gutter: 20px;
    --section-pad: 56px;
  }
}

/* --- SMARTPHONE & GLOBAL RESPONSIVE BREAKPOINT (Max 900px / 768px) --- */
@media (max-width: 900px) {
  .contact-grid, .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 84px;
    --logo-height: 52px;
    --gutter: 16px;
    --section-pad: 44px;
  }

  .about-grid { flex-direction: column; text-align: center; }

  /* Hamburger Menu Activation */
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .main-nav { display: none; }
  #nav-menu.is-open {
    position: absolute;
    right: 20px;
    top: calc(100% + 10px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: min(360px, calc(100vw - 40px));
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.18);
    padding: 10px;
  }
  #nav-menu a { padding: 12px 14px; border-radius: 10px; }
}