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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fef9f0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 2rem 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- Header ---------- */
header {
    background-image: url('header-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
}

header .container {
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
}

.header-untertitel {
    font-size: 0.95rem;
    margin-top: 0.3rem;
    opacity: 0.9;
}

header nav {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 2px solid transparent;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.2);
}

.nav-link-highlight {
    background-color: white;
    color: #f39c12;
    font-weight: bold;
}

.nav-link-highlight:hover {
    background-color: #fef9ee;
}

.nav-link-nachrichten {
    background-color: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    font-weight: bold;
}

.nav-link-nachrichten:hover {
    background-color: white;
    color: #f39c12;
}

/* ---------- Hamburger Menü ---------- */
#menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    background: none;
    border: 2px solid white;
    color: white;
    font-size: 1.5rem;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
}

#nav-menu {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- Suchleiste ---------- */
.suchleiste {
    margin: 1.5rem 0;
    text-align: center;
}

.suchleiste form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suchleiste input[type="text"] {
    padding: 0.7rem 1rem;
    width: 100%;
    max-width: 420px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.suchleiste input[type="text"]:focus {
    border-color: #f39c12;
}

.suchleiste button {
    padding: 0.7rem 1.5rem;
    background-color: #f39c12;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suchleiste button:hover {
    background-color: #d68910;
}

.suche-zurueck {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
}

.suche-zurueck:hover {
    color: #333;
}

.suche-info {
    text-align: center;
    margin-bottom: 1rem;
    color: #555;
}

.keine-ergebnisse {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    margin: 3rem 0;
}


/* ---------- Kategorie-Filter Buttons ---------- */
.kategorie-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
    justify-content: center;
}

.filter-btn {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    background-color: white;
    border: 2px solid #ddd;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #f39c12;
    color: #f39c12;
}

.filter-btn.aktiv {
    background-color: #f39c12;
    border-color: #f39c12;
    color: white;
    font-weight: bold;
}

/* ---------- Spots Grid ---------- */
.spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ---------- Einzelne Spot-Karte ---------- */
.spot-karte {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.spot-karte:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.13);
}

.spot-karte img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.spot-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.spot-info h2 {
    font-size: 1.25rem;
    margin: 0.4rem 0 0.3rem;
    color: #1a1a1a;
}

.spot-info .ort {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.spot-info .sterne {
    color: #f5a623;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.spot-info .vorschau {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.5;
    flex: 1;
}

.spot-info .datum {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.5rem;
}

/* ---------- Kategorie-Badge ---------- */
.kategorie-badge {
    display: inline-block;
    background-color: #fef0e7;
    color: #e8531d;
    border: 1px solid #f7c4aa;
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    font-size: 0.8rem;
    font-weight: bold;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.btn-gruen {
    background-color: #27ae60;
    color: white;
}
.btn-gruen:hover { background-color: #1e8f4d; }

.btn-grau {
    background-color: #7f8c8d;
    color: white;
}
.btn-grau:hover { background-color: #636e72; }

.btn-rot {
    background-color: #e74c3c;
    color: white;
}
.btn-rot:hover { background-color: #c0392b; }

.btn-gross {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    width: 100%;
    text-align: center;
}

.button-gruppe {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

/* ---------- Detailseite ---------- */
.detail-artikel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.detail-bild {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.detail-inhalt {
    padding: 1.5rem;
}

.detail-inhalt h2 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
}

.detail-inhalt .ort {
    font-size: 1rem;
    color: #666;
}

.sterne.gross {
    font-size: 1.5rem;
    color: #f5a623;
    margin: 0.5rem 0;
}

.detail-text {
    margin-top: 1rem;
    line-height: 1.7;
    font-size: 1rem;
    color: #444;
}

.datum {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 0.3rem;
}

/* ---------- Formular ---------- */
.formular-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 2rem;
    max-width: 650px;
    margin: 0 auto;
}

.formular-box h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #f39c12;
}

.formular-box label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.35rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #333;
}

.formular-box input[type="text"],
.formular-box select,
.formular-box textarea {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.formular-box input[type="text"]:focus,
.formular-box select:focus,
.formular-box textarea:focus {
    border-color: #f39c12;
    outline: none;
}

.formular-box input[type="file"] {
    width: 100%;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.hinweis {
    display: block;
    color: #999;
    font-size: 0.82rem;
    margin-top: 0.3rem;
}

/* ---------- Footer ---------- */
footer {
    background-color: #f39c12;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* ---------- Footer Links ---------- */
.footer-links {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ---------- Nachrichtenkarten ---------- */
.nachricht-karte {
    background-color: #fef9f0;
    border: 1px solid #f7e0c0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.nachricht-kopf {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.nachricht-email {
    color: #f39c12;
    font-size: 0.9rem;
}

.nachricht-datum {
    color: #aaa;
    font-size: 0.8rem;
    margin-left: auto;
}

.nachricht-text {
    color: #444;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ---------- Erfolgs- und Fehlermeldung ---------- */
.erfolg-meldung {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.fehler-meldung {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* ---------- Responsive: Smartphones ---------- */
@media (max-width: 600px) {

    header h1 {
        font-size: 1.6rem;
    }

    .spots-grid {
        grid-template-columns: 1fr;
    }

    .suchleiste input[type="text"] {
        max-width: 100%;
    }

    .formular-box {
        padding: 1.2rem;
    }

    .button-gruppe {
        flex-direction: column;
    }

    .btn-gross {
        width: 100%;
    }

    /* Hamburger einblenden */
    .hamburger {
        display: block;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0.8rem;
        width: 100%;
    }

    #menu-toggle:checked + .hamburger + #nav-menu {
        display: flex;
    }

}

/* ---------- Responsive: Tablets ---------- */
@media (min-width: 601px) and (max-width: 900px) {
    .spots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}