:root {
    --primary: #993333;
    --primary-dark: #7a2929;
    --text: #333;
    --bg: #f4f4f4;
    --white: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
        url('bilder/background.png');
    
    background-repeat: repeat;
    background-attachment: fixed;
    background-size: 600px; 
    
    background-color: #f4f4f4;
    
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
}

header {
    margin-top: 2%;
    background-color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    border: 3px solid var(--primary);
    margin-left: 10%;
    width: 80%;
    border-radius: 10px;
    
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

header img {
    width: 10%;
}

h1 { 
    color: var(--primary-dark); 
    font-size: 2.5rem;
    margin: 0; 
}

.checkout-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
    width: 100%; 
}

.form-card {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.status-banner {
    background: #fff5f5;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary); 
    margin-bottom: 2rem;
    text-align: center;
}

h2 { margin-bottom: 1.5rem; 
    font-size: 2.0rem; 
    color: #555; }

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 1.2rem;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 14px 15px;
    margin-bottom: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    background-color: #fff; 
}

input:focus, select:focus { 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px rgba(153, 51, 51, 0.1);
}

.select-wrapper { margin-top: 0.5rem; }
.select-wrapper label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: bold; }

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 1rem;
}

.btn-submit:hover { 
    background: var(--primary-dark); 
    transform: translateY(-1px);
}
.btn-submit.disabled { background: #ccc; cursor: not-allowed; transform: none; }

footer {
    background-color: var(--primary-dark); 
    color: var(--white); 
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    margin-top: auto;
    
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

footer a { 
    text-decoration: none;
    color: var(--white);
}
footer a:hover { text-decoration: underline;}

@media (max-width: 480px) {
    .input-group { flex-direction: column; gap: 0; }
    .form-card { padding: 1.5rem; }
    h1{
        font-size: 1.9rem;
    }

   
}

/* Container & Grid System */
.container {
    width: 80vw;
    margin-left: 10vw;
    margin-top: -60px;
    margin-bottom: 40px;
    z-index: 10;
    
    /*max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;*/
}

.main-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Linke Seite etwas breiter */
    gap: 30px;
    align-items: start;
}

/* Info Karte links */
.info-card {
    background: rgba(255, 255, 255, 1);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.info-card h2 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.info-card p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Bilder Galerie */
.image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 2rem 0;
}

.img-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.event-details {
    background: #f9f9f9;
    padding: 1rem;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
}

/* Formular Überschrift klein halten */
form h3 {
    margin-bottom: 1.2rem;
    color: #444;
    text-align: center;
}

/* Mobile Anpassung */
@media (max-width: 850px) {
    .main-grid {
        grid-template-columns: 1fr; /* Untereinander auf Tablets/Handys */
    }
    
    .info-card {
        padding: 1.5rem;
    }

     header {
        width: 100vw;
        margin-left: 0px;
    }

    header img {
        width: 65px;
        height: 65px;
    }

    .container {
        margin-top: -20px;
    }

    h2 {
        font-size: 1.5rem;
    }
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

h5 {
    color: var(--primary);
    font-size: 20px;
}
