/* Grundlegende Stile für die gesamte Seite */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;           /* Basisaufteilung fixieren */
    flex-direction: column;                       /* *** */
    height: 100vh;                                /* *** */
    flex-wrap: nowrap;                            /* *** */
}

a {
    text-decoration: none;
}

.img {
    display: flex;              /* Flexbox aktivieren */
    align-items: center;        /* Vertikal zentrieren */
    justify-content: center;    /* Horizontal zentrieren */
}

.error-message {
    display: block;
    color: red;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/**********************/
/* Header-Stile */
/**********************/
header {
    background-color: #4CAF50;
    color: white;
    font-size: 1.2em;
}

header .header-container {
    max-width: 800px;
    margin: auto;
    padding: 20px 5%;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

/* Menü-Stile */
header .menu-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

header a {
    display: flex;
    align-items: center;
}

/* Button-Stile */
header a button {
    background-color: white;
    color: #4CAF50;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
}

header button:hover {
    background-color: #45a049;
    color: white;
}

header button:hover a {
    color: white;
}

/**********************/
/* Main-Bereich-Stile */
/**********************/
main {
    flex-grow: 1;           /* Basisaufteilung fixieren */
    overflow: auto;                              /* *** */
}

main .main-limit {
    padding: 3% 5%;
    max-width: 800px;
    margin: auto;
}

main .cont img {
    width: 100%;
    margin-bottom: 15px;
}

/* Links und Navigation */
main .bt, main a {
    display: inline-block;
    text-decoration: none;
    color: #4CAF50;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    padding: 10px 20px;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

main .bt:hover, main a:hover {
    background-color: #45a049;
    color: white;
}

main .nav {
    display: flex;
    gap: 10px;
}

main .disabled-link, main .disabled-link:hover {
    color: #a0a0a0 !important;
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    pointer-events: none;
    cursor: default;
    box-shadow: none;
    transition: none;
}

/* Generelles Upload Formular bei jedem Datei Type */
main .upform {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

main .upform div {
    display: flex;
    gap: 10px;
}

/* Bild Datei formular */
main .image-container img {
    max-width: 100%;

}

/* PDF Datei formular */
main .pdf-container img {
    max-height: 20em;
}

/* Datei Bilder */
main .main-limit .FileImg {
    max-width: 100%;
    height: auto;
}

/* Table Stile */
main .uList .file-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

main .uList .file-table th{
    text-align: left;
    padding: 0 3px 0 8px;
}

main .uList .file-table td{
    padding: 0 3px 0 8px;
}

main .uList .file-table .action {
    display: flex;
    flex-direction: row;
    gap: 10px;
}


main .uList .file-table .action a {
    padding: 2px 6px;
    margin: 2px 0;
}

/**********************/
/* Footer-Stile       */
/**********************/
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    bottom: 0;
}

/* ************************************/
/* Adaptive Stile                     */
/* ************************************/
@media screen and (max-width: 550px) {
    header h1 {
        font-size: 1.5em;
    } 
    header a button {
        font-size: 0.8em;
    }
}
@media screen and (max-width: 420px) {
    header h1 {
        font-size: 1.2em;
    }       
    header a button {
        font-size: 0.6em;
    }
}
@media screen and (max-width: 370px) {
    header .menu-container {
        flex-direction: column;
    }
}