/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root Variables - Brand Colors */
:root {
    --primary-red: #C8102E;
    --white: #FFFFFF;
    --black: #000000;
    --light-gray: #F5F5F5;
    --medium-gray: #666666;
    --overlay-dark: rgba(0, 0, 0, 0.6);
    --overlay-light: rgba(200, 16, 46, 0.65);
}

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

/* Links */
li a,
p a {
    color: var(--primary-red);
    text-decoration: none;
}

li a:hover ,
p a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

li a:visited,
p a:visited {
    color: var(--primary-red);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Accessibility - Screen Reader Only but Focusable */
.sr-only-focusable {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    display: block;
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.navbar-toggler span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-red);
    transition: 0.3s;
}

.navbar-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    list-style: none;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--primary-red);
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-link:hover {
    background-color: var(--light-gray);
}

/* Hero Section */
.hero-section {
    height: 600px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #8B0A1F 100%);
    background-size: cover;
    background-position: top center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-light);
    display: flex;
    align-items: center;
    animation: fadeInOverlay 2s ease-in-out;
    transition: background 0.3s ease;
}

.hero-section:hover .hero-overlay {
    background: rgba(200, 16, 46, 0.85);
}

@keyframes fadeInOverlay {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero-content {
    text-align: center;
    color: var(--white);
    animation: fadeInContent 2.5s ease-in-out;
}

@keyframes fadeInContent {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    40% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

/* Mini Hero Section (compact version) */
.mini-hero-section {
    height: 350px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #8B0A1F 100%);
    position: relative;
    display: flex;
    align-items: center;
}

/* Background image for Familien page */
.bg-hausbesuch-familien {
    background-image: url('https://res.cloudinary.com/dftarj9de/image/upload/g_face,c_fill,h_350,w_768/v1767272292/Familien_vn6ctw.jpg');
    background-size: cover;
    background-position: top;
}

@media (min-width: 768px) {
    .bg-hausbesuch-familien {
        background-image: url('https://res.cloudinary.com/dftarj9de/image/upload/g_face,c_fill,h_350,w_1024/v1767272292/Familien_vn6ctw.jpg');
    }
}

@media (min-width: 1024px) {
    .bg-hausbesuch-familien {
    background-image: url('https://res.cloudinary.com/dftarj9de/image/upload/g_face,c_fill,h_350,w_1220/v1767272292/Familien_vn6ctw.jpg');
    }
}

@media (min-width: 1200px) {
    .bg-hausbesuch-familien {
    background-image: url('https://res.cloudinary.com/dftarj9de/image/upload/g_face,c_fill,h_350,w_1920/v1767272292/Familien_vn6ctw.jpg');
    }
}


.bg-hero {
    background-image: url('https://res.cloudinary.com/dftarj9de/image/upload/g_face,c_fill,h_500,w_768/v1767272259/Samichlaus_5-443d2a17_i6v1wb.jpg');
}

@media (min-width: 768px) {
    .bg-hero {
        background-image: url('https://res.cloudinary.com/dftarj9de/image/upload/g_face,c_fill,h_600,w_1024/v1767272259/Samichlaus_5-443d2a17_i6v1wb.jpg');
    }
}

@media (min-width: 1024px) {
    .bg-hero {
        background-image: url('https://res.cloudinary.com/dftarj9de/image/upload/g_face,c_fill,h_600,w_1220/v1767272259/Samichlaus_5-443d2a17_i6v1wb.jpg');
    }
}

@media (min-width: 1200px) {
    .bg-hero {
        background-image: url('https://res.cloudinary.com/dftarj9de/image/upload/g_face,c_fill,h_600,w_1920/v1767272259/Samichlaus_5-443d2a17_i6v1wb.jpg');
    }
}

.mini-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-light);
    display: flex;
    align-items: end;
}

.mini-hero-section .hero-content {
    text-align: left;
    color: var(--white);
    width: 100%;
    margin-bottom: 1.5rem;
}

.mini-hero-section .hero-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.mini-hero-section .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mini-hero-section .hero-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Hero (smaller hero for subpages) */
.page-hero {
    height: 300px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #8B0A1F 100%);
    background-image: url('https://picsum.photos/1920/300?random=12');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.page-hero .hero-overlay {
    background: var(--overlay-light);
}

.page-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary {
    background-color: rgba(200, 16, 46, 0.1);
    border-color: var(--white);
    color: var(--white);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-red);
}

/* Info Section */
.info-section {
    padding: 4rem 0;
    background-color: var(--white);
}

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

.info-card {
    background-color: rgba(245, 245, 245, 0.8);
    backdrop-filter: blur(10px);
    padding: 0;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.info-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.75) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    text-align: left;
}

.info-card:hover .info-card-content {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.2);
    border-color: var(--primary-red);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: none;
}

.info-card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-card p {
    color: var(--black);
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.card-link:hover {
    opacity: 0.7;
}

/* Info Card Variant for Hausbesuch page */
.info-card-hausbesuch {
    background-color: rgba(245, 245, 245, 0.8);
    backdrop-filter: blur(10px);
    padding: 0;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    position: relative;
    background-size: cover;
    background-position: center;
}

.info-card-hausbesuch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.info-card-content-hausbesuch {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.75) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.info-card-content-hausbesuch h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-card-content-hausbesuch p {
    color: var(--black);
    margin-bottom: 1rem;
}

.info-card-content-hausbesuch .btn {
    margin-top: auto;
}

.info-card-hausbesuch:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.2);
    border-color: var(--primary-red);
}

.info-card-hausbesuch:hover .info-card-content-hausbesuch {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.news-header .section-title {
    margin-bottom: 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-red);
}

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

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    min-height: 120px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.9) 100%);
    color: var(--white);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--white);
    line-height: 1.4;
}

.gallery-date {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    color: var(--white);
}

/* Content Section */
.content-section {
    padding: 4rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.content-text h2 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content-text h3 {
    color: var(--primary-red);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-text h4 {
    color: var(--black);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.content-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--medium-gray);
}

.feature-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.75rem;
    color: var(--medium-gray);
    line-height: 1.8;
}

/* Highlight Box */
.highlight-box {
    background-color: rgba(245, 245, 245, 0.8);
    border-left: 4px solid var(--primary-red);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.highlight-box h4 {
    color: var(--primary-red);
    margin-top: 0;
}

.highlight-box ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.highlight-box li {
    margin-bottom: 0.5rem;
}

/* Price Box */
.price-box {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.price-item:last-child {
    border-bottom: none;
}

.price-label {
    font-weight: 600;
    color: var(--black);
}

.price-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-red);
}

.price-note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--medium-gray);
    margin-top: 1rem;
}

/* Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-anchor-links{
        padding: 1.5rem;
    background-color: rgba(245, 245, 245, 0.8);
}

.sidebar-anchor-links ul {
    list-style: none;
}

.sidebar-card {
    background-color: rgba(245, 245, 245, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-card h4 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card li {
    padding: 0.5rem 0;
    color: var(--medium-gray);
}

.sidebar-card img {
    width: 100%;
    border-radius: 10px;
}

/* Forms */
.booking-form,
.contact-box {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.booking-form h4,
.contact-box h4 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--black);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-group textarea {
    resize: vertical;
}

/* Symbol Grid */
.symbol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.symbol-item {
    background-color: rgba(245, 245, 245, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s;
}

.symbol-item:hover {
    transform: translateY(-5px);
}

.symbol-item h4 {
    color: var(--primary-red);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.symbol-item p {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

/* Stats */
.stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    background-color: rgba(200, 16, 46, 0.05);
    border-radius: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-red);
}

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

/* Footer */
footer {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-note {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-red);
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 15px;
}

.form-group-inline {
    flex: 1;
}

.form-group-plz {
    flex: 0 0 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-toggler {
        display: flex;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: 1rem;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.1);
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group-plz {
        flex: 1;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-link {
        color: var(--primary-red);
        padding-left: 2rem;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .news-header .section-title {
        text-align: left;
        font-size: 2rem;
    }

    .news-button {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}
