/* Allgemeine Stile */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Roboto+Condensed:wght@400;700&display=swap');

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #7f8c8d;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --dark-bg: #2c3e50;
    --card-bg: #fff;
    --success: #27ae60;
    --error: #c0392b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Entfernt blaues Highlight beim Tippen auf mobilen Geräten */
}

html {
    font-size: 16px; /* Basis-Schriftgröße für rem-Berechnungen */
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%; /* Verhindert automatische Schriftgrößenanpassung auf iOS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation; /* Verbessert Touch-Reaktionszeit */
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
}

h1 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

h2, h3 {
    font-family: 'Montserrat', serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Header */
header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    will-change: transform; /* Optimiert für Animationen */
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1rem;
    font-weight: 300;
}

/* Kompakte Event-Details */
.compact-event-details {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-icon {
    flex: 0 0 40px;
    font-size: 1.3rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.2rem;
}

.detail-content {
    flex: 1;
}

.detail-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.detail-content p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Button-Gruppe für nebeneinander stehende Buttons */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

/* Kalender-Link */
.calendar-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    will-change: transform; /* Optimiert für Animationen */
    text-align: center;
    min-width: 170px;
}

.calendar-link i {
    margin-right: 0.3rem;
}

.calendar-link:hover,
.calendar-link:active {
    background-color: var(--secondary-color);
    text-decoration: none;
}

/* Google Maps Link */
.map-link {
    display: inline-block;
    margin-top: 0.2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    will-change: transform; /* Optimiert für Animationen */
}

.map-link i {
    margin-right: 0.3rem;
}

.map-link:hover,
.map-link:active {
    background-color: var(--secondary-color);
    text-decoration: none;
}

/* Touch-Feedback für interaktive Elemente */
.touch-active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* Welcome Text */
.welcome-text {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

.welcome-text h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.welcome-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    padding: 0.3rem 0;
}

.welcome-text a:hover, 
.welcome-text a:active {
    text-decoration: underline;
}

/* Kontakt-Buttons */
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.2rem 0;
}

.contact-btn {
    background-color: var(--primary-color);
    color: white !important;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 140px;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
    will-change: transform; /* Optimiert für Animationen */
}

.contact-btn:hover,
.contact-btn:active {
    background-color: var(--secondary-color);
    text-decoration: none !important;
}

.contact-btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* RSVP Form */
.rsvp-section {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.rsvp-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
}

#response-message {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    text-align: center;
    display: none;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#response-message.success {
    background-color: var(--success);
    color: white;
    display: block;
}

#response-message.error {
    background-color: var(--error);
    color: white;
    display: block;
}

.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    -webkit-appearance: none; /* Verhindert Styling-Probleme auf iOS */
    appearance: none;
}

/* Fokus-Stile für bessere Barrierefreiheit auf Touch-Geräten */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.2);
}

select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333'%3E%3Cpath d='M6 8L1 3h10L6 8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 0.8rem;
    padding-right: 2rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    padding: 0.4rem 0;
}

.radio-group input[type="radio"] {
    margin-right: 0.5rem;
    min-width: 20px;
    min-height: 20px;
}

/* Größere Klickfläche für bessere Touch-Bedienung */
.radio-group label,
.form-group label[for] {
    position: relative;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 250px;
    -webkit-appearance: none;
    appearance: none;
    will-change: transform; /* Optimiert für Animationen */
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Footer */
footer {
    text-align: center;
    padding: 1.2rem;
    font-size: 0.8rem;
    color: #777;
}

/* Optimierungen für schnellere Ladezeiten */
img, svg {
    max-width: 100%;
    height: auto;
}

/* Tablet-Größen */
@media (min-width: 600px) {
    .container {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    header {
        padding: 2.5rem 1.5rem;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .detail-item {
        padding: 1rem 1.2rem;
    }
    
    .detail-icon {
        flex: 0 0 50px;
        font-size: 1.5rem;
    }
    
    .detail-content h3 {
        font-size: 1.2rem;
    }
    
    .detail-content p {
        font-size: 1rem;
    }
    
    .radio-group {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .contact-buttons {
        justify-content: center;
    }
    
    .contact-btn {
        flex: 0 0 auto;
    }
}

/* Desktop-Größen */
@media (min-width: 992px) {
    .container {
        max-width: 900px;
        padding: 2rem;
    }
    
    header {
        padding: 3rem 2rem;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .compact-event-details {
        display: flex;
        flex-wrap: nowrap;
        padding: 0;
    }
    
    .detail-item {
        flex: 1;
        border-bottom: none;
        border-right: 1px solid rgba(0, 0, 0, 0.05);
        padding: 1.5rem;
    }
    
    .detail-item:last-child {
        border-right: none;
    }
    
    .welcome-text, 
    .rsvp-section {
        padding: 2rem;
    }
    
    .submit-btn {
        max-width: 300px;
    }
    
    /* Hover-Effekte nur für Desktop */
    .detail-item:hover .detail-icon {
        transform: translateY(-5px);
        transition: transform 0.3s ease;
    }
    
    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
    }
}

/* Hervorhebung für wichtige Informationen */
.highlight {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.highlight a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: all 0.2s ease;
}

.highlight a:hover {
    color: var(--accent-color);
} 