/* Moderne Feuerwehr-Farbpalette */
:root {
    --primary-red: #D62828;       /* Kräftiges Feuerwehrrot */
    --secondary-red: #F94144;     /* Helleres Rot für Akzente */
    --dark-blue: #003049;         /* Dunkles Blau für Text und Hintergründe */
    --gold: #F4B942;             /* Gold für Akzente */
    --light-gray: #F8F9FA;       /* Helles Grau für Hintergründe */
    --white: #FFFFFF;
    --gradient-red: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    --heading-font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark-blue);
    background-color: var(--light-gray);
}

/* Basis-Bildregeln */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Header & Navigation */
header {
    width: 100%;
    background: var(--white);
    padding: 1rem 0;
}

.logo-container {
    text-align: center;
    margin-bottom: 1rem;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

nav {
    width: 100%;
    background: var(--white);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover,
nav a.active {
    background-color: var(--light-gray);
    color: var(--primary-red);
}

@media (max-width: 768px) {
    .main-logo {
        max-width: 150px;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .logo-container {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .main-logo {
        max-width: 150px;
        margin: 0 auto;
    }
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    padding: 8rem 2rem;
    background: linear-gradient(rgba(0, 48, 73, 0.8), rgba(214, 40, 40, 0.8)), url('images/feuerwehr-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.event-date {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.event-date i {
    color: var(--gold);
    margin-right: 0.8rem;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--gradient-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(214, 40, 40, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(214, 40, 40, 0.4);
}

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

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 0 1rem;
}

.info-card {
    text-align: center;
    padding: 2.5rem;
    background-color: var(--light-gray);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-red);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.info-card h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Registration Section */
.registration-section {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

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

.registration-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.registration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.registration-card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.registration-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.registration-card p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.registration-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background: var(--gradient-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(214, 40, 40, 0.3);
}

.registration-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(214, 40, 40, 0.4);
}

/* Rules Section */
.rules-section {
    padding: 6rem 0;
    background-color: var(--white);
}

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

.rule-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.rule-card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.rule-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.rule-card p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Important Notice Section */
.important-notice {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

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

.notice-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.notice-card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.notice-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.notice-card p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Bilder und Container */
.image-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.route-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Übersichtskarte */
.route-map {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.full-width-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: block;
}

/* Timeline with Images */
.timeline {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.timeline-item.with-image {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.timeline-item .event {
    margin-bottom: 2rem;
}

.timeline-item .event p {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--dark-blue);
    text-align: left;
}

@media (max-width: 1100px) {
    .timeline {
        max-width: 800px;
    }
    
    .image-container {
        max-width: 700px;
    }
}

@media (max-width: 900px) {
    .timeline {
        padding: 0 1.5rem;
        gap: 2rem;
    }

    .timeline-item.with-image {
        padding: 1.5rem;
    }

    .timeline-item .event {
        margin-bottom: 1.5rem;
    }

    .timeline-item .event p {
        font-size: 1.2rem;
    }

    .image-container {
        max-width: 100%;
    }

    .route-map {
        padding: 0 1.5rem;
    }
}

@media (max-width: 600px) {
    .timeline {
        padding: 0 1rem;
    }

    .timeline-item.with-image {
        padding: 1.25rem;
    }

    .timeline-item .event p {
        font-size: 1.1rem;
    }

    .timeline-item .event {
        margin-bottom: 1rem;
    }

    .route-map {
        padding: 0 1rem;
    }
}

/* Timeline */
.program-section {
    padding: 6rem 0;
    background-color: var(--light-gray);
    position: relative;
}

.program-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--dark-blue);
    font-size: 2.5rem;
    font-weight: 700;
}

.timeline {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-red);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.time {
    font-weight: bold;
    min-width: 120px;
    color: var(--primary-red);
    font-size: 1.2rem;
}

/* Überschriften */
h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--dark-blue);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
    margin: 3rem 0 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary-red);
}

/* Spezifische Überschriften */
.route-overview h2,
.route-section h2 {
    margin-top: 0;
    margin-bottom: 2.5rem;
    color: var(--dark-blue);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    h2 {
        font-size: 1.75rem;
        margin: 2rem 0 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
        margin: 1.5rem 0 1rem;
    }

    h2:after {
        width: 60px;
        height: 2px;
    }
}

/* Social Links */
.social-links {
    padding: 6rem 2rem;
    text-align: center;
    background-color: var(--white);
}

.social-links h2 {
    margin-bottom: 3rem;
    color: var(--dark-blue);
    font-size: 2.5rem;
    font-weight: 700;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.social-button {
    display: flex;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background-color: var(--light-gray);
    border-radius: 15px;
    text-decoration: none;
    color: var(--dark-blue);
    transition: all 0.3s ease;
    min-width: 250px;
}

.social-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: var(--gradient-red);
    color: var(--white);
}

.social-button i {
    font-size: 1.8rem;
    margin-right: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

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

.map-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.map-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Directions Section */
.directions-section {
    padding: 4rem 0;
    background: var(--white);
}

.directions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.direction-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.direction-image {
    height: 200px;
    overflow: hidden;
}

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

.direction-text {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.direction-text i {
    font-size: 1.5rem;
    color: var(--primary-red);
    flex-shrink: 0;
}

.direction-text p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .timeline {
        max-width: 400px;
    }

    .image-container {
        max-width: 100%;
    }

    .route-map,
    .full-width-image {
        max-width: 100%;
    }

    .timeline-item.with-image {
        padding: 1rem;
        max-width: 100%;
    }

    .image-container,
    .route-image,
    .route-map,
    .full-width-image {
        max-width: 100%;
    }

    .route-map,
    .full-width-image {
        max-width: 100%;
    }

    .timeline-item.with-image .event p {
        font-size: 0.85rem;
    }

    .route-image-wrapper {
        width: 160px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .direction-card {
        grid-template-columns: 1fr;
    }

    .direction-image {
        height: 180px;
    }

    .direction-text {
        padding: 1rem;
    }

    .direction-text p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .timeline-item.with-image {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .timeline-item .time {
        width: 35px;
        height: 35px;
        margin-bottom: 0.5rem;
    }

    .timeline-item .event p {
        font-size: 1rem;
    }

    .image-container {
        max-width: 100%;
    }

    .route-map {
        padding: 0 0.5rem;
    }
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 4rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 0 20px;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Copyright Notice */
.copyright-notice {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.copyright-notice a {
    color: #666;
    text-decoration: none;
}

.copyright-notice a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .event-date {
        font-size: 1.4rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav a {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .time {
        margin-bottom: 1rem;
    }
    
    .social-button {
        width: 100%;
    }
}

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card, .timeline-item, .contact-item {
    animation: fadeIn 0.6s ease-out forwards;
}