/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-image: linear-gradient(rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.8)),
        url('https://www.regiomanager.de/wp-content/uploads/1995/08/schumacher-online-opener-2048x1280.jpg');
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
}

/* Layout Structure */
.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background-image: url('https://landing.sts-finanzen.de/ressources/stsfa/bilder/kontakt_hintergrund.jpg');
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mid-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.mid-nav img {
    height: 60px;
    width: auto;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation */
.low-nav {
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.low-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.low-nav a:hover {
    background: #34495e;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding-top: 100px;
    transition: left 0.3s ease;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.mehr-anzeigen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

/* Form Styles */
.form-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.form-container h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 300;
}

.share-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.info-text {
    background: #e8f4fd;
    color: #1976d2;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    border-left: 4px solid #1976d2;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Website URL specific styling */
.form-group input[type="url"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: inherit;
}

.form-group input[type="url"]:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input[type="url"]:valid {
    border-color: #4caf50;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
}

.form-group input[type="url"]:invalid:not(:placeholder-shown) {
    border-color: #d32f2f;
    background: linear-gradient(135deg, #fff8f8 0%, #ffe8e8 100%);
}

/* Form Elements */
label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.95em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

select {
    appearance: none;
    color: #555;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"%3E%3Cpath fill="%233498db" d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio Button Styles - Updated to match design */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    padding: 16px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    background: #fafafa;
    transition: all 0.3s ease;
    user-select: none;
}

.radio-option:hover {
    border-color: #3498db;
    background: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.radio-option.selected {
    border-color: #3498db;
    background: linear-gradient(135deg, #e8f4fd 0%, #d1ecf1 100%);
    box-shadow: 0 2px 15px rgba(52, 152, 219, 0.2);
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.radio-content {
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: 15px;
}

.radio-checkmark {
    position: relative;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
    background: white;
}

.radio-option input[type="radio"]:checked + .radio-content .radio-checkmark {
    border-color: #3498db;
    background: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.radio-checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.radio-option input[type="radio"]:checked + .radio-content .radio-checkmark::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-text {
    flex: 1;
}

.radio-label {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 4px;
}

.radio-description {
    font-size: 14px;
    color: #666;
    line-height: 1.3;
}

.radio-option input[type="radio"]:focus + .radio-content .radio-checkmark {
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.3);
    outline: none;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    margin-top: 3px;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
}

.checkbox-group a {
    color: #3498db;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Buttons */
.submit-btn,
.login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover,
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.submit-btn:active,
.login-btn:active {
    transform: translateY(-1px);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Error Styles */
.error {
    background: #ffe6e6;
    color: #d32f2f;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #d32f2f;
    font-size: 14px;
}

.required {
    color: #d32f2f;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 20px;
}

.flash-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #28a745;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

.flash-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.1);
}

.flash-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #17a2b8;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.1);
}

/* Footer */
.top-footer {
    width: 100vw;
    background: #34495e;
    color: white;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 50px auto 0;
}

.top-footer h3 {
    margin-bottom: 15px;
}

.top-footer p {
    line-height: 1.6;
}

.top-footer a {
    color: #3498db;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.top-footer a:hover {
    text-decoration: underline;
}

.low-footer {
    background: #2c3e50;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.right-footer {
    display: flex;
    gap: 20px;
}

.right-footer a {
    color: #3498db;
    text-decoration: none;
}

.right-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .low-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .mid-nav {
        padding: 15px 20px;
    }

    .mid-nav img {
        height: 35px;
    }

    .container {
        padding: 20px 15px;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 25px 20px;
        gap: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .willkommen-box h2 {
        font-size: 2em;
    }

    .willkommen-box p {
        font-size: 1em;
        line-height: 1.6;
    }

    .form-container {
        padding: 25px 20px;
        margin: 15px;
        border-radius: 10px;
    }

    .form-container h2 {
        font-size: 1.8em;
    }

    .share-button {
        position: static;
        margin-bottom: 20px;
        align-self: flex-end;
    }

    .top-footer {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .low-footer {
        flex-direction: column;
        text-align: center;
    }

    .right-footer {
        justify-content: center;
        flex-wrap: wrap;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }

    .mehr-anzeigen-btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    /* Mobile Radio Button Adjustments */
    .radio-option {
        padding: 12px 16px;
    }
    
    .radio-label {
        font-size: 15px;
    }
    
    .radio-description {
        font-size: 13px;
    }
    
    .radio-checkmark {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
    
    .radio-checkmark::after {
        width: 8px;
        height: 8px;
    }

    /* Website URL field mobile optimization */
    .form-group input[type="url"] {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
    }
}
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.mobile-menu a:hover {
    background: rgba(52, 73, 94, 0.7);
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.willkommen-box {
    padding: 20px 0;
}

.willkommen-box h2 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 300;
}

.willkommen-box p {
    line-height: 1.8;
    color: #555;
    font-size: 1.1em;
}

.event-image {
    text-align: center;
}

.event-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

/* Lazy Loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

.lazy-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 15px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Photo Slider */
.foto-slider-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    position: relative;
}

.foto-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
}

.slider-track {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #3498db;
}

/* Mehr anzeigen Button */
.mehr-anzeigen-container {
    text-align: center;
    margin-top: 25px;
}

.mehr-anzeigen-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;