:root {
    /* Tropical Palette */
    --bg: #f6fff9;
    /* sandig-hell */
    --fg: #0a1f1c;
    /* tiefes Grün */
    --card: #ffffff;
    --muted: #3f5f59;
    /* gedämpftes Grün */
    --border: #dbe7e4;
    --brand: #0fbf9f;
    /* Teal */
    --brand-2: #ff7f50;
    /* Coral */
    --brand-3: #b5ff61;
    /* Lime */
}

.dark {
    --bg: #061614;
    --fg: #e8fff8;
    --card: #0b1d1a;
    --muted: #9bd2c7;
    --border: #13322e;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--fg);
    background: var(--bg);
}

/* Tropical Background: sanfte Verläufe + subtile Palm/Leaf-Struktur via Gradients */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1200px 800px at -10% -20%, color-mix(in oklab, var(--brand), white 85%), transparent 60%),
        radial-gradient(800px 600px at 120% -10%, color-mix(in oklab, var(--brand-2), white 85%), transparent 60%),
        radial-gradient(900px 700px at 100% 120%, color-mix(in oklab, var(--brand-3), white 90%), transparent 60%);
    filter: saturate(110%);
}

body::after {
    /* Leaf pattern */
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(135deg, rgba(10, 31, 28, 0.02) 0 8px, transparent 8px 24px),
        repeating-linear-gradient(45deg, rgba(10, 31, 28, 0.015) 0 12px, transparent 12px 28px);
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: saturate(160%) blur(8px);
    background: color-mix(in oklab, var(--card), transparent 15%);
    border-bottom: 1px solid var(--border);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
}

h1 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin: 0;
    letter-spacing: .3px;
}

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

.row {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .9rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    cursor: pointer;
    transition: transform .06s ease, box-shadow .12s ease;
}

.btn:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    transform: translateY(-1px);
}

.btn--brand {
    background: linear-gradient(135deg, color-mix(in oklab, var(--brand), white 10%), color-mix(in oklab, var(--brand-2), white 5%));
    color: #053b34;
    border-color: color-mix(in oklab, var(--brand), black 10%);
}

.section {
    margin-top: 1rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.title {
    font-weight: 700;
    margin: 0 0 .25rem;
    letter-spacing: .2px;
}

.desc {
    margin: 0;
    white-space: pre-wrap;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
}

.filters {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

input[type="search"],
select {
    padding: .6rem .8rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    color: var(--fg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .03);
}

ol.timetable {
    list-style: none;
    margin: .75rem 0 0;
    padding: 0;
    display: grid;
    gap: .75rem;
}

.session {
    display: flex;
    gap: .9rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1rem;
    background: var(--card);
    align-items: flex-start;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.time {
    min-width: 120px;
    font-weight: 700;
}

.now {
    display: inline-block;
    font-size: .75rem;
    font-weight: 800;
    background: color-mix(in oklab, var(--brand), white 75%);
    color: #045046;
    padding: .2rem .6rem;
    border-radius: 999px;
    margin-top: .25rem;
}

.tags {
    display: flex;
    gap: .25rem;
    flex-wrap: wrap;
    margin-top: .25rem;
}

.tag {
    font-size: .75rem;
    background: color-mix(in oklab, var(--brand-2), white 80%);
    color: #5f2a1f;
    padding: .15rem .55rem;
    border-radius: 999px;
}

.session-actions {
    margin-left: auto;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.footer-tip {
    font-size: .8rem;
    color: var(--muted);
    margin-top: .75rem;
}

@media print {
    header {
        position: static !important;
        background: white !important;
    }

    .no-print {
        display: none !important;
    }

    body {
        background: white;
    }
}


.tabs {
    display: flex;
    gap: .5rem;
    margin: 1rem 0;
}

.tab {
    flex: 1;
    padding: .7rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    cursor: pointer;
}

.tab.active {
    background: var(--brand);
    color: white;
    font-weight: 600;
}

.tab-content.hidden {
    display: none;
}

.artist-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.artist-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.artist-card img {
    width: 100%;
    max-width: 180px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: .75rem;
}

.artist-card h3 {
    margin: .25rem 0;
    font-size: 1.1rem;
}

.artist-card p {
    font-size: .9rem;
    color: var(--muted);
}

@media (min-width: 920px) {
    .title-mobile {
        display: none;
    }
    .title-desktop {
        display: block;
    }
}

@media (max-width: 920px) {
    .title-mobile {
        display: block;
    }

    .title-desktop {
        display: none;
    }

    .session {
        display: block;
    }

    .ics-export {
        display: none;
    }
}

.time-mobile {
    display: flex;
}