/* --- Wrapper für die Seite --- */
.ueber-uns-page-wrapper {
  padding: 60px 20px 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

/* --- Basis-Style für beide Karten --- */
.master-card {
  width: 100%;
  max-width: 900px;
  padding: 60px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(27, 59, 111, 0.08);
  border-top: 5px solid var(--base-color);
}

/* --- Helle Profil-Karte --- */
.profil-karte {
  background-color: var(--segeltuchweiß-color);
  color: #444;
}

.profil-layout {
  display: flex;
  gap: 60px;
  align-items: center;
}

.profil-bild-container {
  flex: 0 0 320px; /* Perfekte Größe für das runde Bild */
}

.profil-bild-container img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%; /* Macht das Bild rund */
  border: 8px solid white; /* Weißer Rahmen als Kontrast zum Segeltuch-Hintergrund */
  box-shadow: 0 15px 30px rgba(27, 59, 111, 0.15);
}

.profil-text {
  flex: 1;
  text-align: left;
}

.profil-text h2 {
  color: var(--base-color);
  font-size: 2.2rem;
  margin-bottom: 5px;
}

.profil-text .untertitel {
  margin-top: 0;
  margin-bottom: 30px;
  color: var(--ozean-color);
  font-weight: 400;
  font-size: 1.2rem;
}

.profil-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.grussformel {
  margin-top: 40px !important;
  font-size: 1.2rem !important;
  color: var(--base-color) !important;
}

/* --- Dunkelblaue Tipps-Karte --- */
.werte-karte {
  background-color: var(--base-color);
  color: var(--segeltuchweiß-color);
  border-top: 5px solid var(--ozean-color); /* Hellblauer Rand oben */
}

.werte-karte h3, 
.werte-karte h4 {
  color: var(--strand-color); /* Sandfarbene Überschriften als Kontrast */
}

.werte-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
}

.wert-item {
  flex: 1;
  text-align: center;
}

.wert-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 15px;
}

.wert-item h4 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.wert-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--segeltuchweiß-color);
  opacity: 0.9;
}

@media (min-width: 901px) {
  .profil-bild-container.magazine-style {
    float: left; /* Das Bild schwimmt links... */
    margin-right: 50px; /* ...und drückt den Text weg */
    margin-bottom: 20px;
    
    /* DER MAGISCHE BEFEHL: Sagt dem Text, dass er sich der RUNDEN Form anpassen soll! */
    shape-outside: circle(); 
  }
}

/* --- Responsive für Handys --- */
@media (max-width: 900px) {
  .master-card {
    padding: 30px 20px; /* Auf dem Handy weniger Rand */
  }

  .profil-layout {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .profil-bild-container {
    flex: 0 0 250px;
  }

  .profil-text {
    text-align: left; /* Text bleibt linksbündig für bessere Lesbarkeit */
  }

  .werte-grid {
    flex-direction: column;
    gap: 40px;
  }
}