/* ===== MODERN STYLE.CSS — Student NM Seiling 2025 ===== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
    --primary:        #0f2b4c;   /* Deep navy */
    --primary-light:  #1a3f6f;
    --secondary:      #e04525;   /* Warm orange-red */
    --secondary-dark: #c13a1e;
    --accent:         #3b9bd6;   /* Bright sea blue */
    --accent-light:   #e8f4fc;
    --text:           #1e293b;
    --text-muted:     #64748b;
    --white:          #ffffff;
    --bg:             #f8fafc;
    --card-bg:        #ffffff;
    --border:         #e2e8f0;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:      0 4px 12px rgba(0,0,0,.08);
    --shadow-lg:      0 10px 30px rgba(0,0,0,.10);
    --radius:         12px;
    --radius-sm:      8px;
    --transition:     .25s ease;
    --max-width:      1120px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

/* --- Layout --- */
.container {
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--primary);
    border-bottom: 3px solid var(--secondary);
    box-shadow: var(--shadow-md);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Logo circle */
.logo-container { flex-shrink: 0; }

.event-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: transform var(--transition);
}
.event-logo:hover { transform: scale(1.05); }
.event-logo img { height: 48px; width: auto; }

/* Desktop nav */
header nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
}

header nav ul li a {
    color: rgba(255,255,255,.85);
    font-weight: 500;
    font-size: .95rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
    text-transform: uppercase;
    letter-spacing: .03em;
}
header nav ul li a:hover,
header nav ul li a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 110;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    background: url('../images/hero_background.jpg') no-repeat center center/cover;
    color: var(--white);
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,43,76,.7) 0%, rgba(15,43,76,.55) 100%);
}
.hero > * { position: relative; z-index: 1; }

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .4em;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: .92;
}
.hero .btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: .5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    background: var(--secondary);
    color: var(--white);
}
.btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(224,69,37,.35);
    color: var(--white);
}

.btn-secondary {
    background: var(--accent);
    color: var(--white);
}
.btn-secondary:hover {
    background: #2d8ac4;
    box-shadow: 0 4px 14px rgba(59,155,214,.35);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    box-shadow: none;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: 64px 0;
}
.section-light {
    background: var(--white);
}
.section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 40px;
    letter-spacing: -.01em;
}

/* ============================================================
   NEWS
   ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.news-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}
.news-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.news-item h3 { color: var(--primary); margin-bottom: .5em; }

.news-placeholder {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.15rem;
    padding: 20px;
}

/* ============================================================
   LIVE TRACKING & IFRAME BUTTONS
   ============================================================ */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 24px 0;
}

#iframe-container {
    display: none;
    justify-content: center;
    padding: 0 20px 30px;
}
#iframe-container iframe {
    width: min(90%, 1000px);
    height: 1300px;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   SPONSORS
   ============================================================ */
.sponsor-section {
    text-align: center;
}
.sponsor-section h3 {
    font-size: 1.15rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 40px 0 20px;
    font-weight: 600;
}

.sponsor-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.sponsor-main img { max-width: 360px; }
.sponsor-main blockquote {
    font-style: italic;
    color: var(--text-muted);
    max-width: 620px;
    line-height: 1.8;
    font-size: .95rem;
    padding: 0 20px;
}

.sponsor-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
    align-items: center;
}
.sponsor-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.sponsor-item a:hover {
    transform: scale(1.06);
    box-shadow: var(--shadow-sm);
}
.sponsor-item img { max-height: 80px; width: auto; }

/* ============================================================
   INFO PAGES
   ============================================================ */
.page-intro {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.info-card.highlight {
    border-left: 4px solid var(--accent);
    background: var(--accent-light);
}
.info-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}
.info-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-top: 20px;
    margin-bottom: 6px;
}
.info-card p { margin-bottom: 12px; }
.info-card ul {
    padding-left: 24px;
    margin-bottom: 12px;
}
.info-card ul li { margin-bottom: 6px; }
.info-card dl dt {
    font-weight: 600;
    margin-top: 16px;
    color: var(--primary);
}
.info-card dl dd {
    margin-left: 0;
    margin-bottom: 8px;
}

/* ============================================================
   SCHEDULE / PROGRAM
   ============================================================ */
.schedule { padding: 0 8px; }

.schedule-day {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.schedule-day:first-child { margin-top: 12px; }

.schedule-entry {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}
.schedule-entry:last-of-type { border-bottom: none; }

.schedule-time {
    font-weight: 600;
    color: var(--secondary);
    font-size: .95rem;
    white-space: nowrap;
}
.schedule-desc {
    color: var(--text);
}
.schedule-desc strong { display: block; margin-bottom: 2px; }

.schedule-note {
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 28px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    max-width: 520px;
    margin: 0 auto 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.contact-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.contact-card p { color: var(--text-muted); margin-bottom: 12px; }

.clubs-section {
    text-align: center;
    margin-top: 48px;
}
.clubs-section h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.clubs-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 16px 0;
}
.clubs-section ul li a {
    font-weight: 600;
}

/* ============================================================
   OVERNATTING
   ============================================================ */
.accommodation-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    max-width: 700px;
    margin: 0 auto;
}
.accommodation-card h3 {
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 16px;
}
.accommodation-card p { margin-bottom: 12px; }
.accommodation-card .btn { margin-top: 8px; }

.accommodation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.accommodation-details {
    text-align: left;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ============================================================
   PAAMELDING
   ============================================================ */
.signup-content {
    max-width: 660px;
    margin: 0 auto;
    text-align: center;
}
.signup-content p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-muted);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: .95rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,155,214,.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--primary);
    color: rgba(255,255,255,.8);
    text-align: center;
    padding: 40px 0 28px;
    margin-top: 0;
}
footer .organizer-logos {
    margin-bottom: 20px;
}
footer .organizer-logos p {
    color: rgba(255,255,255,.55);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 12px;
    font-weight: 500;
}
footer .organizer-logos img {
    height: 46px;
    margin: 0 12px 12px;
    display: inline-block;
    border-radius: 6px;
    background: var(--white);
    padding: 6px;
    transition: transform var(--transition);
}
footer .organizer-logos img:hover { transform: scale(1.08); }

footer .copyright {
    font-size: .85rem;
    color: rgba(255,255,255,.45);
    margin-top: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary);
        padding: 80px 24px 24px;
        transition: right .35s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,.25);
        z-index: 105;
    }
    header nav.open { right: 0; }

    header nav ul {
        flex-direction: column;
        gap: 4px;
    }
    header nav ul li a {
        display: block;
        padding: 14px 16px;
        font-size: 1.05rem;
        border-radius: var(--radius-sm);
    }

    .hero { min-height: 60vh; padding: 40px 16px; }

    .sponsor-row { gap: 20px; }
    .sponsor-item img { max-height: 56px; }
    .sponsor-main img { max-width: 260px; }

    .schedule-entry {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .info-card { padding: 24px 20px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero p   { font-size: 1rem; }
    .section h2 { font-size: 1.6rem; }
}
