/* =======================================================
   BASE STYLES
======================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', Times, serif;
  background-color: #f5f1e9;
  color: #2c2c2c;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =======================================================
   CONTAINERS
======================================================= */
.container {
  width: min(90%, 1200px);
  margin-inline: auto;
  padding: 1rem;
}

.container2 {
  width: min(60%, 900px);
  margin-inline: auto;
  padding: 1rem;
}

.container h1,
.container2 h1 {
  font-family: Georgia, 'Times New Roman', Times, serif;
}

/* =======================================================
   NAVIGATION
======================================================= */
.navbar {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.5rem;
  background-color: #97b4dc;
  box-shadow: 0 2px 4px #0000001a;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1.5rem;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
  margin: 0;
  flex-wrap: wrap;
}

.navbar a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  color: #5c5858;
  text-decoration: underline;
}

.logo {
  height: 50px;
  width: auto;
}

/* =======================================================
   HERO / TITEL
======================================================= */
.hero {
  font-family: Georgia, 'Times New Roman', Times, serif;
  position: relative;
  background-size: cover;
  background-position: center;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: "Corinthia", cursive;
  font-weight: 500;
  font-size: clamp(4rem, 8vw, 9rem);
  margin-bottom: -2.5rem;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

/* =======================================================
   STARTSEITE HEADER
======================================================= */
.startseite-header {
  text-align: center;
  margin-top: 5rem;
}

.startseite-header .title {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 15px;
  flex-wrap: wrap;
}

.startseite-header .title h1 {
  font-family: "Corinthia", cursive;
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 8rem);
  margin: 0;
}

.startseite-header .title p {
  font-family: "Corinthia", cursive;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  margin: 0;
}

.startseite-header .subtitle {
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: #2c2c2c;
  margin: -60px 0 50px;
}

.untertitel {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1.4rem;
  margin-top: 200px;
}

/* =======================================================
   MAIN CONTENT
======================================================= */
main {
  flex: 1;
}

main h1 {
  font-size: 2.5rem;
  margin: 2rem 0 1.5rem;
  text-align: center;
}

body:not(.startseite) main h1 {
  text-align: left;
}

main p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

main ul {
    font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* =======================================================
   ÜBER MICH SEITE
======================================================= */
.profil-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

.profil-text {
  flex: 2;
  min-width: 300px;
  text-align: justify;
  hyphens: auto;
}

.profil-bild {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.profile-image {
  max-width: 280px;
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 4px 12px #00000026;
  border-radius: 0;
  margin-top: 100px;
}

.profil-hintergrund {
  margin-top: 3rem;
  width: 100%;
  text-align: justify;
  hyphens: auto;
}

/* =======================================================
   ANGEBOTE
======================================================= */
.angebot {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: fit-content;
}

.angebot-item {
  background-color: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 4px 14px #00000014;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  border-radius: 12px;
}

.angebot-item h2 {
  margin: 0 0 0.5rem;
  color: #705d47;
  font-size: 1.5rem;
  text-align: left;
}

.angebot-item > div:last-child {
  flex: 2;
  min-width: 300px;
}

.angebot-item > .image-stack {
  flex: 1;
}

/* =======================================================
   BILDERSTAPEL
======================================================= */
.image-stack {
  position: relative;
  width: 360px;
  height: 250px;
  margin: 0 120px 0 0;
  padding-right: 20px;
}

.image-stack img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0000001a;
  position: absolute;
}

.image-stack img:nth-child(1) {
  top: 0;
  left: 0;
}

.image-stack img:nth-child(2) {
  bottom: 0;
  left: 25px;
}

.image-stack img:nth-child(3) {
  top: 50%;
  left: 140px;
  transform: translateY(-50%);
  z-index: 2;
}

/* Feinkorrektur einzelner Bilder */
.image-stack img[src*="Plan.JPG"] {
  object-position: center 0%;
}

.image-stack img[src*="BildThemenangebote.png"] {
  object-position: center 33%;
}

/* =======================================================
   FOOTER
======================================================= */
footer {
  font-family: Georgia, 'Times New Roman', Times, serif;
  background-color: #97b4dc;
  color: black;
  text-align: center;
  padding: 6px 8px;
  margin-top: auto;
  font-size: 1rem;
  line-height: 1.4;
}

footer a {
  color: black;
  text-decoration: underline;
}

/* =======================================================
   RESPONSIVE DESIGN
======================================================= */

@media (max-width: 1309px) {
  /* ---------- NAVBAR ---------- */
  .navbar {
    font-size: 1.2rem;
    padding-inline: 1rem;
  }

  .navbar ul {
    gap: 1.2rem;
  }

  .navbar a {
    font-size: 1.1rem;
  }

  .logo {
    height: 40px;
  }

  /* ---------- ANGEBOTE ---------- */
  .image-stack {
    position: static !important;
    display: flex;
    flex-direction: column;
    align-items: center; /* zentriert alle Bilder */
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    gap: 15px; /* gleichmässiger Abstand */
  }

  .image-stack img {
    position: static !important;
    transform: none !important;
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0000001a;
  }
}

/* =======================================================
   RESPONSIVE: Abstand unter "patientia" ab 1150px
======================================================= */
@media (max-width: 1150px) {
  .startseite-header .title h1 {
    margin-bottom: calc(-2.5rem + 4rem);
  }
}

@media (max-width: 1020px) {
  /* ---------- NAVBAR ---------- */
  .navbar {
    font-size: 1.1rem;
    padding-inline: 0.8rem;
  }

  .navbar ul {
    gap: 1rem;
  }

  .navbar a {
    font-size: 1rem;
  }

  .logo {
    height: 35px;
  }

  /* ---------- ANGEBOTE ---------- */
  .image-stack img {
    width: 160px;
    height: 110px;
  }

  .image-stack {
    gap: 10px;
  }

  .angebot-item h2,
  .angebot-item h3 {
    font-size: 1.2rem;
  }

  .angebot-item p {
    font-size: 0.95rem;
  }
}


/* =======================================================
   RESPONSIVE ANPASSUNGEN AB 950px
======================================================= */
@media (max-width: 950px) {

  /* ---------- ANGEBOTE: Bilder ausblenden ---------- */
  .angebote-bilder,
  .image-stack,
  .angebot-item img {
    display: none !important;
  }

  /* Bild ausblenden */
  .profil-bild {
    display: none !important;
  }

  /* Text soll volle Breite bekommen */
  .profil-layout {
    display: block;
    max-width: 1000px; /* gleiche Breite wie .profil-hintergrund */
    margin: 0 auto;
  }

  .profil-text {
    width: 100%;
  }
}