/* =========================
   Grundlayout
========================= */

:root {
    --rot: #8f1d21;
    --gold: #c9a227;
    --creme: #f7f3eb;
    --anthrazit: #333333;
    --weiss: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--creme);
    color: var(--anthrazit);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* =========================
   Navigation
========================= */

.header {
    background: var(--rot);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    z-index: 1000;
}

.logo a {
    color: var(--weiss);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

nav {
    margin-left: auto;
}

.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    color: var(--weiss);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    display: block;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: var(--gold);
    color: #000;
}

.nav-menu a.active {
    background: var(--gold);
    color: #000;
    font-weight: bold;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--weiss);
    font-size: 30px;
    cursor: pointer;
}

/* =========================
   Hero Bereich
========================= */

.hero {
    text-align: center;
    padding: 10px 10px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--rot);
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.hero p {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* =========================
   Buttons
========================= */

.button {
    display: inline-block;
    background: var(--gold);
    color: #000;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.button:hover {
    background: #d8b238;
}

/* =========================
   Inhaltsbereiche
========================= */

section {
    margin-bottom: 50px;
}

section h1,
section h2 {
    color: var(--rot);
    margin-bottom: 20px;
}

section p {
    margin-bottom: 15px;
}

/* =========================
   Listen
========================= */

ul {
    margin-left: 20px;
}

li {
    margin-bottom: 8px;
}

/* =========================
   Galerie
========================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    display: block;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.gallery-item img:hover {
    transform: scale(1.08);
}

/* =========================
   Lightbox
========================= */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.90);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}

/* =========================
   Kontaktformular
========================= */

.kontakt {
    max-width: 900px;
    margin: 0 auto;
}

.kontakt form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kontakt label {
    font-weight: bold;
}

.kontakt input,
.kontakt textarea,
.kontakt select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 16px;
}

.kontakt textarea {
    resize: vertical;
}

.kontakt button {
    background: var(--rot);
    color: var(--weiss);
    border: none;
    padding: 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kontakt button:hover {
    background: #741519;
}

/* =========================
   Meldungen
========================= */

.success-box {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.error-box {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* =========================
   Honeypot
========================= */

.honeypot {
    display: none;
}

/* =========================
   Footer
========================= */

footer {
    background: var(--anthrazit);
    color: var(--weiss);
    text-align: center;
    padding: 25px;
    margin-top: 50px;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: var(--gold);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* =========================
   Tablet
========================= */

@media (max-width: 1024px) {

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* =========================
   Smartphone
========================= */

@media (max-width: 768px) {

    .mobile-menu-btn {
        display: block;
    }

    nav {
        width: 100%;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        background: var(--rot);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        padding: 15px;
    }

    .header {
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}

.error404 {
    max-width: 800px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}

.error404 h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #8b0000;
}

.error404 p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.error404 .button {
    display: inline-block;
    padding: 12px 24px;
    background: #8b0000;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.error404 .button:hover {
    background: #a50000;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    padding: 15px 20px;
}

.stempel-logo {
    text-align: center;
    padding: 20px 15px;
}

.stempel-logo img {
    max-width: 250px;
    width: 100%;
    height: auto;
}

.bilderrahmen {
    display: inline-block;
    padding: 18px;
    background: linear-gradient(145deg,
            #fff6cc,
            #d4af37,
            #b8860b,
            #f5d76e);
    border: 4px solid #9c7410;
    border-radius: 35px 10px 35px 10px;
    box-shadow:
        0 0 15px rgba(212, 175, 55, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.bilderrahmen img {
    display: block;
    border-radius: 20px;
}

/* Erfolgsmeldung */
.success-box {
    padding: 16px 20px;
    margin: 20px 0;
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
    border-left: 5px solid #2e7d32;
    border-radius: 6px;
    line-height: 1.6;
}

/* Fehlermeldung */
.error-box {
    padding: 16px 20px;
    margin: 20px 0;
    background-color: #ffebee;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
    border-left: 5px solid #c62828;
    border-radius: 6px;
    line-height: 1.6;
}

/* Kontaktformular: Meldungen auf kleinen Bildschirmen */
@media (max-width: 600px) {

    .success-box,
    .error-box {
        padding: 12px 14px;
        margin: 16px 0;
        font-size: 0.95rem;
    }
}

.footer-links {
    text-align: center;
    margin-top: 20px;
    font-size: 11px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
}

.footer-links a:hover {
    color: #666;
}