/* Basis-Stile */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 10px;
    font-family: 'Cambria', serif;
    background: url('images/gainsboro.png');
    background-size: cover;
    background-repeat: repeat;
    background-position: 25%;
    color: blue;
    overflow-x: hidden;
    cursor: url('images/herz.png') 16 16, auto;
    min-height: 100vh;
}

/* Zurück-Button */
.fixed-back-button {
    position: fixed;
    top: 5px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    rotate: -90deg;
    cursor: url('images/herz.png') 16 16, auto;
}

.fixed-back-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Hauptinhalt */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    font-size: 25px;
    font-weight: 600;
    margin-top: 50px;
    margin-bottom: 60px;
}

/* Tabellen-Stile */
.table-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.table-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    border-bottom: 1px solid red;
    padding-bottom: 10px;
}

.table-cell {
    padding: 8px 10px;
    text-align: left;
    vertical-align: middle;
    flex: 1;
    min-width: 120px;
}

.table-cell.year {
    flex: 0 0 80px;
}

.table-cell.title {
    flex: 2;
    min-width: 200px;
}

.table-cell.location {
    flex: 1.5;
    min-width: 180px;
    line-height: 1.3;
}

.table-cell.category {
    flex: 1;
    min-width: 150px;
}

.table-cell.location .address {
    font-size: 0.6em;
    display: block;
    margin-top: -0.2em;
    line-height: 1.2;
}

/* Typografie */
.italic-word {
    font-style: italic;
    font-size: 16px;
    display: block;
    margin-top: 5px;
}

/* Links */
.no-style-link {
    color: inherit;
    text-decoration: none;
}

.no-style-link:hover {
    text-decoration: underline;
    cursor: url('images/karo.png') 16 16, auto;
}

/* Footer */
footer {
    font-family: 'Cambria', serif;
    font-weight: 900;
    font-size: 10px;
    text-align: center;
    padding: 10px;
    background: transparent;
    color: #0e25f5;
    position: fixed;
    bottom: 0;
    width: 100%;
    cursor: url('images/karo.png') 16 16, auto;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    main {
        font-size: 18px;
        margin-top: 40px;
        padding: 10px;
    }
    
    .table-row {
        position: relative;
        padding-left: 70px; /* Platz für die Jahreszahl */
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(255, 0, 0, 0.3);
    }
    
    .table-cell {
        padding: 3px 0;
        min-width: 100%;
        border-bottom: none;
    }
    
    .table-cell.year {
        position: absolute;
        left: 0;
        top: 0;
        width: 60px;
        padding: 3px 0;
        text-align: left;
        font-weight: bold;
    }
    
    .table-cell.title {
        padding-top: 0;
    }
    
    .italic-word {
        font-size: 14px;
        display: inline;
        margin-left: 5px;
    }
    
    .fixed-back-button {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    main {
        font-size: 16px;
    }
    
    .table-row {
        padding-left: 60px;
    }
    
    .table-cell.year {
        width: 55px;
    }
    
    .table-cell.location .address {
        font-size: 0.7em;
    }
    
    footer {
        font-size: 8px;
    }
}