/* --- style.css --- */
:root {
    --bg-color: #fdf5e6;
    --text-color: #333;
    --primary-color: #2c5e63; /* Teal */
    --accent-color: #e67e22; /* Orange */
    --highlight-bg: #fff8e1; /* Helles Gelb */
    --light-teal: #e0f2f1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('hintergrund.jpg'); 
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-color: var(--bg-color);
}

/* Navigation */
nav {
    background-color: rgba(44, 94, 99, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

/* Container */
.container {
    max-width: 900px;
    margin: 40px auto;
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 5px solid #eebb4d;
}

section {
    padding: 40px;
    border-bottom: 1px solid #eee;
}

section:last-child {
    border-bottom: none;
}

/* Typografie */
h1 { color: var(--primary-color); text-align: center; font-size: 2.2rem; margin-bottom: 0.5rem; }
h2 { color: var(--accent-color); font-size: 1.8rem; margin-top: 0; border-left: 5px solid var(--primary-color); padding-left: 15px; }
h3 { color: var(--primary-color); margin-top: 25px; }

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.highlight-item {
    background: var(--light-teal);
    padding: 15px;
    border-radius: 10px;
}

/* Ort Section */
.venue-box {
    background-color: #fff3e0;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ffe0b2;
}

/* Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
}
th, td { border: 1px solid #ddd; padding: 12px; text-align: center; }
th { background-color: var(--primary-color); color: white; }
tr:nth-child(even) { background-color: #f9f9f9; }

/* Formular */
form {
    display: grid;
    gap: 15px;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
}
input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    box-sizing: border-box; /* Wichtig für Padding */
}
button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
button:hover { background-color: #d35400; }

.flash-message {
    padding: 15px;
    margin: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}
.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* --- Mobile Anpassung (Swipe-Menü) --- */
@media (max-width: 600px) {
    nav {
        /* Macht das Menü horizontal scrollbar */
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch; /* Flüssiges Scrollen auf iPhones */
        
        display: flex;
        align-items: center;
        padding: 0;
        height: 55px; /* Feste, schmale Höhe */
        background-color: rgba(44, 94, 99, 1); /* Volle Deckkraft auf Mobile für Lesbarkeit */
    }

    nav a {
        display: inline-block;
        padding: 0 20px;     /* Platz links und rechts zum Tippen */
        line-height: 55px;   /* Text vertikal zentrieren */
        border-bottom: none; /* Keine Linien mehr */
        font-size: 1rem;
        flex-shrink: 0;      /* Verhindert, dass Links gequetscht werden */
    }

    /* Überschriften etwas kleiner auf dem Handy */
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    
    /* Abstände anpassen */
    section { padding: 30px 20px; }
    
    /* Tabelle scrollbar machen, damit sie das Layout nicht sprengt */
    table { 
        display: block; 
        overflow-x: auto; 
        white-space: nowrap; 
    }
}