/* =========================================================
   🔥 Feuerwehr Schwanebeck – Layout CSS
   ========================================================= */

/* ====== GRUNDLAYOUT ====== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  color: #333;
}

/* =========================================================
   POPUP
   ========================================================= */
#popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
}

#popup.visible {
  opacity: 1;
  pointer-events: auto;
}

#popup-content {
  background: white;
  padding: 30px 40px;
  border-radius: 16px;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

#popup-content p {
  font-size: 1rem;
  line-height: 1.5;
}

/* =========================================================
   TOP BAR (ROTER STREIFEN)
   ========================================================= */
.topbar {
  background: #589EBF;
  color: white;
  padding: 4px 0;
  font-size: 0.9rem;
}

.topbar-inner {
  max-width: 1400px;
  margin: auto;
  text-align: right;
}

.topbar-inner a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
}

.topbar-inner a:hover {
  text-decoration: underline;
}

/* =========================================================
   HEADER WEISS
   ========================================================= */
.ff-header {
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;          /* ➜ Volle Breite */
  padding: 12px 20px;
  box-sizing: border-box;
}

.ff-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ff-logo {
  width: 80px;
  height: auto;
}

.ff-title h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #a40000;
}

.ff-title span {
  font-size: 0.9rem;
  color: #333;
}

.ff-header-right img {
  max-height: 60px;
  object-fit: contain;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.ff-nav {
  background: #111;
  width: 100%;        /* ➜ Volle Breite */
}

.ff-nav ul.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  width: 100%;        /* ➜ Volle Breite */
}

.ff-nav ul.menu > li {
  position: relative;
}

.ff-nav ul.menu > li > a {
  display: block;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.ff-nav ul.menu > li > a:hover,
.ff-nav ul.menu > li.active > a {
  background: #b30000;
}

/* ----- DROPDOWN ----- */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  background: #333;
  min-width: 180px;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 1000;
}

.menu-item:hover .submenu {
  display: block;
}

.submenu li a {
  display: block;
  padding: 10px 15px;
  color: white;
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.2s;
}

.submenu li a:hover {
  background: #b30000;
}

/* =========================================================
   BURGER MOBILE
   ========================================================= */
.ff-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  cursor: pointer;
}

.ff-burger span {
  width: 25px;
  height: 3px;
  background: white;
}

/* =========================================================
   CONTENT
   ========================================================= */
.main {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 20px;
}

.content {
  flex: 3;
  padding: 20px;
  min-width: 300px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.sidebar {
  flex: 0 0 300px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-left: 1px solid #e0e0e0;
  min-width: 250px;
}
    /* Tabs */
.tabs {
    display: flex;
    cursor: pointer;
    padding: 10px;
    background-color: #589EBF;
    flex-wrap: wrap; /* Für kleine Bildschirme: Tabs umbrechen */
}

.tab {
    margin-right: 10px;
    padding: 10px 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 5px;
    flex: 1 1 auto; /* Macht Tabs flexibel */
    text-align: center;
}

.tab.active {
    background-color: #589EBF;
    color: #fff;
    border-bottom: 2px solid #589EBF;
}
/* =========================================================
   TABLES
   ========================================================= */
.table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 0.95em;
  color: #333;
}

.table th,
.table td {
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
}

.table thead {
  background-color: #4a90e2;
  color: white;
  font-weight: 500;
}

.table-striped tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background-color: #589EBF;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* =========================================================
   LINKS
   ========================================================= */
a {
  color: #4a90e2;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
  color: #357ABD;
}

/* =========================================================
   BUTTONS
   ========================================================= */
button {
  margin-top: 20px;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  background: #4a90e2;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

button:hover {
  background: #357ABD;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .main {
    flex-direction: column;
  }

  .sidebar {
    border-left: none;
    min-width: 100%;
  }
}

@media (max-width: 768px) {

  .ff-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .ff-nav ul.menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .ff-nav ul.menu.active {
    display: flex;
  }

  .submenu {
    position: relative;
    box-shadow: none;
    width: 100%;
  }

  .menu-item:hover .submenu {
    display: block;
  }

  .ff-burger {
    display: flex;
  }
}
