/* RESET & GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* HEADER */
header {
  background: #004d9d;
  height: 70px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* centers nav */
}

/* Logo flush left */
.logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding-left: 1rem; /* optional spacing from edge */
}

.logo img {
  height: 50px;
  width: auto;
}

/* Navigation centered */
nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  transition: background 0.3s, color 0.3s;
}

nav a:hover {
  background: #ffffff;
  border-radius: 4px;
  color: #004d9d;
}

nav a.active {
  font-weight: bold;
  border-bottom: 2px solid #fff;
}

.text_versprechen {
  text-align: center;
}

/* Empty spacer to balance the flex container */
.spacer {
  width: 50px; /* same width as logo approx. */
}

/* HERO SECTION */
.hero {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

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

.hero-text p {
  font-size: 1.3rem;
}

/* MAIN CONTENT */
.section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.section p {
  margin-bottom: 1.5rem;
}
/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* flexibel */
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;       /* immer 100% der Spalte */
  height: auto;      /* Höhe proportional */
  border-radius: 6px;
  object-fit: cover; /* Bildfüllung */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.gallery-grid img:hover {
  transform: scale(2.05); /* kleiner Hover-Effekt */
}

/* FOOTER */
footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 1.5rem 0;
  background: #f4f4f4;
  font-size: 0.9rem;
  color: #555;
  margin-top: 3rem;
}
