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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f1ed;
    color: #2c2c2c;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    padding: 40px 20px;
    text-align: center;
}

.hero-image-container {
    margin-bottom: 0px;
    position: relative;
    width: 100%;
}

.hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay-text {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.hero-overlay-text .script-text {
    color: #fff;
}

.hero-overlay-text .invited {
    color: #fff;
}

/* Torn Paper Effect */
.torn-bottom {
    clip-path: url(#organic-bottom);
}

.torn-both {
    clip-path: url(#organic-both);
}

.hero-text {
    padding: 0 20px;
}

.script-text {
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    color: #8b7d6b;
    margin-bottom: 5px;
}

.invited {
    font-family: 'Cormorant', serif;
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 20px;
    color: #2c2c2c;
}

.subtitle {
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 500;
    margin-bottom: 13px;
    color: #6b6b6b;
}

.couple-names {
    font-family: 'Cormorant', serif;
    font-size: 56px;
    font-weight: 300;
    line-height: 1.2;
    color: #2c2c2c;
}

.name-first {
    display: block;
}

.name-and {
    font-family: 'Great Vibes', cursive;
    font-size: 42px;
    display: block;
    margin: -17px 0 -25px;
    color: #8b7d6b;
}

.name-second {
    display: block;
}

/* Date Section */
.date-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #fff;
}

.join-text {
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 500;
    margin-bottom: 13px;
    color: #6b6b6b;
}

.wedding-date {
    font-family: 'Cormorant', serif;
    font-size: 72px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.wedding-time {
    font-family: 'Cormorant', serif;
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #2c2c2c;
}

.location-preview {
    font-size: 12px;
    font-style: italic;
    color: #8b7d6b;
    max-width: 300px;
    margin: 0 auto;
}

/* Image Sections */
.image-section {
    padding: 0 20px;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Slider Section */
.slider-section {
    padding: 0;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    cursor: grab;
}

.slider-container:active {
    cursor: grabbing;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slide img {
    width: 100%;
    min-width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #2c2c2c;
}

.slider-btn:hover {
    background: #fff;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #fff;
}

/* RSVP Section */
.rsvp-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #fff;
}

.rsvp-title {
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #6b6b6b;
}

.rsvp-letters {
    font-family: 'Cormorant', serif;
    font-size: 80px;
    font-weight: 500;
    letter-spacing: 6px;
    margin-bottom: 15px;
    color: #2c2c2c;
}

.rsvp-deadline {
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #6b6b6b;
}

.rsvp-text {
    font-size: 14px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 30px;
    color: #6b6b6b;
}

.rsvp-button {
    background-color: #2c2c2c;
    color: #fff;
    border: none;
    padding: 16px 50px;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.rsvp-button:hover {
    background-color: #000;
    transform: scale(1.05);
}

/* Details Section */
.details-section {
    padding: 0px 20px;
    text-align: center;
    background-color: #f5f1ed;
}

.details-title {
    font-family: 'Cormorant', serif;
    font-size: 60px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 40px;
    color: #2c2c2c;
}

.details-content {
    max-width: 500px;
    margin: 0 auto;
}

.detail-subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    color: #8b7d6b;
    margin: 30px 0 15px;
}

.detail-text {
    font-size: 14px;
    line-height: 1.7;
    color: #6b6b6b;
    margin-bottom: 20px;
}

.detail-note {
    margin-top: 40px;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
}

.note-text {
    font-size: 13px;
    font-style: italic;
    line-height: 1.6;
    color: #8b7d6b;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 20px auto;
    padding: 30px 25px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

.modal-title {
    font-family: 'Cormorant', serif;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #2c2c2c;
    text-align: center;
}

/* Attendance Options */
.attendance-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.attendance-option input[type="radio"] {
    display: none;
}

.option-card {
    padding: 30px 20px;
    border: none;
    border-radius: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.option-card:hover {
    transform: scale(1.05);
}

.attendance-option input[type="radio"]:checked + .option-card {
    background: transparent;
}

.icon-heart, .icon-x {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    color: #c8d4e8;
    transition: all 0.3s ease;
}

.option-card:hover .icon-heart {
    color: #b8c8e0;
}

.option-card:hover .icon-x {
    color: #b8c8e0;
}

.attendance-option input[type="radio"]:checked + .option-card .icon-heart {
    color: #c9736c;
}

.attendance-option input[type="radio"]:checked + .option-card .icon-x {
    color: #c9736c;
}

.option-text {
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2c;
    font-family: 'Cormorant', serif;
    letter-spacing: 1px;
    text-align: center;
    display: block;
}

.option-text small {
    display: block;
    font-size: 13px;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    color: #6b6b6b;
    margin-top: 5px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #8b7d6b;
}

.form-group textarea {
    resize: vertical;
}

/* Number Input Group */
.number-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.number-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    background: #fafafa;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c2c2c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-btn:hover {
    border-color: #2c2c2c;
    background: #f5f1ed;
}

.number-input-group input[type="number"] {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    -moz-appearance: textfield;
    appearance: textfield;
}

.number-input-group input[type="number"]::-webkit-outer-spin-button,
.number-input-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.radio-label {
    cursor: pointer;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-label span {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.radio-label input[type="radio"]:checked + span {
    border-color: #2c2c2c;
    background-color: #f5f1ed;
    color: #2c2c2c;
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.checkbox-label {
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label span {
    display: block;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.checkbox-label input[type="checkbox"]:checked + span {
    border-color: #2c2c2c;
    background-color: #f5f1ed;
    color: #2c2c2c;
}

.other-input {
    margin-top: 10px;
}

/* Submit Button */
.submit-button {
    width: 100%;
    background-color: #2c2c2c;
    color: #fff;
    margin-bottom: 40px;
    border: none;
    padding: 16px;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #000;
    transform: scale(1.02);
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .script-text {
        font-size: 28px;
    }
    
    .invited {
        font-size: 40px;
        letter-spacing: 6px;
    }
    
    .couple-names {
        font-size: 48px;
    }
    
    .name-and {
        font-size: 36px;
    }
    
    .wedding-date {
        font-size: 60px;
        line-height: 49px;
    }
    
    .rsvp-letters {
        font-size: 46px;
    }
    
    .details-title {
        font-size: 48px;
    }
    
    .modal-content {
        margin: 10px;
        padding: 25px 20px;
        width: calc(100% - 20px);
    }
    
    .attendance-options {
        gap: 10px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #f5f1ed;
    border-top: 1px solid #e8e4e0;
    margin-top: 0px;
}

.site-footer p {
    font-size: 12px;
    color: #8b7d6b;
    margin-bottom: 10px;
}

.site-footer a {
    font-size: 12px;
    color: #8b7d6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #2c2c2c;
}

/* Impressum Modal */
.impressum-modal {
    text-align: left;
}

.impressum-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 20px 0 10px 0;
}

.impressum-content h3:first-child {
    margin-top: 0;
}

.impressum-content p {
    font-size: 14px;
    color: #6b6b6b;
    line-height: 1.6;
}

/* Smooth Scrolling & Prevent Horizontal Scroll */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}
