/* Farbdefinition */
:root {
    --primary-color: #007BFF; /* IT-Stube Blau */
    --sidebar-bg: #ffffff;
    --sidebar-text: #333;
    --footer-bg: #f8f9fa;
}

/* Grundlayout */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    background: var(--sidebar-bg);
    border-right: 1px solid #ddd;
    padding-top: 20px;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin: 10px 0;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.sidebar-menu a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Hauptinhalt */
.main-content {
    margin-left: 220px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-weight: bold;
    color: var(--sidebar-text);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    color: var(--sidebar-text);
}

.dropdown-content a:hover {
    background: var(--primary-color);
    color: #fff;
}

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

/* Content */
.content {
    padding: 20px;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    text-align: center;
    padding: 10px;
    border-top: 1px solid #ddd;
    position: fixed;
    bottom: 0;
    left: 220px;
    right: 0;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ========================= */
/* Content-Box für statische Seiten (Impressum, Datenschutz, Haftung) */
/* ========================= */

.page-centered {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    background: #f4f6f9;
    flex: 1;
}

.content-box {
    background: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 900px;   /* breiter für lange Texte */
    width: 100%;
    margin: 0 auto 60px;
    text-align: left;
}

.content-box h2, 
.content-box h3 {
    color: var(--primary-color);
    margin-top: 20px;
}

.content-box p, 
.content-box ul, 
.content-box li {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.content-box ul {
    padding-left: 20px;
}
.autocomplete-box {
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    background: #fff;
    position: absolute;
    z-index: 1000;
    width: 300px;
}
.autocomplete-item {
    padding: 8px;
    cursor: pointer;
}
.autocomplete-item:hover {
    background: #007BFF;
    color: white;
}
/* Loader Overlay */
#upload-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-size: 1.2em;
  color: #333;
}

/* Spinner Animation */
.loader-spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.status-rot   { background:#ffe5e5; color:#b30000; }
.status-gelb  { background:#fff8e5; color:#b38600; }
.status-gruen { background:#e6ffe6; color:#006600; }
.status-grau  { background:#f2f2f2; color:#555; }

.button-grey {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

