/* Reset og base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Use a privacy-friendly system font stack instead of loading Google Fonts */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

/* Header */
header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1rem 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.2);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 20px;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero .btn {
    display: inline-block;
    margin: 0 0.5rem;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background-color: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #667eea;
}

/* Section styles */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.services {
    padding: 4rem 20px;
    background-color: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #3498db;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Recommendations section */
.recommendations {
    padding: 4rem 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.recommendation-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-5px);
}

.recommendation-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.recommendation-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    padding: 0 1.5rem;
}

.author {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
}

.description {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
    padding: 0 1.5rem;
}

.recommendation-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0 1.5rem;
    display: block;
    margin-bottom: 1.5rem;
}

.recommendation-link:hover {
    color: #2980b9;
}

/* Info section */
.info-section {
    padding: 4rem 20px;
    background-color: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 0.5rem;
    color: #555;
}

.info-list a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-list a:hover {
    color: #2980b9;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 20px;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #3498db;
    text-decoration: none;
}

.footer-link:hover {
    color: #2980b9;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero .btn {
        display: block;
        width: 100%;
        max-width: 250px;
        margin: 0.5rem auto;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .services,
    .recommendations,
    .info-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }

    .hero {
        padding: 2rem 10px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .services,
    .recommendations,
    .info-section {
        padding: 2rem 10px;
    }

    .service-card,
    .info-card {
        padding: 1.5rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.nav-link:focus,
.btn:focus,
.recommendation-link:focus,
.info-list a:focus,
.footer-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support (fixed: use valid values and include forced-colors) */
@media (prefers-contrast: more), (forced-colors: active) {
    .service-card,
    .recommendation-card,
    .info-card {
        border: 2px solid #2c3e50;
    }
}

/* Reservation page styles */
.reservation-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.reservation-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.reservation-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.reservation-form-section {
    padding: 4rem 0;
    background-color: white;
}

.form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.reservation-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: #666;
    font-size: 0.9rem;
}

/* Accessibility helpers */
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Skip link styling when visible (keeps it off-screen normally) */
.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    background: #fff;
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border: 2px solid #3498db;
    border-radius: 4px;
    z-index: 9999;
}

/* Show skip link when focused via keyboard */
.skip-link:focus-visible {
    left: 8px;
}

.logo-link { text-decoration: none; color: inherit; }

/* Confirmation / live region */
.confirmation {
    background: #e8f8f5;
    border: 1px solid #2ecc71;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 6px;
}

/* Admin (reservasjoner) page styles */
.admin-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 0.6rem 0.8rem;
    border: 1px solid #e9ecef;
    text-align: left;
    vertical-align: top;
}

.admin-empty {
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .admin-controls { flex-direction: column; }
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    font-size: 1.1rem;
    padding: 1rem;
}

.form-submit:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.form-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.form-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.form-info .info-list {
    margin-bottom: 2rem;
}

.form-info .info-list li {
    margin-bottom: 0.8rem;
    color: #555;
}

.contact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.contact-card h4 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

/* Responsive form */
@media (max-width: 768px) {
    .form-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .reservation-content h2 {
        font-size: 2rem;
    }

    .reservation-content p {
        font-size: 1rem;
    }
}

/* About page styles */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.about-content-section {
    padding: 4rem 0;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #2c3e50;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555;
}

.values-list {
    list-style: none;
    margin: 1rem 0;
}

.values-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.values-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.about-image {
    text-align: center;
}

.about-img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.team-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.team-member h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.team-role {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-description {
    color: #666;
    line-height: 1.6;
}

.developer-section {
    padding: 4rem 0;
    background-color: white;
}

.developer-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.developer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.developer-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.developer-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem 0;
    color: #3498db;
}

.developer-info p {
    margin-bottom: 0.5rem;
    color: #555;
}

.competence-goals {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.competence-goals h4 {
    margin-top: 0;
}

.competence-list {
    list-style: none;
    margin: 1rem 0;
}

.competence-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.competence-list li::before {
    content: "🎯";
    position: absolute;
    left: 0;
}

.contact-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 1rem;
}

.contact-info h4 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.stats-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive about page */
@media (max-width: 768px) {
    .about-grid,
    .developer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* Video page styles */
.video-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.video-hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.video-lead {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.featured-video {
    padding: 4rem 0;
    background-color: white;
}

.video-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.video-player iframe {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.video-author {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 1rem;
}

.video-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.video-details {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.video-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-item {
    font-size: 0.9rem;
    color: #666;
}

.video-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.video-library {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.video-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail iframe {
    border-radius: 8px 8px 0 0;
}

.video-card-content {
    padding: 1.5rem;
}

.video-card-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.video-card-author {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.video-card-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.video-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.video-link:hover {
    color: #2980b9;
}

.reading-resources {
    padding: 4rem 0;
    background-color: white;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.resource-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.resource-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.resource-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: #2980b9;
}

.video-about {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.video-about-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.video-about-content p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.benefits-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: left;
}

.benefits-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.benefits-list li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #e74c3c;
}

.cta-section {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.cta-section h3 {
    margin-bottom: 1rem;
    color: white;
}

.cta-section p {
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Responsive video page */
@media (max-width: 768px) {
    .video-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .video-hero-content h2 {
        font-size: 2rem;
    }

    .video-lead {
        font-size: 1rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-actions {
        flex-direction: column;
    }

    .video-actions .btn {
        width: 100%;
        text-align: center;
    }
}
/* Footer adjustments for all pages */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 20px;
    text-align: center;
}
footer p {
    margin-bottom: 0.5rem;
}
.footer-link {
    color: #3498db;
    text-decoration: none;
}
.footer-link:hover {
    color: #2980b9;
}
/* Additional links section */
.additional-links {
    margin-top: 1rem;
}
.additional-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.additional-links a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}
.additional-links a:hover {
    color: #0084ff;
}
/* Responsive footer */
@media (max-width: 480px) {
    .additional-links ul {
        flex-direction: column;
        gap: 1rem;
    }
}
/* End of style.css */
.top-bar-text {
    text-transform: none;
    font-variant: normal;
    font-style: normal;
    font-weight: normal;
    letter-spacing: normal;
    font-family: inherit;
  }
 /* Body — litt mer plass fra viewport-kantene */ 
body {
    /* Use a privacy-friendly system font stack instead of loading Google Fonts */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;

    /* Økt ytre avstand fra "veggen" */
    padding: 30px;
}

/* Litt mindre padding på veldig små skjermer */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }
}