/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Raleway", sans-serif;
  color: #0e162c;
  background-color: #f8f8f8;
  line-height: 1.6;
}

/* Header Styling */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #ddd;
  position: sticky;
  z-index: 999;
  top: -10px;
  box-shadow: 0 -6px 10px 5px rgba(0, 0, 0, 0.5);
}

.header-logo img {
  height: 45px;
}

/* Navbar Styling */
.navbar {
  list-style: none;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

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

.navbar li a {
  text-decoration: none;
  color: #0e162c;
}

.navbar li a:hover {
  color: #616845;
}

.navbar .cta-button {
  all: unset; /* Reset all parent and inherited styles */
  cursor: pointer; /* Change cursor to pointer */
}

/* Button Styling */
.navbar .cta-button a {
  display: inline-block;
  padding: 8px 15px;
  background-color: #616845; /* Initial background */
  color: #dddfd5; /* Initial text color */
  text-decoration: none; /* Remove underlines */
}

.navbar .cta-button a:hover {
  background-color: #dddfd5;
  color: #616845;
  transition: all 0.3s ease; /* Adds a cool & smooth transition :) */
}

/* Hamburger Menu - Hidden by Default */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background-color: #0e162c;
  transition: all 0.3s ease-in-out;
}

/* Checkbox Hidden */
.nav-toggle {
  display: none;
}

/* Mobile Navigation */
@media screen and (max-width: 750px) {
  .hamburger {
    display: flex;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #dddfd5;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    visibility: visible; /* Ensure visibility */
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1000;
    gap: 30px;
  }

  .navbar a {
    font-size: 2rem;
  }

  /* Show Navigation When Checkbox is Checked */
  .nav-toggle:checked ~ .navbar {
    transform: translateX(0);
  }

  /* Hamburger Animation */
  .nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
    background-color: #0e162c;
  }

  .nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
    background-color: #0e162c;
  }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 0px;
}

.hero-impressions {
  text-align: center;
  padding: 120px 20px 40px 20px;
}

.first-hero {
  text-align: center;
  padding: 100px 20px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("img/header_home.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  min-height: 550px;
}
.first-hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-top: 60px;
  color: #f8f8f8;
}

.first-hero p {
  font-size: 1.2rem;
  margin-bottom: 50px;
  margin-top: 25px;
  color: #f8f8f8;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #666;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #666;
}

.block {
  background-color: #616845;
  block-size: 5px;
  width: 5%;
  margin: 10px auto; /* Centers horizontally and adds top margin */
}

.block-home {
  background-color: #f8f8f8;
  block-size: 5px;
  width: 5%;
  margin: 10px auto; /* Centers horizontally and adds top margin */
}

/* Green Section */
.green-section {
  display: flex;
  flex-direction: row; /* Aligns text and image side by side */
  align-items: center;
  justify-content: space-between;
  background-color: #d8e2cc; /* Greenish background */
  padding: 20px;
  height: 600px; /* Full-screen height */
  box-sizing: border-box; /* Includes padding in dimensions */
}

/* Left Text Container */
.green-section .text-content {
  flex: 1; /* Takes up half the section width */
  padding: 20px;
  color: #0e162c; /* Text color */
}

.green-section .text-content h1 {
  font-size: 2rem; /* Title size */
  margin-bottom: 20px;
}

.green-section .text-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Right Image Container */
.green-section img {
  flex: 1; /* Takes up half the section width */
  width: 100%; /* Ensures responsiveness */
  height: 600px; /* Maintains aspect ratio */
}

/* CTA Button */
.cta-button {
  text-decoration: none;
  color: #dddfd5;
  background-color: #616845;
  padding: 10px 20px;
}

.cta-button:hover {
  color: #616845;
  background-color: #dddfd5;
  transition: all 0.3s ease; /* Adds a cool & smooth transition :) */
}

/* Cards Section */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
  background-color: #f8f8f8;
  box-sizing: border-box; /* Includes padding in dimensions */
}

.card {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #dddfd5;
  overflow: hidden;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  box-sizing: border-box; /* Includes padding in dimensions */
}

.card img {
  width: 100%;
  height: 200px;
  margin-bottom: 25px;
}

.card p {
  padding: 15px;
  font-size: 1rem;
  color: #666;
}

.card a {
  display: inline-block;
  margin: 10px auto 20px;
  padding: 10px 20px;
}

/* Quote section */
.zitat {
  background-color: #dddfd5;
  padding: 2em 1em;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.zitat img {
  margin-top: 1em;
  border-radius: 50%;
  width: 400px;
  height: 300px;
}

/* Quote section */
.quote-container {
  display: flex;
  background-color: #dddfd5;
  flex-wrap: wrap;
  height: 300px;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  margin-top: 150px;
}

.first-hero-quote {
  text-align: center;
  padding: 100px 20px;
  background-image: url(/img/quote-sign.png);
  background-position: left;
  background-repeat: no-repeat;
  background-size: 20%;
  position: absolute;
  min-height: 200px;
}

.second-hero-quote {
  text-align: center;
  padding: 100px 20px;
  background-image: url(/img/portrait.png);
  background-position: right;
  background-repeat: no-repeat;
  background-size: 30%;
  position: relative;
  min-height: 200px;
}

.quote-text h2 {
  display: flex;
  flex-wrap: wrap;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  padding: 20px;
  color: #333; /* Text color */
  box-sizing: border-box; /* Includes padding in dimensions */
}

.quote-text p {
  display: flex;
  flex-wrap: wrap;
  font-size: 1.2rem;
  text-align: center;
  padding: 20px;
  color: #333; /* Text color */
  box-sizing: border-box; /* Includes padding in dimensions */
}

/* Footer */
footer {
  font-size: 1rem;
  padding: 40px 20px;
  border-top: 1px solid #ddd;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1500px;
  margin: 50px auto;
  padding: 0 20px;
}

.footer-logo {
  flex-grow: 2;
  text-align: left;
}

.footer-nav,
.footer-contact {
  flex: 1;
  text-align: left;
  min-width: 200px;
}

.footer-logo img {
  width: 150px;
}

.footer-nav h3,
.footer-contact h3 {
  font-size: 1rem;
  margin-bottom: 15px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav ul li {
  margin-bottom: 10px;
}

.footer-nav ul li a {
  text-decoration: none;
  color: #333;
}

.footer-nav ul li a:hover {
  color: #616845;
}

.footer-contact p {
  margin-bottom: 10px;
}

.footer-contact a {
  color: #333;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #616845;
}

.footer-bottom {
  display: flex; /* Use Flexbox for layout */
  justify-content: space-between; /* Push <p> to the left and nav to the right */
  align-items: center; /* Align both vertically */
  padding: 10px 20px; /* Add some padding */
  border-top: 1px solid #ddd; /* Optional: Add a top border for separation */
  font-size: 0.9rem; /* Adjust font size as needed */
}

.footer-bottom p {
  margin: 0; /* Remove default margin from <p> */
}

.footer-links {
  display: flex; /* Use Flexbox for horizontal layout */
  gap: 20px; /* Add spacing between links */
}

.footer-links a {
  text-decoration: none;
  color: #333;
  margin: 0 10px;
}

.footer-links a:hover {
  color: #616845;
}

/* Bilder Commute+ */
.bilder-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px; /* Begrenzung der Gesamtbreite */
  margin: 0 auto;
}

.bilder-container img {
  display: block;
  width: 100%;
  height: auto;
}

.untere-bilder {
  display: flex;
  justify-content: space-between;
  gap: 10px; /* Abstand zwischen den Bildern */
  width: 100%;
}

.untere-bilder img {
  width: 49%; /* Zwei Bilder nebeneinander */
}

/*Image Gallery*/
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 40px 20px;
}

.gallery img {
  width: 100%;
  height: auto;
}
