@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Space+Grotesk:wght@400;600;700&display=swap');

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

body {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    background: #f5f3ed;
    min-height: 100vh;
    padding: 30px 20px;
    color: #2c2c2c;
    position: relative;
    overflow-x: hidden;
}

/* Geometrisches Hintergrundmuster */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(196, 77, 86, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(196, 77, 86, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(196, 77, 86, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(196, 77, 86, 0.03) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: #c44d56;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: #c44d56;
}

header h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c2c2c;
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1.1;
}

header p {
    font-size: 1.1em;
    color: #6b6b6b;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    padding: 40px;
    background: #ffffff;
    border-radius: 0;
    border: 4px solid #2c2c2c;
    box-shadow: 8px 8px 0px #2c2c2c;
    max-width: 1200px;
    margin: 0 auto;
}

.door {
    aspect-ratio: 1;
    background: #ffffff;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px #2c2c2c;
    position: relative;
    overflow: hidden;
    border: 3px solid #2c2c2c;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
}

.door::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: 8px solid transparent;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.door:hover::before {
    border-color: #c44d56;
    background: rgba(196, 77, 86, 0.05);
}

.door:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px #2c2c2c;
}

.door-number {
    font-size: 3.2em;
    font-weight: 700;
    color: #2c2c2c;
    z-index: 1;
    letter-spacing: -2px;
    transition: all 0.2s ease;
}

.door:hover .door-number {
    color: #c44d56;
    transform: scale(1.1);
}

.door.locked {
    background: #e8e8e8;
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #b0b0b0;
    box-shadow: 2px 2px 0px #b0b0b0;
}

.door.locked::before {
    display: none;
}

.door.locked:hover {
    transform: none;
    box-shadow: 2px 2px 0px #b0b0b0;
}

.door.locked:hover::before {
    border-color: transparent;
}

.door.locked .door-number {
    color: #999;
}

.door.opened {
    background: linear-gradient(135deg, #4a90a4 0%, #5ba8bb 100%);
    cursor: default;
    border-color: #2c2c2c;
    box-shadow: 4px 4px 0px #2c2c2c;
}

.door.opened::before {
    display: none;
}

.door.opened .door-number {
    color: #ffffff;
}

.door.opened::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #f5d742;
    border: 2px solid #2c2c2c;
    z-index: 1;
    transform: rotate(45deg);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 44, 44, 0.85);
    animation: fadeIn 0.2s ease;
}

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

.modal-content {
    background: #ffffff;
    margin: 5% auto;
    padding: 50px;
    border-radius: 0;
    width: 90%;
    max-width: 600px;
    box-shadow: 12px 12px 0px #2c2c2c;
    animation: slideDown 0.3s ease;
    position: relative;
    border: 4px solid #2c2c2c;
}

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

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 36px;
    font-weight: 300;
    color: #2c2c2c;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #2c2c2c;
    background: #ffffff;
    line-height: 1;
}

.close:hover {
    background: #c44d56;
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-content h2 {
    color: #2c2c2c;
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: -1px;
    text-transform: uppercase;
    border-bottom: 4px solid #c44d56;
    padding-bottom: 15px;
    display: inline-block;
    width: 100%;
}

.door-date {
    color: #6b6b6b;
    margin-bottom: 30px;
    font-size: 1.1em;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.door-content {
    margin: 30px 0;
    padding: 30px;
    background: #f5f3ed;
    border-radius: 0;
    min-height: 120px;
    font-size: 1.15em;
    line-height: 1.7;
    color: #2c2c2c;
    border: 3px solid #2c2c2c;
    border-left: 8px solid #c44d56;
}

.door-content.hidden {
    display: none;
}

.door-content p {
    margin: 0 0 20px 0;
}

.door-content p:last-child {
    margin-bottom: 0;
}

/* Link Button Styles */
.door-link {
    display: inline-block;
    margin-top: 20px;
    padding: 18px 35px;
    background: #c44d56;
    color: #ffffff;
    text-decoration: none;
    border: 3px solid #2c2c2c;
    border-radius: 0;
    font-weight: 700;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px #2c2c2c;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
}

.door-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #2c2c2c;
    background: #d95d66;
    color: #ffffff;
}

.door-link:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0px #2c2c2c;
}

.door-link:focus {
    outline: 3px solid #c44d56;
    outline-offset: 2px;
}

/* Audio Player Styles */
.audio-player-section {
    margin-top: 30px;
    padding: 30px;
    background: #f5f3ed;
    border-radius: 0;
    border: 3px solid #2c2c2c;
    border-left: 8px solid #c44d56;
}

.audio-player {
    width: 100%;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.audio-btn {
    width: 50px;
    height: 50px;
    border: 3px solid #2c2c2c;
    background: #c44d56;
    color: #ffffff;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px #2c2c2c;
    font-family: 'Space Grotesk', sans-serif;
    flex-shrink: 0;
}

.audio-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #2c2c2c;
    background: #d95d66;
}

.audio-btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0px #2c2c2c;
}

.play-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5em;
}

.audio-progress-container {
    flex: 1;
    min-width: 200px;
}

.audio-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border: 2px solid #2c2c2c;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    margin-bottom: 10px;
}

.audio-progress {
    height: 100%;
    background: #c44d56;
    width: 0%;
    transition: width 0.1s linear;
    border-right: 2px solid #2c2c2c;
}

.audio-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #2c2c2c;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

.volume-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1em;
}

.volume-slider {
    width: 100px;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border: 2px solid #2c2c2c;
    border-radius: 0;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #c44d56;
    border: 3px solid #2c2c2c;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 2px 2px 0px #2c2c2c;
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #c44d56;
    border: 3px solid #2c2c2c;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 2px 2px 0px #2c2c2c;
}

.volume-slider:hover::-webkit-slider-thumb {
    background: #d95d66;
}

.volume-slider:hover::-moz-range-thumb {
    background: #d95d66;
}

.success-message {
    color: #4a90a4;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    padding: 15px;
    background: #f0f8fa;
    border-radius: 0;
    border: 3px solid #4a90a4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.2em;
    }
    
    header p {
        font-size: 0.9em;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
        padding: 25px;
    }
    
    .door {
        border-width: 2px;
        box-shadow: 3px 3px 0px #2c2c2c;
    }
    
    .door:hover {
        box-shadow: 5px 5px 0px #2c2c2c;
    }
    
    .door-number {
        font-size: 2.5em;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 30px;
        width: 95%;
        border-width: 3px;
        box-shadow: 8px 8px 0px #2c2c2c;
    }
    
    .modal-content h2 {
        font-size: 1.8em;
    }
    
    .audio-player-section {
        padding: 20px;
    }
    
    .audio-controls {
        gap: 10px;
    }
    
    .audio-progress-container {
        min-width: 150px;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3em;
    }
    
    .volume-slider {
        width: 80px;
    }
}
