/*
 * Style sheet for the PRO HUMAN website.
 *
 * The design is clean, warm and responsive. Colour accents are taken from
 * natural greens and soft reds to convey trust and compassion. The layout
 * adapts to different screen widths using flex and grid. A simple
 * navigation bar remains fixed to the top of the page for easy access to
 * each section. Cards highlight the different Leistungsbereiche and
 * typography emphasises important messages.
 */

/* CSS reset – removes default margins and sets border box sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
  z-index: 1000;
}

.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo img {
  height: 40px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-menu li a {
  text-decoration: none;
  color: #004d40;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s ease;
}

.nav-menu li a:hover {
  color: #e57373;
}

/* Hero section */
.hero {
  background-image: url('hero-bg.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.hero .btn {
  display: inline-block;
  background-color: #e57373;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.hero .btn:hover {
  background-color: #d34f4f;
}

/* General section styling */
section {
  padding: 4rem 1rem;
}

section .container {
  max-width: 1100px;
  margin: 0 auto;
}

section h2 {
  font-size: 2.25rem;
  color: #004d40;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Leistungen cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card svg {
  width: 40px;
  height: 40px;
  fill: #e57373;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #004d40;
}

.card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

/* Two-column content for larger screens */
.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.two-column .text {
  flex: 1 1 50%;
}

.two-column .image {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.two-column .image img {
  max-width: 100%;
  border-radius: 8px;
}

/* Contact form */
.contact-details {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form button {
  align-self: flex-start;
  background-color: #004d40;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #002f2f;
}

/* Footer */
footer {
  background-color: #004d40;
  color: #fff;
  padding: 2rem 1rem;
}

footer .footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

footer h4 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: #ffffff;
}

footer a {
  color: #ffdddd;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #ffffff;
}

footer p {
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.125rem;
  }
  .navbar .nav-menu {
    display: none;
  }
  .navbar .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #fff;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  .navbar .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: #004d40;
  }
}

@media (min-width: 769px) {
  .navbar .menu-toggle {
    display: none;
  }
}