:root {
    --primary-color: #FFDA03;
    --secondary-color: black;
    --header-background: white;
    --nav-background: black;
    --link-color: #FFDA03;
    --footer-background: #FFDA03;
    --button-background: #111827;
    --button-color: #FFFFFF;
    --has_bericht-background: red;
    --table_header-background: #0056b3;
    --table-header-color: white;
}

/* ----------------------------------------------------------
   GENERAL LAYOUT
----------------------------------------------------------- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 10px;
}

/* ----------------------------------------------------------
   FIXED HEADER
----------------------------------------------------------- */

.header_top_fixed {
    position: fixed;              /* keep header fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;                /* header below dropdowns */
    background-color: var(--header-background);
}

header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    margin: 0;
    padding: 25px;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-header h1 a {
    color: var(--secondary-color) !important;
    text-decoration: none;
    font-weight: bold;
}

.page-header h1 a:hover { text-decoration: underline; }
.page-header h1 a:visited { color: var(--secondary-color) !important; }

/* ----------------------------------------------------------
   BANNER
----------------------------------------------------------- */
.banner {
    background-color: var(--primary-color);
    color: var(--header-background);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
    padding: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner h1 {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.2;
}

/* ----------------------------------------------------------
   NAVIGATION
----------------------------------------------------------- */

nav.navbar {
    display: flex;
    background-color: var(--nav-background);
    padding: 10px 20px;
    color: var(--link-color);
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2000;  /* above header */
}

nav a {
    color: var(--link-color);
    text-decoration: none;
    margin: 0 10px;
}

nav a:hover, nav a:active, nav a:visited {
    color: var(--link-color);
    text-decoration: underline;
}

.nav-left, .nav-right {
    display: flex;
    gap: 15px;
}

nav .bg-red { background-color: var(--has_bericht-background); }

/* ----------------------------------------------------------
   DROPDOWNS
----------------------------------------------------------- */

.dropbtn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
    z-index: 3000;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--primary-color);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    white-space: nowrap;
    z-index: 10000; /* dropdowns above navbar/header */
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 14px;
    color: var(--secondary-color) !important;
    text-decoration: none;
}

.dropdown-content a:hover,
.dropdown-content button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
}

/* ----------------------------------------------------------
   BUTTONS
----------------------------------------------------------- */

.button-40 {
    background-color: var(--button-background);
    border-radius: .75rem;
    color: var(--button-color);
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    padding: .75rem 1.2rem;
}

.button-40:hover { background-color: #374151; }
.button-40:disabled {
    background-color: #ccc;
    color: #666;
}

/* ----------------------------------------------------------
   TABLES
----------------------------------------------------------- */

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: var(--table_header-background);
    color: var(--table-header-color);
}

/* ----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--footer-background);
    color: black;
    margin-top: auto;
}

/* ----------------------------------------------------------
   MAIN CONTENT SPACING (important!)
----------------------------------------------------------- */

main {
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 0;  /* base */
}

/* 🖥 Desktop: add enough space under fixed header + banner + navbar */
@media (min-width: 901px) {
  main {
    padding-top: 260px !important;  /* you can tweak 210–240 if needed */
  }
}


/* REMOVE BROKEN RULE – it was hiding the spacing div */
/* body > div[style*="padding-top"] { display: none !important; } */

/* ----------------------------------------------------------
   DASHBOARD AND OTHER EXISTING RULES (left untouched)
----------------------------------------------------------- */

.dashboard-container {
  display: flex;
  flex-direction: row;
  background-color: black;
  min-height: 100vh;
}

.dashboard-column {
  flex: 0 0 33.33%;
  padding: 5px;
}

.statistics-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ----------------------------------------------------------
   MODAL FIX — always above everything
----------------------------------------------------------- */

.modal-backdrop.show {
    z-index: 20000 !important;
}

.modal {
    z-index: 21000 !important;
}

/* unified menu item */
.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
}

.dropdown-item:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
}
