/* -----------------------------------------------------------
   Global Basics
----------------------------------------------------------- */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #303030;
}

img {
    max-width: 100%;
    height: auto;
}


/* -----------------------------------------------------------
   One page struktur
----------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

/* Generelle sektioner */

.section {
    padding: 80px 24px;
}

.section-light {
    background: #ffffff;
}

.section-grey {
    background: #f3f3f3;
}

.section-cta {
    background: #c82127;
    color: #ffffff;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 12px;
    text-align: center;
}


.section-intro {
    max-width: 620px;
    margin: 0 auto 32px;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    color: #c82127;
    font-weight: 700;
}


/* Firmaprofil */
/* Firmaprofil */
.firmaprofil-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}

/* Brødtekst */
#firmaprofil .firmaprofil-text p {
    text-align: justify;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
}

/* Containerbillede */
.firmaprofil-image img {
    width: 100%;
    max-width: 220px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0px 4px 18px rgba(0,0,0,0.15));
}

/* Mobil */
@media (max-width: 900px) {
    .firmaprofil-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}





/* Kontaktsektion */

.section-cta .section-intro {
    color: rgba(255,255,255,0.9);
}

#kontakt {
    scroll-margin-top: 120px;
}


.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: flex-start;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.contact-list li {
    margin-bottom: 6px;
}

.contact-list a {
    color: #ffffff;
    text-decoration: underline;
}

/* Simpel formular styling */

.contact-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 22px 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.form-row {
    margin-bottom: 14px;
}

.form-row label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #cccccc;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.contact-submit {
    margin-top: 6px;
    border: none;
    cursor: pointer;
}

/* Mobile tilpasning */

@media (max-width: 900px) {

    .section {
        padding: 60px 18px;
    }

    .two-cols,
    .feature-grid,
    .container-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        gap: 16px;
    }

    .container-grid {
        gap: 16px;
    }
}


/* -----------------------------------------------------------
   Header
----------------------------------------------------------- */

header {
    background: white;          /* eller rød hvis du bruger rød header */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.brand-logo {
    height: 60px;
}

/* ingen header.is-shrink mere, så slet de regler du havde til det */

/* sørg for at indholdet ikke gemmer sig bag headeren */
.site-main {
    padding-top: 108px; /* juster hvis headeren er højere eller lavere */
}

/* Navigation centreret i midten */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 48px;
}

.main-nav a {
    position: relative;
    text-decoration: none;
    color: #303030;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    padding: 8px 14px;
    border-radius: 6px;
    transition: color 0.25s ease, background 0.25s ease;
}

/* underline – usynlig fra start */
.main-nav a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 4px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
    opacity: 0.9;
}

/* hover */
.main-nav a:hover {
    background: rgba(0,0,0,0.06);
    color: #c82127;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

/* aktivt menupunkt */
.main-nav a.is-active {
    background: rgba(0,0,0,0.10);
    color: #c82127;
}

.main-nav a.is-active::after {
    transform: scaleX(1);
}



/* -----------------------------------------------------------
   HERO SECTION
----------------------------------------------------------- */

.hero {
    position: relative;
    padding: 80px 40px 120px;
    color: white;
    min-height: 480px;
    overflow: hidden;
    background: #050505;
}

/* Flex indhold */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Tekstblok */
.hero-text {
    flex: 1 1 50%;
    max-width: 520px;
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* ---------------------------------------------
   Slideshow baggrund (styres af JS)
--------------------------------------------- */

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Alle slides ligger oven på hinanden */
.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease-in-out; /* længere fade for luksus effekt */
}

.hero-bg-slide.is-active {
    opacity: 1;
}

/* Billederne – filnavne som hos dig */
.hero-bg-1 {
    background-image: url("assets/hero-1.webp");
}

.hero-bg-2 {
    background-image: url("assets/hero-2.webp");
    background-position: center bottom;
}

.hero-bg-3 {
    background-image: url("assets/hero-3.webp");
}

.hero-bg-4 {
    background-image: url("assets/hero-4.webp");
}

.hero-bg-5 {
    background-image: url("assets/hero-5.webp");
}

.hero-bg-6 {
    background-image: url("assets/hero-6.webp");
}

.hero-bg-7 {
    background-image: url("assets/hero-7.webp");
}

.hero-bg-8 {
    background-image: url("assets/hero-8.webp");
    background-position: center bottom;
}

/* Det aktive slide – vises */
.hero-bg-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Mørk overlay så teksten altid er læsbar */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.45)
    );
}

/* ---------------------------------------------
   Kran animation
--------------------------------------------- */

.hero-visual {
    flex: 1 1 50%;
    min-height: 340px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
}

.crane-swing {
    position: relative;
    width: 260px;
    animation: swingCrane 6.8s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes swingCrane {
    0%   { transform: rotate(-3deg); }
    50%  { transform: rotate(3deg); }
    100% { transform: rotate(-3deg); }
}

.crane-cable {
    width: 2px;
    height: 90px;
    background: #ccc;
    margin: 0 auto;
}

.crane-container img {
    width: 260px;
    display: block;
}




/* ---------------------------------------------
   Buttons
--------------------------------------------- */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.btn-primary {
    background: #c82127;
    color: white;
}

.btn-primary:hover {
    background: #a81c21;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* ---------------------------------------------
   Content Section
--------------------------------------------- */

.content-section {
    background: white;
    max-width: 900px;
    margin: -60px auto 40px;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0px 8px 36px rgba(0,0,0,0.12);
    z-index: 3;
    position: relative;
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */

.site-footer {
    background: #151515;
    color: #d0d0d0;
    text-align: center;
    padding: 48px 24px 36px;
    margin-top: 80px;
    font-size: 14px;
}

.footer-cvr {
    margin: 0 0 12px;
    font-size: 13px;
    color: #bdbdbd;
    letter-spacing: 0.02em;
}


.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-logo {
    width: 130px;
    margin-bottom: 18px;
    opacity: 0.9;
}

.footer-company {
    margin: 0 0 6px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.footer-contact {
    margin: 0;
    line-height: 1.6;
    color: #bdbdbd;
}

.footer-copy {
    margin-top: 20px;
    font-size: 12px;
    color: #8f8f8f;
}

/* ---------------------------------------------
   Responsive design
--------------------------------------------- */

@media (max-width: 900px) {

    header {
        flex-direction: column;
        gap: 14px;
        padding: 12px 16px;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero {
        padding: 60px 20px 100px;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-visual {
        align-items: center;
        width: 100%;
    }

    .content-section {
        margin: 20px;
    }
}


/* Kran i firmaprofil sektionen */
.firmaprofil-crane {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Justering af placering */
.firmaprofil-crane .crane-swing {
    width: 220px;      /* eller den størrelse du vil have */
    position: relative;
    top: -20px;        /* løfter kranen op */
    left: 20px;        /* skubber kranen mod højre */
}

.firmaprofil-crane .crane-container img {
    width: 220px;
    filter: none;
}


/* KOMPETENCER */

#kompetencer {
    position: relative;
    padding: 100px 0;
}

/* Overskrift og intro centreret i hele blokken */
#kompetencer h3 {
    text-align: center;
    width: 100%;
}


#kompetencer h2 {
    margin-bottom: 6px;
}

#kompetencer h3 {
    margin-top: 4px;
    margin-bottom: 40px;
    font-size: 24px;
    color: #c82127;
}

/* Flex layout: tekst venstre, billede højre */

.kompetence-flex {
    display: flex;
    gap: 60px;
    align-items: center;   /* gør billedet cirka midt i højden */
}

/* Venstre kolonne med lister */

.kompetence-left {
    flex: 1.4;
}

/* To kolonner med bullets */

.kompetence-list-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
    width: 100%;
    margin: 0;
}

.kompetence-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kompetence-list li {
    margin-bottom: 12px;
    padding-left: 18px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
}

/* lille rød markering foran hvert punkt */

.kompetence-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #c82127;
    border-radius: 2px;
    position: absolute;
    left: 0;
    top: 7px;
}

.kompetence-list p {
    margin: 6px 0 0;
    font-size: 16px;
    line-height: 1.6;
}

/* Højre kolonne med billede */

.kompetence-right {
    flex: 1;
    display: flex;
    justify-content: center;
    margin-top: -40px; /* hæver billedet */
}


.kompetence-right img {
    max-width: 500px; /* tidligere 420px */
    width: 100%;
    height: auto;
}


/* Mobil */

@media (max-width: 900px) {

    .kompetence-flex {
        flex-direction: column;
        gap: 40px;
    }

    .kompetence-right img {
        max-width: 360px;
        margin: 0 auto;
    }

    .kompetence-list-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* CONTAINERE SEKTION */

#containere .section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

#containere h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

#containere .section-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

/* Grid med tre kort */

.container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;   /* vigtig for at kortene ikke bliver lige høje */
}

/* Kortene */

.container-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem 1.75rem 1.25rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
}

.container-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: block;
}

.container-card h3 {
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.container-tagline {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}



/* Smooth fold-out animation for specifications */

.spec-btn {
    margin-top: 0.2rem;
    padding: 0.55rem 1rem;
    border: none;
    border-radius: 6px;
    background: #d62828;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.95rem;
}

.spec-btn:hover {
    opacity: 0.9;
}

/* Smooth fold-out panel */
.specs {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    margin-top: 1rem;
    text-align: left; /* vigtig! */
}

/* Overskrifter */
.specs h4 {
    margin-top: 0.8rem;
    margin-bottom: 0.25rem;
}

/* Lister */
.specs ul {
    margin: 0 0 0.6rem 0;
    padding-left: 1.4rem;          /* giver korrekt indrykning */
    list-style-position: outside;  /* bullet i venstre side */
}

/* Punkter */
.specs li {
    margin-bottom: 0.25rem;
}

.form-success, .form-error {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out;
}

.form-success {
    background: #d4edda;
    color: #155724;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-submit.is-loading {
    opacity: 0.7;
    cursor: wait;
}

/* -----------------------------------------------------------
   Kompetencer – ikon-grid
----------------------------------------------------------- */

.section-subtitle {
  margin: 0 auto 20px;
  max-width: 760px;
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
  color: #c82127;
  font-weight: 700;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.value-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

.value-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(200, 33, 39, 0.10);
  color: #c82127;
  font-size: 30px;
}

.value-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  color: #303030;
}

.value-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

/* Responsive */
@media (max-width: 980px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
    .hero {
        padding-top: 140px;
    }
}
