/* 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: 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;
}

/* Formular-Bereich */
main .form-container {
    max-width: 400px;
    margin: auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

main .form-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

main .form-container form legend {
    font-size: 1.5em;
    color: #4CAF50;
    text-align: center;
    margin-bottom: 10px;
}

main .form-container .form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

main .form-container .form-group input,
main .form-container .form-group select,
main .form-container .form-group textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

main .form-container .form-group .role-options {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    flex-direction: row;
    gap: 5px;
}

main .form-container .form-group .role-options div {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    gap: 5px;
}

main .form-container .btn-submit,
main .form-container .btn-cancel {
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

main .form-container .btn-submit {
    background-color: #4CAF50;
    color: #f4f4f4;
}

main .form-container .btn-submit:hover {
    background-color: #e6e6e6;
    color: #45a049;
}

main .form-container .btn-cancel {
    background-color: #707070;
    color: #ffffff;
}

main .form-container .btn-cancel:hover {
    background-color: #cfcfcf;
    color: #333;
}

main .form-container .nav {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

/* Profil Bereich */
main .profile .avatar {
    display: flex;
    gap: 1em;
}

main .profile .avatar .img {
    width: 7em;
    height: 7em;
}

main .profile .avatar .img img{
    max-width: 7em;
    max-height: 7em;
}

main .profile h3 {
    margin: 0;
}

main .profile p {
    margin: 1em 0 0 0;
}

main .profile .avForm {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
}

main .profile .avForm span {
    margin: 0 0 1em 1.5em;
    font-size: 0.8em;
}

main .profile .avForm  div {
    display: flex;
    gap: 1em;
}

main .profile .mini-form .part {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
}

main .profile .secure {
    margin: 1em 0;
}

/* Benutzer Liste Bereich */
main .uList .head a {
    margin: 0.5em 0;
}

main .uList .user-list {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin: 1em 0;
}

main .uList .user-list .user-fram {
    display: flex;
    flex-direction: row;
    gap: 0.8em;
}

main .uList .user-list .line {
    width: 100%;
    border-top: 1px solid #696969;
}

main .uList .user-list .user-fram .img {
    width: 6em;
    height: 6em;
}

main .uList .user-list .user-fram img {
    max-width: 6em;
    max-height: 6em;
}

main .uList .user-list .user-fram .data {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

main .uList .user-list .user-fram .data p {
    margin: 0;
}

main .uList .user-list .user-fram .edit {
    display: flex;
    flex-direction: row;
    gap: 0.4em;
}

main .uList .user-list .user-fram .edit .left, main .uList .user-list .user-fram .edit .right{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

main .uList .user-list .user-fram .edit .left a {
    width: 6em;
    height: 2.4em;
    font-size: 0.8em;
    padding: 0.5em 1em;
}

main .uList .user-list .user-fram .edit .left .mini-reset-form .bt {
    text-align: start;
    width: 8.2em;
    font-size: 0.8em;
    padding: 0.5em 1em;
}

main .uList .user-list .user-fram .edit .right a {
    width: 5.5em;
    height: 1.1em;
    padding: 0.8em 1em;
}

/**********************/
/* 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;
    }
}


/**********************/
/* About-Seite Stile  */
/**********************/

/* About-Container */
main .about {
    max-width: 800px;
    margin: 0 auto;
}

main .about .cont {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Features Grid */
main .about .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

main .about .feature-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

main .about .feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

main .about .feature-icon {
    font-size: 1.5em;
    color: #4CAF50;
    flex-shrink: 0;
}

main .about .feature-text h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

main .about .feature-text p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Rollen Tabelle */
main .about .roles-table {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
}

main .about .roles-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

main .about .roles-table th {
    background-color: #4CAF50;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    font-size: 0.95em;
}

main .about .roles-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

main .about .roles-table tr:last-child td {
    border-bottom: none;
}

main .about .roles-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

main .about .roles-table tr:hover {
    background-color: #f0f0f0;
}

/* Farbige Rollen-Hintergründe */
main .about .role-admin td:first-child {
    border-left: 4px solid #f44336;
}

main .about .role-support td:first-child {
    border-left: 4px solid #ff9800;
}

main .about .role-user td:first-child {
    border-left: 4px solid #4CAF50;
}

main .about .role-guest td:first-child {
    border-left: 4px solid #9e9e9e;
}

/* Tech Tags */
main .about .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

main .about .tech-tag {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid #c8e6c9;
}

/* Warnungsbereich */
main .about .warning-section {
    background-color: #fff8e1;
    border: 1px solid #ffecb3;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin: 25px 0 15px 0;
}

main .about .warning-section h3 {
    color: #ff8f00;
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

main .about .warning-content p {
    margin: 5px 0;
    font-size: 0.95em;
}

/* Sections allgemein */
main .about .about-section,
main .about .features-section,
main .about .roles-section,
main .about .tech-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

main .about .about-section:last-child,
main .about .features-section:last-child,
main .about .roles-section:last-child,
main .about .tech-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

main .about h3 {
    color: #388e3c;
    margin-bottom: 15px;
    font-size: 1.3em;
    padding-bottom: 8px;
    border-bottom: 2px solid #4CAF50;
}

main .about p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Navigation in About */
main .about .nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/**********************/
/* Responsive Anpassungen */
/**********************/
@media screen and (max-width: 768px) {
    main .about .features-grid {
        grid-template-columns: 1fr;
    }
    
    main .about .tech-tags {
        justify-content: center;
    }
    
    main .about .roles-table {
        font-size: 0.9em;
    }
    
    main .about .roles-table th,
    main .about .roles-table td {
        padding: 8px 10px;
    }
    
    main .about .nav {
        flex-direction: column;
        align-items: center;
    }
    
    main .about .nav a {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    main .about .feature-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    main .about .feature-icon {
        margin-bottom: 5px;
    }
    
    main .about .cont {
        padding: 15px;
    }
    
    main .about h3 {
        font-size: 1.2em;
    }
}