/**
 * House Rules Page Styles
 *
 * @package Napule_Restaurant
 * @since 1.0.0
 */

/* House Rules Page */
.house-rules-page {
    background-color: #f8f9fa;
    padding-top: 0;
    margin-top: 0;
}

/* Hero Section */
.house-rules-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding-top: calc(120px + 3rem); /* Top-Bar + Header + zusätzlicher Abstand */
    padding-bottom: 4rem;
    text-align: center;
    margin-top: 0;
    display: flex;
    align-items: center;
    min-height: 400px;
    position: relative;
    z-index: 1;
}

.house-rules-hero .container {
    width: 100%;
}

.house-rules-hero .hero-subtitle {
    font-family: 'Georgia', serif;
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-accent);
    margin: 0 0 0.75rem;
    font-weight: 300;
}

.house-rules-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: white;
    line-height: 1.2;
}

.house-rules-hero .hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    max-width: 700px;
    line-height: 1.6;
}

/* Content Section */
.house-rules-content {
    padding: 6rem 0;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Rule Cards */
.rule-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.rule-card:hover::before {
    opacity: 1;
}

.rule-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 2px solid var(--color-secondary);
}

.rule-card.featured::before {
    opacity: 1;
    width: 6px;
}

.rule-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.15;
    line-height: 1;
}

.rule-italian {
    font-family: 'Georgia', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-primary);
    margin: 0 0 1rem;
    line-height: 1.6;
    font-weight: 600;
    padding-right: 4rem;
}

.rule-card.featured .rule-italian {
    font-size: 1.5rem;
    text-align: center;
    padding-right: 0;
}

.rule-german {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
}

.rule-card.featured .rule-german {
    text-align: center;
    font-size: 1.25rem;
}

/* Closing Section */
.house-rules-closing {
    padding: 5rem 0;
    background-color: #ffffff;
    margin-bottom: 0;
}

.closing-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.closing-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 1.5rem;
    line-height: 1.2;
}

.closing-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #64748b;
    margin: 0 0 2rem;
}

.closing-content .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 968px) {
    .house-rules-hero {
        padding-top: calc(115px + 2.5rem); /* Angepasst für Tablet */
        min-height: 350px;
    }
    
    .house-rules-hero h1 {
        font-size: 2.25rem;
    }

    .house-rules-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .house-rules-hero .hero-description {
        font-size: 1rem;
    }

    .rules-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .rule-card.featured {
        grid-column: 1;
    }

    .rule-number {
        font-size: 3rem;
        top: 1rem;
        right: 1rem;
    }

    .rule-italian {
        font-size: 1.125rem;
        padding-right: 3rem;
    }

    .rule-card.featured .rule-italian {
        font-size: 1.25rem;
    }

    .closing-content h2 {
        font-size: 2rem;
    }
    
    .closing-content p {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .house-rules-hero {
        padding-top: calc(110px + 2rem); /* Top-Bar (30px) + Header (~80px) + Abstand auf Mobile */
        padding-bottom: 3rem;
        min-height: 300px;
    }

    .house-rules-hero h1 {
        font-size: 1.875rem;
    }

    .house-rules-hero .hero-subtitle {
        font-size: 0.95rem;
    }

    .house-rules-hero .hero-description {
        font-size: 0.95rem;
    }

    .house-rules-content {
        padding: 4rem 0;
    }

    .rule-card {
        padding: 2rem 1.5rem;
    }

    .rule-number {
        font-size: 2.5rem;
        opacity: 0.1;
    }

    .rule-italian {
        font-size: 1rem;
        padding-right: 2.5rem;
    }

    .rule-german {
        font-size: 1rem;
    }

    .rule-card.featured .rule-italian {
        font-size: 1.125rem;
    }

    .rule-card.featured .rule-german {
        font-size: 1.125rem;
    }

    .house-rules-closing {
        padding: 3rem 0;
    }
    
    .closing-content {
        padding: 0 var(--spacing-md);
    }

    .closing-content h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .closing-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .closing-content .btn {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
}
