/* =========================================================
   JMV – LEDERBREV 2026
========================================================= */

:root{
  --soeblaa: #4678C8;
  --blue:#5F8CB4;
  --dark:#003255;
  --orange:#FF733C;
  --orange-dark:#E85F2D;
  --white:#fff;
  --text:#EEF6FB;
  --muted:#A7C1D8;
  --border:rgba(255,255,255,.18);
  --shadow:0 8px 25px rgba(0,0,0,.14);
  --shadow-small:0 4px 12px rgba(0,0,0,.10);
  --r:10px;
  --rl:14px;
  --transition:all .25s ease;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;overflow-x:hidden}
body{min-height:100vh;background:var(--blue);color:var(--white);font:16px/1.6 Arial,Helvetica,sans-serif;overflow-x:hidden}
img{display:block;max-width:100%}
a{color:inherit}

h1,h2,h3{line-height:1.2; color: var(--text);}

p{margin-bottom:18px}
ul{padding-left:22px;margin-bottom:20px}
li{margin-bottom:7px}
strong{font-weight:700}
address{font-style:normal}

.section-label h1,h2,h3{color: var(--text);}


/* =========================================================
   HERO
========================================================= */

.leader-hero{
  display:grid;
  grid-template-columns:1.4fr .6fr;
  align-items:center;
  gap:50px;
  width:min(1200px,calc(100% - 40px));
  min-height:500px;
  margin:auto;
  padding:70px 20px;
}

.hero-content{max-width:700px}

.hero-label,.section-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--white);
  font-size:14px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.leader-hero h1{
  margin:14px 0 22px;
  font-size:clamp(2.4rem,6vw,5.5rem);
  line-height:1;
}

.leader-hero p{
  max-width:620px;
  color:var(--text);
  font-size:clamp(1rem,1.5vw,1.25rem);
}

.hero-image{
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-image img{
  width:min(100%,360px);
  max-height:400px;
  object-fit:contain;
  filter:drop-shadow(0 20px 25px rgba(0,0,0,.2));
}


/* =========================================================
   BUTTONS
========================================================= */

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:30px;
}

.hero-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:48px;
  padding:12px 20px;
  border:2px solid var(--orange);
  border-radius:var(--r);
  background:var(--orange);
  color:var(--white);
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
  transition:var(--transition);
}

.hero-button:hover{
  background:var(--dark);
  border-color:var(--dark);
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}

.hero-button.outline{
  background:transparent;
  border-color:var(--white);
}

.hero-button.outline:hover{
  background:var(--white);
  border-color:var(--white);
  color:var(--dark);
}


/* =========================================================
   QUICK INFO
========================================================= */

.quick-info{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  width:min(1100px,calc(100% - 40px));
  margin:-15px auto 70px;
}

.info-card{
  display:flex;
  align-items:center;
  gap:15px;
  padding:20px;
  background:var(--white);
  color:var(--dark);
  border-radius:var(--r);
  box-shadow:var(--shadow);
}

.info-icon{
  display:grid;
  place-items:center;
  width:45px;
  height:45px;
  flex:0 0 45px;
  border-radius:50%;
  background:var(--blue);
  color:var(--white);
}

.info-card span{
  display:block;
  color:#5F7286;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
}

.info-card strong{
  display:block;
  font-size:15px;
  line-height:1.3;
}


/* =========================================================
   MAIN / SECTIONS
========================================================= */

.leader-main{
  width:min(1100px,calc(100% - 40px));
  margin:auto;
}

.leader-section{margin-bottom:75px}

.section-heading{
  display:flex;
  align-items:center;
  gap:15px;
  margin-bottom:28px;
}

.section-number{
  display:grid;
  place-items:center;
  width:45px;
  height:45px;
  flex:0 0 45px;
  border-radius:50%;
  background:var(--orange);
  font-size:13px;
  font-weight:700;
}

.section-heading h2{
  margin-top:3px;
  font-size:clamp(1.7rem,3vw,2.5rem);
}

.section-intro{margin-bottom:30px;font-size:17px}


/* =========================================================
   PARTICIPANTS
========================================================= */

.participant-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
}

.participant-card{
  display:flex;
  gap:18px;
  padding:25px;
  background:var(--soeblaa);

  border-radius:var(--rl);
  box-shadow:var(--shadow-small);
}

.participant-card.orange{background:var(--orange);}

.card-icon{
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  flex:0 0 50px;
  border-radius:var(--r);
  background:var(--white);
  color:var(--dark);
}

.participant-card.orange .card-icon{
  background:var(--dark);
  color:var(--white);
}

.participant-card h3{
  margin-bottom:6px;
  font-size:20px;
}

.participant-card p{
  color:var(--text);
}

.participant-card p:last-child{margin-bottom:0}


/* =========================================================
   IMPORTANT NOTE
========================================================= */

.important-note{
  display:flex;
  gap:15px;
  margin-top:20px;
  padding:20px;
  border-left:4px solid var(--orange);
  border-radius:0 var(--r) var(--r) 0;
  background:var(--dark);
}

.important-note>i{
  flex:0 0 auto;
  color:var(--orange);
  font-size:22px;
}

.important-note strong{
  display:block;
  margin-bottom:5px;
  color:var(--text);
}

.important-note p{
  margin:0;
  color:var(--text);
}


/* =========================================================
   TIMELINE
========================================================= */

.timeline{
  position:relative;
  margin-left:22px;
  border-left:2px solid var(--white);
}

.timeline-item{
  position:relative;
  padding:0 0 40px 45px;
}

.timeline-item:last-child{padding-bottom:0}

.timeline-marker{
  position:absolute;
  left:-22px;
  top:0;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:4px solid var(--blue);
  border-radius:50%;
  background:var(--dark);
  color:var(--orange);
  z-index:2;
}

.timeline-content{
  padding:25px;
  background:var(--dark);
  border-radius:var(--r);
  box-shadow:var(--shadow-small);
}

.timeline-day{
  display:block;
  margin-bottom:4px;
  color:var(--orange);
  font-size:17px;
  text-transform:uppercase;
}

.timeline-content h3{
  margin:4px 0 15px;
  font-size:27px;
}

.timeline-content ul{margin:0}

.timeline-content li::marker{
  color:var(--orange);
}


/* =========================================================
   DISTANCE
========================================================= */

.distance-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
}

.distance-card{
  padding:30px;
  text-align:center;
  background:var(--dark);
  border-radius:var(--rl);
  box-shadow:var(--shadow-small);
}

.distance-card.orange{background:var(--orange)}

.distance-card>i{
  display:block;
  margin-bottom:10px;
  font-size:30px;
  color:var(--text);
}

.distance-card span{display:block;font-weight:700}

.distance-card strong{
  display:block;
  margin:5px 0;
  font-size:clamp(2rem,4vw,32px);
  color:var(--text);
}

.distance-card p{
  margin:0;
  color:var(--text);
}


/* =========================================================
   RUTEDETALJER
========================================================= */

.route-details{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
  margin:20px 0;
}

.route-detail{
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px;
  background:var(--dark);
  border-radius:var(--r);
  box-shadow:var(--shadow-small);
}

.route-detail i{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:50%;
  background:var(--orange);
}

.route-detail strong,.route-detail span{display:block; color:var(--text);}
.route-detail span{color:var(--text);font-size:14px; color:var(--text);}


/* =========================================================
   SMALL NOTE
========================================================= */

.small-note{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-top:20px;
  padding:17px 18px;
  background:var(--dark);
  border-radius:var(--r);
}

.small-note>i{
  flex:0 0 auto;
  color:var(--orange);
  font-size:20px;
}

.small-note strong,.small-note span{display:block; color:var(--text);}
.small-note strong{margin-bottom:4px; color:var(--text);}
.small-note span{color:var(--text)}


/* =========================================================
   INFO BOX
========================================================= */

.route-info{
  display:flex;
  gap:20px;
  margin-top:20px;
  padding:25px;
  background:var(--dark);
  border:1px solid var(--border);
  border-radius:var(--rl);
  box-shadow:var(--shadow-small);
}

.route-info-icon{
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  flex:0 0 52px;
  border-radius:50%;
  background:var(--orange);
  font-size:21px;
}

.route-info h3{
  margin:3px 0 10px;
  font-size:21px;
}

.route-info p{
  margin-bottom:12px;
  color:var(--text);
}

.route-info p:last-child{margin-bottom:0}


/* =========================================================
   PRAKTISK INFO
========================================================= */

.practical-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
  margin-top:20px;
}

.practical-grid>div{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:7px;
  padding:20px;
  background:rgba(0,50,85,.75);
  border:1px solid var(--border);
  border-radius:var(--r);
  box-shadow:var(--shadow-small);
}

.practical-grid i{
  margin-bottom:3px;
  color:var(--orange);
  font-size:22px;
}

.practical-grid span{
  color:var(--text);
  font-size: 17px;
  line-height:1.5;
}

.practical-grid strong{
  color:var(--text);
  font-size: 21px;
  line-height:1.5;
}


/* =========================================================
   05 – UDSTYR
========================================================= */

.equipment-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
  margin-bottom:25px;
}

.equipment-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:140px;
  padding:20px 15px;
  text-align:center;
  background:var(--dark);
  border:1px solid var(--border);
  border-radius:var(--r);
  box-shadow:var(--shadow-small);
  transition:var(--transition);
}

.equipment-item:hover{
  transform:translateY(-3px);
  border-color:var(--orange);
  box-shadow:var(--shadow);
}

.equipment-item i{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  margin-bottom:12px;
  border-radius:50%;
  background:var(--orange);
  color:var(--white);
  font-size:20px;
}

.equipment-item p{
  margin:0;
  font-size:14px;
  font-weight:700;
}


/* =========================================================
   06 – TILMELDING
========================================================= */

.registration-section{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:25px;
  margin-bottom:30px;
  padding:35px;
  background:var(--orange);
  border-radius:var(--rl);
  box-shadow:var(--shadow);
}

.registration-icon{
  display:grid;
  place-items:center;
  width:65px;
  height:65px;
  border-radius:50%;
  background:var(--white);
  color:var(--orange);
  font-size:27px;
}

.registration-section h2,
.contact-card h2,
.rules-section h2,
.final-cta h2{
  margin:5px 0 10px;
  font-size:clamp(1.5rem,3vw,2.2rem);
}


/* =========================================================
   07 – KONTAKT
========================================================= */

.contact-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  margin-bottom:30px;
  padding:30px;
  background:var(--dark);
  border-radius:var(--rl);
  box-shadow:var(--shadow);
}

.contact-card p{margin:0}

.contact-details{
  display:flex;
  flex-direction:column;
  gap:8px;
  text-align:right;
}

.contact-details a{
  color:var(--orange);
  font-weight:700;
  text-decoration:none;
}

.contact-details a:hover{text-decoration:underline}
.contact-details i{width:20px;margin-right:5px}
.contact-details small{color:var(--muted)}


/* =========================================================
   08 – REGLER
========================================================= */

.rules-section{
  display:flex;
  gap:20px;
  margin-bottom:30px;
  padding:25px;
  background:var(--dark);
  border-radius:var(--r);
  box-shadow:var(--shadow-small);
}

.rules-section>i{
  flex:0 0 auto;
  color:var(--orange);
  font-size:25px;
}

.rules-section p:last-child{margin-bottom:0}


/* =========================================================
   PDF CTA
========================================================= */

.final-cta{
  display:flex;
  align-items:center;
  gap:20px;
  margin:70px 0;
  padding:30px;
  background:var(--white);
  color:var(--dark);
  border-radius:var(--rl);
  box-shadow:0 12px 35px rgba(0,0,0,.18);
}

.final-cta-icon{
  display:grid;
  place-items:center;
  width:55px;
  height:55px;
  flex:0 0 55px;
  border-radius:50%;
  background:var(--orange);
  color:var(--white);
  font-size:22px;
}

.final-cta-content{min-width:0}
.final-cta h2{color:var(--blue)}
.final-cta p{margin:0;color:#5F7286}
.final-cta .hero-button{margin-left:auto}


/* =========================================================
   FOCUS / DESKTOP
========================================================= */

a:focus-visible,button:focus-visible{
  outline:3px solid var(--white);
  outline-offset:3px;
}

@media(min-width:1280px){
  .leader-hero{width:min(1250px,calc(100% - 80px))}
  .leader-main,.quick-info{width:min(1150px,calc(100% - 80px))}
}

@media(min-width:1600px){
  .leader-hero{max-width:1350px;min-height:560px}
  .leader-main,.quick-info{max-width:1200px}
  .hero-image img{width:400px;max-height:440px}
}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:900px){

  .leader-hero{
    grid-template-columns:1fr;
    min-height:auto;
    padding:55px 15px;
    text-align:center;
  }

  .hero-content{margin:auto}
  .hero-content p{margin-left:auto;margin-right:auto}
  .hero-image{order:-1}
  .hero-image img{width:250px;max-height:280px}
  .hero-actions{justify-content:center}

  .quick-info{
    grid-template-columns:1fr;
    margin-top:0;
  }

  .participant-grid,
  .distance-grid{
    grid-template-columns:1fr;
  }

  .equipment-grid{grid-template-columns:repeat(2,1fr)}
  .route-details,
  .practical-grid{grid-template-columns:1fr}

  .contact-card{
    flex-direction:column;
    align-items:flex-start;
  }

  .contact-details{
    width:100%;
    text-align:left;
  }

  .final-cta{flex-wrap:wrap}
  .final-cta .hero-button{margin-left:auto}
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:600px){

  body{font-size:15px}

  .leader-hero,
  .quick-info,
  .leader-main{
    width:calc(100% - 24px);
  }

  .leader-hero{padding:35px 5px 45px}
  .leader-hero h1{font-size:clamp(2.2rem,12vw,3.5rem)}
  .hero-actions{flex-direction:column;width:100%}
  .hero-button{width:100%}

  .info-card{padding:15px}

  .leader-section{margin-bottom:55px}

  .section-heading{
    align-items:flex-start;
    gap:10px;
  }

  .section-heading h2{font-size:1.8rem}

  .timeline{
    margin-left:15px;
  }

  .timeline-item{
    padding-left:35px;
    padding-bottom:30px;
  }

  .timeline-marker{
    left:-21px;
    width:38px;
    height:38px;
  }

  .timeline-content{padding:20px}
  .timeline-content h3{font-size:20px}

  .equipment-grid{grid-template-columns:repeat(2,1fr)}

  .registration-section{
    grid-template-columns:1fr;
    padding:25px;
  }

  .registration-icon{
    width:55px;
    height:55px;
  }

  .route-info{
    gap:15px;
    padding:20px;
  }

  .route-info-icon{
    width:44px;
    height:44px;
    flex-basis:44px;
    font-size:18px;
  }

  .route-info h3{font-size:18px}

  .final-cta{
    flex-direction:column;
    align-items:flex-start;
    margin:50px 0;
    padding:25px;
  }

  .final-cta .hero-button{
    width:100%;
    margin:0;
  }
}


/* =========================================================
   320px
========================================================= */

@media(max-width:360px){

  body{font-size:14px}

  .leader-hero,
  .quick-info,
  .leader-main{
    width:calc(100% - 16px);
  }

  .leader-hero{padding:25px 4px 35px}
  .hero-image img{width:180px;max-height:200px}
  .leader-hero h1{font-size:2rem}

  .hero-label,
  .section-label{font-size:10px}

  .hero-button{
    min-height:46px;
    padding:10px 12px;
    font-size:13px;
  }

  .info-card{gap:10px;padding:12px}

  .info-icon{
    width:38px;
    height:38px;
    flex-basis:38px;
  }

  .info-card strong{font-size:13px}

  .section-number{
    width:38px;
    height:38px;
    flex-basis:38px;
    font-size:11px;
  }

  .section-heading h2{font-size:1.4rem}

  .participant-card,
  .timeline-content,
  .distance-card,
  .contact-card,
  .registration-section,
  .final-cta{
    padding:18px;
  }

  .participant-card{gap:12px}

  .card-icon{
    width:42px;
    height:42px;
    flex-basis:42px;
  }

  .participant-card h3{font-size:17px}

  .participant-card p,
  .timeline-content li{
    font-size:13px;
  }

  .timeline-content h3{font-size:18px}

  .equipment-grid{grid-template-columns:1fr}

  .equipment-item{
    min-height:auto;
    padding:16px;
  }

  .distance-card strong{font-size:26px}

  .small-note{font-size:13px}

  .contact-details{
    font-size:13px;
    overflow-wrap:anywhere;
  }

  .final-cta h2{font-size:1.3rem}
}


/* =========================================================
   TOUCH / REDUCED MOTION
========================================================= */

@media(hover:none){
  .hero-button:hover{
    transform:none;
    box-shadow:none;
  }
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    transition:none!important;
    animation:none!important;
  }
}