body {
    font-family: sans-serif;
    text-align: center;
    max-width: 1600px;
    margin: auto;
    overflow-y: scroll;
    height: 100vh;
    background: url('/img/bg4.jpg') white center center fixed;
}

select {
    font-size: 1em;
}

optgroup {
    background: lightgreen;
}

h2 {
    background: lightgreen;
    padding: 5px 10px;
    margin: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 40px;
    padding: 10px 20px;
    text-align: left;
}
/* Mobile-First: .list ist immer 100% breit */
.list {
    width: 100%;
    margin: 0;
    margin-top: 1.4em;
}

.list:last-of-type {
    margin-bottom: 40px;
}

.list-container {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 4px 4px 6px #bbb;
    border: 3px solid lightgreen;
    overflow: hidden;
}

/* Ab Tablet/Desktop: Drei Spalten */
@media (min-width: 800px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}


.table-container {
    min-height: 50px;
    padding: 10px;
    background: #f7ffd9;
}

table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

td.name {
    padding-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

td {
    vertical-align: top;
    padding: 2px 0;
}

tr.recent {
    color: red;
}

td.name {
    padding-right: 20px;
}

td.date {
    width: 140px;
    text-align: right;
    
}

.clear {
    clear: both;
}
