
/* === 01_styles.css === */
/* =====================================================
   DRK Kyffhäuserkreisverband - Seniorenwohnpark
   Styles basierend auf dem neuen Layout-Design
   ===================================================== */

/* CSS Custom Properties (Design Tokens) */
: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);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Typography */
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;
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

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

a:hover {
    color: var(--drk-red-dark);
}

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

/* Section Styles */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.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;
}

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

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

/* Buttons */
.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;
    font-family: inherit;
}

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

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--drk-red);
}

.breadcrumb-separator {
    color: var(--gray-light);
}

.breadcrumb-current {
    color: var(--gray-dark);
    font-weight: 500;
}

/* Page Hero Section */
.page-hero {
    padding: 10rem 0 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;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

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

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

.page-hero-visual {
    position: relative;
    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);
    aspect-ratio: 4/3;
}

.page-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-image-container.placeholder .page-hero-image {
    display: none;
}

.page-hero-image-container.placeholder .image-placeholder,
.content-image.placeholder .image-placeholder,
.volunteer-image.placeholder .image-placeholder {
    display: flex;
}

.image-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, var(--drk-red) 0%, var(--drk-red-dark) 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    gap: 1rem;
    position: absolute;
    top: 0;
    left: 0;
}

.image-placeholder svg {
    width: 60px;
    height: 60px;
    opacity: 0.9;
}

.image-placeholder span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--white);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    animation: float 4s ease-in-out infinite;
}

.floating-card-1 {
    top: 10%;
    right: -30px;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 15%;
    left: -40px;
    animation-delay: 1s;
}

.floating-card h4 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.8rem;
    color: var(--gray-medium);
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.floating-card p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin: 0;
}

.floating-card p span {
    color: var(--drk-red);
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Stats Section */
.stats {
    background: var(--black);
    padding: 4rem 2rem;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number span {
    color: var(--drk-red);
}

.stat-label {
    color: var(--gray-medium);
    font-size: 0.95rem;
}

/* Content Section */
.content-section {
    padding: 8rem 2rem;
    background: var(--white);
}

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

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-grid-reverse .content-image {
    order: -1;
}

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

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

.content-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    aspect-ratio: 4/3;
}

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

.content-image.placeholder img {
    display: none;
}

/* Features Section */
.features-section {
    padding: 8rem 2rem;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--off-white);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--drk-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--transition-smooth);
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-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;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--drk-red);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--drk-red);
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    stroke: var(--white);
}

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

.feature-card p {
    color: var(--gray-medium);
    font-size: 0.95rem;
    margin: 0;
}

/* 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);
}

/* Map Section */
.map-section {
    padding: 8rem 2rem;
    background: var(--off-white);
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.map-container iframe {
    display: block;
}

/* Info Cards Section */
.info-cards-section {
    padding: 6rem 2rem;
    background: var(--white);
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background: var(--off-white);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s var(--transition-smooth);
}

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

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

.info-card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--drk-red);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.info-card p {
    color: var(--gray-dark);
    margin: 0.3rem 0;
    max-width: none;
}

.info-card a {
    color: var(--drk-red);
    font-weight: 600;
}

/* Volunteer Section */
.volunteer-section {
    padding: 8rem 2rem;
    background: var(--off-white);
}

.volunteer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.volunteer-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    aspect-ratio: 4/3;
}

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

.volunteer-image.placeholder img {
    display: none;
}

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

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

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

/* 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;
    }

    .floating-card {
        display: none;
    }

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

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

    .content-grid-reverse .content-image {
        order: 0;
    }

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

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

    .breadcrumb {
        justify-content: center;
    }
}

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

    .stats-container {
        grid-template-columns: 1fr 1fr;
    }

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

    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .content-section,
    .features-section,
    .map-section,
    .volunteer-section {
        padding: 5rem 1.5rem;
    }

    .cta {
        padding: 4rem 1.5rem;
    }

    .info-cards-section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 7rem 0 3rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 0.5rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

