:root {
    --ruter-red: #E60000;
    --ruter-red-dark: #A20000;
    --ruter-red-light: #FDEBEB;
    --ruter-navy: #313663;
    --ruter-blue: #002B79;
    --ruter-gray: #6D7196;
    --ruter-gray-light: #F8F8F8;
    --ruter-gray-mid: #ebecf0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--ruter-navy);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Focus indicators */
:focus-visible {
    outline: 2px solid var(--ruter-navy);
    outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* Back link */
.back-link {
    display: inline-block;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 16px;
    transition: color 0.15s;
}
.back-link:hover { color: white; }
.back-link--dark {
    color: var(--ruter-gray);
}
.back-link--dark:hover { color: var(--ruter-navy); }

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px;
}

/* Section spacing */
.section {
    padding: 4rem 1.25rem;
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, var(--ruter-red), var(--ruter-red-dark));
    color: white;
    padding: 5rem 1.25rem 3rem;
}
.hero-inner {
    max-width: 900px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 28rem;
    margin-bottom: 2rem;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--ruter-red);
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1rem;
    transition: box-shadow 0.15s;
    border: none;
    cursor: pointer;
}
.hero-cta:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.hero-links {
    margin-top: 1rem;
}
.hero-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: underline;
    font-size: 0.95rem;
}
.hero-links a:hover { color: white; }

/* Hero teasers */
.hero-teasers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
}
.hero-teaser {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: flex-end;
    text-decoration: none;
}
.hero-teaser img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-teaser::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
}
.hero-teaser-label {
    position: relative;
    z-index: 1;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1.25rem;
}

/* ========== STEPS ========== */
.steps-section {
    background: var(--ruter-gray-light);
}
.steps-section h2 {
    font-size: 1.75rem;
    color: var(--ruter-navy);
    margin-bottom: 2rem;
}
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.step-number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--ruter-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1.25rem;
}
.step-card {
    flex-grow: 1;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.step-card h3 {
    color: var(--ruter-red);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.step-card p {
    color: var(--ruter-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== ROLE SECTION ========== */
.role-section {
    background: var(--ruter-gray-mid);
}
.role-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    background: var(--ruter-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.role-section h2 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ruter-navy);
    margin-bottom: 0.5rem;
}
.role-section > .section-inner > p {
    color: var(--ruter-gray);
    max-width: 24rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.role-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.role-item {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}
.role-section .section-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--ruter-navy);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}
.role-section .section-link:hover {
    text-decoration: underline;
}

/* ========== SECTION INNER ========== */
.section-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* ========== MEDIA PREVIEW (landing page) ========== */
.media-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ruter-navy);
}
.media-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.media-header a {
    color: var(--ruter-red);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.media-header a:hover { text-decoration: underline; }

/* Media grid (shared between landing preview and media.html) */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.media-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #F5F3EF;
}
.media-item--featured {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}
.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
    pointer-events: none;
}
.media-item-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 1;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}
.media-item-tag {
    display: inline-block;
    background: var(--ruter-red-dark);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

/* Placeholder */
.media-placeholder {
    aspect-ratio: 16 / 9;
    background: #F5F3EF;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
}

/* ========== EXPLAINER CARD ========== */
.explainer-card {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: white;
}
.explainer-card img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
}
.explainer-card-body {
    padding: 2rem;
}
.explainer-card-body h3 {
    color: var(--ruter-red);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.explainer-card-body p {
    color: var(--ruter-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ========== MARKETPLACE ========== */
.marketplace-section {
    background: var(--ruter-gray-light);
    text-align: center;
}
.marketplace-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ruter-navy);
    margin-bottom: 0.5rem;
}
.marketplace-section > .section-inner > p {
    color: var(--ruter-gray);
    font-size: 0.9rem;
    max-width: 20rem;
    margin: 0 auto 2.5rem;
}
.marketplace-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.marketplace-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    max-width: 22rem;
    width: 100%;
}
.marketplace-card-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
}
.marketplace-card-icon--red {
    background: var(--ruter-red-light);
    color: var(--ruter-red);
}
.marketplace-card-icon--blue {
    background: #e8eaf6;
    color: var(--ruter-navy);
}
.marketplace-card h3 {
    font-size: 1.2rem;
    color: var(--ruter-navy);
    margin-bottom: 0.25rem;
}
.marketplace-card .marketplace-card-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    display: block;
}
.marketplace-card p {
    color: var(--ruter-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}
.marketplace-connector {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--ruter-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.marketplace-connector-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ruter-navy);
    margin-top: 0.5rem;
}

/* ========== CONTACT FOOTER ========== */
.contact-footer {
    border-top: 1px solid #e9ecef;
    padding: 3rem 1.25rem;
}
.contact-footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.contact-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contact-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}
.contact-card-icon--red {
    background: var(--ruter-red-light);
    color: var(--ruter-red);
}
.contact-card-icon--gray {
    background: #f0f0f0;
    color: var(--ruter-gray);
}
.contact-card h4 {
    font-size: 0.95rem;
    color: var(--ruter-navy);
    margin-bottom: 0.25rem;
}
.contact-card p {
    font-size: 0.8rem;
    color: var(--ruter-gray);
    margin-bottom: 0.35rem;
}
.contact-card a {
    color: var(--ruter-red);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}
.contact-card a:hover { text-decoration: underline; }

/* ========== SUBPAGE HEADER ========== */
.subpage-header {
    background: linear-gradient(135deg, var(--ruter-red), var(--ruter-red-dark));
    color: white;
    padding: 3rem 1.25rem 2rem;
}
.subpage-header-inner {
    max-width: 900px;
    margin: 0 auto;
}
.subpage-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.subpage-header p {
    opacity: 0.9;
    font-size: 1rem;
}

/* ========== CONTENT CARDS (preserved from existing) ========== */
.content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 24px;
}
.content-card h2, .content-card h3 {
    color: var(--ruter-navy);
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.content-card .intro {
    color: var(--ruter-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.text-block {
    background: var(--ruter-gray-light);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
    margin-bottom: 16px;
}
.content-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
}
.content-card video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Action buttons */
.card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    min-height: 44px;
}
.btn:active { transform: scale(0.97); }
.btn-copy {
    background: var(--ruter-navy);
    color: white;
}
.btn-copy:hover { background: #252a52; }
.btn-copy.copied {
    background: #16a34a;
}
.btn-download {
    background: var(--ruter-navy);
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-download:hover { background: #252a52; }
.btn-download--small {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-height: 36px;
}

/* Lateral link */
.lateral-link {
    display: block;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--ruter-gray);
    font-size: 0.9rem;
}
.lateral-link a {
    color: var(--ruter-red);
    font-weight: 600;
    text-decoration: none;
}
.lateral-link a:hover { text-decoration: underline; }

/* Gallery section headers */
.gallery-section-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ruter-navy);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ruter-red-light);
}
.gallery-section-header:first-of-type {
    margin-top: 0;
}

/* Gallery item with download */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #F5F3EF;
}
.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-item--landscape {
    aspect-ratio: 16 / 9;
}
.gallery-item-info {
    padding: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.gallery-item-info span {
    font-size: 0.85rem;
    color: var(--ruter-navy);
    font-weight: 500;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
    .hero-teasers {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-teasers > :first-child {
        grid-column: span 3;
        aspect-ratio: 2.5 / 1;
    }
    .media-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .hero { padding: 3rem 1rem 2rem; }
    .hero h1 { font-size: 2rem; }
    .section { padding: 2.5rem 1rem; }
    .container { padding: 20px 16px; }
    .content-card { padding: 20px; }
    .text-block { padding: 14px; font-size: 0.9rem; }
    .media-grid { grid-template-columns: 1fr; }
    .media-item--featured { grid-column: span 1; }
    .step-card { padding: 1.25rem; }
    .marketplace-card { padding: 1.5rem; }
    .subpage-header { padding: 2rem 1rem 1.5rem; }
    .subpage-header h1 { font-size: 1.5rem; }
}
