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

/* Seitenhintergrund schwarz (#000) */
body { 
    font-family: Arial, sans-serif; 
    background-color: #000; 
    color: #333; 
    line-height: 1.5; 
    padding: 15px; 
}

.container { 
    max-width: 900px; 
    margin: 0 auto; 
    background: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1); 
}

/* Header-Bereich */
.header { 
    display: grid; 
    grid-template-columns: auto 1fr auto; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 20px; 
    border-bottom: 2px solid #ddd; 
    padding-bottom: 15px; 
}
.logo { 
    max-width: 80px; 
    height: auto; 
}
.title { 
    color: #cc0000; 
    font-size: calc(1.5rem + 1vw); 
}

/* Ski-Bild auf max. 250px erweitert */
.hero-img { 
    max-width: 250px; 
    width: 100%;
    height: auto; 
    border-radius: 4px; 
    display: none; 
}

/* Klickbarer Info-Text für PopUp */
.info-text { 
    color: #cc0000; 
    font-size: 1.1rem; 
    font-weight: bold; 
    margin-bottom: 20px; 
    text-align: right; 
    cursor: pointer;
    text-decoration: underline;
    display: inline-block;
    float: right;
}
.info-text:hover {
    color: #990000;
}
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Formular-Grid */
.form-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 15px; 
}
.form-group { 
    display: flex; 
    flex-direction: column; 
}
.form-group.inline { 
    flex-direction: row; 
    gap: 10px; 
    align-items: center; 
}

label { 
    font-weight: bold; 
    font-size: 0.9rem; 
    margin-bottom: 5px; 
    color: #444; 
}
input[type="text"], 
input[type="email"], 
select, 
textarea {
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    background-color: #f2f2f2; 
    font-size: 1rem;
}
input:focus, 
select:focus, 
textarea:focus { 
    background-color: #fff; 
    border-color: #cc0000; 
    outline: none; 
}
textarea { 
    resize: vertical; 
    min-height: 90px; 
}
.pr30 {
	width: 30%;
	float: left;
	clear: none;
	margin-right: 5px;
}

/* Mehrspaltige Zeilen */
.row-2 { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 10px; 
}
.row-plz-ort { 
    display: grid; 
    grid-template-columns: 1fr 2fr; 
    gap: 10px; 
}
.row-extra-person { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 10px; 
    background: #f0f0f0; 
    padding: 10px; 
    border-radius: 4px; 
}

.checkbox-group { 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
    margin-top: 10px; 
}
.checkbox-group input { 
    margin-top: 4px; 
}

.btn-submit { 
    background-color: #e0e0e0; 
    color: #000; 
    border: 2px solid #666; 
    padding: 12px 25px; 
    font-size: 1rem; 
    font-weight: bold; 
    cursor: pointer; 
    border-radius: 4px; 
    transition: 0.2s; 
}
.btn-submit:hover { 
    background-color: #cc0000; 
    color: #fff; 
    border-color: #cc0000; 
}

.alert { 
    padding: 12px; 
    margin-bottom: 15px; 
    border-radius: 4px; 
    font-weight: bold; 
}
.alert-error { 
    background: #f8d7da; 
    color: #721c24; 
    border: 1px solid #f5c6cb; 
}
.alert-success { 
    background: #d4edda; 
    color: #155724; 
    border: 1px solid #c3e6cb; 
}
/* Container für die Hover-Meldung */
.button-wrapper {
    position: relative;
    display: inline-block;
    cursor: not-allowed; /* Zeigt das allgemeine Verbotssymbol */
}

/* Der Button selbst */
.btn-submit {
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    background-color: #0056b3;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* --- DEUTLICHER "NICHT ERLAUBT"-ZUSTAND --- */
.btn-submit:disabled {
    background-color: #e0e0e0 !important;
    color: #888888 !important;
    border: 2px solid #cccccc !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    /* Optional: Text leicht durchstreichen für sofortige visuelle Sperre */
    text-decoration: line-through; 
    box-shadow: none !important;
}

/* Pop-Up-Meldung (Tooltip), wenn der Mauszeiger über den gesperrten Button fährt */
.button-wrapper[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 115%; /* Position direkt über dem Button */
    left: 50%;
    transform: translateX(-50%);
    background-color: #cc0000; /* Auffälliges Rot */
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    pointer-events: none;
}

/* Ein blenden, wenn der Button aktiv ist: Tooltip ausblenden & Cursor anpassen */
.button-wrapper:has(button:enabled) {
    cursor: default;
}
.button-wrapper:has(button:enabled)::after {
    display: none;
}
.btn-submit:enabled {
    cursor: pointer !important;
    text-decoration: none;
}

/* Responsive PopUp / Modal Styling für Mobile & Desktop */
.modal-overlay {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.75); 
    justify-content: center; 
    align-items: center; 
    padding: 15px;
    box-sizing: border-box;
}

.modal-content {
    background-color: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    max-width: 600px; 
    width: 100%; 
    max-height: 85vh; 
    display: flex;
    flex-direction: column; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #cc0000;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    flex-shrink: 0; 
}

.modal-close-x {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    padding: 0 5px;
}
.modal-close-x:hover { 
    color: #cc0000; 
}

.modal-body {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
    padding-right: 8px; 
    margin-bottom: 15px;
}

.modal-body::-webkit-scrollbar { 
    width: 6px; 
}
.modal-body::-webkit-scrollbar-thumb { 
    background: #ccc; 
    border-radius: 4px; 
}

.modal-body h3 { 
    font-size: 1.1rem; 
    color: #cc0000; 
    margin-bottom: 10px; 
}
.modal-body p { 
    margin-bottom: 12px; 
}

.modal-footer {
    flex-shrink: 0; 
    border-top: 1px solid #eee;
    padding-top: 10px;
    text-align: right;
}

.btn-close {
    background-color: #cc0000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%; 
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Queries für Tablet & Desktop */
@media (min-width: 600px) {
    .hero-img { 
        display: block; 
    }
    .row-2 { 
        grid-template-columns: 1fr 1fr; 
    }
    .row-extra-person { 
        grid-template-columns: auto 2fr auto 1fr 1fr; 
        align-items: center; 
    }
    .form-group-horizontal { 
        display: grid; 
        grid-template-columns: 140px 1fr; 
        align-items: center; 
    }
    .form-group-horizontal label { 
        text-align: right; 
        padding-right: 15px; 
        margin-bottom: 0; 
    }
    .btn-close { 
        width: auto; 
    }
}
