/* =========================================================
   Stege Sommerlejr - modern stylesheet (young sailors)
   Bright summery teal + sun-gold. Rewritten 2026.
   ========================================================= */

:root {
    --deep:   #0a4d5c;   /* deep sea teal */
    --teal:   #0e7c8b;   /* primary */
    --aqua:   #21a7bd;   /* bright water */
    --sun:    #f6a623;   /* sunny gold accent */
    --sun-dk: #e08e00;
    --bg:     #eef7f8;   /* light aqua tint */
    --card:   #ffffff;
    --text:   #12333a;
    --muted:  #5c7178;
    --line:   #d9e8ea;
    --radius: 16px;
    --shadow:    0 8px 26px rgba(10, 77, 92, 0.12);
    --shadow-sm: 0 3px 10px rgba(10, 77, 92, 0.10);
    --maxw:   920px;
    --font:   "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI",
              Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img, iframe { max-width: 100%; }
img { height: auto; border: 0; border-radius: 10px; }

/* ---------- Navigation ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--deep), var(--teal));
    box-shadow: 0 2px 14px rgba(10, 77, 92, 0.28);
}
.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    gap: 12px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.12rem;
    white-space: nowrap;
}
.nav-brand img {
    height: 42px;
    width: auto;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    display: block;
    color: #dff1f3;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    padding: 8px 13px;
    border-radius: 999px;
    border: none;
    transition: background .15s ease, color .15s ease;
}
.nav-links a:hover,
.nav-links a:focus { background: rgba(255,255,255,.16); color: #fff; }
.nav-links a.nav-cta { background: var(--sun); color: #4a2e00; }
.nav-links a.nav-cta:hover { background: var(--sun-dk); color: #fff; }

.nav-toggle { display: none; }
.nav-burger {
    display: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 8px;
    user-select: none;
}
.nav-burger:hover { background: rgba(255,255,255,.16); }

/* ---------- Hero (wave-bottom banner) ---------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--teal) 0%, var(--aqua) 60%, #4fc3d6 100%);
    color: #fff;
    text-align: center;
    padding: 56px 20px 78px;
    overflow: hidden;
}
.hero::after {                       /* sun disc accent */
    content: "";
    position: absolute;
    top: -60px; right: -40px;
    width: 190px; height: 190px;
    background: radial-gradient(circle, rgba(246,166,35,.85), rgba(246,166,35,0) 70%);
    pointer-events: none;
}
.hero .hero-title {
    margin: 0;
    position: relative;
    font-size: clamp(2rem, 6vw, 3.1rem);
    font-weight: 700;
    letter-spacing: .3px;
    text-shadow: 0 2px 14px rgba(0,0,0,.22);
}
.hero .hero-sub {
    margin: 12px auto 0;
    position: relative;
    max-width: 640px;
    font-size: clamp(1.05rem, 2.6vw, 1.3rem);
    color: #f2fbfc;
    text-shadow: 0 1px 8px rgba(0,0,0,.20);
}
.hero .hero-badge {
    display: inline-block;
    position: relative;
    margin-bottom: 14px;
    background: var(--sun);
    color: #4a2e00;
    font-weight: 700;
    font-size: .95rem;
    padding: 6px 16px;
    border-radius: 999px;
    letter-spacing: .4px;
}
.hero-wave {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    width: 100%;
    height: 46px;
    display: block;
}
.hero-wave path { fill: var(--bg); }

/* ---------- Main ---------- */
main, .content {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 26px 20px 60px;
}
main > h1, .content > h1 {
    color: var(--deep);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 14px 0 4px;
    line-height: 1.2;
}
main > h2, .content > h2 { color: var(--teal); margin: 26px 0 10px; }

/* ---------- Cards (legacy .transbox) ---------- */
.transbox {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 5px solid var(--sun);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px 26px;
    margin: 20px 0;
    width: auto;
    max-width: 100%;
    transition: box-shadow .2s ease, transform .2s ease;
}
.transbox:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.transbox h1 { font-size: 1.45rem; color: var(--deep); margin: 0 0 12px; }
.transbox h2 { font-size: 1.3rem; color: var(--teal); margin: 0 0 12px; }
.transbox h3, .transbox h4 { font-size: 1.08rem; color: var(--deep); margin: 16px 0 8px; }
.transbox p { margin: 0 0 14px; }
.transbox p:last-child, .transbox ul:last-child { margin-bottom: 0; }
.transbox ul, .transbox ol { margin: 0 0 14px; padding-left: 22px; }
.transbox li { margin: 6px 0; }
.transbox iframe { width: 100%; border: 0; border-radius: 12px; display: block; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font); line-height: 1.25; }

/* ---------- Links ---------- */
a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(14,124,139,.3);
    transition: color .15s ease, border-color .15s ease;
}
a:hover { color: var(--sun-dk); border-bottom-color: var(--sun-dk); }
a:visited { color: var(--teal); }

/* Big call-to-action link (e.g. TILMELD DIG HER) */
.transbox p > a[href*="manage2sail"] {
    display: inline-block;
    background: var(--sun);
    color: #4a2e00;
    font-size: 1.1rem;
    padding: 12px 26px;
    border-radius: 999px;
    border: none;
    box-shadow: var(--shadow-sm);
}
.transbox p > a[href*="manage2sail"]:hover { background: var(--sun-dk); color: #fff; }

/* Standalone iframe outside cards */
main > iframe, .content > iframe {
    width: 100%; border: 0; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); margin: 8px 0 22px;
}

/* ---------- Tables ---------- */
table {
    border-collapse: collapse; width: 100%; margin: 16px 0;
    background: var(--card); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); font-size: .95rem;
}
th, td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
th { background: var(--deep); color: #fff; font-weight: 600; }
tr:nth-child(even) td { background: #f4fafb; }

/* ---------- Footer ---------- */
.site-footer {
    background: linear-gradient(90deg, var(--deep), var(--teal));
    color: #d6eef1;
    text-align: center;
    padding: 26px 20px;
    font-size: .95rem;
    margin-top: 40px;
}
.site-footer a { color: #fff; border-bottom-color: rgba(255,255,255,.4); }
.site-footer a:hover { color: var(--sun); border-bottom-color: var(--sun); }
.site-footer p { margin: 6px 0; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
    .nav-burger { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--deep);
        padding: 8px 12px 14px;
        box-shadow: 0 12px 24px rgba(0,0,0,.28);
    }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .nav-links a { padding: 12px 14px; font-size: 1rem; border-radius: 10px; }
    .nav-links a.nav-cta { margin-top: 6px; text-align: center; }
    .hero { padding: 42px 18px 64px; }
    .transbox { padding: 18px 18px 18px 20px; }
    body { font-size: 16px; }
}
