/* ---------------------------- */
/* Reset & Grundlegendes        */
/* ---------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Google Font: Nunito import*/
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

/* Grundlegende Stile */
body {
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden; /* verhindert X-Overflow */
}

html {
  scroll-behavior: smooth;
}

/* Farbige Trennlinie oben */
.colorfield1{
width: 100%;
padding: 0 0;
height: 2.0rem;
background-color:#182e5e; /* dunkles Blau als Hintergrund */
}
.colorfield2{
width: 100%;
padding: 0 0;
height: 1.2rem;
background-color: #213e7c; /* helles Blau als Hintergrund */
}

/* ---------------------------- */
/* Navbar & Header              */
/* ---------------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 1rem;
  background: #ffffff; /* dunkles Blau */
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 2000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* dezenter Schatten für Tiefe */
}

.navbar .logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1)); /* leichter Schatten für bessere Sichtbarkeit */
}
.logo img {
  max-width: 90px;   /* maximal 10px breit */
  max-height: 90px;  /* maximal 10px hoch */
  height: auto;      /* Höhe proportional zur Breite */
  width: auto;       /* Breite proportional zur Höhe */
  display: block; /* verhindert kleinen Abstand unter dem Bild */
  
}
.navbar .nav-links {
  list-style: none;
  display: flex;
  z-index: 2000;
}

.navbar .nav-links li {
margin: 0 1px;
padding: 1rem 0.5rem;
}

.navbar .nav-links a {
  color: #fff;
  text-decoration: none;
  background-color: #182e5e;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
  display: inline-flex;      /* flex, damit der Text zentriert wird */
  justify-content: center;   /* horizontal zentrieren */
  align-items: center;       /* vertikal zentrieren */
  width: auto;
}

.navbar .nav-links a:hover {
 background-color: #5883e0;   /* dunkleres Orange beim Hover */
 transform: scale(1.05);      /* leichter Zoom-Effekt */
}

/* ---------------------------- */
/* Hero Section                 */
/* ---------------------------- */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url('images/medical/hero/hero.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

/* Video Hintergrund */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* füllt das Fenster vollflächig, proportional */
  z-index: 1;
}

/* Gradient Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Verlauf von transparent oben zu schwarz unten */
  background: linear-gradient(to bottom, rgba(24, 46, 94, 0) 0%, rgba(24, 46, 94,0.7) 100%);
  z-index: 2;
}

.hero-content {
  position: absolute; /* absolut innerhalb der Hero-Section */
  bottom: 40px;       /* Abstand vom unteren Rand */
  left: 20px;         /* Abstand vom linken Rand */
  z-index: 3;
  text-align: left;   /* Text linksbündig */
  color: #fff;        /* optional, falls Textfarbe überschrieben */
}

/* Optional: Button und Text etwas größer machen */
.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0px;
  line-height: 1;
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: lighter;
} 

@media (max-width: 768px) {
    .hero-content {
        position: absolute; /* absolut innerhalb der Hero-Section */
        bottom: 120px;       /* Abstand vom unteren Rand */
        left: 20px;         /* Abstand vom linken Rand */
        z-index: 3;
        text-align: left;   /* Text linksbündig */
        color: #fff;        /* optional, falls Textfarbe überschrieben */
    }

    .hero-content h1 {
      font-size: 2.5rem;
      margin-bottom: 5px;
      line-height: 1;
    }

    .hero-content h2 {
      font-size: 2rem;
      margin-bottom: 20px;
      line-height: 1;
      font-weight: lighter;
    } 
}


.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 15px;
}


.hero .btn {
  margin-top: 20px;
  padding: 15px 20px;
  background: #000000;
  color: #fff;
  text-decoration: none;
  border: none;
  font-weight: 100; 
  border-radius: 2px;
  box-shadow: 0 0 0 0.3px #fff;
  transition: background 0.3s;
}

.hero .btn:hover {
  background: #ffffff;
  color: #000000;
  text-decoration: none;
}
.hero-logo {
  position: absolute;
  top: 40%;           /* vertikal zentriert */
  left: 50%;          /* horizontal zentriert */
  transform: translate(-50%, -50%); /* genaues Zentrum */
  z-index: 4;         /* über Overlay und Text */


}
/* Herzschlag-Animation */
@keyframes heartbeat {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.06); }
  40%  { transform: scale(1); }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.hero-logo img {
  width: 150px;       /* gewünschte Größe */
  height: auto;       /* proportional */
  display: block;
  animation: heartbeat 2.2s ease-in-out forwards;
  /* einmaliger Herzschlag beim Laden */
  transform-origin: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));

}
/* ---------------------------- */
/* About Section               */
.about-section {
  padding: 60px 31px;
  max-width: 1200px;
  margin: 0 auto;
}

.container .about-content {
  margin-bottom: 40px;
}

.about-section h2 {
  font-size: 2.5rem;
  margin-bottom: 5px;
}
.about-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
} 

/* Berufe */
#berufe {
  scroll-margin-top: 90px; /* Höhe deines fixierten Headers */
}

.medical-grid-section {
  padding: 20px 20px; /* weniger Abstand oben/unten */
  background: linear-gradient(to bottom, rgba(24, 46, 94, 0) 0%, rgba(24, 46, 94,1) 100%);
  min-height: 90vh; /* mindestens volle Höhe des Viewports */
}
.medical-grid-section .section-title {
  margin-top: 0;       /* kein extra Abstand oben */
  margin-bottom: 15px; /* Abstand zum Grid */
  font-size: 2.5rem;
  font-weight: bold;
  color: #000000;
  text-align: center;
}

.medical-grid {
  display: grid;                
  width: 100%;                           /* Section device-wide */
  max-width: 1200px;                     /* max Breite */
  margin: 0 auto;                        /* horizontal zentrieren */
  grid-template-columns: repeat(3, minmax(250px, 1fr)); /* responsive 3 Spalten max */
  gap: 20px;                             /* gleichmäßiger Abstand horizontal + vertikal */
  justify-items: stretch;                /* Cards füllen Spalte gleichmäßig */
  align-content: center;                 /* vertikal zentrieren, wenn weniger Reihen */
  padding: 50px;                         /* Innenabstand */
}

/* Jede Kachel */
.medical-card {
  width: 100%;
  max-width: 350px;        /* fixe maximale Breite */
  height: 250px;           /* fixe Höhe für alle Kacheln */
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  cursor: pointer;

  /* Hintergrundbild */
  background-size: cover;       /* Bild füllt die ganze Kachel */
  background-position: center;  /* zentriert das Bild */
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* Text unten platzieren */
  padding: 15px;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover-Effekt */
.medical-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Textüberlagerung besser lesbar machen */

.medical-card h3 {
  font-size: 1.5rem;
  background-color: #fffafa; /* weißer Hintergrund für bessere Lesbarkeit */
  color: #000000;        /* schwarzer Text */
  padding: 5px 10px;
  border-radius: 5px;
  margin-bottom: 8px;   
}

.medical-card p {
  font-size: 1rem;
  line-height: 1.4;
  color: #000000;        /* schwarzer Text */
  padding: 5px 10px;  
  background-color: rgba(255, 255, 255, 0.5); /* halbtransparenter schwarzer Hintergrund */
  border-radius: 5px;
}
/* ---------------------------- */
/* Responsive Anpassung         */
@media (max-width: 1024px) {
  .medical-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 Spalten */
  }
}

@media (max-width: 600px) {
  .medical-grid {
    grid-template-columns: 1fr; /* 1 Spalte */
  }
}

/* Kontakt Section */
.contact-section {
  padding: 60px 30px;
  background-color: #182e5e; /* Blau wie Navbar / Hero Overlay */
  color: #fff;
}

.contact-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
}

.contact-section p {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Kontakt Section */
.contact-section {
  padding: 60px 30px;
  background-color: #182e5e; /* Blau wie Navbar / Hero Overlay */
  color: #fff;
}

.contact-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
}

.contact-section p {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Grid für Kontaktkarten */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Karten als Links */
.contact-card-link {
  text-decoration: none; /* entfernt Unterstreichung */
}

/* Jede Kontaktkarte */
.contact-card {
  background-color: #fff; /* Karten jetzt weiß */
  color: #182e5e;         /* blaue Schrift */
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
  cursor: pointer;
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 1rem;
  margin: 0;
}

/* Hover-Effekt */
.contact-card-link:hover .contact-card {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  background-color: #5883e0; /* Hover Blau */
  color: #fff;
}

/* Responsive Anpassung */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}






/* ---------------------------- */
/* Footer                       */
footer {
  background: #182e5e;
  color: #aaa;
  text-align: center;
  padding: 20px;
}

/* ---------------------------- */
/* Burger-Menü                  */
.burger {
  display: none; /* nur ab Mobile sichtbar */
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  z-index: 2001;
  width: 44px; 
  height: 40px;
  position: relative;
  right: 5px;
}

.burger span {
  height: 4px;
  width: 36px;
  background:#182e5e;
  margin: 4px auto;
  border-radius: 5px;
  transition: all 0.4s ease;
  transform-origin: center center;
}

/* ---------------------------- */
/* Mobile Navigation & Animation */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    display: flex;  
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background:#ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    gap: 0px;
    transition: right 0.4s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    list-style: none;
    margin: 0; 
    padding: 0;
  }

  .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
    padding: 0px 0; 
  }

  .nav-links a:hover {
    color: #ffffff;
  }

  /* Animation Burger → X */
.burger.toggle span:nth-child(1) {
  transform: rotate(45deg) translate(0px, 16px); /* leicht verschieben, damit sich die Mitte trifft */
}

.burger.toggle span:nth-child(2) {
  opacity: 0;
}

.burger.toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(0px, -16px);
}

}
