:root {
    --bg: #e1d8c9;          /* Haupt-Hintergrund (Beige) */
    --bg-card: #e6d6bc;     /* etwas dunkleres Beige für Karten */
    --accent: #34644c;      /* Grün aus dem Logo */
    --accent-soft: rgba(52, 100, 78, 0.18);  /* näher am Logo-Grün */
    --text: #1f1b16;
    --muted: #5f5345;
    --border: #c0b197;
    --radius-lg: 18px;
    --shadow-soft: 0 18px 32px rgba(0, 0, 0, 0.08);
    --max-width: 900px;
    --gap: 1.5rem;
    --transition: 0.2s ease-out;
}

/* Reset / Basics */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background: #e1d8c9;   /* gleicher Beige-Ton wie der Body */
    overflow-x: hidden;    /* verhindert den kleinen Seiten-Scroll */
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #f4ede1 0, var(--bg) 40%, #d9cbb5 100%);
    color: var(--text);
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Layout */
.site-header {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: block;
    max-width: min(360px, 80vw); /* größer */
    height: auto;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    animation: logoIntro 0.8s ease-out forwards;
    transition: transform 0.25s ease-out, filter 0.25s ease-out;
}

.logo.small {
    max-width: min(230px, 70vw);
}

.logo:hover {
    transform: translateY(-3px) scale(1.03);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

@keyframes logoIntro {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.9);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.nav {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.nav a:hover,
.nav a:focus-visible {
    color: #145f3e; /* dunkleres Grün, gut lesbar */
    border-color: var(--accent);
    background: var(--accent-soft);
    outline: none;
}

.main {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 1rem 1.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    flex: 1 0 auto;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
}

.card.full {
    min-height: 60vh;
}

.card h1 {
    font-size: clamp(1.9rem, 3vw, 2.3rem);
    margin-bottom: 0.5rem;
}

.card h2 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.card p {
    margin-bottom: 0.4rem;
}

.card a {
    color: var(--accent);
    text-decoration: none;
}

.card a:hover,
.card a:focus-visible {
    text-decoration: underline;
}

/* Öffnungszeiten */
.opening-hours {
    list-style: none;
    margin-top: 0.3rem;
    margin-bottom: 0.75rem;
}

.opening-hours li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0;
    border-bottom: 1px dashed rgba(111, 100, 86, 0.25);
    font-size: 0.96rem;
}

.opening-hours li:last-child {
    border-bottom: none;
}

.opening-hours span:first-child {
    color: var(--muted);
}

.opening-hours span:last-child {
    font-variant-numeric: tabular-nums;
}

.hint {
    font-size: 0.8rem;
    color: var(--muted);
}

/* PDF Viewer */
.pdf-viewer {
    width: 100%;
    min-height: 70vh;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius-lg) - 4px);
    background: #ffffff;
}

/* Footer */
.footer {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 1.25rem 1.25rem;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}

.powered-by {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.powered-by a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.powered-by a:hover,
.powered-by a:focus-visible {
    text-decoration: underline;
}


/* Responsive */
@media (max-width: 640px) {
    .nav {
        font-size: 0.9rem;
    }

    .card {
        padding: 1.25rem 1.25rem;
    }

    .pdf-viewer {
        min-height: 60vh;
    }
}

