/* Grunddesign */
body {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  background-color: #f8f9f6;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Header + Navigation */
header {
  background-color: #55664C;
  padding: 2px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 100px;
  width: auto;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #D8F4BF;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: #fff;
}

/* Startseite */
.intro {
  text-align: center;
  margin: 50px 0;
}

.intro h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.intro h2 {
  font-family: 'Crimson Pro', serif;
  font-size: 1.2rem;
  color: #55664C;
  margin-bottom: 20px;
}

.kontakt {
  background-color: #eef2ec;
  padding: 30px;
  border-radius: 12px;
  margin: 40px 0;
}

.kontakt-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.kontakt-info {
  flex: 1;
}

.kontakt-bild {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.imagebild {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.kontakt a {
  color: #2c3e50;
  text-decoration: none;
}

.kontakt a:hover {
  text-decoration: underline;
}

/* Unterseiten */
main h1 {
  color: #55664C;
  margin-bottom: 20px;
}

/* Footer */
footer {
  background-color: #ddd;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  margin-top: 40px;
}

/* Responsives Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 10px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .intro {
    margin: 30px 0;
  }

  .kontakt-container {
    flex-direction: column;
  }

  .kontakt-bild {
    justify-content: center;
    margin-top: 20px;
  }
}

/* Über mich – Bild links neben Text */
.ueber-mich-section {
  display: flex;
  align-items: center; /* vertikal mittig am Text ausrichten */
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap; /* verhindert Überlauf bei schmalen Bildschirmen */
}

.ueber-mich-bild {
  width: 180px;         /* feste Desktop-Breite */
  height: auto;         /* Verhältnis bleibt erhalten */
  max-width: 100%;      /* niemals über Container hinaus */
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;    /* verhindert Verzerrung */
}

.ueber-mich-text {
  flex: 1;
}

/* Mobile Version */
@media (max-width: 768px) {
  .ueber-mich-section {
    flex-direction: column;
    align-items: center;
  }

  .ueber-mich-bild {
    width: 45%;         /* Bild nimmt 45% der Containerbreite */
    max-width: 180px;   /* aber nie größer als 180px */
    height: auto;       /* Höhe passt sich an */
    margin-bottom: 20px;
  }
}

/* Sehr kleine Displays */
@media (max-width: 480px) {
  .ueber-mich-bild {
    width: 60%;
    max-width: 150px;
    height: auto;
  }
}
