@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

/* Generel Opsætning & Typografi */
body {
    font-family: 'Georgia', serif;
    font-size: 18px;
    line-height: 1.7;
    color: #222;
    background-color: #fcfcfc;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    color: #111;
}

a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #555;
}

/* Header & Navigation */
header {
    background-color: #fcfcfc;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo a {
    display: block;
}

.logo img {
    max-height: 80px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

nav ul li {
    margin-left: 0;
    position: relative;
    padding-bottom: 0;
}

nav a {
    display: inline-block;
    position: relative;
    padding: 6px 0;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 18.4px;
    line-height: 1.2;
    color: #222;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s ease;
}

nav a:hover,
nav a:focus-visible,
nav li.active a {
    color: #111;
}

nav a:hover::after,
nav a:focus-visible::after,
nav li.active a::after {
    transform: scaleX(1);
}

nav a:focus-visible {
    outline: 2px solid #617398;
    outline-offset: 6px;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}

.header-tools nav ul li:first-child {
    margin-left: 0;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    background-color: #fff;
}

.language-switcher button {
    display: grid;
    place-items: center;
    min-width: 56px;
    height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #333;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.language-switcher button span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.language-switcher button::before {
    content: '';
    width: 28px;
    height: 20px;
    border-radius: 2px;
    border: 1px solid #111;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    box-sizing: border-box;
}

.language-switcher button[data-language-option="da"]::before {
    background-image: url('/drone/da.png');
}

.language-switcher button[data-language-option="en"]::before {
    background-image: url('/drone/en.png');
}

.language-switcher button:hover,
.language-switcher button.is-active {
    background-color: #111;
    color: #fff;
}

.language-switcher button:hover {
    transform: translateY(-1px);
}

.language-switcher button:focus-visible {
    outline: 2px solid #617398;
    outline-offset: 2px;
}

@media (max-width: 760px) {
    header .container,
    .header-tools {
        justify-content: center;
    }

    .header-tools {
        width: 100%;
        gap: 14px;
    }

    nav ul {
        justify-content: center;
    }

    nav a {
        padding: 6px 0;
        font-size: 17.25px;
    }
}

/* Generelle sektioner */
section {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

section:last-of-type {
    border-bottom: none;
}

section h2,
#hero h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
}

#hero .subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Indholdsside & Referencer (details.html) */
.page-summary {
    background-color: #f8f9fa;
    border-left: 4px solid #dee2e6;
    padding: 1em 1.5em;
    margin-bottom: 2em;
    font-style: italic;
    color: #495057;
    line-height: 1.6;
}

#references ol {
    list-style-type: none;
    counter-reset: ref-counter;
    padding-left: 0;
}

#references li {
    counter-increment: ref-counter;
    margin-bottom: 0.8em;
    padding-left: 3.5em;
    position: relative;
    line-height: 1.5;
}

#references li::before {
    content: '[' counter(ref-counter) ']';
    font-weight: bold;
    position: absolute;
    left: 0;
    width: 3em;
    text-align: right;
    padding-right: 0.5em;
}

#references em {
    font-style: italic;
}

#content-page p a {
    text-decoration: none;
    color: #6495ED;
    font-weight: 600;
}

#content-page p a:hover {
    text-decoration: underline;
}


/* Specifik styling for Støtte-siden */
#application-header {
    text-align: center;
    padding: 80px 0 40px 0;
}

#application-header h1 {
    font-size: 42px;
}

.total-gauge-container {
    text-align: center;
    margin: 20px 0;
}

.total-gauge-container h3 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: normal;
    color: #555;
}

.gauge-visual {
    height: 25px;
    background-color: #e9e9e9;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #ddd;
    width: 100%;
}

.gauge-fill {
    height: 100%;
    width: 0%;
    background-color: #333;
    transition: width 1s ease-out;
}

.gauge-text {
    margin-top: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #555;
}

.funded-amount {
    font-weight: 700;
    color: #222;
}

.budget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.budget-item {
    padding: 1rem;
}

.budget-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.budget-item .budget-amount {
    font-size: 1.8rem;
    font-family: 'Georgia', serif;
    color: #111;
    margin: 0;
}

.timeline-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.timeline-table th,
.timeline-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.timeline-table th {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    background-color: #f8f8f8;
}

.timeline-table td:first-child {
    font-weight: 700;
    width: 120px;
}

/* --- OPDATERET STYLING FOR INTERAKTIV TIDSPLAN --- */
.activity-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.update-toggle-btn {
    flex-shrink: 0;
    padding: 5px 15px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #777;
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.update-toggle-btn:hover {
    background-color: #f0f0f0;
    color: #333;
    border-color: #bbb;
}

/* FJERN PADDING FRA RÆKKEN, DER INDEHOLDER STATUS */
.update-row>td {
    padding: 0 !important;
}

/* DENNE WRAPPER-DIV BLIVER ANIMERET */
.update-content-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.update-content-wrapper.is-visible {
    max-height: 200px;
}

/* SELVE INDHOLDSBOKSEN */
.update-box {
    background-color: #f8f9fa;
    margin: 0 15px 15px 15px;
    /* Tilføjer margin, når den er synlig */
    padding: 15px 20px;
    border-left: 5px solid #ccc;
    border-radius: 0 4px 4px 0;
}

.update-box p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.inline-link {
    font-weight: 700;
    color: #617398;
    text-decoration: none;
    border-bottom: 1px dotted #555;
    transition: all 0.2s ease-in-out;
}

.inline-link:hover {
    color: #8299cb;
    border-bottom: 1px solid #111;
}

/* --- SLUT PÅ NY STYLING --- */


#cta {
    text-align: center;
}

.button-primary,
.button-secondary {
    display: inline-block;
    padding: 15px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 10px;
    position: relative;
    overflow: hidden;
}

.button-primary {
    background-color: #222;
    color: #fff;
    border: 2px solid #222;
}

.button-primary:hover {
    background-color: #444;
    border-color: #444;
    color: #fff;
}

.button-secondary {
    background-color: #fff;
    color: #222;
    border: 2px solid #222;
}

.button-secondary:hover {
    background-color: #222;
    color: #fff;
}

.button-primary::before,
.button-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease-in-out;
}

.button-primary:hover::before,
.button-secondary:hover::before {
    left: 120%;
}


/* Modal Styling */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 30px 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

.close-button:hover {
    color: black;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #444;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Georgia', serif;
}

.form-group input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.form-static-info {
    padding: 12px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0;
}

/* FJERNET: CSS for .form-group-checkbox */

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #ddd;
    background-color: #f8f8f8;
}

footer p {
    margin: 5px 0;
    color: #777;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* Stifter Profil Side (stifter.html) */
#founder-profile .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    padding: 60px 20px;
}

.founder-image-container {
    flex: 0 0 250px;
    text-align: center;
}

.founder-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    /* Gør billedet cirkulært */
    object-fit: cover;
    /* Sikrer at billedet dækker området uden at blive forvrænget */
    border: 5px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.founder-details {
    flex: 1;
    /* Fylder den resterende plads */
    min-width: 300px;
}

.founder-details h2 {
    text-align: left;
    /* Tilsidesætter den generelle centrering af H2 */
    font-size: 36px;
    margin-bottom: 5px;
}

.founder-title {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    color: #666;
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 400;
}

.founder-details ul {
    list-style: none;
    padding-left: 0;
    margin-top: 25px;
}

.founder-details li {
    padding-left: 30px;
    margin-bottom: 15px;
    position: relative;
    line-height: 1.6;
}

.founder-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 5px;
    /* Justeret for bedre vertikal alignment */
    color: #617398;
    font-weight: bold;
    font-size: 20px;
}

/* MOBIL RESPONSIVE REGLER */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        margin-bottom: 20px;
    }

    .header-tools {
        flex-direction: column;
        gap: 14px;
    }

    nav ul {
        justify-content: center;
    }

    nav ul li {
        margin: 0 15px;
    }

    #application-header h1,
    #hero h2 {
        font-size: 32px;
    }

    .activity-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .update-toggle-btn {
        margin-top: 10px;
    }
}