/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--q2-accent) 0%, #1a4a8a 100%);
    color: var(--q2-accent-contrast);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem;
    color: inherit;
}
.hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1a3a6a 0%, #0d1f3a 100%);
}
.latest-posts { margin-top: 2rem; }
.latest-posts h2 { text-align: center; margin-bottom: 1.5rem; }
.blog-listing .card .card-subtitle { min-height: 0; }
.text-center { text-align: center; }
.text-center .btn { margin-top: 1rem; }

/* Blog Timeline */
.blog-timeline {
    position: fixed;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 4px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-height: 75vh;
    overflow-y: auto;
    scrollbar-width: none;
}
.blog-timeline::-webkit-scrollbar { display: none; }
.timeline-year {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0;
}
.timeline-year + .timeline-year {
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 4px;
    padding-top: 10px;
}
[data-theme="dark"] .timeline-year + .timeline-year {
    border-top-color: rgba(255,255,255,0.1);
}
.timeline-year-label {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s;
}
.timeline-year-label:hover { color: #111; }
[data-theme="dark"] .timeline-year-label { color: #aaa; }
[data-theme="dark"] .timeline-year-label:hover { color: #fff; }
.timeline-month {
    display: block;
    font-size: 9px;
    color: #999;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 10px;
    transition: all 0.2s;
    line-height: 1.8;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.timeline-month:hover {
    color: #333;
    background: rgba(0,0,0,0.06);
}
[data-theme="dark"] .timeline-month:hover {
    color: #ddd;
    background: rgba(255,255,255,0.1);
}
.timeline-month.active {
    color: #fff;
    background: var(--q2-accent, #4A90D9);
    font-weight: 600;
}
@media (max-width: 991px) {
    .blog-timeline {
        right: 4px;
        padding: 8px 3px;
        gap: 0;
        max-height: 70vh;
    }
    .timeline-year-label {
        font-size: 10px;
        padding: 4px 4px;
    }
    .timeline-month {
        font-size: 10px;
        padding: 4px 6px;
        line-height: 2;
        min-height: 36px;
        display: flex;
    justify-content: center;
        align-items: center;
        justify-content: center;
    }
    .timeline-year {
        gap: 0;
        padding: 3px 0;
    }
    .timeline-year + .timeline-year {
        margin-top: 2px;
        padding-top: 5px;
    }
}

/* Blog filter dropdown */
.filter-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 320px;
    margin-bottom: 1.5rem;
}
.filter-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
    text-align: left;
}
.filter-dropdown-toggle:hover {
    border-color: #aaa;
}
[data-theme="dark"] .filter-dropdown-toggle {
    color: #ccc;
    background: #2a2a2a;
    border-color: #444;
}
[data-theme="dark"] .filter-dropdown-toggle:hover {
    border-color: #666;
}
.filter-dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 8px;
    transition: transform 0.2s;
}
.filter-dropdown.open .filter-dropdown-arrow {
    transform: rotate(180deg);
}
.filter-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 200;
    max-height: 60vh;
    overflow-y: auto;
    padding: 4px 0;
}
.filter-dropdown.open .filter-dropdown-menu {
    display: block;
}
[data-theme="dark"] .filter-dropdown-menu {
    background: #2a2a2a;
    border-color: #444;
}
.filter-dropdown-group {
    padding: 8px 14px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaa;
}
.filter-dropdown-item {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    transition: background 0.15s;
}
.filter-dropdown-item:hover {
    background: rgba(0,0,0,0.04);
}
.filter-dropdown-item.active {
    font-weight: 600;
    color: var(--q2-accent, #3B82F6);
    background: rgba(59,130,246,0.06);
}
.filter-dropdown-item.old {
    color: #999;
}
[data-theme="dark"] .filter-dropdown-item {
    color: #ccc;
}
[data-theme="dark"] .filter-dropdown-item:hover {
    background: rgba(255,255,255,0.04);
}
[data-theme="dark"] .filter-dropdown-item.active {
    color: var(--q2-accent, #3B82F6);
    background: rgba(59,130,246,0.12);
}
[data-theme="dark"] .filter-dropdown-item.old {
    color: #666;
}
.filter-dropdown-item.highlight {
    color: #166534;
    background: rgba(22,163,74,0.08);
    font-weight: 600;
}
.filter-dropdown-item.highlight:hover {
    background: rgba(22,163,74,0.14);
}
[data-theme="dark"] .filter-dropdown-item.highlight {
    color: #4ade80;
    background: rgba(74,222,128,0.1);
}

/* Category labels in blog listing */
.label-category {
  background: var(--q2-accent, #3B82F6);
  color: #fff;
  box-shadow: none;
  opacity: 0.85;
}
.label-category:hover {
  opacity: 1;
  color: #fff;
}
[data-theme="dark"] .label-category {
  opacity: 0.75;
}
[data-theme="dark"] .label-category:hover {
  opacity: 0.95;
}

/* Filter groups */
.filter-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.filter-group + .filter-group::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 20px;
    background: rgba(0,0,0,0.1);
    margin: 0 8px;
}
[data-theme="dark"] .filter-group + .filter-group::before {
    background: rgba(255,255,255,0.15);
}
.filter-group-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-right: 4px;
    white-space: nowrap;
}

/* Touren list */
.touren-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.touren-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.touren-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
[data-theme="dark"] .touren-card {
    background: #2a2a2a;
    border-color: #444;
}
.touren-card-body {
    padding: 1.5rem;
}
.touren-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
}
.touren-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem;
}
[data-theme="dark"] .touren-card-meta {
    color: #999;
}
.touren-card-posts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.touren-card-post {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 10px;
    text-decoration: none;
    color: #333;
    border-radius: 6px;
    transition: background 0.15s;
    font-size: 0.9rem;
}
.touren-card-post:hover {
    background: rgba(0,0,0,0.04);
}
[data-theme="dark"] .touren-card-post {
    color: #ccc;
}
[data-theme="dark"] .touren-card-post:hover {
    background: rgba(255,255,255,0.04);
}
.touren-card-day {
    font-weight: 700;
    color: var(--q2-accent, #3B82F6);
    min-width: 1.8rem;
    font-size: 0.8rem;
}
.touren-card-post-title {
    flex: 1;
}
.touren-card-post-date {
    color: #999;
    font-size: 0.8rem;
    white-space: nowrap;
}
[data-theme="dark"] .touren-card-post-date {
    color: #666;
}

/* Touren single post */
.touren-post {
    max-width: 800px;
    margin: 0 auto;
}
.touren-post h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.touren-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
}
.touren-post-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Touren day navigation */
.touren-day-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}
[data-theme="dark"] .touren-day-nav {
    border-top-color: #444;
}
.touren-day-prev,
.touren-day-next {
    text-decoration: none;
    color: var(--q2-accent, #3B82F6);
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid var(--q2-accent, #3B82F6);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    max-width: 45%;
}
.touren-day-prev:hover,
.touren-day-next:hover {
    background: var(--q2-accent, #3B82F6);
    color: #fff;
}

/* Section badge on homepage */
.card-section-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
}
.card-section-blog {
    background: #dbeafe;
    color: #1e40af;
}
.card-section-touren {
    background: #d1fae5;
    color: #065f46;
}
[data-theme="dark"] .card-section-blog {
    background: #1e3a5f;
    color: #93c5fd;
}
[data-theme="dark"] .card-section-touren {
    background: #064e3b;
    color: #6ee7b7;
}

/* Cookie banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 1rem 1.5rem;
}
[data-theme="dark"] .cookie-banner {
    background: #1e1e1e;
    border-top-color: #333;
}
.cookie-banner-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.cookie-banner-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    flex: 1;
    min-width: 200px;
}
[data-theme="dark"] .cookie-banner-content p {
    color: #aaa;
}
.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.cookie-banner-link {
    font-size: 0.85rem;
    color: var(--q2-accent, #3B82F6);
    text-decoration: underline;
}
.cookie-banner-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: var(--q2-accent, #3B82F6);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.cookie-banner-btn:hover {
    opacity: 0.85;
}
