@import url('navigation.css');
@import url('header.css');
@import url('footer.css');

:root {
  --primary-color: #DD9527;
  --primary-bg: #DD952733;
  --primary-light: #DD9527;
  --secondary-color: #b87a1f;
  --secondary-bg: #DD952757;
  --secondary-light: #DD9527;
  font-size: 16px;
}

* {
  margin: 0;
  padding: 0;
  border: none;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  align-content: flex-end;
  min-height: 100vh;
}

.content {
  margin-top: 100px;
}

main {
  max-width: 1000px;
  margin: 80px auto;
  flex: 1;
}

h1 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 2rem;
}

h1, h2 {
  margin: 2rem 0 0.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

h3 {
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
}

p {
  padding-bottom: 10px;
}

a {
  color: #DD9527;
  text-decoration: none;
}

a:hover {
  color: #b87a1f;
}

li {
  margin-left: 1.2em;
}

table {
  border-collapse: collapse;
  width: 100%;
}

table td:first-child,
table th:first-child {
  white-space: nowrap;
  width: 1%;
}

table td,
table th {
  vertical-align: top;
  border: 1px solid #e0e0e0;
  padding: 0.5rem 0.75rem;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Cards */
.cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.card-container {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.card {
  margin: 10px 0;
  padding: 30px 15px;
  background-color: var(--primary-bg);
  text-align: center;
  width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 400;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.2s, box-shadow 0.2s;
  background-color: #DD9527;
}

.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.card1 {
  background-image: url('/images/betreuung_schwangerschaft.JPG');
}


.card2 {
  background-image: url('/images/betreuung.jpeg ');
}

.card3 {
  background-image: url('/images/ernahrung.JPG');
}

.card span {
  background: rgba(255,255,255,0.65);
  color: #111;
  padding: 1rem 2rem;
  margin-top: 3rem;
}

.angebot-image {
  display: flex;
  justify-content: center;
}

.angebot-image img, .intro-image img {
  height: auto;
  max-width: 90vw;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}

.angebot-image img {
  width: 500px;
  height: auto;
}

.intro-image img {
  width: 180px;
  float: left;
  margin-right: 1rem;
}

.testimonial {
  padding: 10px 0;
  background-color: var(--primary-bg);
  margin: 1rem;
}

.testimonial p {
  padding: 10px 30px;
}

/* Hide hamburger menu */
.mobile-menu {
  display: none;
}

.md\:hidden {
  display: none;
}

/* Intro flex for Michele's photo and text */
.intro-flex {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.intro-flex .angebot-image {
  margin-bottom: 0;
}

.intro-flex img {
  width: 180px;
  max-width: 40vw;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.intro-flex > div:last-child {
  flex: 1;
}

/* Middle screens */
@media only screen and (max-width: 900px) {
  :root {
    font-size: 14px;
  }

  main {
    margin: 1rem;
    margin-top: 50px;
  }

  .navbar a {
    font-size: 1rem;
    padding: 10px;
  }

  .navbar-brand a {
    font-size: 1.8rem;
  }

  .mobile-menu-button {
    width: 30px;
    background-color: var(--primary-light);
    color: white;
  }

  .mobile-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 60px;
    margin-left: auto;
    margin-right: auto;
    width: 60vw;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #DD9527;
    z-index: 1;
    border: 2px solid #b87a1f;
    padding: 1rem 0;
    box-sizing: border-box;
  }

  .hidden {
    display: none;
  }

  .section {
    padding: 2rem;
  }

  footer {
    text-align: center;
    font-size: 1rem;
  }

  .intro-flex {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .intro-flex img {
    width: 90vw;
    max-width: 90vw;
    margin: 0 auto;
    display: block;
  }
}

/* Small screens */
@media only screen and (max-width: 480px) {
  .card {
    width: 90vw;
    max-width: 320px;
    min-width: 180px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 1.4rem;
  }
}

@media (max-width: 1000px) {
  .card-container {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .card {
    width: 320px;
    max-width: 350px;
    height: 180px;
  }
}
