/* ==========================================================================
   DRIFTHUSET — stylesheet
   Alle farver styres herunder. Skift dem ét sted, og hele sitet følger med.
   ========================================================================== */

:root {
  /* --- Brandfarver ------------------------------------------------------ */
  --brand:        #3E8E82;   /* Irgrøn — hovedfarven */
  --brand-dark:   #1E4A45;   /* Mørk irgrøn — overskrifter og tekst */
  --brand-deep:   #14332F;   /* Dybeste — footer */
  --brand-soft:   #EAF3F0;   /* Meget lys irgrøn — bokse og felter */
  --accent:       #D9A45B;   /* Okker — KUN til markering, aldrig flader */
  --accent-soft:  #FBF0DE;   /* Lys okker — advarselsbokse */

  /* --- Neutrale --------------------------------------------------------- */
  --bg:           #F4F8F6;
  --surface:      #FFFFFF;
  --text:         #1E4A45;
  --muted:        #5F7A76;
  --border:       #E0EBE7;

  /* --- Mål -------------------------------------------------------------- */
  --radius:       12px;
  --radius-lg:    18px;
  --maxw:         1080px;
  --shadow:       0 2px 10px rgba(30, 74, 69, .07);
  --shadow-lg:    0 8px 30px rgba(30, 74, 69, .11);
}

/* --------------------------------------------------------------------------
   Grundlag
   Bemærk: der bruges systemskrifter. Det er hurtigere, virker offline, og
   du undgår at sende dine besøgendes IP-adresser til Google Fonts (GDPR).
   -------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; color: var(--brand-dark); }
h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }

p { color: var(--muted); }

/* --------------------------------------------------------------------------
   Topmenu
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Topmenu — mørk bjælke i brandfarven.
   Logoet står i hvidt, og den okkerfarvede knap er det eneste varme punkt,
   så øjet lander på "Book et møde".
   -------------------------------------------------------------------------- */

header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand-dark);
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.nav { display: flex; align-items: center; gap: 14px; padding: 15px 0; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand svg { width: 46px; height: 46px; flex-shrink: 0; }
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -.028em; color: #fff; }
.brand-name span { font-weight: 400; color: #7FC4B8; }

.nav-links { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.nav-links a { color: rgba(255,255,255,.82); font-size: 14.5px; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.on {
  color: #fff; font-weight: 700;
  border-bottom: 2px solid var(--accent); padding-bottom: 3px;
}
/* knappen i menuen er okker — ikke grøn, så den ikke drukner i bjælken */
.nav-links .btn-primary { background: var(--accent); color: var(--brand-deep); font-weight: 800; }
.nav-links .btn-primary:hover { background: #C9944B; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* --------------------------------------------------------------------------
   Knapper
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #34786E; }
.btn-ghost { border-color: var(--border); color: var(--brand-dark); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* --------------------------------------------------------------------------
   Sektioner
   -------------------------------------------------------------------------- */

section { padding: 72px 0; }
section.tight { padding: 52px 0; }
section.alt { background: var(--bg); }

.eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); font-weight: 700; margin-bottom: 14px;
}

.lead { font-size: 18px; max-width: 620px; margin-top: 18px; }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Forsidens topsektion */
.hero { padding: 84px 0 68px; background: linear-gradient(170deg, var(--bg), var(--surface) 70%); }
.hero-btns { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; font-size: 14px; color: var(--muted); display: flex; gap: 20px; flex-wrap: wrap; }
.hero-trust b { color: var(--brand-dark); }

/* --------------------------------------------------------------------------
   Kort og gitre
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; }

.icon-box {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.icon-box.warm { background: var(--accent-soft); }

/* Nummererede trin */
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand);
  color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 15px;
}

/* Tjekliste */
.checks { list-style: none; margin-top: 18px; }
.checks li {
  position: relative; padding: 7px 0 7px 30px;
  font-size: 15px; color: var(--muted);
}
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--brand); font-weight: 800;
}

/* --------------------------------------------------------------------------
   Priskort
   -------------------------------------------------------------------------- */

.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column;
}
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); position: relative; }
.price-tag {
  position: absolute; top: -13px; left: 30px; background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 13px; border-radius: 20px;
  letter-spacing: .04em;
}
.price-amount { font-size: 38px; font-weight: 800; color: var(--brand-dark); letter-spacing: -.03em; margin: 14px 0 2px; }
.price-per { font-size: 14px; color: var(--muted); }
.price-setup { font-size: 14px; color: var(--muted); margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.price-card .btn { margin-top: auto; text-align: center; }
.price-card .checks { margin-bottom: 24px; }

/* --------------------------------------------------------------------------
   Citat / reference
   -------------------------------------------------------------------------- */

.quote {
  background: var(--brand-soft); border-radius: var(--radius-lg);
  padding: 38px; border-left: 4px solid var(--accent);
}
.quote p { font-size: 19px; color: var(--brand-dark); font-style: italic; line-height: 1.55; }
.quote footer { margin-top: 18px; font-size: 14px; color: var(--muted); font-style: normal; }
.quote footer b { color: var(--brand-dark); font-style: normal; }

/* --------------------------------------------------------------------------
   Spørgsmål og svar
   -------------------------------------------------------------------------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--border); padding: 18px 0;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 16.5px; color: var(--brand-dark);
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; font-size: 15px; }

/* --------------------------------------------------------------------------
   Handlingsfelt
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--brand-dark); border-radius: var(--radius-lg);
  padding: 48px; text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); margin: 14px auto 26px; max-width: 520px; }
.cta-band .btn-primary { background: var(--accent); color: var(--brand-deep); }
.cta-band .btn-primary:hover { background: #C9944B; }

/* --------------------------------------------------------------------------
   Formular
   -------------------------------------------------------------------------- */

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; color: var(--brand-dark); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 15px; font-family: inherit; color: var(--text);
  background: var(--surface);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* --------------------------------------------------------------------------
   Tekstsider (privatlivspolitik m.m.)
   -------------------------------------------------------------------------- */

.prose { max-width: 720px; }
.prose h2 { font-size: 23px; margin: 38px 0 12px; }
.prose h3 { font-size: 17px; margin: 26px 0 8px; }
.prose p, .prose li { font-size: 15.5px; color: var(--muted); margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose .updated { font-size: 14px; color: var(--muted); margin-bottom: 30px; }

/* Gul boks til dine egne noter — slet dem inden du går live */
.todo {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  padding: 16px 18px; border-radius: 8px; margin: 20px 0; font-size: 14.5px;
}
.todo b { color: var(--brand-dark); }

/* --------------------------------------------------------------------------
   Bund
   -------------------------------------------------------------------------- */

footer.site {
  background: var(--brand-deep); color: rgba(255,255,255,.72);
  padding: 54px 0 30px; margin-top: 0;
}
footer.site a { color: rgba(255,255,255,.72); }
footer.site a:hover { color: #fff; }
footer.site .brand-name { color: #fff; }
footer.site .brand-name span { color: var(--accent); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
.foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 14px; }
.foot-grid ul { list-style: none; }
.foot-grid li { padding: 5px 0; font-size: 14.5px; }
.foot-bottom {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13);
  font-size: 13.5px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Mobil
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 52px 0; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--brand-dark); border-bottom: 1px solid rgba(255,255,255,.12);
    flex-direction: column; gap: 0; padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; width: 100%; }
  .nav-links a.on { border-bottom: 0; color: var(--accent); }
  .nav-links .btn-primary { text-align: center; margin-top: 8px; }
  .nav-toggle { display: block; }
  .brand svg { width: 38px; height: 38px; }
  .brand-name { font-size: 20px; }
  .cta-band { padding: 34px 22px; }
  .quote { padding: 26px; }
  .hero { padding: 54px 0 46px; }
}

/* ==========================================================================
   DE TO APPS — kortene øverst på forsiden
   ========================================================================== */

.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
.app-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; background: var(--surface); text-align: center;
  display: flex; flex-direction: column;
}
/* Telefonen skubbes til bunden, så begge kort flugter uanset
   hvor lang teksten ovenover er. */
.app-card .app-desc { min-height: 4.95em; }   /* plads til 3 linjer i begge kort */
.app-card .phone { margin-top: auto; }
.app-tag {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 20px; margin-bottom: 14px;
}
.app-tag.plan { background: var(--brand-soft); color: #2C6B62; }
.app-tag.tid  { background: var(--accent-soft); color: #9A6B21; }
.app-where { font-size: 13px; color: var(--muted); margin-top: 4px; }
.app-desc  { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-top: 12px; }

/* ==========================================================================
   SLIDESHOW — funktionerne
   ========================================================================== */

.show {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-top: 30px;
}
.show-tabs {
  display: flex; align-items: center; gap: 7px; padding: 14px 16px;
  border-bottom: 1px solid #EEF4F2; flex-wrap: wrap;
}
.show-tab {
  font-size: 12.5px; font-weight: 700; padding: 8px 15px; border-radius: 20px;
  background: #F2F7F5; color: var(--muted); cursor: pointer; border: 0;
  font-family: inherit; transition: .15s;
}
.show-tab:hover { background: #E7F0ED; }
.show-tab.on { background: var(--brand); color: #fff; }
.show-body { padding: 30px 26px 24px; }
.slide { display: none; grid-template-columns: 1fr 300px; gap: 36px; align-items: center; }
.slide.on { display: grid; }
.slide h3 { font-size: 21px; margin-bottom: 4px; }
.show-foot {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px; border-top: 1px solid #EEF4F2; background: #FAFCFB;
}
.show-arrow {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #D5E3DF;
  background: var(--surface); cursor: pointer; font-size: 16px; color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-family: inherit;
}
.show-arrow:hover { border-color: var(--brand); }
.show-dots { display: flex; gap: 8px; margin: 0 auto; }
.show-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #D5E3DF;
  border: 0; cursor: pointer; padding: 0; transition: .15s;
}
.show-dot.on { background: var(--brand); width: 24px; border-radius: 5px; }

/* ==========================================================================
   TELEFON-MOCKUPS
   Bruges i app-kortene og i slideshowet.
   .phone      = lys skærm (medarbejder)
   .phone.dark = mørk skærm (chefens vagtplan)
   .phone.mini = lille udgave til app-kortene
   ========================================================================== */

.phone {
  width: 300px; margin: 0 auto; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,.07); background: var(--surface);
}
.phone-cap { font-size: 12px; color: #8AA09B; text-align: center; margin-top: 10px; }

.ph-head { background: var(--brand); color: #fff; padding: 12px 14px; }
.phone.mini .ph-head { padding: 9px 10px; }
.ph-logo { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; }
.phone.mini .ph-logo { font-size: 9px; gap: 5px; }
.ph-logo em { font-style: normal; font-weight: 400; opacity: .85; }
.ph-title { font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; margin-top: 9px; }
.phone.mini .ph-title { font-size: 11.5px; margin-top: 6px; }
.ph-sub { font-size: 10.5px; opacity: .82; margin-top: 1px; }
.phone.mini .ph-sub { font-size: 8px; }
.ph-seg { display: flex; gap: 4px; margin-top: 10px; }
.ph-seg span {
  flex: 1; text-align: center; font-size: 9.5px; padding: 5px 0;
  border-radius: 6px; background: rgba(255,255,255,.16);
}
.ph-seg span.on { background: #fff; color: var(--brand-dark); font-weight: 700; }
.phone.mini .ph-seg span { font-size: 7px; padding: 3px 0; border-radius: 4px; }
.ph-body { padding: 12px 13px 16px; }
.phone.mini .ph-body { padding: 8px 9px 11px; }

/* næste vagt */
.ph-next {
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 11px 12px; margin-bottom: 12px; background: #FFFDF8;
}
.phone.mini .ph-next { padding: 7px 8px; margin-bottom: 7px; border-radius: 7px; }
.ph-next-l { font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: #9A6B21; font-weight: 800; }
.phone.mini .ph-next-l { font-size: 6.5px; }
.ph-next-d { font-size: 13px; font-weight: 700; margin-top: 3px; }
.phone.mini .ph-next-d { font-size: 8.5px; }
.ph-next-t { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.phone.mini .ph-next-t { font-size: 10.5px; }

/* uge-strimmel */
.ph-week { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 3px; margin-bottom: 4px; }
.phone.mini .ph-week { gap: 2px; }
.ph-week > span { text-align: center; font-size: 8px; font-weight: 700; color: #8AA09B; padding: 2px 0; }
.phone.mini .ph-week > span { font-size: 6px; }
.ph-day {
  border-radius: 5px; text-align: center; font-size: 8px; font-weight: 700;
  padding: 5px 0; background: #F1F6F4; color: #A8BAB6; line-height: 1.3;
}
.phone.mini .ph-day { font-size: 6px; padding: 3px 0; border-radius: 3px; }
.ph-day.on { background: var(--brand); color: #fff; }
.ph-day.on b { display: block; font-size: 7px; }
.phone.mini .ph-day.on b { font-size: 5px; }
.ph-day.closed { background: #F7F6F3; color: #C0C7C5; font-weight: 600; }

/* ledige vagter */
.ph-label {
  font-size: 8.5px; letter-spacing: .13em; text-transform: uppercase;
  color: #8AA09B; font-weight: 800; margin: 14px 0 7px;
}
.ph-free {
  border: 1px dashed #C9DCD7; border-radius: 9px; padding: 9px 10px;
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.ph-free-t { font-size: 11px; font-weight: 700; }
.ph-free-s { font-size: 9.5px; color: #8AA09B; }
.ph-free-b {
  margin-left: auto; background: var(--brand); color: #fff;
  font-size: 9.5px; font-weight: 700; padding: 5px 9px; border-radius: 6px;
}

/* --- mørk chef-skærm --- */
.phone.dark { background: #16211F; }
.phone.dark .ph-head { background: linear-gradient(180deg, var(--brand-dark), #173B37); padding: 12px 12px 10px; }
.ph-who {
  font-family: Georgia, 'Times New Roman', serif; font-style: italic;
  color: var(--accent); font-size: 11.5px; text-align: center; margin: 7px 0 9px;
}
.ph-pills { display: flex; gap: 5px; }
.ph-pills span { background: rgba(255,255,255,.09); border-radius: 16px; padding: 5px 11px; font-size: 10.5px; font-weight: 600; }
.ph-pills span.on { background: var(--brand); }
.phone.dark .ph-body { padding: 11px 10px 15px; }
.ph-row { display: flex; gap: 5px; margin-bottom: 7px; }
.ph-row .btn-nav {
  flex: 1; background: var(--brand); color: #fff; border-radius: 7px;
  padding: 6px 0; font-size: 10.5px; font-weight: 700; text-align: center;
}
.ph-lock { background: #3B4644; color: #9BABA7; border-radius: 7px; padding: 6px 12px; font-size: 10.5px; font-weight: 700; }
.ph-print { background: #1E5F55; color: #fff; border-radius: 7px; padding: 6px 12px; font-size: 10.5px; font-weight: 700; }
.ph-filter {
  flex: 1; background: rgba(255,255,255,.08); color: #CBD9D5; border-radius: 7px;
  padding: 6px 0; font-size: 10.5px; font-weight: 600; text-align: center;
}
.ph-banner {
  background: var(--accent); color: #3A2A12; border-radius: 9px; padding: 9px 10px;
  font-size: 10.5px; font-weight: 800; display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
}
.ph-banner b { margin-left: auto; background: rgba(255,255,255,.45); border-radius: 6px; padding: 3px 8px; font-size: 9.5px; font-weight: 700; }
.ph-weeklabel { text-align: center; font-size: 11px; font-weight: 700; color: #CBD9D5; margin-bottom: 8px; }


/* ==========================================================================
   UGEPLAN — chefens gitter, bygget som i den rigtige app
   Én kolonne pr. dag. Hver kolonne er et kort med medarbejderne stablet
   indeni. Har en medarbejder vagt, står tiden som en grøn bjælke under navnet.
   ========================================================================== */

/* minmax(0,1fr) er afgørende: med almindelig 1fr må en kolonne ikke blive
   smallere end sit indhold, og så bliver dage med lange tider bredere end
   de andre. Det skævvrider hele gitteret. */
.wk-days, .wk-grid, .wk-count {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px;
}
.wk-days { margin-bottom: 5px; }
.wk-days span {
  background: #333D3A; border-radius: 7px; text-align: center;
  font-size: 8.5px; font-weight: 700; color: #E8EFED; padding: 5px 0;
  overflow: hidden;
}

.wk-col {
  background: #2B3532; border-radius: 8px; padding: 4px 3px;
  min-width: 0; overflow: hidden;
}
.wk-col.today { border: 1.5px solid var(--accent); padding: 2.5px 1.5px; }
.wk-col.past  { opacity: .32; }

.wk-date { font-size: 7.5px; color: #C3D2CE; font-weight: 700; text-align: center; margin-bottom: 4px; }
.wk-date.closed { color: var(--accent); font-size: 6.5px; }

/* Uden vagt: lav kasse med tynd ramme — kun navnet.
   Med vagt: navnet på mørk grøn, og tiden i en lysere grøn bjælke under.
   Præcis som i den rigtige app. */
.wk-cell {
  border-radius: 6px; overflow: hidden; margin-bottom: 4px;
  background: #313A38; border: 1px solid #414B48; min-width: 0;
}
.wk-cell:last-child { margin-bottom: 0; }

.wk-name {
  font-size: 7.5px; font-weight: 600; color: #93A5A1; text-align: center;
  padding: 5px 2px 4px; line-height: 1.1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.wk-cell.on { background: #2A5F57; border-color: #2A5F57; }
.wk-cell.on .wk-name { color: #fff; font-weight: 700; }

/* Hver celle er delt i to: navn øverst, tidsbjælke nederst.
   Uden vagt er bjælken tom men stadig synlig, så alle celler er ens. */
.wk-time {
  background: var(--brand); color: #fff; font-size: 6.5px; font-weight: 800;
  text-align: center; height: 13px; line-height: 13px;
  white-space: nowrap; overflow: hidden; letter-spacing: -.03em;
}
.wk-time.empty { background: rgba(0,0,0,.22); }

.wk-cell.wk-req { background: #4A3A22; border-color: var(--accent); }
.wk-cell.wk-req .wk-name { color: var(--accent); font-weight: 700; }
.wk-cell.wk-req .wk-time { background: var(--accent); color: #3A2A12; }

/* lukkedag — navnene står, men dæmpet */
.wk-cell.closed { background: transparent; border-color: #333B39; }
.wk-cell.closed .wk-name { color: #55625F; }

.wk-count { margin-top: 5px; }
.wk-count span { text-align: center; font-size: 8px; color: #7FA39C; font-weight: 700; }
.wk-count span.closed { color: #5E6D6A; }

/* --- lille udgave (app-kortet på forsiden) ---
   Begge telefoner har samme højde, så de to kort på forsiden flugter.
   Stempelskærmen fordeler sit indhold over hele højden. */
.phone.mini {
  width: 250px; margin-top: 18px; border-radius: 15px;
  display: flex; flex-direction: column;
}
/* Begge telefoner strækkes til kortets bund, så de altid ender i samme højde.
   margin-top skal sættes tilbage til en fast værdi — "auto" ville æde den
   ledige plads, før flex fik lov at fordele den. */
.app-card .phone.mini.stretch { flex: 1; margin-top: 18px; }
.phone.mini .app-body { flex: 1; }
/* Stempelskærmen fylder sin telefon ud og centrerer indholdet lodret */
.phone.mini.stretch .punch {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
}
.phone.mini .punch {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; gap: 2px;
}
.phone.mini .wk-days span { font-size: 6px; padding: 3px 0; border-radius: 4px; }
.phone.mini .wk-days, .phone.mini .wk-grid, .phone.mini .wk-count {
  gap: 2px; grid-template-columns: repeat(7, minmax(0, 1fr));
}
.phone.mini .wk-col { padding: 2.5px 2px; border-radius: 5px; }
.phone.mini .wk-col.today { padding: 1.5px 1px; border-width: 1px; }
.phone.mini .wk-date { font-size: 5.5px; margin-bottom: 2.5px; }
.phone.mini .wk-date.closed { font-size: 5px; }
.phone.mini .wk-cell { margin-bottom: 3px; border-radius: 4px; }
.phone.mini .wk-name { font-size: 5.5px; padding: 3.5px 1px 3px; }
.phone.mini .wk-time { font-size: 4.8px; height: 9px; line-height: 9px; }
.phone.mini .wk-count span { font-size: 5.5px; }
.phone.mini .app-head { padding: 8px 8px 0; }

/* knapperne i lille udgave — samme rækker som i den rigtige app */
.phone.mini .app-nav3 { gap: 3px; margin-bottom: 4px; }
.phone.mini .app-nav3 span { padding: 4px 0; font-size: 6px; border-radius: 4px; flex: 1; }
.phone.mini .app-lock,
.phone.mini .app-print { padding: 4px 7px; font-size: 6px; border-radius: 4px; }
.phone.mini .app-who { padding: 4px 7px; font-size: 6px; border-radius: 4px; margin: 0; flex: 1; width: auto; text-align: center; }
.phone.mini .app-sep { margin: 6px 0; }
.phone.mini .app-head-logo { width: 26px; height: 26px; border-width: 1.5px; }
.phone.mini .app-head-title { font-size: 10px; letter-spacing: .12em; }
.phone.mini .app-head-name  { font-size: 7.5px; }
.phone.mini .app-tabs { gap: 3px; padding: 7px 0 6px; }
.phone.mini .app-tabs span { padding: 3.5px 7px; font-size: 7px; border-radius: 10px; }
.phone.mini .app-body { padding: 7px 6px 9px; }
.phone.mini .ph-banner { padding: 5px 6px; font-size: 6.5px; border-radius: 6px; margin-bottom: 6px; gap: 4px; }
.phone.mini .ph-banner b { padding: 2px 5px; font-size: 6px; border-radius: 4px; }
.phone.mini .app-label { font-size: 7px; margin-bottom: 5px; }
.phone.mini .grid-wrap { padding: 4px 3px; border-radius: 7px; }

/* signaturforklaring */
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 13px; height: 13px; border-radius: 3px; display: block; }

/* --- anmodninger --- */
.rq-banner { background: var(--accent); color: #3A2A12; border-radius: 9px; padding: 9px 11px; font-size: 11px; font-weight: 800; margin-bottom: 11px; }
.rq { border: 1px solid var(--border); border-radius: 10px; padding: 11px; margin-bottom: 9px; }
.rq.waiting { border-color: var(--accent); background: #FFFDF8; }
.rq-name { font-size: 12.5px; font-weight: 700; }
.rq-when { font-size: 10px; color: #8AA09B; margin-top: 1px; }
.rq-time { font-size: 11px; margin-top: 7px; color: var(--muted); }
.rq-time b { color: var(--brand-dark); }
.rq-old { text-decoration: line-through; color: #B0BFBB; }
.rq-acts { display: flex; gap: 5px; margin-top: 9px; }
.rq-acts span { flex: 1; text-align: center; font-size: 9.5px; font-weight: 700; padding: 6px 0; border-radius: 6px; }
.rq-ok   { background: var(--brand); color: #fff; }
.rq-edit { background: var(--accent-soft); color: #9A6B21; }
.rq-no   { background: #F4EDEB; color: #A85B45; }
.rq-pending { font-size: 10px; color: #9A6B21; font-weight: 700; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #E8D9BC; }

/* --- stempelur --- */
.punch { background: linear-gradient(168deg, var(--brand), #2B6E66); color: #fff; padding: 26px 16px 20px; text-align: center; }
.phone.mini .punch { padding: 22px 18px 20px; }
.punch-logo {
  width: 60px; height: 60px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.phone.mini .punch-logo { width: 52px; height: 52px; margin-bottom: 14px; }
.punch-vel { font-size: 9.5px; letter-spacing: .3em; font-family: Georgia, serif; opacity: .9; }
.phone.mini .punch-vel { font-size: 8.5px; letter-spacing: .26em; }
.punch-name { font-family: Georgia, serif; font-style: italic; font-size: 28px; margin-top: 1px; }
.phone.mini .punch-name { font-size: 26px; margin-top: 2px; }
.punch-stats {
  background: rgba(255,255,255,.17); border-radius: 12px; display: flex;
  margin: 14px 0 12px; border: 1px solid rgba(255,255,255,.18);
}
.phone.mini .punch-stats { margin: 18px 0 14px; border-radius: 11px; }
.punch-stats div { flex: 1; padding: 10px 0; }
.phone.mini .punch-stats div { padding: 11px 0; }
.punch-stats div + div { border-left: 1px solid rgba(255,255,255,.26); }
.punch-num { font-size: 20px; font-weight: 800; }
.phone.mini .punch-num { font-size: 19px; }
.punch-lbl { font-size: 7px; letter-spacing: .1em; margin-top: 3px; opacity: .85; }
.phone.mini .punch-lbl { font-size: 6.5px; }
.punch-status { background: #fff; color: var(--brand-dark); border-radius: 20px; padding: 8px 0; font-size: 12px; font-weight: 700; margin-bottom: 13px; }
.phone.mini .punch-status { font-size: 11.5px; padding: 9px 0; margin-bottom: 16px; }
.punch-go { background: var(--accent); color: var(--brand-deep); border-radius: 10px; padding: 12px 0; font-size: 14px; font-weight: 800; }
.phone.mini .punch-go { font-size: 13.5px; padding: 13px 0; border-radius: 10px; }
.punch-home { color: rgba(255,255,255,.45); font-size: 12px; font-weight: 600; margin-top: 10px; }
.phone.mini .punch-home { font-size: 12px; margin-top: 13px; }

/* --- timeopgørelse --- */
.sheet { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); }
.sheet-head { background: var(--brand-dark); color: #fff; padding: 14px 16px; }
.sheet-title { font-size: 14px; font-weight: 700; }
.sheet-period { font-size: 11px; opacity: .82; margin-top: 2px; }
.sheet-body { padding: 12px 14px 15px; }
.sheet-row {
  display: grid; grid-template-columns: 1.4fr .8fr .7fr 1fr .6fr; gap: 6px;
  align-items: center; padding: 7px 0; border-bottom: 1px solid #F0F5F3; font-size: 11px;
}
.sheet-row.head { font-size: 8.5px; letter-spacing: .07em; text-transform: uppercase; color: #8AA09B; font-weight: 800; border-bottom: 1.5px solid var(--border); }
.sheet-row.total { font-weight: 800; border-bottom: none; border-top: 1.5px solid var(--border); margin-top: 4px; padding-top: 9px; font-size: 12px; }
.sheet-check { width: 14px; height: 14px; border-radius: 3px; background: var(--brand); color: #fff; font-size: 9px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.sheet-check.off { background: #E4EDEA; color: #B6C7C3; }
.sheet-btns { display: flex; gap: 7px; margin-top: 13px; }
.sheet-btns span { flex: 1; text-align: center; font-size: 11px; font-weight: 700; padding: 9px 0; border-radius: 8px; }
.sheet-b1 { background: var(--brand); color: #fff; }
.sheet-b2 { background: var(--accent); color: var(--brand-deep); font-weight: 800; }
.sheet-sent { font-size: 10px; color: #8AA09B; margin-top: 9px; text-align: center; }

/* ==========================================================================
   APP-HEADER — matcher den rigtige app
   Rundt logo, titel i spatieret serif, navn i okker, log ud-knap
   ========================================================================== */

.app-head { background: linear-gradient(150deg, var(--brand-dark), var(--brand-deep)); padding: 13px 14px 0; color: #fff; }
.app-head-row { display: flex; align-items: center; gap: 11px; }
.app-head-logo {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.app-head-title { font-family: Georgia, 'Times New Roman', serif; font-size: 17px; letter-spacing: .16em; font-weight: 400; }
.app-head-name  { font-family: Georgia, serif; font-style: italic; color: var(--accent); font-size: 12.5px; margin-top: 1px; }
.app-head-out   { margin-left: auto; background: var(--brand); color: #fff; border-radius: 18px; padding: 7px 13px; font-size: 11.5px; font-weight: 700; }
.app-tabs { display: flex; gap: 6px; padding: 12px 0 11px; flex-wrap: wrap; }
.app-tabs span { background: rgba(255,255,255,.1); border-radius: 18px; padding: 7px 14px; font-size: 11.5px; font-weight: 600; }
.app-tabs span.on { background: var(--brand); box-shadow: 0 0 10px rgba(62,142,130,.5); }

/* Chefmenuen i tidsregistreringen: seks punkter i et fast gitter på to kolonner.
   Tidligere flød de frit og ombrød i 2-1-2-1, hvilket så rodet ud. */
.app-menu {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px; padding: 12px 0 11px;
}
.app-menu span {
  background: rgba(255,255,255,.1); border-radius: 12px;
  padding: 8px 6px; font-size: 11px; font-weight: 600; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-menu span.on { background: var(--brand); box-shadow: 0 0 10px rgba(62,142,130,.5); }
.phone.mini .app-menu { gap: 3px; padding: 7px 0 6px; }
.phone.mini .app-menu span { padding: 4px 4px; font-size: 6.5px; border-radius: 6px; }
.app-line { height: 2px; background: var(--brand); }
.app-body { padding: 14px 12px 18px; background: #232B2E; }

.app-nav3 { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.app-nav3 span { background: var(--brand); color: #fff; border-radius: 9px; padding: 8px 12px; font-size: 11.5px; font-weight: 700; }
.app-print { background: #1E5F55; color: #fff; border-radius: 9px; padding: 8px 14px; font-size: 11.5px; font-weight: 700; display: inline-block; }
.app-lock  { background: #3B4644; color: #9BABA7; border-radius: 9px; padding: 8px 14px; font-size: 11.5px; font-weight: 700; display: inline-block; }
.app-who   { background: #39423F; color: #fff; border-radius: 9px; padding: 8px 18px; font-size: 11.5px; font-weight: 700; display: block; width: fit-content; margin: 9px auto 0; }
.app-sep   { height: 1px; background: rgba(255,255,255,.09); margin: 13px 0; }
.app-label { text-align: center; font-size: 11.5px; font-weight: 700; color: #CBD9D5; margin-bottom: 10px; }

/* gul påmindelsesbjælke */
.app-warn {
  background: var(--accent); color: #3A2A12; border-radius: 11px; padding: 11px 12px;
  font-size: 11px; font-weight: 700; line-height: 1.45; display: flex; align-items: center; gap: 9px; margin-bottom: 12px;
}
.app-warn b { margin-left: auto; background: rgba(255,255,255,.5); border-radius: 7px; padding: 5px 9px; font-size: 10.5px; white-space: nowrap; }

/* ==========================================================================
   MEDARBEJDERENS DAGVISNING — den grønne hilsen
   ========================================================================== */

.greet { background: linear-gradient(140deg, #2F6B62, #255B53); border-radius: 13px; padding: 15px 14px; color: #fff; margin-bottom: 13px; }
.greet-h { font-size: 16px; font-weight: 800; margin-bottom: 9px; }
.greet-l { font-size: 12px; line-height: 1.6; display: flex; gap: 7px; align-items: flex-start; }
.greet-l + .greet-l { margin-top: 5px; }

.shift-card { border: 1.5px solid var(--accent); border-radius: 13px; padding: 13px; }
.shift-card-d { font-size: 14.5px; font-weight: 800; color: #E8EFED; margin-bottom: 10px; }
.shift-name { background: #2F6B62; color: #fff; border-radius: 8px 8px 0 0; padding: 8px 11px; font-size: 12px; font-weight: 700; }
.shift-time { background: var(--brand); color: #fff; border-radius: 0 0 8px 8px; padding: 8px 0; font-size: 13.5px; font-weight: 800; text-align: center; }

/* ==========================================================================
   MÅNEDSVISNING — medarbejderen tager en ledig vagt
   ========================================================================== */

.month { background: rgba(255,255,255,.05); border-radius: 12px; padding: 8px 6px; }
.month-head { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 3px; margin-bottom: 5px; }
.month-head span { background: #333D3A; border-radius: 7px; text-align: center; font-size: 8px; font-weight: 700; color: #E8EFED; padding: 5px 0; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 3px; }

/* Alle dagfelter har præcis samme højde, uanset indhold.
   Datoen står øverst, navnefeltet fylder resten. */
.m-day {
  background: #2B3532; border-radius: 7px; padding: 4px 3px; text-align: center;
  height: 44px; display: flex; flex-direction: column; box-sizing: border-box;
}
.m-day.empty { background: transparent; }
.m-day.past  { opacity: .3; }
/* Den valgte dag skal have SAMME boks som alle andre — samme ramme, samme
   indvendige afstand. Kun farven skifter. Alt andet forskyder målene. */
.m-day       { border: 1px solid transparent; }
.m-day.pick  { border-color: var(--accent); background: #4A3A22; }
.m-day.pick .m-num  { color: var(--accent); }
.m-day.pick .m-name { color: #3A2A12; font-weight: 800; background: var(--accent); }

.m-num { font-size: 7.5px; color: #A9BAB6; font-weight: 600; line-height: 1; margin-bottom: 3px; flex-shrink: 0; }

.m-name {
  font-size: 7.5px; color: #8FA29E; font-weight: 600;
  background: #333D3A; border-radius: 4px;
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 3px;
  line-height: 1; min-height: 0;
}
.m-name.free { background: transparent; border: 1px dashed #52605C; color: #9FB2AE; }

/* Afvist-tælleren står ved siden af navnet, ikke under — så højden ikke skifter */
.m-retry { font-size: 6px; color: #C9A227; font-weight: 800; white-space: nowrap; }

.toast {
  background: var(--brand); color: #fff; border-radius: 22px; padding: 11px 0;
  font-size: 13px; font-weight: 800; text-align: center; margin-top: 12px;
  box-shadow: 0 4px 14px rgba(62,142,130,.4);
}

/* ==========================================================================
   ANMODNINGER — chefens pop-up
   ========================================================================== */

.modal-wrap { position: relative; }
.modal-bg { filter: blur(2px) brightness(.5); pointer-events: none; }
.modal {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 92%; background: #4A5359; border-radius: 15px; padding: 15px 13px;
  box-shadow: 0 12px 34px rgba(0,0,0,.45);
}
.modal-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.modal-x { margin-left: auto; background: rgba(255,255,255,.2); color: #fff; border-radius: 7px; padding: 3px 8px; font-size: 12px; }
.modal-m { text-align: center; font-size: 10.5px; color: rgba(255,255,255,.6); margin-bottom: 11px; }
.req {
  border: 1px solid rgba(217,164,91,.5); background: rgba(255,255,255,.07);
  border-radius: 10px; padding: 9px 10px; display: flex; align-items: center; gap: 7px; margin-bottom: 8px;
}
.req-n { font-size: 12px; font-weight: 800; color: #fff; }
.req-d { font-size: 9.5px; color: rgba(255,255,255,.6); margin-top: 1px; }
.req-t { background: var(--accent); color: #3A2A12; border-radius: 7px; padding: 5px 8px; font-size: 10.5px; font-weight: 800; margin-left: auto; white-space: nowrap; }
.req-y { background: var(--brand); color: #fff; border-radius: 7px; padding: 5px 9px; font-size: 12px; font-weight: 800; }
.req-n2 { background: #B0523F; color: #fff; border-radius: 7px; padding: 5px 9px; font-size: 12px; font-weight: 800; }

/* ==========================================================================
   LIVE STATUS — hvem er på arbejde nu
   ========================================================================== */

.live { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.live-card { background: #2B3532; border-radius: 11px; padding: 11px 12px; }
.live-n { font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 7px; }
.live-b { border-radius: 16px; padding: 5px 12px; font-size: 11px; font-weight: 700; display: inline-block; }
.live-b.ude { background: rgba(176,82,63,.2); color: #D98878; }
.live-b.inde { background: var(--brand); color: #fff; }
.live-s { font-size: 10px; color: #8FA29E; margin-top: 6px; }

/* ==========================================================================
   OVERSIGT — timer i perioden
   ========================================================================== */

.ov-select {
  background: #2B3532; border: 1px solid #3B4644; border-radius: 9px;
  padding: 10px 12px; font-size: 12px; color: #E8EFED; font-weight: 600;
  display: flex; justify-content: space-between; margin-bottom: 8px;
}
.ov-btn { background: var(--brand); color: #fff; border-radius: 9px; padding: 10px 0; font-size: 12px; font-weight: 800; text-align: center; margin-bottom: 12px; }
.ov-total { border: 1.5px solid var(--brand); border-radius: 13px; padding: 16px 0; text-align: center; margin-bottom: 11px; background: rgba(62,142,130,.08); }
.ov-total-l { font-size: 10px; letter-spacing: .16em; color: #9FB2AE; font-weight: 700; }
.ov-total-n { font-size: 36px; font-weight: 800; color: var(--brand); letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 0; }
.ov-total-u { font-size: 11px; color: #8FA29E; }
.ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ov-card { background: #2B3532; border-radius: 10px; padding: 10px; text-align: center; border-bottom: 2px solid var(--brand); }
.ov-card-n { font-size: 11px; color: #9FB2AE; }
.ov-card-h { font-size: 19px; font-weight: 800; color: var(--brand); margin: 2px 0 0; }
.ov-card-u { font-size: 9.5px; color: #7E918D; }

/* ==========================================================================
   TIMEOPGØRELSE — dokumentet til revisoren
   ========================================================================== */

.doc { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.doc-head { background: var(--brand); color: #fff; padding: 15px 17px; }
.doc-firm { font-size: 9px; letter-spacing: .14em; font-weight: 700; opacity: .9; }
.doc-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; }
.doc-period { font-size: 10.5px; opacity: .88; margin-top: 2px; }
.doc-body { padding: 15px 17px 17px; }
.doc-name-row { display: flex; align-items: baseline; border-bottom: 2px solid var(--brand); padding-bottom: 7px; margin-bottom: 11px; }
.doc-name { font-size: 17px; font-weight: 800; }
.doc-rate { margin-left: auto; font-size: 10.5px; color: var(--muted); }
.doc-th { display: grid; grid-template-columns: 1.3fr 1fr 1fr .7fr; gap: 6px; font-size: 8px; letter-spacing: .06em; color: #9AAAA6; font-weight: 700; padding-bottom: 5px; }
.doc-tr { display: grid; grid-template-columns: 1.3fr 1fr 1fr .7fr; gap: 6px; font-size: 10.5px; color: var(--text); padding: 6px 0; border-top: 1px solid #F0F5F3; }
.doc-tr span:last-child, .doc-th span:last-child { text-align: right; }
.doc-more { font-size: 10px; color: #9AAAA6; text-align: center; padding: 7px 0 0; font-style: italic; }
.doc-sum {
  border: 1.5px solid var(--brand); background: var(--brand-soft); border-radius: 11px;
  padding: 13px 15px; display: flex; align-items: center; margin-top: 13px;
}
.doc-sum-l { font-size: 8.5px; letter-spacing: .09em; color: #4E736C; font-weight: 700; }
.doc-sum-v { font-size: 20px; font-weight: 800; color: var(--brand-dark); margin-top: 2px; }
.doc-sum-r { margin-left: auto; text-align: right; }
.doc-sum-r .doc-sum-v { color: var(--brand); }
.doc-foot { font-size: 9px; color: #9AAAA6; margin-top: 11px; line-height: 1.5; }

@media (max-width: 860px) {
  .slide.on { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr; }
}
