/* Basis Reset */
* {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  display: flex;
  min-height: 100vh;
  background: #f9f9f9;
  color: #333;
}

/* Navigation oben */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 200px;
  height: 50px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  z-index: 1000;
  padding: 0 20px;
}


/* Hauptmenü & Untermenüs */
nav.top-nav ul {
  list-style: none;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin: 0;
  padding: 0;
}
nav.top-nav ul li {
  position: relative;
}
nav.top-nav ul li a {
  text-decoration: none;
  color: #333;
  padding: 15px 10px;
  display: block;
  font-weight: 600;
  transition: color 0.3s;
}
nav.top-nav ul li a:hover {
  color: #800000;
}
nav.top-nav ul.submenu {
  justify-content: space-evenly;
}
nav.top-nav .back-btn {
  font-weight: bold;
  color: #800000 !important;
  padding-right: 20px;
}

main {
  margin-top: 60px;
  margin-right: 200px; /* Platz für Sidebar */
  padding: 20px 30px;
  flex-grow: 1;
}

/* Floating Google Maps nur für Startseite */
.floating-maps {
  position: fixed;
  right: 220px;      /* Platz für Sidebar (Sidebar = 200px + Puffer) */
  bottom: 30px;
  z-index: 100;
  width: 370px;
  pointer-events: none; /* Maps ist nicht anklickbar, außer im Quadrat selbst */
}
.floating-maps .maps-square {
  width: 350px;
  height: 350px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: 12px;
  border: 2px solid #800000;
  background: #fff;
  overflow: hidden;
  pointer-events: auto;
}
.floating-maps h2 {
  display: none;
}

/* Rechte Sidebar */
.right-sidebar {
  width: 200px;
  background-color: #800000; /* Bordeauxrot */
  color: #fff;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -3px 0 5px rgba(0,0,0,0.1);
  font-size: 14px;
}

.sidebar-section {
  margin-bottom: 25px;
}

.sidebar-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 4px;
}

.sidebar-section ul {
  list-style: none;
  padding-left: 0;
}

.sidebar-section ul li {
  margin-bottom: 8px;
}

.sidebar-section ul li a {
  color: #ffdcdc;
  text-decoration: none;
  transition: color 0.3s;
}

.sidebar-section ul li a:hover {
  color: #fff;
  text-decoration: underline;
}

.important {
  font-weight: 700;
  font-size: 20px;
  color: #ffdcdc;
}

/* Logo Platzhalter unten */
.sidebar-logo {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.3);
}

.logo-placeholder {
  width: 120px;
  height: 60px;
  background-color: #b33a3a;
  margin: 10px auto 0;
  border-radius: 8px;
  box-shadow: inset 0 0 8px rgba(255,255,255,0.2);
}

/* Responsive: maps wird statisch unter den Text verschoben */
@media (max-width: 1024px) {
  .floating-maps {
    position: static;
    width: auto;
    margin: 40px 0 0 0;
    right: auto;
    bottom: auto;
    z-index: 1;
    pointer-events: auto;
  }
  .floating-maps .maps-square {
    width: 100%;
    height: 250px;
  }
}

/* Responsive Sidebar bei sehr kleinen Bildschirmen */
@media (max-width: 768px) {
  .top-nav {
    right: 0;
  }
  main {
    margin-right: 0;
  }
  .right-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    padding: 15px 10px;
  }
  .sidebar-section {
    margin-bottom: 0;
  }
  .sidebar-logo {
    border-top: none;
    padding-top: 0;
  }
  .maps-square {
    width: 100%;
    height: 200px;
  }
}
p {
  margin-bottom: 20px;
}

ul {
  margin-left: 30px;
  padding-left: 20px;
}

.hero { padding:40px; text-align:center; background:#f5f5f5; }
.grid { display:flex; gap:20px; flex-wrap:wrap; }
.box { flex:1; min-width:250px; padding:20px; background:#fff; border:5px solid #800000; }
.maps-square { width:100%; height:300px; margin:20px 0; }
.btn-primary {
  display: inline-block;
  background-color: #800000;  
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #5e0202;  /* beim Hover */
}
