/* Ratgeber Page Styles */

/* Hero Section */
.ratgeber-hero {
    background: linear-gradient(135deg, #FCD34D 0%, #FBBF24 50%, #F59E0B 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.ratgeber-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 50%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 30%, rgba(255,255,255,0.2) 0%, transparent 30%),
        radial-gradient(circle at 85% 70%, rgba(255,255,255,0.15) 0%, transparent 25%),
        radial-gradient(circle at 95% 50%, rgba(255,255,255,0.1) 0%, transparent 20%);
    pointer-events: none;
}

.ratgeber-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ratgeber-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.ratgeber-hero-divider {
    width: 60px;
    height: 3px;
    background-color: #1a1a1a;
    margin: 0 auto 1.5rem;
}

.ratgeber-hero-subtitle {
    font-size: 1.25rem;
    color: #1a1a1a;
    font-weight: 400;
}

/* Toolbar (Contents & Search) */
.ratgeber-toolbar {
    background-color: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 82px;
    z-index: 50;
}

.ratgeber-toolbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Contents Dropdown */
.contents-dropdown {
    position: relative;
}

.contents-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #fff;
    border: 2px solid #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contents-button:hover {
    background-color: #f5f5f5;
}

.contents-button.active {
    background-color: #1a1a1a;
    color: #fff;
}

.contents-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.contents-button.active .contents-arrow {
    transform: rotate(180deg);
}

.contents-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 280px;
    display: none;
    z-index: 100;
}

.contents-menu.active {
    display: block;
}

.contents-link {
    display: block;
    padding: 1rem 1.25rem;
    color: #1a1a1a;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s ease;
}

.contents-link:last-child {
    border-bottom: none;
}

.contents-link:hover {
    background-color: #f5f5f5;
}

/* Search Container */
.search-container {
    position: relative;
    width: 280px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.search-input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #666;
    pointer-events: none;
}

/* Featured Guide */
.featured-guide {
    padding: 4rem 2rem;
    background-color: #fff;
}

.featured-guide-inner {
    max-width: 1100px;
    margin: 0 auto;
    background-color: #FEF9E7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 3rem;
    gap: 3rem;
}

.featured-guide-image {
    flex: 0 0 300px;
}

.featured-guide-image img {
    width: 100%;
    height: auto;
    transform: rotate(-5deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.featured-guide-content {
    flex: 1;
}

.featured-guide-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.featured-guide-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1.5rem;
}

.featured-guide-btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    background-color: #FCD34D;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    transition: all 0.2s ease;
}

.featured-guide-btn:hover {
    background-color: #FBBF24;
}

/* Guide Categories */
.guide-category {
    padding: 4rem 2rem;
    background-color: #fff;
}

.guide-category-alt {
    background-color: #FFFBEB;
}

.guide-category-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: #1a1a1a;
}

/* Guide Grid */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.guide-grid-featured {
    grid-template-columns: 2fr 1fr;
    margin-bottom: 3rem;
}

.guide-grid-illustrations {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Guide Cards */
.guide-card {
    background-color: #fff;
    padding: 1.5rem 0;
}

.guide-category-alt .guide-card {
    background-color: transparent;
}

.guide-card-accent {
    width: 50px;
    height: 4px;
    background-color: #FCD34D;
    margin-bottom: 1.25rem;
}

.guide-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.875rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.guide-card-large .guide-card-title {
    font-size: 1.5rem;
}

.guide-card-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #555;
    margin-bottom: 1.25rem;
}

.guide-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 500;
    transition: gap 0.2s ease;
}

.guide-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.guide-card-link:hover {
    gap: 0.75rem;
}

.guide-card-link:hover svg {
    transform: translateX(3px);
}

/* Expanded Article Styles */
.guide-card-full {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    margin-bottom: 0;
}

.guide-card.expanded .guide-card-full {
    margin-bottom: 1.25rem;
}

.guide-card-full h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.5rem 0 0.75rem;
}

.guide-card-full h4:first-child {
    margin-top: 0.5rem;
}

.guide-card-full p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 0.75rem;
}

.guide-card-full ul {
    margin: 0.75rem 0 1rem 1.25rem;
    padding: 0;
}

.guide-card-full li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 0.5rem;
    position: relative;
}

.guide-card-full li::marker {
    color: #FCD34D;
}

.guide-card-full strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Button Style for guide-card-link */
button.guide-card-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.guide-card.expanded .guide-card-link svg {
    transform: rotate(180deg);
}

.guide-card.expanded .guide-card-link:hover svg {
    transform: rotate(180deg) translateX(-3px);
}

/* Card Illustrations */
.guide-card-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.guide-card-illustration svg {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.illustration-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.illustration-card svg {
    width: 100%;
    max-width: 180px;
    height: auto;
}

/* Category More Button */
.category-more {
    display: flex;
    justify-content: center;
    padding-top: 1.5rem;
}

.see-more-btn {
    padding: 0.875rem 1.75rem;
    background-color: transparent;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.see-more-btn:hover {
    background-color: #1a1a1a;
    color: #fff;
}

/* CTA Section */
.ratgeber-cta {
    padding: 5rem 2rem;
    background-color: #fff;
    text-align: center;
}

.ratgeber-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.ratgeber-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.ratgeber-cta p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.ratgeber-cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #FCD34D;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: all 0.2s ease;
}

.ratgeber-cta-btn:hover {
    background-color: #FBBF24;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .guide-grid-featured {
        grid-template-columns: 1fr;
    }
    
    .guide-card-illustration {
        display: none;
    }
}

@media (max-width: 768px) {
    .ratgeber-hero {
        padding: 3rem 1.5rem;
    }
    
    .ratgeber-hero-title {
        font-size: 2.5rem;
    }
    
    .ratgeber-toolbar-inner {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .search-container {
        width: 100%;
    }
    
    .featured-guide-inner {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }
    
    .featured-guide-image {
        flex: none;
        max-width: 250px;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-grid-illustrations {
        display: none;
    }
    
    .category-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .ratgeber-hero-title {
        font-size: 2rem;
    }
    
    .ratgeber-hero-subtitle {
        font-size: 1rem;
    }
    
    .guide-category {
        padding: 2.5rem 1.5rem;
    }
    
    .featured-guide {
        padding: 2rem 1.5rem;
    }
}

