/* =============================
   Grundlayout
   ============================= */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
  font-size: 1rem;
}

body {
  font-family: Arial, sans-serif;
  color: #003366;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a:focus, .btn:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

main {
  flex: 1 0 auto; /* Hauptinhalt wächst, Footer bleibt unten */
}

/* =============================
   Header & Navigation
   ============================= */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #003366;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  z-index: 1000;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.main-header .logo a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.main-header nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: #ffd700;
  outline: none;
}

/* Hamburger Menü */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
  text-decoration: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-links {
    flex-direction: column;
    width: 100%;
    background: #003366;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0.5rem;
  }

  .nav-links.active { max-height: 500px; }

  .nav-links li {
    text-align: center;
    padding: 0.5rem 0;
  }
}

/* =============================
   Hero-Bereich
   ============================= */
.hero-logo {
  max-width: 400px;
  width: 100%;
  margin: 2rem 0 1rem 0;
}

.hero-header {
  position: relative;
  background-image: url('../bilder/frankfurt_skyline.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100vw;
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 1rem;
}

.hero-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}

.hero-header h1,
.hero-header h2,
.hero-header p,
.hero-header .btn {
  position: relative;
  z-index: 1;
  margin: 0.5rem 0;
}

.hero-header h1 { font-size: 2.5rem; }
.hero-header h2 { font-size: 1.5rem; }
.hero-header p { font-size: 1.2rem; }

/* =============================
   Buttons
   ============================= */
.btn {
  display: inline-block;
  background: #003366;
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover { background: #0055aa; }

/* =============================
   Sections (One-Pager)
   ============================= */
.seite {
  display: none;
  padding: 2rem 1rem;
  padding-top: 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.seite.active { display: block; }

section h1, section h2 {
  color: #003366;
  margin-bottom: 1rem;
}

section p { margin-bottom: 1rem; line-height: 1.5; }

/* =============================
   Features Grid
   ============================= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  align-items: stretch;
}

.feature {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.icon-leiste {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
}

.icon-leiste .icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.icon-leiste .icon:hover { transform: scale(1.5); }

/* =============================
   Call to Action
   ============================= */
.cta { text-align: center; margin-top: 2rem; }

/* =============================
   Slideshow Galerie
   ============================= */
.slideshow {
  position: relative;
  max-width: 600px;
  margin: 1rem auto 2rem;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slideshow img {
  display: none;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.slideshow img.active { display: block; }

.slideshow .prev,
.slideshow .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 4px;
}

.slideshow .prev { left: 10px; }
.slideshow .next { right: 10px; }

.slideshow .prev:hover,
.slideshow .next:hover { background: rgba(0,0,0,0.8); }

/* =============================
   Tabellen & Lage-Karte
   ============================= */
.tabelle-container { overflow-x: auto; margin-top: 1rem; }

.lage-karte {
  width: 100%;
  margin: 1.5rem auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  aspect-ratio: 1/1;
}

.lage-karte img { width: 100%; height: 100%; border: 0; }

.entfernungen {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 1rem;
}

.entfernungen th,
.entfernungen td {
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
}

.entfernungen th {
  background: #003366;
  color: white;
}

.entfernungen tr:nth-child(even) { background: #f2f2f2; }
.entfernungen tr:hover { background: #e0e0e0; }

/* Preise & Konditionen */
.preise-info {
  margin: 1.5rem auto;
  font-size: 1.1rem;
  line-height: 1.5;
}

.preise-info p { margin-bottom: 0.75rem; }
.preise-info strong { color: #003366; }

/* =============================
   Kontakt-Formular
   ============================= */
.kontakt-formular {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kontakt-formular label { font-weight: bold; }

.kontakt-formular input,
.kontakt-formular textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  font-size: 1.2rem;
}

.kontakt-formular button { align-self: flex-start; }

/* =============================
   Formular-Meldungen
   ============================= */
.form-message {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* =============================
   Footer
   ============================= */
footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 1rem;
  flex-shrink: 0;
  margin-top: 0;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 0.5rem;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

footer a:hover,
footer a:focus { color: #ffd700; outline: none; }
