/* Grundlegende Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 2rem 0;
}

/* ============================================
   NAVIGATION & HEADER
============================================ */

.navbar {
  background: #002b5c;
  color: white;
  position: relative;
  display: flex;
  align-items: center;
  padding: 1rem 0;
}

/* Logo ganz links außen */
.logo-fixed {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.logo-img {
  height: 50px;
  width: auto;
  max-width: 100%;
}

/* Innerer Container für Titel und Navigation */
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: auto;
  max-width: 1100px;
  padding-left: 6rem; /* Platz für fixiertes Logo */
  padding-right: 1rem;
}

.logo-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin-right: auto;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* ============================================
   HERO
============================================ */
.section-light {
  background-color: #e2e2e2;
  padding: 4rem 1rem;
}
.section-dark {
  background-color: #ffffff;
  padding: 4rem 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  color: white;
  background-image: url('images/sternenhimmel.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 20, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  font-family: 'Vollkorn', serif;
  letter-spacing: 4px;
  font-weight: 400;
  line-height: 1.3;
  text-shadow: 0 0 8px rgba(0 0 0 / 0.8);
  text-transform: uppercase;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.hero h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ============================================
   Abschnitte
============================================ */
.about, .services {
  background: white;
  padding: 3rem 0;
}

.about h3, .services h3 {
  margin-bottom: 1rem;
  color: #002b5c;
}

.about p {
  max-width: 80vw;
  text-align: justify;
}

/* Leistungen Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}

.card img {
  max-width: 80%;
  /* max-height: 50%; */
  border-radius: 4px;
  margin-bottom: 1rem;
  aspect-ratio: 3 / 2;
}

.card h4 {
  margin-bottom: 0.5rem;
  color: #002b5c;
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #002b5c;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.button:hover {
  background-color: #0055aa;
}

/* ============================================
   Footer
============================================ */
footer {
  background: #002b5c;
  color: white;
  text-align: center;
  padding: 1rem;
}

footer a {
  color: #eee;
  margin: 0 0.5rem;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ============================================
   Cookie Banner
============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  color: #333;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 1rem 2rem;
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}

.cookie-banner p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  text-align: center;
}

.cookie-banner a {
  color: #002b5c;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-buttons button {
  padding: 0.5rem 1rem;
  border: none;
  background: #002b5c;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.cookie-buttons button:hover {
  background: #0055aa;
}

/* ============================================
   Unterseiten
============================================ */
main h2 {
  font-size: 2rem;
  color: #002b5c;
  margin-bottom: 1rem;
}

main h3 {
  font-size: 1.4rem;
  color: #003974;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

main p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #333;
}

main ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

main ul li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

main ul li::marker {
  color: #0055aa;
}

/* ============================================
   Responsive Layout
============================================ */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    padding-top: 6rem;
  }

  .logo-fixed {
    position: static;
    transform: none;
    margin-bottom: 0.5rem;
  }

  .navbar-inner {
    flex-direction: column;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .logo-title {
    margin: 0.5rem 0;
    text-align: center;
  }

  .menu-toggle {
    display: block;
    margin-bottom: 0.5rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #002b5c;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin: 0.5rem 0;
    font-size: 1.2rem;
  }

  .cookie-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
}
