
/* === 01_styles.css === */
/* ========================================
   DRK Kyffhäuser - Seepferdchen Seite
   Basiert auf dem neuen Layout Design
   ======================================== */

: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); }

/* ========================================
   Section Label
   ======================================== */
.section-label {
    display: inline-block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--drk-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.text-red { color: var(--drk-red); }

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: 'Source Sans 3', sans-serif;
    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);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   Page Hero Section
   ======================================== */
.page-hero {
    padding: 10rem 2rem 6rem;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 50%, var(--gray-light) 100%);
    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: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.page-hero-content {
    animation: fadeInUp 1s var(--transition-smooth) forwards;
}

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

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

.page-hero-text {
    font-size: 1.2rem;
    color: var(--gray-medium);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.page-hero-visual {
    animation: fadeInUp 1s 0.3s var(--transition-smooth) forwards;
    opacity: 0;
}

.page-hero-image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.page-hero-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.page-hero-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--drk-red) 0%, var(--drk-red-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    gap: 1rem;
}

.page-hero-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.9;
}

.page-hero-placeholder span {
    font-size: 1.2rem;
    font-weight: 500;
}

/* ========================================
   Content Sections
   ======================================== */
.content-section {
    padding: 6rem 2rem;
}

.content-section.bg-light {
    background: var(--off-white);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 { margin-bottom: 1rem; }

.section-header p {
    color: var(--gray-medium);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Intro Grid
   ======================================== */
.intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.intro-content p {
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
}

.intro-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
}

/* ========================================
   Elements Grid (Wassergewöhnung/Wasserbewältigung)
   ======================================== */
.elements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.element-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s var(--transition-smooth);
}

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

.element-icon {
    width: 60px;
    height: 60px;
    background: rgba(230, 0, 5, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.element-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--drk-red);
}

.element-card h3 {
    margin-bottom: 1rem;
}

.element-list {
    list-style: none;
    padding: 0;
}

.element-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-dark);
}

.element-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 8px;
    height: 8px;
    background: var(--drk-red);
    border-radius: 50%;
}

/* ========================================
   Image Section
   ======================================== */
.image-section {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

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

/* ========================================
   Schedule Section
   ======================================== */
.schedule-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Grid-Elemente haben von Haus aus `min-width: auto` und können deshalb nicht
   schmaler werden als der min-content ihres Inhalts. Die Terminstabelle fordert
   397px; dadurch blieb dieses Element auf dem Handy 397px breit statt 342px und
   schob das GANZE Dokument um 31px seitlich weg (gemessen 09.08.2026:
   documentElement.scrollWidth 421 bei clientWidth 390). `min-width: 0` gibt die
   Schrumpfsperre frei — dann greift das darunter bereits vorhandene
   `.schedule-table-container { overflow-x: auto; }` und die Tabelle scrollt in
   ihrem eigenen Kasten, so wie ursprünglich gedacht. */
.schedule-content {
    min-width: 0;
}

.schedule-content h2 {
    margin-bottom: 2rem;
}

.schedule-table-container {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.schedule-table th,
.schedule-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.schedule-table th {
    background: var(--black);
    color: var(--white);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schedule-table td {
    font-size: 0.95rem;
    color: var(--gray-dark);
}

.schedule-table tbody tr:hover {
    background: var(--off-white);
}

.schedule-table .planning-row td {
    text-align: center;
    font-style: italic;
    color: var(--drk-red);
    font-weight: 600;
}

/* ========================================
   Checklist
   ======================================== */
.checklist-content {
    background: var(--off-white);
    border-radius: 16px;
    padding: 2.5rem;
}

.checklist-content h3 {
    margin-bottom: 1.5rem;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.checklist li:last-child {
    border-bottom: none;
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.check-icon.warning {
    background: rgba(230, 0, 5, 0.1);
    color: var(--drk-red);
}

/* ========================================
   Info Grid
   ======================================== */
.info-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.info-content p {
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
}

.info-content .btn {
    margin-top: 1rem;
}

.info-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
}

/* ========================================
   Registration Section
   ======================================== */
.registration-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.registration-content h2 {
    margin-bottom: 2rem;
}

.registration-steps {
    margin-bottom: 2rem;
}

.registration-step {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.registration-step:last-child {
    border-bottom: none;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--drk-red);
    color: var(--white);
    border-radius: 50%;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.registration-step p {
    margin: 0;
    color: var(--gray-dark);
}

.registration-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
}

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

.contact-box {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-medium);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-box-icon {
    width: 70px;
    height: 70px;
    background: rgba(230, 0, 5, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-box-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--drk-red);
}

.contact-box h3 {
    margin-bottom: 2rem;
}

.contact-box-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: left;
}

.contact-box-item h4 {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 0.5rem;
}

.contact-box-item p {
    font-size: 0.95rem;
    color: var(--gray-dark);
}

.contact-box-item a {
    color: var(--drk-red);
    font-weight: 600;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--drk-red) 0%, var(--drk-red-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta::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-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta p {
    color: rgba(255,255,255,0.85);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta .btn-primary:hover {
    background: var(--off-white);
    color: var(--drk-red);
    transform: translateY(-3px);
}

/* ========================================
   Scroll Reveal Animation
   ======================================== */
.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) {
    .page-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .page-hero-content { order: 1; }
    .page-hero-visual { order: 2; max-width: 500px; margin: 0 auto; }
    .page-hero-text { margin: 0 auto 2.5rem; }
    .hero-buttons { justify-content: center; }

    .intro-grid,
    .info-grid,
    .registration-grid,
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .contact-box-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 8rem 1.5rem 4rem;
    }

    .content-section {
        padding: 4rem 1.5rem;
    }

    .elements-grid {
        grid-template-columns: 1fr;
    }

    .contact-box-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .checklist-content {
        padding: 1.5rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .registration-step {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

