/* mitglieder-style.css */

/* Abschnittsdesign */
main .inhalt {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 12px rgba(0,0,0,0.05);
    margin: auto;
}

.suchfeld {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.suchfeld input[type="text"] {
    flex: 1;
    padding: 0.6rem;
    border-radius: 0.4rem;
    border: 1px solid #ccc;
    min-width: 200px;
}

.suchfeld button {
    background-color: #F28C00;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 0.4rem;
    cursor: pointer;
}

.suchfeld button:hover {
    background-color: #d97500;
}

.csv-upload {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.csv-upload input[type="file"] {
    padding: 0.4rem;
    min-width: 200px;
}

.csv-upload button {
    background-color: #002F5F;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.4rem;
    cursor: pointer;
}

.csv-upload button:hover {
    background-color: #001c3a;
}

/* Tabelle */
.tabelle-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    min-width: 700px;
}

table thead {
    background-color: #002F5F;
    color: white;
}

table th,
table td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 0.95rem;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Home-Button */
.home-button {
    background-color: #F28C00;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.home-button:hover {
    background-color: #d97500;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
    main .inhalt {
        padding: 1rem;
    }

    .suchfeld,
    .csv-upload {
        flex-direction: column;
        align-items: stretch;
    }

    .suchfeld input,
    .csv-upload input[type="file"] {
        width: 100%;
    }

    .suchfeld button,
    .csv-upload button {
        width: 100%;
        margin-top: 0.5rem;
    }

    .tabelle-wrapper {
        overflow-x: auto;
    }

    table {
        font-size: 0.85rem;
        min-width: 600px;
    }

    .home-button {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    table th,
    table td {
        padding: 0.5rem;
    }

    td a {
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    table {
        font-size: 0.8rem;
        min-width: 550px;
    }
}
