/* ========= General Typography ========= */
body {
  margin: 0;
  font-size: 1.2rem;
  font-family: sans-serif;
  background-color: #fff;
  color: #222;
  line-height: 1.7;
}

/* Headings */
h1, h2, h3, h4 {
  font-weight: bold;
  color: #003366; /* Dark blue like homepage */
  margin-bottom: 1rem;
}

/* Main headlines */
.main-headline,
.identity-heading,
.mission-heading {
  font-size: 2.5rem;
  color: #0065E6; /* Light blue like homepage */
  position: relative;
  display: inline-block;
}

/* Marker underline like homepage */
.identity-heading {
  border-bottom: 0.5rem solid #55B2FF;
  padding-bottom: 0.4rem;
}

/* ========= Buttons ========= */
.contact-button {
  background-color: #0065E6;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 2rem;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #004ba0;
}

/* ========= Dividers ========= */

/* Thin light blue divider */
.divider-with-image .line {
  height: 1rem;
  background-color: #55B2FF;
}

/* Dark blue bar like index.html */
.fullwidth-section.dark-blue {
  background-color: #003366;
  height: 3rem;
  width: 100%;
}

/* Base structure */
.section {
  padding: 4rem 5%;
  background-color: #fff;
  color: #222;
}

/* --- Section 1 --- */

.contact-button {
  background-color: #0065E6;
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.small-headline {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.main-headline {
  font-size: 3rem;
  color: #0065E6;
  margin-bottom: 1rem;
}

/* Container für Text + Bild */
.headline-image-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap; /* für Responsiveness */
}

.about-intro-left {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 300px; /* verhindert zu schmale Spalten */
}

.about-text-block p {
  margin-bottom: 1.5rem;
}

.about-image {
  flex: 1 1 40%;
  max-width: 40%;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
}

/* Button zentrieren */
.contact-button-wrapper {
  margin-top: 2rem;
  text-align: left;
}

/* About text background */
.about-text-background {
  padding: 4rem 2rem;
  margin-top: 2rem;
}

.about-text-container {
  display: flex;
  align-items: flex-start;
}

.vertical-line {
  width: 5px;
  background-color: #55B2FF;
  margin-right: 2rem;
  height: auto;
}

/* --- Section 2 --- */
.identity-heading {
  text-align: right;
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 0.5rem solid #55B2FF;
}

.identity-intro {
  text-align: right;
  font-style: italic;
  margin-bottom: 2rem;
}

.identity-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.identity-texts {
  flex: 1;
  max-width: 60%;
}

.identity-image {
  width: 35%;
  height: auto;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
  border-radius: 1rem;
}

/* Divider + image */
.divider-with-image {
  margin-top: 3rem;
  position: relative;
  text-align: center;
}

.divider-with-image .line {
  width: 100%;
  height: 4px;
  background-color: #55B2FF;
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 0;
}

.divider-with-image img {
  width: 10%;
  background: #fff;
  position: relative;
  z-index: 1;
}

/* --- Section 3 --- */
.mission-heading {
  text-align: right;
  font-size: 3rem;
  color: #0065E6;
  margin-bottom: 2rem;
}

.mission-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  margin-top: 1rem
}

.mission-image {
  width: 25%;
  height: auto;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
  border-radius: 1rem;
}

.mission-texts {
  flex: 1;
  max-width: 60%;
  font-size: 1.5rem;
  line-height: 1.6;
}

/* --- Section 4 - Plan --- */
#about-plan {
  background-color: #fff;
  color: #222;
}

.plan-content {
  display: flex;
  align-items: flex-start;
  justify-content: left;
  flex-wrap: wrap;
}

.plan-image-container {
  flex: 1 1 50%;
}

.plan-image-container img {
  width: 85%;
  height: auto;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
  border-radius: 1rem;
}

.plan-right-content {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


.plan-subheading {
  color: #55B2FF;
  font-size: 1.75rem;
  margin: 0.5rem 0;
}

.plan-texts {
  margin-top: 10rem;
  text-align: left;
  font-size: 1.5rem;
  line-height: 1.6;
}

/* --- Section 5 - Philosophy --- */

#about-philosophy {
  padding: 4rem 5%;
  background-color: #fff;
  color: #222;
}

.section-heading.left-align {
  text-align: left;
  color: #0065E6;
  border-bottom: 0.5rem solid #55B2FF;
  padding-bottom: 0.4rem;
  margin-bottom: 2rem;
}

/* Bereich 5 - Philosophie Sektion */
.philosophy-section {
  width: 100%;
  padding: 3rem 1rem;
  box-sizing: border-box;
  background-color: #f9faff; /* Optional helles Hintergrund */
}

/* Linksbündige Überschrift mit hellblauer Unterstreichung */
.philosophy-heading {
  text-align: center;
  color: #0065E6;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  border-bottom: 4px solid #56aaff;
  padding-bottom: 0.5rem;
  max-width: max-content; /* Unterstreichung nur so breit wie Text */
}

/* Container für Bilder + Text */
.philosophy-content {
  display: flex;
  justify-content: left;
  align-items: flex-start;
  gap: 10%; /* Abstand zwischen Bildern und Textfeld */
  flex-wrap: wrap; /* Damit es auf kleineren Displays umbricht */
}

/* Bilder links & rechts */
.philosophy-image {
  width: 25%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 101, 230, 0.2);
}

/* Textfeld zentriert und ca 40% Breite */
.philosophy-text {
  width: 40%;
  min-width: 280px;
  text-align: center;
  font-size: 1.5rem;
  color: #222;
  line-height: 1.5;
}

/* Einleitungssatz im Textfeld */
.philosophy-text > p {
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* Bulletpoints */
.philosophy-text ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  text-align: left;
  margin: 0;
}

/* Project 5 */
.philosophy-bottom-texts {
  display: flex;
  justify-content: space-between;
  gap: 5rem;
  flex-wrap: nowrap;
}

.text-block {
  flex: 0 0 40%;
}


/* Project 6: Dark blue divider */
.divider.dark-blue {
  background-color: #003366;
  height: 80px;
  width: 100%;
  margin-top: 2rem;
}

/* --- Section 6 - Staff --- */
/* Bereich 6: Staff Section */
.staff-section {
  position: relative;
  width: 100%;
  height: 500px; /* Höhe für Desktop, kann angepasst werden */
  overflow: hidden;
}

.staff-background-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.staff-background-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin-left: auto; /* Bild rechtsbündig */
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 101, 230, 0.3);
}

/* Text Overlay Container */
.staff-text-overlay {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  max-width: 35%;
  background-color: rgba(85, 178, 255, 0.8); /* hellblauer transparenter Hintergrund */
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 101, 230, 0.4);
  color: #222;
  backdrop-filter: saturate(180%) blur(10px);
}

/* Überschrift im Textfeld */
.staff-text-overlay .section-heading {
  color: #0065E6;
  margin-bottom: 1rem;
}

/* Text im Textfeld */
.staff-text-overlay p {
  font-size: 1.1rem;
  line-height: 1.5;
}

/* ======= Responsive Anpassungen ======= */
@media (max-width: 64rem) {
  .staff-section {
    height: 400px;
  }

  .staff-text-overlay {
    max-width: 45%;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 1.5rem;
  }
}

@media (max-width: 48rem) {
  .staff-section {
    height: auto; /* Höhe anpassen für flexibles Layout */
  }

  .staff-background-image {
    width: 100%;
    height: 250px;
    margin-left: 0;
    border-radius: 0;
  }

  .staff-text-overlay {
    position: static;
    max-width: 100%;
    margin: 1.5rem auto 3rem;
    padding: 1.5rem;
    background-color: rgba(85, 178, 255, 0.6);
    box-shadow: none;
    border-radius: 0.5rem;
    color: #222;
  }

  .staff-text-overlay .section-heading {
    text-align: center;
  }

  .staff-text-overlay p {
    font-size: 1rem;
    line-height: 1.4;
  }
}


/* Bilder ähnlich wie in services.css */
.styled-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 101, 230, 0.3);
  transition: transform 0.3s ease;
}

.styled-image:hover {
  transform: scale(1.05);
}

/* Textboxen mit hellblauem Hintergrund und Schatten */
.textbox {
  background-color: rgba(85, 184, 255, 0.3);
  padding: 1.5rem;
  border-radius: 1rem;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(0, 101, 230, 0.3);
}

/* Überschriften im Service-Stil */
.services-heading {
  font-size: 2.5rem;
  color: #0065E6;
  margin-bottom: 1rem;
}

/* Flexbox für Wrapper in about.css */
.services-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

/* Fullwidth Sections für Farbbalken */
.fullwidth-section {
  width: 100%;
  height: 8rem;
}

.light-blue {
  background-color: #55B2FF;
}

.dark-blue {
  background-color: #0065E6;
}


/* ========= Responsive Adjustments ========= */
@media (max-width: 48rem) {
  .headline-image-container,
  .identity-content,
  .mission-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-image,
  .mission-image,
  .identity-image {
    width: 100%;
  }

  .identity-texts,
  .mission-texts {
    max-width: 100%;
  }

  .philosophy-image {
        width: 50%;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .identity-heading,
  .mission-heading {
    text-align: left;
  }
}

@media (max-width: 48rem) {
  /* Bereich 4 - Plan */
  #about-plan {
    flex-direction: column;
  }

  .plan-image-container,
  .plan-right-content {
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }

  .plan-right-content {
    align-items: flex-start !important; /* nicht mittig */
    text-align: left;                  /* linksbündig Text */
    width: 100%;                       /* volle Breite */
  }

  .plan-right-content .textbox {
    width: 80%;                       /* Textbox dehnt sich aus */
  }

  /* Section 5 */
  .philosophy-top-content {
    flex-direction: column;
    align-items: center;
  }

  .philosophy-side-image,
  .philosophy-center-text {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 0 0 1rem 0;
  }

  .philosophy-bottom-texts {
    flex-direction: column;
  }

  .divider-with-image img {
    width: 35%;
    background: #fff;
    position: relative;
    z-index: 1;
  }

  .philosophy-wide-graphic-wrapper {
    display: none;
  }
}



  footer {
    padding-top: 1.5rem; /* Ensure space before footer starts */
  }
}
