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

body {
    background-color: #555;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    display: flex;
    flex-direction: column; 
    align-items: center;    
    gap: 40px;              
    padding: 40px 0;        
}

/* Selve A4-siden */
.a4-page {
    background: white;
    width: 210mm; 
    min-height: 297mm; 
    position: relative; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- HEADER --- */
.main-header {
    background-color: #335372; 
    height: 220px;
    position: relative;
    color: white;
    display: flex; /* Tilføj flex her */
    justify-content: flex-end; /* Skubber indholdet (navnet) mod højre */
    align-items: center; /* Centrerer navnet vertikalt i den blå boks */
    padding-right: 10%; /* Juster denne for at styre afstanden til højre kant */
}

.header-text h1 {
    font-size: 4rem;    /* Gør 'Simon' rigtig stort */
    font-weight: bold;  /* Gør det ekstra tydeligt */
    margin: 0;
    line-height: 0.9;   /* Trækker efternavnene lidt tættere op */
}

.header-text h2 {
    font-size: 3rem;  /* Gør efternavnene mindre end fornavnet */
    font-weight: normal;
    margin: 0;
    line-height: 1.1;
}

/* Sørg for at blokken stadig flugter til venstre */
.header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    text-align: left;
}

/* Profilbillede cirkel */
.profile-img-container {
    position: absolute;
    top: 60px;
    left: 50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 0px solid white; 
    z-index: 10;
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Den hvide boks med titlen */
.title-badge {
    position: absolute;
    bottom: -70px; 
    right: 30px;
    background: white;
    color: #333;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    border: 2px solid #335372;
    font-size: 0.9rem;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- INDHOLD --- */
.content-padding {
    padding: 60px 40px 80px 40px; 
    flex-grow: 1;
}

/* Sektions-overskrifter (Blå pille + streg) */
.section-heading {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 30px;
}

/* 1. GRUNDLÆGGENDE DESIGN (Gælder både tekst og links) */
.section-heading .badge {
    background-color: #5fa2ce;
    color: rgb(0, 40, 90);
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap;
    position: relative; 
    z-index: 2; 
}

/* 2. LINK SPECIFIKT (Gør at den kan animeres og beholder farven) */
a.badge {
    text-decoration: none; 
    display: inline-block; /* VIGTIGT: Tillader scale-animation */
    color: rgb(0, 40, 90) !important; /* VIGTIGT: Tvinger farven, så den ikke bliver blå/lilla */
    transition: transform 0.2s ease, background-color 0.2s; 
}

/* 3. HOVER EFFEKTEN (Når musen er over) */
a.badge:hover {
    transform: scale(1.05); /* Puster den op med 5% (1.5 var for voldsomt) */
    background-color: #4a90e2; 
    cursor: pointer; 
}

.section-heading .line {
    height: 2px;          
    min-height: 2px;      
    background-color: #333;
    flex-grow: 1;
    width: auto;
    margin-left: -20px;
    margin-right: -40px;
    position: relative;
    z-index: 1;
}

/* Generel tekst */
p, li {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
}

.summary-text {
    margin-bottom: 30px;
    line-height: 1.8;
}

/* --- GRID LAYOUT --- */
.grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr; 
    gap: 40px;
}

/* Job Styling */
.job-entry {
    margin-bottom: 25px;
}

.job-entry h3 {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    line-height: 1.6;
}

.date {
    font-style: italic;
    color: #666;
    margin-bottom: 5px;
    font-size: 0.85rem;
    margin-left: 16px;
}

/* Gælder for lister under job og kompetencer */
.job-entry ul, .simple-list {
    list-style-position: outside; 
    margin-left: 18px; 
    padding-left: 0;
    margin-top: 5px;
}

.job-entry li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Højre kolonne elementer */
.edu-entry p {
    margin-bottom: 10px;
}

/* Progress bars for sprog */
.skill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.skill-row span {
    width: 80px;
    font-weight: 500;
    color: #666;
}

.progress-bar {
    flex-grow: 1;
    height: 8px;
    background-color: #eee; 
    border-radius: 4px;
    margin-left: 10px;
    position: relative;
}

.progress-bar .fill {
    height: 100%;
    background-color: #666; 
    border-radius: 4px;
}

/* --- FOOTER --- */
.bottom-bar {
    background-color:#335372;
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    width: 100%; 
    margin-top: 40px;
}

.bottom-bar div {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobil-tilpasning */
@media (max-width: 768px) {
    .a4-page { width: 100%; height: auto; }
    .grid-layout { grid-template-columns: 1fr; }
    .header-text { position: relative; right: auto; top: auto; text-align: center; margin-top: 20px;}
    .profile-img-container { position: relative; margin: 0 auto; top: auto; left: auto; }
    .main-header { height: auto; padding-bottom: 40px; display: flex; flex-direction: column-reverse;}
    .title-badge { position: relative; margin: 20px auto; right: auto; bottom: auto; }
    .bottom-bar { flex-direction: column; gap: 10px; }
}

/* --- SPEJLVENDT OVERSKRIFT (Til venstre spalte) --- */
.section-heading.from-left {
    flex-direction: row-reverse; 
    justify-content: flex-end;   
}

.section-heading.from-left .line {
    flex-grow: 0;        
    width: 45px;         
    margin-left: -40px;  
    margin-right: -20px; 
}

/* --- STYLING TIL SIDE 2 --- */

/* Underoverskrifter */
/* Dette gælder for alle andre sub-headers (Studieprojekter osv.) */
.sub-header {
    font-size: 1.2rem;
    font-weight: bold;
    color: rgb(66, 66, 66);
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: none; /* Her fjerner vi stregen globalt */
    text-decoration: underline;
}

/* Titel på projekterne */
.project-title {
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: rgb(50, 50, 50);
    font-weight: bold;
    margin-left: 5px;

}

.project-entry {
    margin-bottom: 25px;
}

/* Værktøjslisten */
.tool-list {
    list-style-type: disc;        
    list-style-position: outside; 
    margin-left: 18px;            
    padding-left: 0;
    margin-top: 5px;
}

.tool-list li {
    margin-bottom: 20px;
    line-height: 1.4;
}

.tool-list strong {
    display: block; 
    color: #333;
    margin-bottom: 4px;
}

.tool-list p {
    font-size: 0.9rem;
    color: #555;
    margin: 0; 
}

/* --- ACCORDION STYLING --- */

.accordion-container {
    border: none !important;    /* Fjerner den ramme der driller */
    background: transparent;    /* Sikrer at der ikke er en baggrundsfarve der syner af en streg */
    padding: 0;                 /* Fjerner indvendig luft der kan afsløre containeren */
    margin: 0;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden; /* Dette er vigtigt for at de blå hjørner ikke "stikker ud" */
    border: none;
}

.accordion-item:last-child {
    margin-bottom: 0;    /* Sørger for at der ikke er ekstra luft i bunden af containeren */
}

/* Selve knappen man trykker på */
.accordion-header {
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    padding: 15px 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1rem;
    font-weight: 600; /* Halvfed tekst */
    display: flex;
    justify-content: space-between; /* Skubber pilen ud til højre */
    align-items: center;
    transition: background-color 0.2s;
    font-family: inherit; /* Bruger samme skrifttype som resten */
}

/* Når man holder musen over eller den er åben */
.accordion-header:hover, .accordion-header.active {
    background-color: #eef2f5;
    color: #335372; /* Din mørkeblå farve */
}

/* Indholdet (skjult som standard) */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out; /* Den glidende animation */
    background-color: white;
}

.inner-padding {
    padding: 20px;
    border-top: 1px solid #eee; /* Lille streg mellem titel og indhold */
}

/* Kun selve pilen skal have lov at bevæge sig glat */
.accordion-header .fa-chevron-down {
    transition: transform 0.3s ease;
}

/* Det er KUN pilen, der må rotere 180 grader, når knappen er aktiv */
.accordion-header.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Vi sikrer os, at dit personlige ikon (bruger-cirklen) ALDRIG roterer */
.accordion-header .fa-file-alt,
.accordion-header .fa-chart-bar,
.accordion-header .fa-code,
.accordion-header .fa-hands-helping,
.accordion-header .fa-user-circle,
.accordion-header .fa-project-diagram,
.accordion-header .fa-laptop-code,
.accordion-header .fa-chart-line,
.accordion-header .fa-bullhorn,
.accordion-header .fa-comment-dots,
.accordion-header .fa-globe-europe,
.accordion-header .fa-language,
.accordion-header .fa-book,
.accordion-header .fa-cubes,
.accordion-header .fa-layer-group,
.accordion-header .fa-brain,
.accordion-header .fa-glass-martini-alt,
.accordion-header .fa-concierge-bell,
.accordion-header .fa-briefcase-medical,
.accordion-header .fa-microchip,
.accordion-header .fa-users,
.accordion-header .fa-route {
    transform: none !important;
}


/* --- SKILL TAGS (Til kompetence-siden) --- */
.skill-tag-container {
    display: flex;
    flex-wrap: wrap; /* Gør at de hopper ned på næste linje hvis der ikke er plads */
    gap: 10px;       /* Luft mellem knapperne */
    margin-top: 10px;
}

.skill-tag {
    display: inline-block; /* Gør at de respekterer margin og padding */
    background-color: #f0f4f8; /* Den lyse farve fra dit screenshot */
    color: #335372;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-right: 8px;
    margin-bottom: 10px; /* Dette skaber afstanden mellem rækkerne */
    border: 1px solid #d1d9e0;
    white-space: nowrap; /* Sikrer at teksten inde i et tag ikke knækker midt i det hele */
}
/* Containeren der holder styr på kolonnerne */
.columns-container {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Afstand mellem kasserne */
    margin-top: 15px;
}

/* Designet af den enkelte kasse/kolonne */
.column {
    flex: 1; /* Sørger for at de tre kasser deler pladsen ligeligt */
    background: #f9f9f9; /* Lysegrå baggrund */
    padding: 15px;
    border-radius: 8px; /* Runde hjørner */
    border: 1px solid #eee; /* Tynd kantlinje */
}

/* Overskriften i kasserne (A, B, C Niveau) */
.column h4 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 2px solid #333; /* Stregen under overskriften */
    padding-bottom: 5px;
    font-size: 1.1em;
    color: #333;
}

/* Selve listen af fag */
.column ul {
    padding-left: 20px;
    margin: 0;
}

.column li {
    margin-bottom: 5px; /* Lidt luft mellem hvert fag */
}

/* === MOBIL VISNING === */
/* Hvis skærmen er mindre end 768px (tablets og mobiler), ændres layoutet */
@media (max-width: 768px) {
    .columns-container {
        flex-direction: column; /* Læg kolonnerne ovenpå hinanden */
    }
}

/* --- Værktøjsliste Design --- */

.tool-list {
    list-style-type: none; 
    padding-left: 0;
    margin-left: 5px;        /* Her ændrer vi til 0, så listen starter helt ude til venstre */
    margin-top: 5px;       
}

.tool-list li {
    position: relative;
    margin-bottom: 10px;   
    line-height: 1.6;      
    padding-left: 18px;    /* Vi beholder denne, for teksten skal stadig rykke lidt ind, så den ikke ligger oven i trekanten */
}

.tool-list li::before {
    content: "▸";
    position: absolute;
    left: 0;               /* Nu flugter trekanten fuldstændig med kanten af teksten ovenover */
}

/* --- Accordion Design --- */
.accordion-header {
    background-color: #f8f9fa;
    color: #333;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.3s;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header.active {
    background-color: #335372; /* Din blå farve */
    color: white;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-left: 3px solid #335372;
}

/* Design for de indre elementer (Selve værktøjerne) */
.inner-accordion .accordion-header {
    background-color: white;
    font-size: 0.95rem;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.inner-accordion .accordion-header:hover {
    background-color: #f9f9f9;
}

.inner-accordion .accordion-header.active {
    background-color: #f0f0f0;
    color: #333;
    border-left: 4px solid #335372;
}

.job-titel {
    text-decoration: underline;
}

/* Styling specifikt til listerne under dine jobs */
.job-list {
    list-style-type: none; 
    padding-left: 0;
    margin-left: 6px;      /* Husk at bruge det samme tal, som du fandt frem til før! */
    margin-top: 5px;       
}

.job-list li {
    position: relative;
    margin-bottom: 10px;   
    line-height: 1.6;      
    padding-left: 18px;    
}

.job-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
}
/* Bemærk: Vi tilføjer IKKE nogen regler for 'strong' eller 'p' her! */

/* Denne streg rammer nu KUN "Om mig" hovedoverskriften */
#about-me .sub-header_ {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgb(15, 15, 15);
    padding-bottom: 8px;
    border-bottom: 3px solid #333; 
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Disse streger rammer nu KUN de små overskrifter inde i "Om mig" */
#about-me .mini-header {
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    margin-top: 30px;
    margin-bottom: 12px;
}

#about-me .mini-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 3px;
    width: 100%;
    background-color: #333;
}

.skill-tag-a {
    background-color: #335372;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    margin-right: 5px;
    display: inline-block;
}

.course-tag-a {
    background-color: #f0f4f8;
    color: #335372;
    border: 1px solid #335372;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

/* Styling af README boksen */
#dis-readme {
    background-color: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: #24292f;
    text-align: left; /* Sikrer at teksten ikke er centreret */
}

/* Overskrifter i README */
#dis-readme h1, #dis-readme h2, #dis-readme h3 {
    border-bottom: 1px solid #d8dee4;
    padding-bottom: 0.3em;
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

/* Kode-blokke (bash koderne) */
#dis-readme pre {
    background-color: #afb8c133;
    padding: 16px;
    border-radius: 6px;
    overflow: auto; /* Hvis koden er for lang */
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
    font-size: 85%;
}

/* Inline kode (det der står inde i teksten) */
#dis-readme code {
    background-color: #afb8c133;
    padding: 0.2em 0.4em;
    border-radius: 6px;
    font-family: monospace;
}

/* Lister i README */
#dis-readme ul {
    padding-left: 2em;
    margin-bottom: 16px;
}

/* Links */
#dis-readme a {
    color: #0969da;
    text-decoration: none;
}

#dis-readme a:hover {
    text-decoration: underline;
}