/* Angepasste style.css für die PHP-Version - 100 Jahre FF Nettelrede */

/* ----- GRUNDLEGENDE EINSTELLUNGEN ----- */
:root {
    --primary-color: #e30613; /* Feuerwehr-Rot, aus deiner style.css übernommen */
    --secondary-color: #004a99; /* Dunkelblau, aus deiner style.css übernommen */
    --light-color: #f5f5f5;
    --dark-color: #333333;
    --white: #ffffff;
    --gray: #eeeeee;
    
    /* Animation-Variablen */
    --animation-slow: 0.5s;
    --animation-medium: 0.3s;
    --animation-fast: 0.2s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c00000;
}

/* ----- HEADER & NAVIGATION ----- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo-text {
    font-size: 1rem;
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

/* ----- HERO SECTION ----- */
.hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 70px; /* Header-Höhe berücksichtigen */
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero.festprogramm-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://ffw.nettelrede.info/zeltfestprogramm/assets/images/header.png');
    background-position: center 40%;
    height: 50vh;
}

/* ----- BUTTONS ----- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #c00000;
    transform: translateY(-3px);
}

.btn-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.2);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.3);
    background-color: #c00000;
    color: white;
}

/* ----- FESTPROGRAMM CONTAINER ----- */
.festprogramm-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.intro-text {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-text h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.intro-text p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* ----- COUNTDOWN BANNER ----- */
.countdown-banner {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    margin: 4rem 0;
    border-radius: 10px;
}

.countdown-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number,
#countdown-days,
#countdown-hours,
#countdown-minutes,
#countdown-seconds,
#count-days,
#count-hours,
#count-minutes,
#count-seconds {
    font-size: 2.5rem;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.countdown-label,
.count-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ----- DAY TABS ----- */
.days-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.day-tab {
    flex: 1;
    text-align: center;
    padding: 1rem 0.5rem;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-weight: 600;
}

.day-tab.active {
    background-color: var(--white);
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color);
}

.day-tab:hover:not(.active) {
    background-color: #e9e9e9;
}

.day-tab .date {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 0.3rem;
    color: #666;
}

.day-tab.active .date {
    color: var(--primary-color);
}

/* ----- PROGRAM DAYS ----- */
.program-day {
    display: none;
    margin-bottom: 4rem;
}

.program-day.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.no-events {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

/* ----- EVENT CARDS ----- */
.event-card {
    display: flex;
    margin-bottom: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.event-time {
    width: 120px;
    flex-shrink: 0;
    background-color: var(--secondary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
}

.event-time::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent transparent var(--secondary-color);
}

.event-time .time {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.event-content {
    flex: 1;
    padding: 1.5rem;
}

.event-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-description {
    color: #444;
}

.event-location {
    display: flex;
    align-items: center;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #666;
}

.event-location svg {
    width: 16px;
    height: 16px;
    margin-right: 0.4rem;
    fill: #666;
}

.event-highlight {
    border-left: 4px solid var(--primary-color);
}

.event-highlight .event-time {
    background-color: var(--primary-color);
}

.event-highlight .event-time::after {
    border-color: transparent transparent transparent var(--primary-color);
}

.event-highlight .event-title {
    color: var(--primary-color);
}

.invite-only-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    margin-left: 0.5rem;
    font-weight: 600;
    vertical-align: middle;
}

.event-access {
    margin-top: 1rem;
}

.btn-access {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-access:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ----- FESTIVAL HIGHLIGHTS ----- */
.festival-highlights {
    margin-top: 4rem;
    background-color: #f9f9f9;
    padding: 3rem 0;
    border-radius: 10px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.highlight-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.highlight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.highlight-card:hover .highlight-img img {
    transform: scale(1.05);
}

.highlight-content {
    padding: 1.5rem;
}

.highlight-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

/* ----- CTA CONTAINER ----- */
.cta-container {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* ----- EVENT REGISTRATION ----- */
.event-registration {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.event-details {
    padding-right: 2rem;
    border-right: 1px solid var(--gray);
}

.event-details h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.event-details p {
    margin-bottom: 0.5rem;
}

.event-details .event-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-color);
}

.registration-form {
    padding-left: 1rem;
}

.registration-form h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* ----- FORMS ----- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-submit {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #c00000;
    transform: translateY(-2px);
}

/* ----- LOGIN CONTAINER ----- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem;
}

.login-box {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.btn-login {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-login:hover {
    background-color: #c00000;
}

/* ----- MESSAGES ----- */
.success-message, .error-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.success-message {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.error-message {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* ----- FOOTER ----- */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 3rem 5%;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column p {
    color: #ccc;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    list-style: none;
}

.social-links li {
    margin-right: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    color: var(--white);
    text-align: center;
    line-height: 40px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
    text-align: center;
    color: #ccc;
}

/* ----- ADMIN-SPEZIFISCHE STILE ----- */
.admin-box {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.admin-box h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray);
}

.admin-table th {
    background-color: var(--light-color);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-public {
    background-color: #2ecc71;
    color: white;
}

.badge-restricted {
    background-color: #e74c3c;
    color: white;
}

.badge-available {
    background-color: #2ecc71;
    color: white;
}

.badge-used {
    background-color: #7f8c8d;
    color: white;
}

/* ----- RESPONSIVE DESIGN ----- */
@media (max-width: 1024px) {
    .event-registration {
        grid-template-columns: 1fr;
    }
    
    .event-details {
        padding-right: 0;
        border-right: none;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--gray);
    }
    
    .registration-form {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.8rem 5%;
    }
    
    .logo img {
        height: 40px;
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
    }
    
    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.5s ease-in-out;
    }
    
    nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-time {
        width: 100%;
        padding: 0.8rem;
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .event-time::after {
        display: none;
    }
    
    .event-time .time {
        font-size: 1.2rem;
        margin-bottom: 0;
    }
    
    .day-tab {
        padding: 0.8rem 0.3rem;
        font-size: 0.9rem;
    }
    
    .day-tab .date {
        font-size: 0.8rem;
    }
    
    .countdown-timer {
        gap: 0.8rem;
    }
    
    .countdown-number,
    #countdown-days,
    #countdown-hours,
    #countdown-minutes,
    #countdown-seconds,
    #count-days,
    #count-hours,
    #count-minutes,
    #count-seconds {
        font-size: 1.8rem;
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .intro-text h2 {
        font-size: 1.5rem;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .countdown-number,
    #countdown-days,
    #countdown-hours,
    #countdown-minutes,
    #countdown-seconds,
    #count-days,
    #count-hours,
    #count-minutes,
    #count-seconds {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .countdown-label,
    .count-label {
        font-size: 0.8rem;
    }
    
    .btn-cta {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}