@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

/* Mobile-first CSS */
:root {
    --accent: #2f6fed;
    --border: #e6eaed;
    --muted: #4a4d52;
    --radius: 16px;

    --se-1: #006aa7;
    --se-2: #ffcd00;
    --no-1: #ba0c2f;
    --no-2: #00205b;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Lexend', 'Helvetica', sans-serif;
    margin: 0;
    padding: 1rem;
    color: #16181c;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    background-color: #eef1f8;
    background-image:
        radial-gradient(circle at 12% 8%, rgba(0, 106, 167, 0.16), transparent 42%),
        radial-gradient(circle at 88% 15%, rgba(255, 205, 0, 0.20), transparent 40%),
        radial-gradient(circle at 15% 85%, rgba(186, 12, 47, 0.14), transparent 45%),
        radial-gradient(circle at 92% 90%, rgba(122, 89, 219, 0.18), transparent 45%),
        linear-gradient(160deg, #f6f8fd 0%, #eef1f8 55%, #eef4f5 100%);
    background-attachment: fixed;
}

header {
    padding: 1rem 1.25rem;
    text-align: center;
    border-radius: calc(var(--radius) + 4px);
    margin-bottom: 1rem;
    position: relative;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px -8px rgba(20, 40, 90, 0.18);
}

header::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(90deg, var(--se-1), var(--no-1));
    border-radius: calc(var(--radius) + 5px);
    z-index: -1;
    opacity: 0.35;
}

h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #16181c;
}

.countdown {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--accent);
    background: rgba(47, 111, 237, 0.1);
    border: 1px solid rgba(47, 111, 237, 0.25);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.55rem 1.05rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px -3px rgba(47, 111, 237, 0.5);
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover {
    background: #1b4fc4;
    text-decoration: none;
    transform: translateY(-1px);
}

main {
    max-width: 100%;
}

/* Kapitel-Chips zur schnellen Navigation */
.chip-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0.15rem 1rem;
    margin-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.chip-nav::-webkit-scrollbar {
    display: none;
}

.chip {
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.chip:active {
    transform: scale(0.96);
}

.chip--se {
    border: 1.5px solid var(--se-1);
    color: var(--se-1);
}

.chip--no {
    border: 1.5px solid var(--no-1);
    color: var(--no-1);
}

.chip--se.active {
    background: var(--se-1);
    color: #fff;
    box-shadow: 0 6px 14px -4px rgba(0, 106, 167, 0.55);
}

.chip--no.active {
    background: var(--no-1);
    color: #fff;
    box-shadow: 0 6px 14px -4px rgba(186, 12, 47, 0.5);
}

.chapter {
    --country-accent: var(--accent);
    --country-accent-2: var(--accent);
    --country-glow: rgba(47, 111, 237, 0.18);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top: 4px solid var(--country-accent);
    box-shadow: 0 8px 26px -12px rgba(20, 40, 90, 0.35);
    transition: box-shadow 0.2s ease;
}

.chapter.open {
    box-shadow: 0 14px 34px -12px var(--country-glow);
}

.chapter--se {
    --country-accent: var(--se-1);
    --country-accent-2: var(--se-2);
    --country-glow: rgba(0, 106, 167, 0.35);
}

.chapter--no {
    --country-accent: var(--no-1);
    --country-accent-2: var(--no-2);
    --country-glow: rgba(186, 12, 47, 0.3);
}

.chapter-header {
    background: transparent;
    padding: 1rem 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.chapter-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #16181c;
    letter-spacing: 0.2px;
}

.toggle-icon {
    font-size: 0.7rem;
    color: var(--country-accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 0.75rem;
}

.chapter.open .toggle-icon {
    transform: rotate(90deg);
}

/* Sanfte Akkordeon-Animation über grid-template-rows */
.chapter-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.chapter.open .chapter-content {
    grid-template-rows: 1fr;
}

.chapter-content-inner {
    overflow: hidden;
    padding: 0 1.1rem;
}

.chapter.open .chapter-content-inner {
    padding: 0.1rem 1.1rem 1.1rem;
}

.day {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-left: 4px solid var(--country-accent);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 14px -8px rgba(20, 40, 90, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.day:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -8px var(--country-glow);
}

.day:last-child {
    margin-bottom: 0;
}

.day-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #16181c;
    margin: 0 0 0.6rem 0;
    letter-spacing: 0.1px;
}

.day-content {
    color: var(--muted);
    font-size: 0.95rem;
}

.day-content p {
    margin: 0.45rem 0;
}

.link-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.45rem 0;
}

.warning {
    background: rgba(255, 235, 235, 0.75);
    border: 1px solid #ffc2c2;
    border-radius: 10px;
    padding: 0.75rem;
    margin: 0.9rem 0 0 0;
    color: #b03b34;
    font-size: 0.95rem;
    font-weight: 500;
}

.info {
    background: rgba(244, 246, 250, 0.75);
    border: 1px solid #dde3ec;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    margin: 0.9rem 0 0 0;
    color: #434343;
    font-size: 0.8rem;
}

.love {
    background: rgba(255, 240, 246, 0.8);
    border: 1px solid #ffb3c6;
    border-radius: 10px;
    padding: 0.75rem;
    margin: 0.9rem 0 0 0;
    color: #d6336c;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.sightseeing-list {
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    margin: 0.6rem 0;
}

.sightseeing-list li {
    background: rgba(255, 255, 255, 0.75);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--country-accent);
    color: var(--country-accent);
    font-size: 0.88rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.sightseeing-list li:has(a):hover {
    background: var(--country-accent);
}

.sightseeing-list li:has(a):hover a {
    color: #fff;
}

/* Responsive für größere Bildschirme */
@media (min-width: 768px) {
    body {
        padding: 2rem;
    }

    h1 {
        font-size: 1.9rem;
    }

    main {
        max-width: 900px;
        margin: 0 auto;
    }

    header {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .chip-nav {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .chapter {
        margin-bottom: 1.25rem;
    }

    .chapter-title {
        font-size: 1.08rem;
    }

    .day-title {
        font-size: 1.02rem;
    }
}
