/* Grundlegende Layout-Stile */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 200px; /* Platz für fixierten Header und Navigation */
}

/* Header und Navigation */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background-color: #fff;
    padding: 0;
    border-bottom: 0px solid #008CBA;
    position: fixed; /* Fixiert den Header */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Schatten für mehr Kontrast */
	height: 132px; /* oder die gewünschte Höhe */
}

.logo-container {
    display: flex;
    align-items: center;
    padding-left: 0px;
    background-color: #fff;
	height: 132px; /* oder die gewünschte Höhe */
}

.logo {
    height: 130px;
}

.container {
    width: 98%;
    margin: 0 auto;
}

/* Stile für die Logout-Meldung */
.logout-message {
    background-color: #d4edda; /* Grüne Hintergrundfarbe für Erfolgsmeldungen */
    color: #155724;            /* Dunkelgrüne Textfarbe */
    padding: 2px;
    border: 2px solid #c3e6cb;
    border-radius: 2px;
    margin-left: 10px;         /* Abstand zum vorherigen Element */
    display: inline-block;     /* Inline-Block, damit es neben anderen Elementen bleibt */
    transition: opacity 0.5s ease-out;
}

.title-container {
    display: flex;
    align-items: center;
    flex: 1;
    padding-left: 0px; /* Abstand zum Logo */
    color: #333;
    font-size: 25px;
    line-height: 1.3;
}

.legal-links {
    align-items: flex-start; /* Elemente nach oben ausrichten */
	margin-left: auto; /* Schiebt den Container nach rechts */
    display: flex;
    gap: 15px; /* Abstand zwischen den Links */
	padding-top: 0; /* Optional: Abstand nach oben entfernen */
}

.legal-link {
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

.legal-link:hover {
    text-decoration: underline;
}

header {
    background-color: #008CBA;
    padding: 0px;
    color: white;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* Fixiert die Navigation */
    top: 130px; /* Positioniert die Navigation unter dem Header */
    left: 0;
    width: 100%;
    background-color: #008CBA;
    z-index: 999;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Schatten für mehr Kontrast */
}

.fixed-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 5px 5px;
    background-color: #008CBA;
    border-radius: 5px;
    margin: 0 5px;
}

nav a:hover {
    background-color: #005f6a;
}

nav .menu-toggle {
    display: none; /* Standardmäßig verstecken */
}

/* Mobile Ansicht */
@media only screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    nav .menu-toggle {
        display: block; /* Hamburger Menü für mobile Geräte sichtbar machen */
        font-size: 24px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        margin-right: 10px;
    }

    nav .menu-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav .menu-links.show {
        display: flex;
    }

    nav a {
        text-align: left;
        padding: 15px; /* Vergrößerter Abstand */
        font-size: 18px; /* Größere Schrift für mobile Geräte */
        width: 100%;
        border-top: 1px solid #005f6a;
    }
}

/* User- und Dropdown-Menü */
.logged-in-as {
    position: relative;
    display: inline-block;
    margin-left: auto;
}

.user-actions {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.logged-in-as:hover .user-actions {
    display: block;
}

.user-actions a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: black;
}

.user-actions a:hover {
    background-color: #ddd;
}

/* Allgemeine Seitenelemente */
h1 {
	text-align: center;
    padding: 0px;
    color: #008CBA;
}

h2 {
    text-align: center;
    padding: 0px;
    color: #008CBA;
}

form {
    max-width: 95%;
    margin: 0px auto;
    padding: 0px;
    border: 0px solid #ddd;
    border-radius: 0px;
}

form input, form select {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

form input[type="submit"] {
    background-color: #008CBA;
    color: white;
    border: none;
    cursor: pointer;
}

form input[type="submit"]:hover {
    background-color: #005f6a;
}

.message {
    text-align: center;
    margin: 20px;
}

.message.success {
    color: green;
}

.message.error {
    color: red;
    font-weight: bold;
}

/* Tabellenstile */
table {
    width: 95%;
    border-collapse: collapse;
    margin-top: 0;
    margin: 0 auto; /* Neu: zentriert alle Tabellen */
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 5px;
    text-align: left;
}

th {
    background-color: #008CBA;
    color: white;
}

/* Fußzeile */
.footer {
    text-align: center;
    padding: 10px;
    background-color: #f4f4f4;
    margin-top: auto;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
}

.footer-separator {
    display: inline; /* Standardmäßig inline, also kein Zeilenumbruch */
}

/* Mobile Geräte: Umbruch nach dem Versionslink */
@media only screen and (max-width: 768px) {
    .footer-separator {
        display: block; /* Block-Level-Element erzwingt den Umbruch */
        margin-top: 5px;
    }
    .pfeil {
        display: none;
    }
    .rvpfeil {
        display: none;
    }
    .kopfbereich {
        display: none;
    }
}

/* Button-Stile */
.btn-nav {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    font-size: 16px;
    color: white;
    background-color: #008CBA;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.btn-nav:hover {
    background-color: #005f6a;
}

.btn {
    font-size: 14px;
    color: white;
    background-color: #008CBA;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: #005f6a;
}

.btn-cancel {
    background-color: #ff4c4c;
}

.btn-cancel:hover {
    background-color: #d43f3f;
}

.btn-save {
    background-color: #4CAF50;
}

.btn-save:hover {
    background-color: #45a049;
}

.btn-update {
    background-color: #008CBA;
}

.btn-update:hover {
    background-color: #005f6a;
}

/* Kostenanzeige und Details */
#cost_details {
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-width: 500px;
}

#cost_details h3 {
    color: #008CBA;
}

#cost_display {
    text-align: center;
    color: #008CBA;
    margin-top: 10px;
}

#additional_days_notice {
    background-color: #f4f4f4;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
}

/* Erfolgs- und Fehlermeldungen */
.success {
    color: green;
    font-weight: bold;
}

@keyframes blinken {
	0% { opacity: 1; }
	50% { opacity: 0; }
	100% { opacity: 1; }
}

.blinkender-text {
	color: red;
	animation: blinken 1s linear infinite;
}

.row-warning {
    background-color: #fffde7; /* hellgelb */
}
.row-success {
    background-color: #e8f5e9; /* hellgrün */
}

.admin-warning {
	background-color: red;
	color: white;
	padding: 10px;
	text-align: center;
}

.admin-return-button {
	background: none;
	border: none;
	color: white;
	text-decoration: underline;
	cursor: pointer;
}

.tooltip-container {
    position: fixed; /* Fixiert den Container relativ zum Viewport */
    z-index: 2; /* Stellt sicher, dass es über anderen Inhalten liegt */
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    bottom: 95%; /* Positioniert den Tooltip über dem Bild */
    left: -150%; /* Zentriert horizontal */
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.feedback-button-datenschutz {
    position: fixed;
    bottom: 91px;
    right: 10px;
}

.feedback-button-feedback {
    position: fixed;
    bottom: 45px;
    right: 10px;
}
.feedbackpfeil {
    position: fixed;
    bottom: 60px;
    right: 67px;
}
.feedbackkritik {
    position: fixed;
    bottom: 100px;
    right: 220px;
	display: none;
}
.feedbackfehler {
    position: fixed;
    bottom: 80px;
    right: 178px;
	display: none;
}
.feedbackverbesser {
    position: fixed;
    bottom: 116px;
    right: 93px;
}
