/* Reset und Basis-Styles */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    background: linear-gradient(135deg, 
        #f4e4bc 0%, 
        #d4a574 25%, 
        #b8956a 50%, 
        #8b5a3c 75%, 
        #5c3317 90%, 
        #3d1a00 100%);
    background-size: 400% 400%;
    animation: sunsetWave 20s ease infinite;
    position: relative;
}

@keyframes sunsetWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Info Widget Styles */
.info-widget {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 200;
    max-width: 320px;
    transform: translateX(-400px);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.info-widget.visible {
    transform: translateX(0);
}

.info-widget.hidden {
    display: none;
}

.info-widget-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.info-widget-content h2 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    color: #333;
    font-weight: 700;
}

.info-widget-content p {
    margin: 0 0 20px;
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

.info-widget-content strong {
    color: #ff0040;
    font-weight: 700;
}

.info-widget-buttons {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.info-widget-btn {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.info-widget-btn.primary {
    background: linear-gradient(135deg, #ff0040 0%, #c70025 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 64, 0.3);
}

.info-widget-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 64, 0.4);
}

.info-widget-btn.secondary {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #e0e0e0;
}

.info-widget-btn.secondary:hover {
    background: #e0e0e0;
    border-color: #d0d0d0;
}

.info-widget-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
}

.info-widget-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

/* Berg-Overlay */
.mountain-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.8) 0%, 
        rgba(0,0,0,0.6) 30%, 
        rgba(0,0,0,0.3) 60%, 
        transparent 100%);
    z-index: 2;
}

/* Berg-Silhouette */
.mountain-silhouette {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background: #000000;
    z-index: 3;
    clip-path: polygon(0 100%, 8% 92%, 15% 88%, 22% 90%, 30% 85%, 38% 88%, 45% 82%, 52% 86%, 60% 80%, 68% 84%, 75% 78%, 82% 82%, 90% 76%, 95% 80%, 100% 75%, 100% 100%);
}

/* Schwebende Partikel */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0; 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 1; 
    }
}

.overlay-wave {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: waveMotion 20s linear infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes waveMotion {
    0%   { transform: rotate(0deg) scale(1.0); }
    50%  { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1.0); }
}

/* Titel */
.title {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(3rem, 10vw, 8rem);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    z-index: 10;
    text-align: center;
    font-weight: 500;
}

/* Button Container */
.button-container {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 10;
    width: 95%;
    max-width: 1400px;
}

/* Fancy Buttons */
.fancy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    text-align: center;
    flex: 1;
    max-width: 220px;
}

.button-icon {
    font-size: 1.1rem;
}

.first-button {
    flex: 1.8;
    max-width: 320px;
}

.fancy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.fancy-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.fancy-button:hover::before {
    left: 100%;
}

/* Event Button */
.event-button {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff0040 0%, #c70025 100%);
    color: white;
    padding: 18px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    box-shadow: 0 8px 30px rgba(255, 0, 64, 0.4);
    z-index: 100;
    animation: pulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 480px; /* Erhöht von 380px */
    line-height: 1.4;
    white-space: normal; /* Erlaubt Zeilenumbrüche */
}

/* Bei kleineren Bildschirmen anpassen */
@media (max-width: 768px) {
    .event-button {
        font-size: 0.85rem;
        padding: 15px 20px;
        top: 5%;
        max-width: 90%; /* Nutzt fast die volle Breite */
    }
}

.event-icon {
    display: inline-block;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 8px 30px rgba(255, 0, 64, 0.4);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 12px 40px rgba(255, 0, 64, 0.6);
    }
    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 8px 30px rgba(255, 0, 64, 0.4);
    }
}

.event-button:hover {
    transform: translateX(-50%) scale(1.08);
    background: linear-gradient(135deg, #ff1a56 0%, #d6002a 100%);
    box-shadow: 0 15px 45px rgba(255, 0, 64, 0.7);
}

/* Success Message */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: none;
    text-align: center;
}

.success-message.show {
    display: block;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.no-events {
    text-align: center;
    color: #666;
    padding: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    animation: slideUp 0.4s ease;
    position: relative;
}

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

.modal h2 {
    margin: 0 0 20px;
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
}

.modal p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #f9f9f9;
}

.form-group input:focus {
    outline: none;
    border-color: #ff0040;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 0, 64, 0.1);
}

/* Termin-Auswahl Styles */
.date-selection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.date-option {
    position: relative;
    cursor: pointer;
}

.date-option.full {
    cursor: not-allowed;
}

.date-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.date-label {
    display: block;
    padding: 20px;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
}

.date-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 400;
}

.date-label .date-day {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.date-label .date-time {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.date-places {
    font-size: 0.8rem;
    color: #48bb78;
    margin-top: 8px;
}

.date-status {
    font-size: 0.8rem;
    color: #e53e3e;
    font-weight: 700;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.date-option input[type="radio"]:checked + .date-label {
    background: #fff0f3;
    border-color: #ff0040;
    box-shadow: 0 0 0 4px rgba(255, 0, 64, 0.1);
}

.date-option:hover .date-label {
    border-color: #ff0040;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.date-option.full .date-label {
    background: #f0f0f0;
    border-color: #ddd;
    opacity: 0.6;
}

.date-option.full:hover .date-label {
    border-color: #ddd;
    transform: none;
    box-shadow: none;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ff0040 0%, #c70025 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 64, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.close-btn:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

/* Error Message */
.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Admin Login Button */
.admin-login-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    z-index: 50;
}

.admin-login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

/* Admin Login Modal */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.admin-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.admin-login-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
}

.admin-login-form h3 {
    margin: 0 0 30px;
    color: #333;
    font-size: 1.5rem;
    text-align: center;
}

.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.admin-form-group input:focus {
    outline: none;
    border-color: #ff0040;
    box-shadow: 0 0 0 4px rgba(255, 0, 64, 0.1);
}

.admin-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff0040 0%, #c70025 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 64, 0.4);
}

.admin-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.admin-close-btn:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.admin-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.admin-error.show {
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .button-container {
        gap: 15px;
        flex-direction: column;
        align-items: center;
        top: 65%;
    }
    
    .fancy-button {
        width: 280px;
        max-width: none;
    }
    
    .fancy-button.first-button {
        width: 380px;
        white-space: normal;
        line-height: 1.3;
        padding: 18px 25px;
        max-width: none;
    }
    
    .mountain-silhouette {
        height: 25%;
    }
    
    .info-widget {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .button-container {
        gap: 12px;
        top: 70%;
        width: 90%;
    }
    
    .fancy-button {
        padding: 15px 30px;
        font-size: 1rem;
        width: 250px;
    }
    
    .fancy-button.first-button {
        width: 280px;
        white-space: normal;
        line-height: 1.3;
        padding: 18px 25px;
    }
    
    .title {
        top: 30%;
        font-size: clamp(2.5rem, 8vw, 6rem);
    }
    
    .particles {
        display: none;
    }
    
    .event-button {
        font-size: 0.85rem;
        padding: 15px 20px;
        top: 5%;
        max-width: 320px;
    }
    
    .modal {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .modal h2 {
        font-size: 1.5rem;
    }
    
    .date-selection {
        grid-template-columns: 1fr;
    }
    
    .info-widget {
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        padding: 20px;
    }
    
    .info-widget-icon {
        font-size: 2rem;
    }
    
    .info-widget-content h2 {
        font-size: 1.2rem;
    }
    
    .info-widget-content p {
        font-size: 0.9rem;
    }
    
    .info-widget-buttons {
        flex-direction: row;
    }
    
    .info-widget-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .mountain-overlay,
    .mountain-silhouette,
    .particles,
    .overlay-wave,
    .event-button,
    .admin-login-btn,
    .info-widget {
        display: none;
    }
    
    .title {
        position: static;
        transform: none;
        color: black;
        text-shadow: none;
        margin: 20px 0;
    }
    
    .button-container {
        position: static;
        transform: none;
        flex-direction: column;
        align-items: flex-start;
        margin: 20px;
    }
    
    .fancy-button {
        background: none;
        color: black;
        border: 1px solid black;
        text-shadow: none;
        box-shadow: none;
        margin: 5px 0;
    }
}