/* style.css – Stockholm Tour 2026 */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

header, footer {
    background-color: #004c70;
    color: white;
    text-align: center;
    padding: 1rem;
}

header h1 {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
}

footer {
    margin-top: 2rem;
}

/* Navigation */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #e9ecef;
    gap: 0;
}

nav a {
    color: #004c70;
    text-decoration: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
    flex: 1 1 auto;
    text-align: center;
    border-right: 1px solid #d0d0d0;
    transition: background-color 0.3s ease;
    min-width: 80px;
}

nav a:last-child {
    border-right: none;
}

nav a:hover {
    background-color: #d6e9f2;
}

/* Content */
.content {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.content h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.hero {
    text-align: center;
    padding: clamp(2rem, 10vw, 3rem) 1rem;
    background-image: url('stockholm.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 8px;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin: 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin: 0.5rem 0 0 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.day, .contact-box {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 5px solid #004c70;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.day h2, .contact-box h2 {
    margin-top: 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-bottom: 1rem;
    overflow-x: auto;
    display: block;
}

table thead {
    display: block;
    width: 100%;
}

table tbody {
    display: block;
    width: 100%;
}

table th, table td {
    border: 1px solid #999;
    padding: clamp(0.5rem, 2vw, 0.75rem);
    text-align: left;
}

table th {
    background-color: #004c70;
    color: white;
    font-weight: 600;
}

table tr {
    display: table;
    width: 100%;
}

td.num {
    text-align: right;
    white-space: nowrap;
}

tfoot td {
    font-weight: bold;
    background-color: #e0e0e0;
}

.legend td {
    border: none;
    padding: 4px 10px;
}

/* Lists */
ul, ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Links */
a {
    color: #004c70;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #003d54;
    text-decoration: underline;
}

/* Responsive Design Breakpoints */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }
    
    nav a {
        flex: 0 1 calc(50% - 1px);
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    nav a:nth-child(even) {
        border-right: 1px solid #d0d0d0;
    }
    
    nav a:nth-child(2n+1) {
        border-right: none;
    }
    
    .content {
        margin: 1rem auto;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    table th, table td {
        padding: 0.5rem 0.4rem;
    }
}

@media (max-width: 480px) {
    nav {
        flex-direction: column;
    }
    
    nav a {
        flex: 0 1 100%;
        border-right: none;
        border-bottom: 1px solid #d0d0d0;
        padding: 0.75rem 1rem;
    }
    
    nav a:last-child {
        border-bottom: none;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 1.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .content {
        margin: 1rem auto;
        padding: 0 0.75rem;
    }
    
    table {
        font-size: 0.75rem;
    }
    
    table th, table td {
        padding: 0.4rem 0.3rem;
    }
    
    td.num {
        white-space: normal;
    }



}
