/* ===============================
   SK-Care Onepager – style.css
   Corporate Design Update (Dez 2025)
================================ */

/* ===============================
   Farben & Grundwerte
================================ */
:root {
  --bg: #ffffff;
  --bg-light: #f4f7fb;

  /* Corporate Farben SK-Care */
  --primary: #008d3f;        /* Wood Green */
  --primary-light: #76b82a;  /* Dynamic Green */
  --accent: #b10462;        /* Berry */

  --text: #1f2933;
  --text-muted: #5c7080;

  --radius-lg: 1.5rem;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1140px, 100% - 2.5rem);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.bg-light {
  background: var(--bg-light);
}

h1, h2, h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 50rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* ===============================
   HEADER
================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
/*
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05); 
   ✨ Stack-Context-Fix für iOS/Safari 
  will-change: transform;
}
*/

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  gap: 1.5rem;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo-img {
    height: 65px;
  }
}

.nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.btn-nav {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #000;
  border-radius: 10px;
}

/* ===============================
   HERO
================================ */
.hero {
  position: relative;
  background-image: url("assets/hero-desktop.webp");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(120px, 18vh, 220px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 141, 63, 0.85),
    rgba(0, 141, 63, 0.4) 80%,
    rgba(0, 141, 63, 0.2) 100%
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  color: #fff;
  margin-top: 0;
  /* Textschatten damit Lesbarkeit gewährleistet ist */
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.9);
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.3rem);
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  gap: 1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
}

/* ===============================
   SECTIONS
================================ */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}

/* Checklisten */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.checklist li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===============================
   TRENNER
================================ */
.parallax-separator {
  position: relative;
  background-image: url("assets/separator-desktop.webp");
  background-position: center center;
  background-size: cover;
  
  /* ✨ NEU/KORRIGIERT: Wiederholung verhindern */
  background-repeat: no-repeat; 
  
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.separator-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 141, 63, 0.55);
}

.separator-content {
  position: relative;
  color: #ffffff;
}

.separator-content h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin-bottom: 0.6rem;
}

/* ===============================
   SERVICES / TEAM
================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-card,
.team-card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid rgba(0, 141, 63, 0.35);
}

.team-card {
  text-align: center;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: linear-gradient(140deg, #e6f3ec, #ffffff);
  margin: 0 auto 1rem;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* ===============================
   KONTAKT
================================ */
#contact .container {
  max-width: 700px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.contact-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.contact-list li {
  margin-bottom: 0.5rem;
}

/* ===============================
   FOOTER
================================ */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,0.75);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
}

/* ===============================
   MOBILE NAVIGATION (KORRIGIERT FÜR IOS)
================================ */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 90px;
    right: 0;
    left: 0;
    
    /* ÄNDERUNG: */
    height: auto; /* Passt sich dem Inhalt an */
    max-height: calc(100vh - 100px); /* Verhindert, dass es größer als der Screen wird */
    
    /* WICHTIG: Damit der Schatten unten sichtbar ist, etwas Abstand lassen */
    padding-bottom: 2rem; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Optional: Schatten für bessere Sichtbarkeit */    

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    gap: 1.4rem;
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    background: #ffffff;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
    /* FIX: Button klickbar machen */
    padding: 15px;            /* Vergrössert die Klickfläche */
    margin-right: -15px;      /* Gleicht das Padding optisch aus, damit er rechts bündig bleibt */
    cursor: pointer;          /* Zeigt Mauszeiger auf Desktop-Test */
    z-index: 1001;            /* Stellt sicher, dass er ÜBER allem anderen liegt */
    /* ... Rest Ihres Codes ... */
  }

  .hero {
    background-image: url("assets/hero-mobile.webp");
    min-height: 85vh;
    background-position: center top;
    padding-top: clamp(110px, 14vh, 160px);
    padding-bottom: clamp(3rem, 8vh, 6rem);
  }

  .parallax-separator {
    background-image: url("assets/separator-mobile.webp");
    min-height: 35vh;
  }

  .contact-photo {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 90vh;
    padding-top: 130px;
    padding-bottom: 5rem;
  }
  .hero-actions {
    gap: 0.8rem;
  }
  .parallax-separator {
    min-height: 40vh;
  }
}

/* ===============================
   SMOOTH SCROLL
================================ */
html {
  scroll-behavior: smooth;
}
.hero,
.parallax-separator {
  background-attachment: scroll;
}
