/* Global styling reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根元素样式 */
html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Sæt body baggrundsbillede */
body {
    background-image: url('site_background6.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Hovedcontainer styling */
.container {
    position: relative;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-color: rgba(255, 255, 255, 0.2);
    /* 进一步降低透明度，让背景图片更清晰 */
}

/* Indholdcontainer styling */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}
/* Velkomsttitel styling */
.welcome-title {
    font-size: 3rem;
    font-weight: 700;
    color: #8B4513;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
    margin-bottom: 4rem;
    line-height: 1.2;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem 2rem;
    border-radius: 10px;
}

/* Knapcontainer styling */
.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 600px;
}

/* Grundlæggende styling for butiksknapper */
.branch-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* Specifik styling for Jyllinge butiksknap */
.jyllinge-button {
    background: linear-gradient(135deg, #E67E22, #D35400);
    /* 橙红色渐变，热情活力 */
}

.jyllinge-button:hover {
    background: linear-gradient(135deg, #D35400, #B33C00);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

/* Specifik styling for Holte butiksknap */
.holte-button {
    background: linear-gradient(135deg, #16A085, #1ABC9C);
    /* 青绿色渐变，清新自然 */
}

.holte-button:hover {
    background: linear-gradient(135deg, #1ABC9C, #148F77);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

/* Knaptekst styling */
.button-text {
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 按钮点击波纹效果 */
.branch-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.branch-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Footer styling */
.footer {
    margin-top: 4rem;
    color: #8B4513;
    font-size: 0.9rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

/* Indlæsningsanimation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #E67E22;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 - 平板设备 */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .branch-button {
        padding: 1.3rem 2.5rem;
        font-size: 1.3rem;
    }
    
    .buttons-container {
        gap: 1.5rem;
    }
}

/* Responsiv design - Mobil enheder */
@media (max-width: 480px) {
    .welcome-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .branch-button {
        padding: 1.2rem 2rem;
        font-size: 1.2rem;
        width: 100%;
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .buttons-container {
        gap: 1.2rem;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .welcome-title {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }
    
    .branch-button {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loader {
        display: none;
    }
    
    .container {
        opacity: 1;
    }
}