/* Allgemeine Stile */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff; /* Helles Blau */
    color: #000; /* Schwarze Schrift */
    margin: 0;
    padding: 0;
}

/* Main */
main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Container */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
}

/* Header */
header {
    background: linear-gradient(to bottom, #001f3f, #00aaff); /* Farbverlauf von dunkelblau nach hellblau */
    padding: 20px;
    color: #ffffff; /* Textfarbe im Header */
}

.container-header {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    background-color: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ändert die Ausrichtung zu space-between */
    width: 100%;
}

.logo-container img.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.logo-container h1 {
    margin: 0;
    font-size: 2em;
    text-align: center; /* Behält die zentrierte Ausrichtung bei */
    flex-grow: 1; /* Erlaubt dem Text, den verfügbaren Platz einzunehmen */
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto; /* Verschiebt das Hamburger-Menü nach rechts */
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff; /* Weißer Balken */
    margin: 5px auto;
    transition: 0.4s;
}

.header-buttons {
    list-style: none;
    margin-top: 20px;
    display: flex;
    justify-content: flex-end; /* Ändert die Ausrichtung zu rechts */
    flex-wrap: wrap;
    padding: 0;
}

.header-button {
    text-decoration: none;
    color: #ffffff; /* Textfarbe der Buttons */
    padding: 10px 20px;
    margin: 5px 10px;
    border: none; /* Rand entfernen */
    border-radius: 5px;
    background-color: transparent; /* Hintergrund transparent machen */
    transition: background-color 0.3s ease; /* Übergangseffekt hinzufügen */
}

.header-button:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Leicht sichtbarer Hintergrund beim Hover */
}

.header-buttons li {
    display: inline; /* Zeigt die Listenelemente nebeneinander */
}

/* Karten-Stil */
.card-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 40px 0;
}

.card {
    flex: 1;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #0077be, #00a8e8);
}

.card-icon {
    font-size: 2.5em;
    color: #0077be;
    margin-bottom: 20px;
    text-align: center;
}

.card h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
}

.card ul {
    list-style-type: none;
    padding: 0;
}

.card ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.card ul li::before {
    content: '✓';
    color: #28a745;
    position: absolute;
    left: 0;
}

.software-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.software-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.software-item h4 {
    color: #0077be;
    margin-bottom: 10px;
}

.software-item p {
    color: #666;
}

/* Button für Löschen */
.btn-delete {
    background-color: #dc3545; /* Rot */
    color: white;
    border: none;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    display: inline-block;
    margin: 10px 0;
    text-align: center;
    box-sizing: border-box;
}

.btn-delete:hover {
    background-color: #c82333;
}

.btn-delete:active {
    background-color: #bd2130;
}

/* Button für Anzeigen/Bearbeiten */
.btn-primary {
    background-color: #28a745; /* Grün */
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 1em;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0;
}

.btn-primary:hover {
    background-color: #218838;
}

.btn-primary:active {
    background-color: #1e7e34;
}

/* Formular Layout */
form {
    display: grid;
    gap: 10px;
    max-width: 100%;
    margin: 0 auto;
}

label {
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

input[type="file"] {
    padding: 5px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    font-size: 1em;
    cursor: pointer;
    margin-top: 10px;
    width: auto;
    box-sizing: border-box;
}

button:hover {
    background-color: #0056b3;
}

textarea {
    resize: vertical;
}

/* Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

thead {
    background-color: #f8f9fa;
}

tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

tbody tr:hover {
    background-color: #e0e0e0;
}

/* Footer */
footer {
    background: linear-gradient(45deg, #0077be, #00a8e8);
    color: #fff;
    padding: 20px 0;
}

.container-footer {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    background-color: transparent;
    border: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    margin: 10px;
    min-width: 200px;
}

.footer-section h3 {
    margin-bottom: 10px;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 20px;
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================
   FUTUROSALUD Alliance Block
============================= */
.futuro-alliance-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.futuro-alliance-col {
    flex: 1;
    min-width: 120px;
}

.futuro-alliance-col a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.futuro-alliance-col a:hover {
    text-decoration: underline;
}

/* Logo Styling */
.logo-futuro-alliance {
    max-width: 100px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-futuro-alliance:hover {
    transform: scale(1.05);
}

/* Optional: Responsive Design (kleine Screens) */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
    }

    .futuro-alliance-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .futuro-alliance-col {
        width: 100%;
    }
}


/* Zusätzliche Klassen */
.total-revenue {
    font-weight: bold;
    color: #28a745;
    text-align: center;
    font-size: 1.5em;
    margin: 20px 0;
}

.btn-back {
    display: block;
    width: 100%;
    margin: 20px 0;
    text-align: center;
}

.success-message {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
}

.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .header-buttons {
        display: none;
        flex-direction: column;
        width: 100%;
        align-items: flex-end; /* Richtet die Buttons rechts aus */
    }

    .header-buttons.active {
        display: flex;
    }

    .header-button {
        width: auto; /* Ändert die Breite auf auto */
        margin: 10px 0;
        text-align: right; /* Richtet den Text rechts aus */
    }

    .card-container {
        flex-direction: column;
    }

    .card {
        margin-bottom: 20px;
    }

    .card-buttons {
        flex-direction: column;
        align-items: center;
    }

    .card-buttons .btn-primary,
    .card-buttons .btn-delete {
        width: 100%;
        margin-bottom: 10px;
    }

    .logo-container {
        flex-direction: row;
        justify-content: space-between; /* Verteilt die Elemente gleichmäßig */
        align-items: center;
    }

    .logo-container img.logo {
        margin-right: 20px;
        margin-bottom: 0;
    }

    .logo-container h1 {
        text-align: center; /* Behält die zentrierte Ausrichtung bei */
        flex-grow: 1; /* Erlaubt dem Text, den verfügbaren Platz einzunehmen */
    }
}