
/* === 01_styles.css === */
/* ============================================
   DRK Kyffhäuserkreisverband - Lehrgänge Info
   Styles für Tab-Navigation und Akkordeons
   ============================================ */

/* CSS Variables (aus dem Haupt-Layout) */
:root {
    --drk-red: #e60005;
    --drk-red-dark: #b80004;
    --drk-red-light: #ff3338;
    --white: #ffffff;
    --off-white: #f8f7f5;
    --gray-light: #e8e6e3;
    --gray-medium: #9a9590;
    --gray-dark: #4a4744;
    --black: #1a1918;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-strong: 0 16px 60px rgba(0,0,0,0.18);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray-dark);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    color: var(--black);
    line-height: 1.2;
}

/* Hero-Überschrift bewusst auf max. 36px begrenzt (nicht 4rem/4.5rem).
   Bis zum libs.js-Rollout (05.08.2026) lud die Seite ungewollt die Framework-Regel
   `body h1 { clamp(2rem, 4vw, 36px) }` aus libs.css mit; deren höhere Spezifität
   (0-0-2) überschrieb die frühere DRK-Regel und ergab faktisch diese 36px.
   Andreas hat den kleineren Wert im Screenshot-Vergleich als den besseren bestätigt
   ("die 36px vorher sind besser"). Seit libs.css weg ist, steht der Wert hier fest
   im eigenen Stylesheet — NICHT zurück auf 4rem/4.5rem "korrigieren". */
h1 { font-size: clamp(2rem, 4vw, 36px); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

p { max-width: 65ch; }

a { 
    color: var(--drk-red); 
    text-decoration: none; 
    transition: color 0.3s ease; 
}
a:hover { color: var(--drk-red-dark); }

/* ============================================
   Page Hero / Header Section
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 50%, var(--gray-light) 100%);
    padding: 10rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(230, 0, 5, 0.03) 50%, transparent 70%);
    transform: rotate(-12deg);
    pointer-events: none;
}

.page-hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-hero .section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--drk-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.page-hero h1 {
    margin-bottom: 1.5rem;
}

.page-hero p {
    color: var(--gray-medium);
    font-size: 1.2rem;
    margin: 0 auto;
}

/* ============================================
   Tab Navigation
   ============================================ */
.tab-section {
    padding: 4rem 2rem;
    background: var(--white);
}

.tab-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 1rem;
    background: var(--off-white);
    border-radius: 16px;
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    min-width: 160px;
    box-shadow: var(--shadow-soft);
}

.tab-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--drk-red-light);
}

.tab-button.active {
    background: var(--drk-red);
    color: var(--white);
    border-color: var(--drk-red);
    box-shadow: 0 8px 25px rgba(230, 0, 5, 0.35);
}

.tab-button .tab-icon {
    width: 50px;
    height: 50px;
    background: rgba(230, 0, 5, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tab-button.active .tab-icon {
    background: rgba(255, 255, 255, 0.2);
}

.tab-button .tab-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--drk-red);
    transition: fill 0.3s ease;
}

.tab-button.active .tab-icon svg {
    fill: var(--white);
}

.tab-button .tab-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    color: var(--gray-dark);
    transition: color 0.3s ease;
}

.tab-button.active .tab-label {
    color: var(--white);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Accordion Styles
   ============================================ */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--off-white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s var(--transition-smooth);
}

.accordion-item:hover {
    box-shadow: var(--shadow-soft);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: var(--off-white);
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: var(--gray-light);
}

.accordion-item.active .accordion-header {
    background: var(--drk-red);
    color: var(--white);
}

.accordion-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    transition: color 0.3s ease;
}

.accordion-item.active .accordion-title {
    color: var(--white);
}

.accordion-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background: var(--drk-red);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.accordion-icon::before {
    width: 14px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.accordion-icon::after {
    width: 2px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.accordion-item.active .accordion-icon::before,
.accordion-item.active .accordion-icon::after {
    background: var(--white);
}

.accordion-item.active .accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--transition-smooth);
}

.accordion-item.active .accordion-body {
    max-height: 1000px;
}

.accordion-content {
    padding: 0 2rem 2rem;
    color: var(--gray-dark);
}

.accordion-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

.accordion-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.accordion-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.accordion-content a {
    color: var(--drk-red);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(230, 0, 5, 0.3);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.accordion-content a:hover {
    color: var(--drk-red-dark);
    text-decoration-color: var(--drk-red-dark);
}

/* ============================================
   CTA Button
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--drk-red);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(230, 0, 5, 0.3);
}

.btn-primary:hover {
    background: var(--drk-red-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(230, 0, 5, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--gray-light);
}

.btn-secondary:hover {
    border-color: var(--drk-red);
    color: var(--drk-red);
    transform: translateY(-3px);
}

/* ============================================
   CTA Section (Buchung)
   ============================================ */
.cta-booking {
    margin-top: 3rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--drk-red) 0%, var(--drk-red-dark) 100%);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-booking::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-booking-content {
    position: relative;
    z-index: 1;
}

.cta-booking h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.cta-booking p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0 auto 1.5rem;
    max-width: 500px;
}

.cta-booking .btn-primary {
    background: var(--white);
    color: var(--drk-red);
}

.cta-booking .btn-primary:hover {
    background: var(--off-white);
    color: var(--drk-red);
}

/* ============================================
   News Section (nach Tabs)
   ============================================ */
.news-section {
    padding: 6rem 2rem;
    background: var(--off-white);
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-header .section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--drk-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

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

.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.news-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray-medium) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--drk-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-content h4 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.news-card-content p {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* ============================================
   Ehrenamt Section
   ============================================ */
.volunteer-section {
    padding: 6rem 2rem;
    background: var(--white);
}

.volunteer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.volunteer-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.volunteer-image img {
    width: 100%;
    height: auto;
    display: block;
}

.volunteer-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--drk-red) 0%, var(--drk-red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.volunteer-image-placeholder svg {
    width: 80px;
    height: 80px;
    fill: rgba(255, 255, 255, 0.3);
}

.volunteer-content h2 {
    margin-bottom: 1.5rem;
}

.volunteer-content p {
    color: var(--gray-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ============================================
   Scroll Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .volunteer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .volunteer-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .volunteer-content {
        text-align: center;
    }
    
    .volunteer-content p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 8rem 1.5rem 3rem;
    }
    
    .tab-section {
        padding: 3rem 1rem;
    }
    
    .tab-navigation {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .tab-button {
        padding: 1rem 1.25rem;
        min-width: 140px;
        flex: 1 1 calc(50% - 0.75rem);
    }
    
    .tab-button .tab-icon {
        width: 40px;
        height: 40px;
    }
    
    .tab-button .tab-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .tab-button .tab-label {
        font-size: 0.85rem;
    }
    
    .accordion-header {
        padding: 1.25rem 1.5rem;
    }
    
    .accordion-title {
        font-size: 1rem;
    }
    
    .accordion-content {
        padding: 0 1.5rem 1.5rem;
    }
    
    .cta-booking {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }
    
    .news-section,
    .volunteer-section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .tab-button {
        flex: 1 1 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .tab-button .tab-label {
        text-align: left;
    }
}

