/* CSS Variablen definieren – zentrale Steuerung des Farbschemas */
:root {
    /* Grundfarben */
    --primary-color: #08914B;            /* Haupt-Grün */
    --primary-hover-color: #68B750;        /* Etwas dunkler beim Hover */
    --primary-gradient: linear-gradient(45deg, #007545, #68B750);
    --secondary-color: #08914B;            /* Optional identisch mit Primary */
    --secondary-light: #ECF9F1;            /* Sehr helles Grün für Hintergründe */
    --background-color: #f0f7ff;           /* Heller Hintergrund */
    --text-color: #333;
    --text-color-light: #666;

    /* Header */
    --header-color: #333;
    --header-subtext-color: #666;

    /* Nachrichten */
    --error-color: #e74c3c;
    --success-color: #68B750;

    /* Tabellen & Aktionen */
    --table-header-bg: #08914B;
    --table-header-text: #fff;
    --table-border-color: #ddd;
    --action-link-color: #08914B;
    --action-link-hover-color: #68B750;

    /* Logout-Button */
    --logout-bg: #cf4040;
    --logout-hover-bg: #fd5454;

    /* Dropzone */
    --dropzone-border: #08914B;
    --dropzone-bg: #f9f9f9;
    --dropzone-text: #555;
    --dropzone-dragover-bg: #DFF0E9;
    --dropzone-dragover-border: #68B750;

    /* File Items */
    --fileitem-bg: #ECF9F1;
    --fileitem-text: #2c3e50;
    --remove-button-bg: #e74c3c;
    --remove-button-hover-bg: #c0392b;
}

/* Globale Standard-Stile */
* {
    box-sizing: border-box;
}
body {
    font-family: Calibri, Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-color);
    margin: 48px 0px;
    padding: 0;
    color: var(--text-color);
}

/* Container – zentrale Begrenzung der Seiteninhalte */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Einheitliche Überschriften */
h1, h2, h3, h4, h5, h6 {
    color: var(--header-color);
    margin-top: 0;
    margin-bottom: 15px;
}

h2 {
    font-size: 36px;
}

/* Standard-Absätze */
p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Einheitliche Abschnitte (Boxen) – für alle Seiten identisch */
.section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Einheitliche Buttons */
.button {
    padding: 10px 20px;
    background: var(--primary-color);
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
    display: inline-block;
}
.button:hover {
    background: var(--primary-hover-color);
    text-decoration: none;
    color: #fff;
}
.logout-button {
    background: var(--logout-bg);
}
.logout-button:hover {
    background: var(--logout-hover-bg);
}

/* Einheitliche Link-Stile */
.action-links a {
    padding-right: 8px;
}

a {
    color: var(--action-link-color);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: var(--action-link-hover-color);
    text-decoration: underline;
}

/* Einheitliche Tabellen-Stile */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
th, td {
    padding: 12px;
    border-bottom: 1px solid var(--table-border-color);
    text-align: left;
}
th {
    background: var(--table-header-bg);
    color: var(--table-header-text);
}

/* Einheitlicher Header für alle Seiten */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}
.header-left, .header-right {
    flex: 1;
}
.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.logos {
    display: flex;
    align-items: center;
    gap: 10px;
}
.our-logo, .x-logo, .customer-logo {
    max-height: 48px;
    object-fit: contain;
    max-width: 148px;
}
.customer-name {
    font-size: 1.5em;
    color: var(--header-subtext-color);
    display: flex;
    align-items: center;
}

/* Einheitliche Nachrichten (Fehler, Erfolg) */
.message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}
.message.error {
    background: var(--error-color);
    color: #fff;
}
.message.success {
    background: var(--success-color);
    color: #fff;
}

/* Einheitliche Dropzone für Upload-Bereiche */
.dropzone {
    border: 3px dashed var(--dropzone-border);
    border-radius: 8px;
    background: var(--dropzone-bg);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    margin-bottom: 20px;
    position: relative;
}
.dropzone p {
    margin: 0;
    font-size: 1.2em;
    color: var(--dropzone-text);
}
.dropzone.dragover {
    background-color: var(--dropzone-dragover-bg);
    border-color: var(--dropzone-dragover-border);
}

/* Einheitliche Vorschau für ausgewählte Dateien */
#filePreview {
    margin-top: 20px;
}
.file-item {
    background: var(--fileitem-bg);
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 0.95em;
    color: var(--fileitem-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.remove-button {
    background: var(--remove-button-bg);
    border: none;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background 0.3s;
}
.remove-button:hover {
    background: var(--remove-button-hover-bg);
}

input[type="text"], input[type="password"] {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 320px;
}

/* Einheitliche Login-Seite */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}
.login-container h2 {
    text-align: left;
    margin-bottom: 20px;
    color: var(--header-color);
}
.login-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.login-container label {
    font-size: 1em;
    color: var(--text-color);
}
.login-container input[type="text"],
.login-container input[type="password"] {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 640px;
}
.login-container input[type="submit"] {
    padding: 10px;
    background: var(--primary-color);
    border: none;
    color: #fff;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.login-container input[type="submit"]:hover {
    background: var(--primary-hover-color);
}

/* Einheitliche Abschnitts-Styles für alle "weiß hinterlegten" Bereiche */
.section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}








/* Alle Logos und der Kundenname starten unsichtbar */
.our-logo, .x-logo, .customer-logo, .customer-name {
    opacity: 0;
}

/* Unser eigenes Logo: Slide-In von rechts */
.our-logo {
    animation: slideInA 1.5s ease-in-out forwards;
}

/* X-Logo: Fade-in und Scale, verzögert um 1 Sekunde */
.x-logo {
    animation: fadeScaleX 1.5s ease-in-out 1.2s forwards;
}

/* Kundenlogo oder Kundenname: Slide-In von rechts, verzögert um 1,5 Sekunden */
.customer-logo,
.customer-name {
    animation: slideInB 1.5s ease-in-out 2.0s forwards;
}

/* Keyframes für das Slide-In */
@keyframes slideInB {
    0% {
        transform: scale(0.6);
        opacity: 0;
        filter: blur(10px);
    }
    
    100% {
        transform: scale(1.0);
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes slideInA {
    0% {
        transform: scale(0.6);
        opacity: 0;
        filter: blur(10px);
    }
    
    100% {
        transform: scale(1.0);
        opacity: 1;
        filter: blur(0px);
    }
}

/* Keyframes für das Fade-in und Scale des X-Logos */
@keyframes fadeScaleX {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    50% {
        transform: scale(1.4);
        opacity: .4;
    }
    100% {
        transform: scale(1);
        opacity: .8;
    }
}




.customer-name {
    padding-bottom: 6px;
    color: var(--text-color);
}




.group-header {
        background-color: #64717e;
    color: #fff;
    font-weight: 500;
    position: sticky;
    top: 44px;
    backdrop-filter: blur(8px);
}


.subgroup-header {
        background-color: #e3e8ed;
    color: #333;
    font-weight: 500;
    position: sticky;
    top: 88px;
    backdrop-filter: blur(8px);
}

.group-header:hover {
    background-color: #64717e;
}

.subgroup-header:hover {
    background-color: #e3e8ed;
}

.stickythead {
    position: sticky;
    top: 0px;
}

tr {
    transition: all .2s;
}

tr:hover {
    background-color: #f9f9f9;
    transition: all .2s;
}

.bottomstickysection {
    position: sticky;
    bottom: 0px;
    backdrop-filter: blur(8px);
    background-color: #64717e38;
}


.headersection {
    background: #fff;

}

.gradient-text {
  background: linear-gradient(90deg, #007545, #61b444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline;
}

.headersection h2 {
    font-size: 36px;
    
}

.headersection p {
    
}


.logo-thumb {
    max-height: 28px;
    width: auto;
    display: block;
    max-width: 100px;
}
.no-logo {
    color: #888;
    text-align: left;
}