:root {
    --text-main: #ffffff;
    --text-muted: #e0e0e0;
    --card-blur: 16px;
}

body {
    margin: 0;
    padding: 20px 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #111 url('grafik.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.events-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 80px;
}

.card-wrapper {
    position: relative;
    width: 100%;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.card {
    position: relative;
    width: 100%;
    min-height: 150px; 
    -webkit-tap-highlight-color: transparent;
}

.card.has-content {
    cursor: pointer;
}


/* Das Glas macht nur noch den Blur */
.card-glass {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(var(--card-blur));
    -webkit-backdrop-filter: blur(var(--card-blur));
    z-index: 1;
    /* Verhindert Flackern in Safari: */
    transform: translateZ(0);
    -webkit-transform: translateZ(0); 
}

.card-date, .card-location {
    position: absolute;
    left: 0;
    right: 0;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    z-index: 3;
}

.card-date { top: 0; }
.card-location { bottom: 0; }

.card-date span, .card-location span {
    display: inline-block;
    white-space: nowrap;
}

.card-icons {
    position: absolute;
    top: 10px;
    right: 18px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.card-icons img {
    width: 15px;
    height: 15px;
    filter: brightness(0) invert(1) opacity(0.85);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 50px 20px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    box-sizing: border-box;
}

.card-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.card-desc-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease-out;
    width: 100%;
}

.card.expanded .card-desc-wrapper {
    grid-template-rows: 1fr;
}

.card-desc {
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: left;
    opacity: 0;
    transition: opacity 0.3s ease-out, padding 0.3s ease-out;
}

.card.expanded .card-desc {
    padding-top: 15px;
    opacity: 1;
}

.card-desc p {
    margin: 0 0 10px 0;
}

.card-desc p:last-child {
    margin-bottom: 0;
}

.card-desc a {
    color: #fff;
    text-decoration: underline;
}