/* ---------------------------------------------------------------- */
/* 1. Grundlæggende Layout & Header                                 */
/* ---------------------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    background-color: #eafce8;
    color: #1a1a1a;
    line-height: 1.6;
}

header {
    background-color: #2e7d32;
    text-align: center;
    padding: 0; /* Vi fjerner padding herfra... */
}

/* Dette link fylder nu hele det grønne felt */
/* Gør header-linket til en container for den absolutte positionering */
.header-main-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    text-decoration: none;
    padding: 10px 0; /* Mere luft i toppen og bunden på computer/tablet */
}

.header-main-link:hover {
    background-color: #266b2a; /* Gør farven en anelse mørkere ved hover */
}

.logo-group {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center; /* Sikrer at titlen centreres */
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    /* Ingen margin-left nødvendig her, da ikonet er 'løftet' ud af rækkefølgen */
}

/* Flyt hus-ikonet ud til venstre uden at påvirke teksten */
.home-icon {
    position: absolute;
    left: 30px; /* God afstand til kanten på store skærme */
    font-size: 2rem; /* Større ikon så det er nemt at ramme */
    transition: transform 0.2s;
}

.home-icon:hover {
    transform: scale(1.1); /* Lille effekt når man fører musen over */
    filter: drop-shadow(2px rgba(255, 255, 255, 0.5));
}

.home-link {
    text-decoration: none;
    font-size: 32px; /* Hævet fra 24px */
    line-height: 1; /* Sikrer at huset flugter pænt med teksten */
}

/* ---------------------------------------------------------------- */
/* 2. Navigation & Dropdown (Fixer Artikel-knappen)                 */
/* ---------------------------------------------------------------- */
.navbar {
    background-color: #333;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-btn,
.dropbtn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    box-sizing: border-box;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 4px;
    font-family: inherit;
}

.nav-btn:hover,
.dropdown:hover .dropbtn {
    background-color: #555;
}

.active-nav {
    background-color: #2e7d32;
}

/* Dropdown logik */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 220px;
    box-shadow: 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border-radius: 4px;
    overflow: hidden;
    left: 50%;
    transform: translateX(-50%); /* Centrerer dropdown i forhold til knappen */
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

/* Vis menuen ved både hover (PC) og ved klik/tap (Mobil) */
.dropdown:hover .dropdown-content,
.dropdown.is-open .dropdown-content {
    display: block;
}

/* Gør det tydeligt på mobil at menuen er aktiv */
@media (max-width: 600px) {
    .dropdown.is-open .dropbtn {
        background-color: #555;
        border-radius: 4px 4px 0 0;
    }
}

/* ---------------------------------------------------------------- */
/* 3. Artikel-optimering (Venstrejustering & Bredde)                */
/* ---------------------------------------------------------------- */
main {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    text-align: left;
}

.artikel-indhold h1,
h1 {
    font-size: 2.2em;
    margin-bottom: 0.5em;
    text-align: left;
}
.artikel-indhold h2,
h2 {
    font-size: 1.8em;
    margin-top: 1.5rem;
    text-align: left;
}
.artikel-indhold h3,
h3 {
    font-size: 1.4em;
    margin-top: 1.2rem;
    text-align: left;
}

p {
    margin-bottom: 1.5rem;
    text-align: left;
}

ul,
ol {
    text-align: left;
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 8px;
}

/* ---------------------------------------------------------------- */
/* Parent-first homepage concept                                    */
/* ---------------------------------------------------------------- */
.parent-home {
    max-width: 940px;
    margin-top: 28px;
}

.parent-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: center;
    gap: 34px;
    padding: 12px 0 28px;
}

.eyebrow {
    margin-bottom: 10px;
    color: #8a3b12;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
}

.parent-hero h1 {
    max-width: 760px;
    margin-top: 0;
    font-size: 2.6rem;
    line-height: 1.12;
}

.lead {
    max-width: 760px;
    font-size: 1.16rem;
}

.hero-actions,
.parent-guide-callout,
.benefit-row,
.help-grid {
    display: flex;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 16px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}

.primary-action {
    background: #2e7d32;
    color: #fff;
}

.secondary-action {
    border: 1px solid #2e7d32;
    color: #205923;
    background: #fff;
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #37533b;
}

.trust-list li::before {
    content: "✓";
    margin-right: 8px;
    color: #2e7d32;
    font-weight: 700;
}

.parent-hero-media {
    margin: 0;
}

.parent-hero-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(33, 77, 36, 0.2);
}

.summer-band {
    margin: 18px 0 34px;
    padding: 26px;
    background: #fff7eb;
    border-left: 6px solid #ef9a35;
}

.summer-band h2,
.parent-fit h2,
.how-it-helps h2,
.parent-video h2,
.parent-guide-callout h2,
.method-note h2,
.final-cta h2 {
    margin-top: 0;
}

.benefit-row {
    gap: 16px;
    margin-top: 20px;
}

.benefit-row > div {
    flex: 1;
    padding: 14px;
    background: #fff;
    border-radius: 6px;
}

.benefit-row strong,
.benefit-row span {
    display: block;
}

.benefit-row span {
    color: #555;
}

.parent-fit,
.how-it-helps,
.parent-video,
.parent-guide-callout,
.method-note,
.final-cta {
    margin-top: 38px;
}

.parent-fit ul {
    columns: 2;
    column-gap: 36px;
}

.parent-fit li {
    break-inside: avoid;
    margin-bottom: 10px;
}

.help-grid {
    gap: 18px;
}

.help-grid article {
    flex: 1;
    padding-top: 16px;
    border-top: 4px solid #7dbb82;
}

.help-grid h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.parent-video p {
    font-style: normal;
}

.parent-video .video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #000;
}

.parent-video video {
    width: 100%;
    display: block;
}

.parent-guide-callout {
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #cfe7d0;
}

.parent-guide-callout p {
    margin-bottom: 0;
}

.method-note {
    padding-top: 8px;
}

.final-cta {
    padding: 24px;
    background: #dff3df;
}

.final-cta p {
    margin-bottom: 18px;
}

@media (max-width: 700px) {
    .parent-home {
        margin-top: 18px;
    }

    .parent-hero h1 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1.05rem;
    }

    .parent-hero {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .benefit-row,
    .help-grid,
    .parent-guide-callout {
        flex-direction: column;
    }

    .parent-fit ul {
        columns: 1;
    }
}

/* ---------------------------------------------------------------- */
/* 4. Footer                                                        */
/* ---------------------------------------------------------------- */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9em;
    color: #666;
}

/* --- App Vælger Layout (apps.php) --- */

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 30px auto 0 auto;
}

.apps-main {
    max-width: 1100px;
}

/* Selve kortet */
.app-item {
    text-align: center;
    border-radius: 16px;
    padding: 10px;
    transition: all 0.2s ease;
}

/* Fjern link-look */
.app-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Billede = knap */
.app-item img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    margin: 0 !important;
    transition: all 0.2s ease;
}

/* 🔥 DET HER ER DET VIGTIGE */
.app-item a:hover img {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Tekst under knappen */
.app-text {
    margin-top: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a1a1a;
}

.device-reset-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
    gap: 28px;
    align-items: center;
    margin: 64px 0 10px;
    padding: 28px;
    border: 1px solid #cfe7d0;
    border-radius: 8px;
    background: #f8fbf7;
}

.device-reset-eyebrow {
    margin: 0 0 8px;
    color: #205923;
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
}

.device-reset-card h2 {
    margin: 0 0 10px;
    color: #1d2a22;
    font-size: 1.7rem;
}

.device-reset-card p {
    margin: 0;
    color: #4d5f50;
}

.device-reset-action {
    display: grid;
    gap: 10px;
}

.device-reset-button {
    min-height: 50px;
    border: 2px solid #c9d8cc;
    border-radius: 8px;
    background: #ffffff;
    color: #205923;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.device-reset-button.is-holding {
    border-color: #2e7d32;
    background: #eef6ed;
}

.device-reset-button:disabled {
    cursor: default;
    opacity: 0.72;
}

.device-reset-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #d8e5d9;
}

.device-reset-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #2e7d32;
    transition: width 0.08s linear;
}

.device-reset-help {
    font-size: 0.95rem;
}

.teacher-reset-note,
.parent-reset-note {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #cfe7d0;
    border-radius: 8px;
    background: #f8fbf7;
}

.teacher-reset-note h3 {
    margin: 0;
}

.teacher-reset-note p {
    margin: 0 0 8px;
}

.parent-reset-note strong,
.parent-reset-note a {
    color: #205923;
    font-weight: 900;
}

.parent-reset-note span {
    color: #4d5f50;
}

.parent-reset-note a {
    text-decoration: none;
}

/* Mobil: 1 kolonne */
@media (max-width: 600px) {
    .app-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .device-reset-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }
}

@media (min-width: 1024px) {
    .site-title {
        font-size: 3.5rem; /* Endnu tydeligere på store skærme */
    }

    .home-icon {
        left: 50px; /* Mere luft i siderne på en bred skærm */
    }
}

/* Styling til Om-siden */
.tekst-foto-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.profil-foto {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #2e7d32;
}

@media (max-width: 600px) {
    .tekst-foto-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Styling af Facebook-link i footeren for bedre kontrast */
.footer-fb-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #003366; /* Mørkere blå for bedre kontrast mod #eafce8 */
    text-align: center;
    font-weight: 500;
}

.footer-fb-text:hover {
    text-decoration: underline;
    color: #001122; /* Endnu mørkere ved hover */
}

/* Statusbeskeder (bruges i apps.php og om.php) */
.status-msg {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: left;
    border: 1px solid transparent;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Specifik spacing til apps-siden */
.apps-title {
    margin-bottom: 10px;
}

.section-divider {
    margin: 50px 0;
    border: 0;
    border-top: 1px solid #ccc;
}

/* Forslag til nye baner */
.suggest-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 28px 0 36px;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid #cfe7d0;
    border-left: 6px solid #2e7d32;
    border-radius: 8px;
}

.suggest-callout h2 {
    margin: 0 0 4px;
    font-size: 1.35rem;
}

.suggest-callout p {
    max-width: 700px;
    margin: 0;
}

.suggest-callout .primary-action {
    flex: 0 0 auto;
}

.suggest-page {
    max-width: 720px;
    margin-top: 32px;
}

.back-link,
.video-overview-link {
    color: #205923;
    font-weight: 700;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    text-decoration: none;
}

.suggest-intro h1,
.suggest-success h1 {
    margin-top: 0;
}

.suggest-example {
    display: grid;
    gap: 3px;
    margin: 24px 0;
    padding: 18px 20px;
    background: #fff7eb;
    border-left: 5px solid #ef9a35;
    border-radius: 4px;
}

.suggest-form {
    margin-top: 28px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #cfe7d0;
    border-radius: 10px;
}

.form-field {
    margin-bottom: 24px;
}

.form-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 1.05rem;
    font-weight: 700;
}

.optional,
.optional-details summary span {
    color: #5d6f60;
    font-size: 0.9rem;
    font-weight: 400;
}

.field-help {
    margin: 0 0 8px;
    color: #4d5f50;
    font-size: 0.95rem;
}

.suggest-form input,
.suggest-form select,
.suggest-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #839685;
    border-radius: 5px;
    background: #fff;
    color: #1a1a1a;
    font: inherit;
}

.suggest-form textarea {
    resize: vertical;
}

.suggest-form input:focus,
.suggest-form select:focus,
.suggest-form textarea:focus {
    outline: 3px solid rgba(46, 125, 50, 0.22);
    border-color: #2e7d32;
}

.optional-details {
    margin: 4px 0 24px;
    padding: 16px 18px 0;
    border: 1px solid #d8e5d9;
    border-radius: 6px;
    background: #f7fbf7;
}

.optional-details summary {
    margin-bottom: 16px;
    cursor: pointer;
    color: #205923;
    font-weight: 700;
}

.video-overview-link {
    display: inline-block;
    margin-top: 8px;
}

.privacy-note {
    color: #4d5f50;
    font-size: 0.9rem;
}

.suggest-submit {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.suggest-success {
    padding: 28px;
    background: #ffffff;
    border: 1px solid #cfe7d0;
    border-left: 6px solid #2e7d32;
    border-radius: 8px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .suggest-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .suggest-callout .primary-action {
        align-self: flex-start;
    }

    .suggest-form {
        padding: 20px;
    }
}

/* 1. Grundstil for alle knapper - nu med hvid tekst */
.nav-btn,
.dropbtn {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #ffffff !important; /* <--- HER ER DEN HVIDE FARVE */
    padding: 10px 18px !important;
    text-decoration: none;
    display: inline-block;
    background: transparent; /* Sikrer at der ikke er en knap-baggrund */
    border: none;
    border-bottom: 3px solid transparent;
    box-sizing: border-box;
}

/* 2. Hover-tilstand (Når musen er over) */
.nav-btn:hover,
.dropdown:hover .dropbtn {
    font-weight: 900 !important;
    color: #ffffff !important; /* Forbliver hvid */
    text-shadow: 8px rgba(255, 255, 255, 0.5); /* Giver et lille hvidt skær */
}

/* 3. Den aktive side (Hvor man er lige nu) */
.active-nav {
    font-weight: 900 !important;
    color: #ffffff !important;
    border-bottom: 3px solid #ffffff; /* En hvid streg under den aktive side */
}

/* 4. Dropdown-pil (hvis du bruger den lille ▾) */
.dropbtn {
    cursor: pointer;
}

/* --- Større home-ikon på computer (skærme over 1024px) --- */
@media (min-width: 1025px) {
    .home-icon {
        font-size: 2.5rem !important; /* Gør ikonet større på PC */
        left: 40px !important; /* Giver mere luft til venstre kant */
        transition: transform 0.2s ease-in-out;
    }

    .home-icon:hover {
        transform: scale(1.1); /* Lille animation når musen er over */
    }

    .site-title {
        font-size: 3rem !important; /* Gør også selve titlen "Skriv Nu" større på PC */
    }
}

@media (max-width: 600px) {
    .nav-container {
        max-width: 100%;
        overflow: visible;
        justify-content: center;
        padding: 0 4px;
    }

    .nav-links {
        width: 100%;
        justify-content: space-around;
        gap: 0;
        display: flex;
        white-space: nowrap; /* Forhindrer knapperne i at hoppe ned på næste linje */
    }

    .nav-btn,
    .dropbtn {
        font-size: 0.95rem !important; /* Lidt mindre tekst på mobil */
        padding: 10px 7px !important; /* Mindre luft i siderne */
    }

    .dropdown-content {
        position: fixed;
        left: 12px;
        right: 12px;
        width: auto;
        min-width: 0;
        max-width: none;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        transform: none;
        white-space: normal;
    }

    .dropdown-content a {
        line-height: 1.3;
        white-space: normal;
    }
}
