/* ==========================================================================
   kopibogen.dk — landing / login
   Designsprog arvet fra prototypen: TEKNIQ-blå + rød, Arial.
   ========================================================================== */

/* Selvhostet slogan-skrift (CSP: font-src 'self') */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/playfair-italic.woff2") format("woff2");
}

:root {
  --blaa:       #1f3a6b;
  --blaa-mork:  #16294f;
  --roed:       #c8232c;
  --linje:      #2c4a85;
  --baggrund:   #e8edf2;
  --kort-bg:    #ffffff;
  --tekst:      #1f2733;
  --tekst-dim:  #5a6675;
  --kant:       #c8d2e0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--tekst);
  background-color: #0f1932;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;   /* plads til den faste, smalle footer */
}
/* Hero-foto som fuld baggrund. JPG-linje først som universel fallback;
   anden linje opgraderer til WebP hvor browseren forstår image-set. */
body {
  background:
    linear-gradient(105deg, rgba(15,25,50,.82) 0%, rgba(15,25,50,.55) 42%, rgba(15,25,50,.15) 100%),
    url("../img/hero.jpg") center/cover no-repeat fixed;
  background:
    linear-gradient(105deg, rgba(15,25,50,.82) 0%, rgba(15,25,50,.55) 42%, rgba(15,25,50,.15) 100%),
    image-set(url("../img/hero.webp") type("image/webp"), url("../img/hero.jpg") type("image/jpeg"))
      center/cover no-repeat fixed;
  background-color: #0f1932;
}

/* ----- Topbar (delt blå top-frame — landing + opret) -------------------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 40px;
  color: #fff;
  flex-wrap: wrap;
  background: var(--blaa);
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar .logo {
  height: 24px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}
.brand {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .3px;
}
.brand .dk { color: #9fc0ff; font-weight: 700; }
.tagline {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 17px;
  color: #dbe5f5;
  letter-spacing: .3px;
}

/* ----- Hovedindhold: pitch til venstre, login-kort til højre ----------- */
.indhold {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 34px 40px 50px;
}

.pitch {
  color: #fff;
  max-width: 520px;
}
.pitch h1 {
  font-size: 40px;
  line-height: 1.12;
  margin: 0 0 18px;
  font-weight: 800;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
/* Anden linje ("til VVS-akkordarbejde efter RPL") — mindre end overskriften */
.pitch h1 .rpl-linje {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 600;
  color: #e3e9f5;
}
.pitch h1 .rpl-note {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .2px;
  color: #cdd8ec;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.pitch p.intro {
  font-size: 17px;
  line-height: 1.5;
  color: #e3e9f5;
  margin: 0 0 26px;
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
}
.fordele {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 12px;
}
.fordele li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  color: #eef2f9;
}
.fordele li .flueben {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: #2e9e5b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}
.pris-strip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  backdrop-filter: blur(2px);
}
.pris-strip b { color: #ffd66b; }

/* ----- Login-kort ------------------------------------------------------- */
.login-kort {
  flex: 0 0 380px;
  max-width: 380px;
  background: var(--kort-bg);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  padding: 34px 32px 30px;
}
.login-kort h2 {
  margin: 0 0 4px;
  font-size: 23px;
  color: var(--blaa);
  font-weight: 800;
}
.login-kort .under {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--tekst-dim);
}

.felt-grp { margin-bottom: 16px; }
.felt-grp label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blaa);
  margin-bottom: 6px;
}
.felt-grp input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--kant);
  border-radius: 7px;
  padding: 0 13px;
  font-family: inherit;
  font-size: 16px;          /* 16px → ingen auto-zoom på iOS/Android */
  color: #111;
  background: #fbfcfe;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.felt-grp input:focus {
  border-color: var(--blaa);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31,58,107,.12);
}

.raekke-mellem {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 18px;
}
.glemt {
  font-size: 13px;
  color: var(--blaa);
  text-decoration: none;
}
.glemt:hover { text-decoration: underline; }

.btn-login {
  width: 100%;
  height: 48px;
  background: var(--blaa);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.btn-login:hover { background: var(--blaa-mork); }
.btn-login:disabled { opacity: .6; cursor: default; }

.deler {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 18px;
  color: var(--tekst-dim);
  font-size: 12.5px;
}
.deler::before, .deler::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--kant);
}

.opret-firma {
  display: block;
  text-align: center;
  border: 1.5px solid var(--blaa);
  color: var(--blaa);
  border-radius: 7px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.opret-firma:hover { background: var(--blaa); color: #fff; }

/* Status / fejl-besked */
.status {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.4;
  display: none;
}
.status.ok   { background: #e7f5e7; color: #2a662a; display: block; }
.status.fejl { background: #fde7e7; color: #a72020; display: block; }
.status.info { background: #eef3fb; color: #2c4a85; display: block; }

/* ----- Footer (fast, smal, altid synlig i bunden) ---------------------- */
.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: 40px;
  padding: 0 40px;
  background: var(--blaa-mork);
  box-shadow: 0 -2px 14px rgba(0,0,0,.3);
  color: #c2cde0;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 6px 22px;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
}
.foot a { color: #c2cde0; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* Juridiske links (Vilkår + GDPR) fremhæves med fed */
.lovlink { font-weight: 700; }

/* ==========================================================================
   Mobil — under 860px: stak pitch over login-kort, kort i fuld bredde
   ========================================================================== */
@media (max-width: 860px) {
  body {
    background-attachment: scroll;   /* fixed er tungt/buggy på mobil */
  }
  .topbar { padding: 18px 20px; gap: 8px; }
  .topbar .logo { height: 20px; }
  .brand { font-size: 22px; }
  .tagline { font-size: 14px; }

  .indhold {
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
    padding: 6px 18px 36px;
  }
  .pitch { max-width: none; }
  .pitch h1 { font-size: 27px; }
  .pitch h1 .rpl-linje { font-size: 18px; }
  .pitch h1 .rpl-note  { font-size: 14px; }
  .pitch p.intro { font-size: 15.5px; margin-bottom: 18px; }
  .fordele li { font-size: 14px; }

  .login-kort {
    flex: none;
    max-width: none;
    width: 100%;
    padding: 26px 22px 24px;
  }
  .foot { padding: 0 20px; gap: 6px 16px; }
}
