/* ========== Grundlayout & Schrift ========== */
@media (min-width: 768px) {
  main.container {
    padding-inline: 1rem; /* ersetzt left + right */
  }
}
@media (min-width: 1200px) {
  main.container {
    padding-inline: 2rem;
  }
}

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.875rem; /* entspricht 14px */
  line-height: 1.6;
  background-color: #fff;
  color: #333;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  color: #1E90FF;
}

/* Typografie */
h3, h4, h5 {
  font-weight: 600;
  color: #333;
}
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h5 { font-size: 1rem; margin-bottom: 0.5rem; }
p {
  margin-bottom: 1rem;
  color: #555;
}

/* ========== Kopfbereich ========== */
.header {
  background: #1E90FF url('bilder/wolken_1.png') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  position: relative;
}
.header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
}
.header p {
  font-size: 1.25rem;
  margin-top: 10px;
}
.header-buttons {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
}
.header-buttons .btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}
.header-buttons .btn img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}
@media (max-width: 576px) {
  .header-buttons {
    flex-direction: column;
    right: 10px;
    bottom: 10px;
    top: auto;
    transform: none;
  }
}

/* Abschnittstitel */
.section-title {
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 1rem;
  margin-top: 2.5rem;
  color: #212529;
  font-weight: 500;
}

/* ========== Navigation ========== */
.nav-container {
  background-color: #1E90FF;
  padding-block: 10px;
}
.nav-container .navbar-brand,
.nav-container .nav-link,
.nav-container .dropdown-item {
  color: #fff !important;
}
.nav-container .dropdown-menu {
  background-color: #1E90FF;
}
.nav-container .dropdown-item:hover {
  background-color: #104E8B;
}

/* Bootstrap Navbar Ergänzungen */
#header.navbar {
  background-color: #f8f9fa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
#header .navbar-brand {
  font-weight: 700;
  color: #004080;
  font-size: 1.5rem;
}
#header .navbar-brand span {
  color: #b30000;
}
#header .nav-link {
  color: #333;
  padding: 0.75rem 1rem;
}
#header .nav-link:hover {
  color: #0056b3;
  background-color: #e9ecef;
  border-radius: 0.25rem;
}
#header .nav-link.active {
  color: #fff;
  background-color: #0056b3;
}
#header .dropdown-menu {
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
#header .dropdown-item:hover {
  background-color: #f0f0f0;
  color: #0056b3;
}
#header .dropdown-item.text-danger {
  color: #b30000;
  font-weight: 600;
}

/* ========== Inhalt & Layout ========== */
.content,
.main-content {
  padding: 1rem;
  background-color: #fff;
}
.sidebar {
  background-color: #f8f9fa;
  padding: 1rem;
  border-left: 1px solid #ddd;
}
aside {
  margin-top: 2rem; /* Bootstrap: mt-4 */
}

/* ========== Tabelle ========== */
.table-striped tbody tr:nth-child(odd) {
  background-color: #f8f9fa;
}
.table-striped tbody tr:nth-child(even) {
  background-color: #ffffff;
}
table th, table td {
  vertical-align: middle;
}

/* ========== Fußbereich ========== */
.footer {
  background-color: #1E90FF;
  color: #fff;
  text-align: center;
  padding: 15px;
}

/* ========== Seitentitel & Breadcrumb ========== */
.main-header, .page-header {
  background-color: #f8f9fa;
  padding-block: 2rem;
  border-bottom: 1px solid #dee2e6;
  text-align: center;
}
.main-header h1, .page-title {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}
.page-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 900px;
  margin: 1rem auto 0;
}
.breadcrumb {
  background: transparent;
  padding: 0;
  font-size: 0.95rem;
}
.breadcrumb a {
  color: #6c757d;
}
.breadcrumb-item.active {
  color: #343a40;
  font-weight: 500;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #adb5bd;
}

/* ========== Leaflet Map & Popups ========== */
#map, .map {
  width: 100%;
  height: 800px;
  border: 1px solid #aaa;
  border-radius: 0.5rem;
  z-index: 1;
}

.custom-popup .leaflet-popup-content-wrapper {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  padding: 0;
  min-width: 300px;
  max-width: 360px;
  height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.custom-popup .leaflet-popup-tip {
  background: #fff;
}
.popup-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.popup-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.popup-text {
  padding: 4px 6px;
  font-size: 0.75rem;
  color: #333;
  text-align: center;
  width: 100%;
  line-height: 1.2;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}

/* ========== Benachrichtigungssystem ========== */
.notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 350px;
}
.notification {
  position: relative;
  margin-bottom: 15px;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
}
.notification.show {
  opacity: 1;
  transform: translateY(0);
}
.notification .progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: rgba(234, 39, 39, 0.7);
  width: 100%;
  transform-origin: left;
}

/* ========== Briefbox & Badge ========== */
.brief-box {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 2rem 1.5rem;
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  line-height: 1.6;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.badge-form {
  font-size: 0.7em;
  padding: 0.3em 0.5em;
  background-color: #f4f7fd;
  color: #333;
  border: 1px solid #6c757d;
  border-radius: 0.25rem;
  position: absolute;
  top: 0;
  transform: translate(5px, -50%);
}