﻿body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #2f2f2f;
    background: #f5f1e6;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('../bgh2006.jpg') center center / cover no-repeat;
    filter: blur(10px) saturate(85%) brightness(1.15);
    opacity: 0.35;
    z-index: -1;
    transform: scale(1.05);
}

.bgh-page {
    max-width: 780px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}
.bgh-page--wide {
    max-width: 1050px;
}

.bgh-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 2rem 2.25rem;
}

.bgh-card h1 {
    margin-top: 0;
    color: #2f4538;
    font-size: 1.5rem;
    border-bottom: 2px solid #c8a24a;
    padding-bottom: 0.5rem;
}

/* Monatsnavigation */
.kalender-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.25rem 0 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.kalender-titel {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2f4538;
}
.btn-outline {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border: 1px solid #2f4538;
    border-radius: 999px;
    color: #2f4538;
    text-decoration: none;
    font-size: 0.88rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.btn-outline:hover {
    background: #2f4538;
    color: #f5f1e6;
}

/* Raum-Legende */
.raum-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: #555;
}
.legende-eintrag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.punkt {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Kalendergitter */
.kalender {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.kalender th {
    text-align: center;
    padding: 0.5rem 0.25rem;
    color: #2f4538;
    font-size: 0.85rem;
    border-bottom: 2px solid #e6e0cc;
}
.kalender td {
    vertical-align: top;
    border: 1px solid #ece6d4;
    padding: 0.35rem;
    height: 90px;
    width: 14.28%;
    overflow: hidden;
}
.kalender td.ausserhalb {
    background: #fafaf6;
    color: #bbb;
}
.kalender td.ausserhalb .tag-nummer {
    color: #ccc;
}
.kalender td.heute {
    background: #fdf6e3;
    border: 1px solid #c8a24a;
}
.tag-nummer {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2f4538;
    margin-bottom: 0.25rem;
}
.tag-nummer--info {
    cursor: help;
    text-decoration: underline dotted;
    text-decoration-color: #c8a24a;
    text-underline-offset: 3px;
}

.termin {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #eef1ea;
    border-radius: 4px;
    padding: 0.15rem 0.3rem;
    margin-bottom: 0.2rem;
    font-size: 0.72rem;
    line-height: 1.2;
}
.termin .punkt {
    width: 7px;
    height: 7px;
}
.termin-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.serie-icon {
    color: #8a6fa5;
    margin-left: 0.15rem;
}

.hinweis {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #666;
}
.hinweis a {
    color: #2f4538;
    font-weight: 600;
}
.zurueck-link {
    margin-top: 0.75rem;
    font-size: 0.85rem;
}
.zurueck-link a {
    color: #2f4538;
    text-decoration: none;
}
.zurueck-link a:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .bgh-card {
        padding: 1.25rem;
    }
    .kalender th {
        font-size: 0.7rem;
    }
    .kalender td {
        height: 70px;
        padding: 0.2rem;
    }
    .termin {
        font-size: 0.62rem;
    }
    .termin-text {
        display: none; /* Auf kleinen Screens nur Punkte zeigen, Tooltip liefert Details */
    }
}