/* ====== Global Styles ====== */
:root {
  --blue: #0074CC;
  --gray: #333333;
  --light-gray: #f8f9fa;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins_semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins_medium.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 400;
  margin: 0;
  color: var(--gray);
  background-color: white;
  line-height: 1.6;
}

header {
    display: flex;
    flex-direction: column; /* h1 und p untereinander */
    align-items: center;    /* horizontal zentrieren */
    justify-content: center; /* optional: vertikal zentrieren */
    background-color: var(--blue);
    color: white;           /* Standardfarbe für Text im Header */
    padding: 60px 10%;
    text-align: center;     /* Backup */
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 400;
}

header h1 {
    color: white !important; /* überschreibt globale H1-Farbe */
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    color: white;           /* sichert weiße Schrift */
    text-align: center;     /* zentriert den Text */
    margin: 0;              /* optional: unnötige Abstände entfernen */
}

img {
  width: auto;
  max-height: 350px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

section {
  padding: 60px 10%;
}

h1, h2 {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.5rem;
  color: var(--blue);
  margin-bottom: 10px;
}
main {
      padding: 60px 10%;
      max-width: 900px;
      margin: 0 auto;
    }

h2 {
  color: var(--gray);
  margin-bottom: 20px;
}

p {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 20px;
  max-width: 700px;
}

/* Language links HEADER */
header nav {
    text-align: right;     
}
header nav a {
    color: rgba(0, 0, 0, 0.45);
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
    transition: color 0.3s;
} 
header .lang-nav {
  position: absolute;
  top: 20px;
  right: 10%;
  z-index: 3; /* über Overlay & Header Content */
  text-align: right;
}

header .lang-nav a:hover {
  color: #e0e0e0;
} 

.logo {
  max-width: 600px;  /* maximale Breite */
  width: 100%;       /* passt sich Container an */
  height: auto;      /* Höhe proportional */
  margin-bottom: 20px; /* Abstand zu Überschrift */
}

/* ====== Landing Page Header (grau) ====== */
.header-landing {
  position: relative;
  /*background: url('images/header_background.png') center/cover no-repeat;*/
  /*background-color: rgba(0, 0, 0, 0.45);*/
  background-color: white;
  color: white;
  text-align: center;
  /*padding: 150px 10%;*/
  padding: 100px 10% 200px 10%;
  overflow: hidden;
  z-index: 1;
}

.header-landing::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100px; 
  background: url('../images/children_bg.png') bottom center / auto 100% repeat;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5; /* 0 = unsichtbar, 1 = voll sichtbar */
}

.header-content {
  position: relative;
  z-index: 2;
}

.header-landing h1 {
  color: white;
  font-size: 3rem;
}

.header-landing p {
  font-size: 1.2rem;
  color: #e0e0e0;
}



/* ====== Alternating Sections ====== */
.flex-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.flex-section:nth-child(even) {
  flex-direction: row-reverse;
  background-color: var(--light-gray);
}

.flex-section:hover {
  background-color: #e0e0e0; /* leichtes Blau beim Hover */
  transition: background-color 0.3s ease;
}


.text-block {
  flex: 1 1 45%;
  position: relative;
}

.image-block {
  flex: 1 1 45%;
  max-height: 350;
  display: flex;
  justify-content: center;
}


.text-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.text-heading h2 {
    margin: 0;
}

.image-logo-r {
    flex: 0 0 auto;
    width: 55px;
}

.image-logo-r img {
    display: block;
    width: 55px;
    height: auto;
    border-radius: 0;
    object-fit: contain;
}

.image-bottom-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0px;
}

.image-bottom-section img {
    width: 350px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

/* ====== Contact ====== */
footer {
  background-color: var(--light-gray);
  text-align: center;
  padding: 60px 10%;
  color: var(--gray);
  font-size: 0.9rem;
}

footer p {
  max-width: none;      /* remove the 700px limit */
  margin: 0 auto;       /* center horizontally if needed */
  text-align: center;   /* make text inside centered */
}

footer a:hover {
  text-decoration: underline;
}

/* ====== Responsive Mobile ====== */
@media (max-width: 768px) {

  /* Header / Hero */
  header, .header-landing {
    padding: 80px 5%;
    text-align: center;
  }

  header h1, .header-landing h1 {
    font-size: 2rem;
  }

  header p, .header-landing p {
    font-size: 1rem;
  }

  /* Language Links Mobile */
  header .lang-nav {
    position: absolute;
    top: 10px;   /* größerer Abstand */
    right: 5%;
    z-index: 3;
  }

  header .lang-nav a {
    margin: 0 8px;      /* kleine Abstände zwischen EN/DE */
    display: inline-block;
  }

  /* Sections */
  section, .flex-section {
    padding: 40px 5%;
    flex-direction: column !important;
    gap: 20px;
  }

  .text-block, .image-block {
    flex: 1 1 100%;
  }

  .flex-section:nth-child(even) {
    flex-direction: column !important;
  }

  .text-block p {
    text-align: center;
  }

  .text-block h2 {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .text-heading {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 15px;
  }

  .text-heading h2 {
      margin: 0;
  }

  /* Footer */
  footer {
    padding: 40px 5%;
    font-size: 0.85rem;
  }

  footer a {
    display: inline-block;
    margin: 5px 10px;
  }

  /* Hero / Landing */
  .header-landing {
    padding: 120px 5%;
  }

  .header-landing h1 {
    font-size: 2.2rem;
  }

  .header-landing p {
    font-size: 1rem;
  }
}

