/* static/css/styles.css */
/* Simple, readable styling, inspired by your current CSS level. */

:root{
  /*--bg: #fef0d3;*/
  --font-display: "Quicksand VariableFont", system-ui, -apple-system, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg-white: #fefefe;
  --bg-lightgrey: #f3f3f3;
  --bg-grey: #d8d8d8;
  --bg-light: #effad9;
  --bg: #dff3b7;
  --bg-dark: #bbcaa2;
  --bg-dark-dark: #808a6d;
  --action-btn100: #d0fc8ada;
  --flash-50: #fffd8d98;
  --action-btn25: #d7fe986b;
  --reg-btn: #d0ddb4;


  --shadow-s: 
      inset 0 1px 2px #ffffff90, /*top highlight*/
      0 1px 2px #00000030, /*dark shadow*/
      0 2px 4px #00000015; /*soft shadow*/
  --shadow-m: 
      inset 0 1px 2px #ffffff50, /*top highlight*/
      0 2px 4px #00000030, /*dark shadow*/
      0 4px 8px #00000015; /*soft shadow*/
  --shadow-l: 
      inset 0 1px 2px #ffffff30, /*top highlight*/
      0 4px 8px #00000030, /*dark shadow*/
      0 8px 16px #00000015; /*soft shadow*/      
  --ink:#222;
  --muted: #7A6957;
  /*--primary:#b07837;*/
  --primary: var(--bg-dark);
  /*--card: #F2D9A6;*/
  /*--card: linear-gradient(#fef0d3, #fedd9d);*/
  --card: var(--bg-white);
  --profilecard: linear-gradient(var(--bg), var(--bg-light));
  --productCard: #f7e8c9;
  --cafeCard: var(--bg-light);
  --scannerCard: #fff;
  --guestComp: #fbf6d4;
  --border: var(--primary);
}

*{ box-sizing: border-box; }

body{
  background: var(--bg-white);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin:0;
  padding:0;
}

.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:1rem 2rem;
  border-bottom:4px solid var(--border);
  background: var(--bg-light);
  box-shadow: var(--shadow-s);
}
.site-header h1{ margin:0; font-size:1.25rem; }
.site-header nav a{
  margin-left:1rem;
  text-decoration:none;
  color:var(--text);
  font-weight:600;
}

.container{
  max-width:1000px;
  margin:2rem auto;
  margin-bottom: 25%;
  padding:0 1rem;
}

.flash{
  background:var(--flash-50);
  box-shadow: var(--shadow-s);
  padding:.75rem 1rem;
  border-radius:.5rem;
  margin-bottom:1rem;
}

.auth{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:1rem;
}
.card{
  background:var(--card);
  border: solid var(--bg) 2px;
  border-radius:.75rem;
  padding:1rem;
  box-shadow: var(--shadow-l);
  color: var(--text);
}
.card h2, .card h3{ 
  margin-top:0; 
}

label{ display:block; margin:.5rem 0 .25rem; }
input[type="email"], input[type="password"], input[type="text"]{
  width:100%;
  padding:.5rem .75rem;
  border:1px solid var(--border);
  border-radius:.5rem;
}

.profilecard{
  background:var(--profilecard);
  border-radius:.75rem;
  padding:1rem;
  box-shadow: var(--shadow-l);
  color: var(--text);
}
.profilecard h2, .profilecard h3{ 
  margin-top:0; 
}

label{ display:block; margin:.5rem 0 .25rem; }
input[type="email"], input[type="password"], input[type="text"]{
  width:100%;
  padding:.5rem .75rem;
  border:1px solid var(--border);
  border-radius:.5rem;
}

.currency-unit{ font-size:18px; color:var(--muted); }
.loyalty-unit{ font-size:18px; color:var(--muted); }

/* Profile.html Tool-tip start */
.profile-info-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--bg-dark);
  border-radius: 50%;
  color: var(--bg-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 50%;
  bottom: 135%;
  transform: translateX(-50%);
  width: 220px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #4a4a4a;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  z-index: 50;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #4a4a4a transparent transparent transparent;
}

.info-icon:hover .tooltip-text,
.info-icon:focus .tooltip-text,
.info-icon:active .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Profile.html tool-tips end */


.productCard{
  background: var(--bg-lightgrey);  
  border: solid var(--bg-grey) 1px;
  border-radius:.75rem;
  padding:1rem;
  box-shadow: var(--shadow-s);
  color: var(--text);
}
.card h2, .card h3{ margin-top:0; }

.scannerCard{
  background:var(--scannerCard);
  border:1px solid var(--border);
  border-radius:.75rem;
  padding-left:40%;
  padding-right: 32%;
  padding-bottom: 3%;
  padding-top: 3%;
  box-shadow:0 1px 2px rgba(0,0,0,.05);
  
}
.scannerCard h2, .scannerCard h3{ margin-top:0; }

label{ display:block; margin:.5rem 0 .25rem; }
input[type="email"], input[type="password"], input[type="text"]{
  width:100%;
  padding:.5rem .75rem;
  border:1px solid var(--border);
  border-radius:.5rem;
}

.trees{
  border-radius:.75rem;
  padding:1rem;
  width: auto;
  height: 250px;
}

.cafeCard{
  background:var(--cafeCard);
  border:1px solid var(--border);
  border-radius:.75rem;
  padding:1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);;
}
.cafeCard h2, .cafeCard h3{ margin-top:0; }

label{ display:block; margin:.5rem 0 .25rem; }
input[type="email"], input[type="password"], input[type="text"]{
  width:100%;
  padding:.5rem .75rem;
  border:1px solid var(--border);
  border-radius:.5rem;
}

.guestComp{
  background:var(--guestComp);
  border:1px solid var(--border);
  border-radius:.75rem;
  padding:1rem;
  box-shadow:0 1px 2px rgba(0,0,0,.05);
  padding-left: 40%;
}
.guestComp h2, .guestComp h3{ margin-top:0; }

label{ display:block; margin:.5rem 0 .25rem; }
input[type="email"], input[type="password"], input[type="text"]{
  width:100%;
  padding:.5rem .75rem;
  border:1px solid var(--border);
  border-radius:.5rem;
}

button, .button{
  display:inline-block;
  background: var(--bg);
  color:var(--muted);
  box-shadow: var(--shadow-m);
  border:solid var(--bg-dark) 1px;
  border-radius:.5rem;
  padding:.5rem .9rem;
  text-decoration:none;
  cursor:pointer;
}
button:hover, .button:hover{ opacity:.9; }

.regbutton{
  display:inline-block;
  background: var(--bg-white);
  color:var(--bg-dark-dark);
  box-shadow: var(--shadow-m);
  border:solid var(--bg-dark) 2px;
  border-radius:.5rem;
  padding:.5rem .9rem;
  text-decoration:none;
  cursor:pointer;
}
button:hover, .regbutton:hover{ opacity:.9; }

.transp-button{
  display:inline-block;
  background: var(--bg-white);
  color:var(--bg-dark-dark);
  box-shadow: var(--shadow-m);
  border:solid var(--bg-dark) 1px;
  border-radius:.5rem;
  padding:.5rem .9rem;
  text-decoration:none;
  cursor:pointer;
}
button:hover, .regbutton:hover{ opacity:.9; }


.profile .grid{
  display:grid;
  grid-template-columns: 1fr 2fr;
  gap:1rem;
  margin-top:1rem;
  color: var(--text);
}

/* QR Scanner */
/* --- PWA Scan QR button --- */
.pwa-scan-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  width: 50%;
  padding: 12px 16px;
  margin: 0 auto;                 

  border-radius: 12px;
  border: 2px solid var(--accent-green, #CFE8A9);

  background: #ffffff;
  color: #5B4636;

  font-size: 16px;
  font-weight: 600;
  text-decoration: none;

  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.pwa-scan-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.pwa-scan-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.pwa-scan-btn .qr-icon {
  font-size: 20px;
  line-height: 1;
}

.pwa-scan-vertical .qr-icon {
  width: 50px;
  height: 50px;
}

.pwa-scan-vertical .scan-label {
  font-size: 16px;
  font-weight: 600;
}

.qr{
  width:200px;
  height:200px;
  border:1px solid var(--border);
  display:block;
}

.iphoneQr{
  width:235px;
  height:200px;
  border:1px solid var(--border);
  display:block;
}

.row{ display:flex; gap:.5rem; align-items:center; }
.urlbox{ flex:1; }

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

/* Scanner page */
video#video{
  width:100%;
  max-width:640px;
  border-radius:.75rem;
  border:1px solid var(--border);
  display:block;
  margin-bottom:1rem;
}

code{
  background:#f4f4f4;
  padding:.1rem .25rem;
  border-radius:.25rem;
}


:root{
  /*--bg: #F7E8C9;*/
  --card-edge: #806a3d;
  --accent: #D99243;
  --text: #4D3B2A;
  --white: #fff;
}

.profile-wrap{
  display:flex; justify-content:center; padding:2rem 1rem; background: rgba(255, 255, 255, 0);
}
.profile-card{
  width:min(700px, 95vw);
  background: var(--profilecard);
  border: solid var(--bg-dark) 0.5px;
  border-radius: 28px;
  box-shadow: var(--shadow-l);
  overflow:hidden;
}

.profile-card__header{
  padding: 1.25rem 1.5rem 0.25rem;
}
.badge{
  display:inline-block;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  letter-spacing:.08em;
  padding:.6rem 1.2rem;
  border-radius: 12px;
}

.profile-card__hero{
  padding: 1rem 1.5rem 0;
}

.hero-art{
  overflow: hidden;
  height: 160px;
  border: solid #D7B478 1px; 
  border-radius: 16px;
  background:    
    linear-gradient(#EBD19F 50%, #D7B478 50%);
  
  /* quick, stylized “bakker + træer” placeholder */
}

.profile-card__summary{
  display:flex; align-items:center; gap:1rem;
  padding: 1rem 1.5rem;
}
.summary-text p{ margin:0; color:var(--muted); }
.summary-text h2{ margin:.2rem 0; font-size:2rem; color:var(--text); }
.summary-icon{ margin-left:auto; }
.seedling{
  width:80px; height:80px; border-radius:50%;
  background: #F6E5C0;
  box-shadow: inset 0 0 0 6px rgba(0,0,0,.04);
}

.profile-card__info{
  padding: .75rem 1.5rem 1.5rem;
}
.info-row{
  display:flex; justify-content:space-between; align-items:center;
  padding: .9rem 1rem; margin:.5rem 0;
  background: rgba(255,255,255,.35);
  border-radius: 12px;
  border:1px solid rgba(0,0,0,.06);
}
.info-label{ color:var(--muted); }
.info-value{ color:var(--text); font-weight:600; }

/* -------------------- Profile Wallet ------------------------ */
.wallet-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-radius:16px;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0);
  gap: 14px;
}

.wallet-left{ display:flex; flex-direction:column; gap:6px; }

.wallet-label{ font-size:18px; color: var(--muted); }
.wallet-amount{ display:flex; align-items:baseline; gap:8px; }
.wallet-value{ font-size:2rem; font-weight:bold; line-height:1; color: #000; }
.wallet-unit{ font-size:18px; color:var(--muted); }
.wallet-sub{ font-size:16px; color: var(--muted); opacity: 0.9; }

.wallet-topup-btn{
  margin-top:10px;
  width: 140px;
  border-radius: 12px;
}

.wallet-right{ display:flex; align-items:center; justify-content:center; padding-bottom: 75px;}


/* Genbrugelig ikon-ramme (samme look som seedling/summary) */
.icon-badge{
  width:80px;
  height:80px;
  border-radius:50%;
  background:#F6E5C0;
  box-shadow: inset 0 0 0 6px rgba(0,0,0,.04);
  display:flex;
  align-items:center;
  justify-content:center;

  /* NØGLEN: klip alt til cirklen */
  overflow:hidden;
}

/* Billedet fylder rammen og klippes af wrapperen */
.icon-badge img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;   /* cover = ingen “kant”, fylder cirklen */
}


/* Modal */
.modal.hidden{ display:none; }
.modal{
  position:fixed; inset:0;
  background: rgba(0,0,0,0.25);
  display:flex; align-items:center; justify-content:center;
  z-index: 9999;
}
.modal-card{
  width: min(420px, 92vw);
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.modal-title{ font-size:20px; font-weight:700; margin-bottom:4px; }
.modal-sub{ font-size:14px; opacity:0.8; margin-bottom:12px; }

.wallet-presets{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.wallet-presets .preset{ flex: 1 1 110px; }

.regbutton.secondary{
  background: transparent;
  border: 1px solid rgba(0,0,0,0.2);
}


/* ------------- Styling af collapsible +Menupunkt i cafeProfile ------------- */
.collapsible-summary{ 
  list-style:none; 
  cursor:pointer; 
  display:flex; 
  align-items:center; 
  gap:.5rem; 
  font-weight:700; 
  padding:.25rem 0; 
}
.collapsible-summary::-webkit-details-marker{ display:none; }
.caret{ 
  margin-left:auto; 
  width:0; 
  height:0; 
  border-left:6px solid transparent; 
  border-right:6px solid transparent; 
  border-top:8px solid rgba(0,0,0,.4); 
  transition: transform .2s ease; 
}
details[open] .caret{ transform: rotate(180deg); }

button.danger{
  background:var(--muted); 
  border:none; 
  color:#fff; 
  padding:.55rem .8rem; 
  border-radius:.5rem; 
}


  /* ---------- Layout til +Menupunkt / ingrediens-tabellen ---------- */
  table.simple {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;           
    margin-top: 8px;
    margin-left: 0;
    margin-right: 0;
    font-size: 0.95rem;
    table-layout: fixed; /* sikrer stabil fordeling af kolonner */
  }

  /* Fælles styling for header og celler */
  table.simple th,
  table.simple td {
    padding: 6px 6px;
    text-align: left;
    vertical-align: middle;
  }


  /* Selve "rækken" som et kort */
  table.simple tbody tr td {
    background: #f4f4f4;
  }

  /* Runde hjørner på rækken (kolonne 1 er hidden, så venstre side er nth-child(2)) */
table.simple tbody tr td:nth-child(2) {
  border-left: 3px solid var(--reg-btn);     /* grøn accent */
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
 /* Runde hjørner på rækken (kolonne 1 er hidden, så venstre side er nth-child(2)) */
table.simple tbody tr td:nth-child(6) {
  border-right: 3px solid var(--reg-btn);     /* grøn accent */
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

table.simple tbody tr td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

  /* Hover – diskret, men hjælper navigation */
  table.simple tbody tr:hover td {
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    transform: translateY(-1px);
    transition: 140ms ease;
  }

  /* Inputs/selects i tabellen: mere "app"-feel */
  table.simple input[type="text"],
  table.simple input[type="number"],
  table.simple select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    outline: none;
  }

  /* Fokus: grøn markeringsring */
  table.simple input:focus,
  table.simple select:focus {
    border-color: var(--reg-btn);
    box-shadow: 0 0 0 3px rgba(160, 210, 90, 0.22); /* justér hvis din grøn er mørkere/lysere */
  }


  /* Kolonnebredder (lookup-kolonnen er hidden, men findes stadig som nth-child(1)) */
table.simple thead th:nth-child(1),
table.simple tbody td:nth-child(1),
table.simple tfoot td:nth-child(1) {
  width: 0;
  padding: 0;
  border: 0;
}

/* Ingrediens / Mængde / CO2 / Værdi / X = 100% */
table.simple thead th:nth-child(2),
table.simple tbody td:nth-child(2),
table.simple tfoot td:nth-child(2) { width: 43%; }

table.simple thead th:nth-child(3),
table.simple tbody td:nth-child(3),
table.simple tfoot td:nth-child(3) { width: 14%; }

table.simple thead th:nth-child(4),
table.simple tbody td:nth-child(4),
table.simple tfoot td:nth-child(4) { width: 14%; }

table.simple thead th:nth-child(5),
table.simple tbody td:nth-child(5),
table.simple tfoot td:nth-child(5) { width: 19%; }

table.simple thead th:nth-child(6),
table.simple tbody td:nth-child(6),
table.simple tfoot td:nth-child(6) { width: 10%; padding-right: 0; }

  /* CO₂e/kg og Værdi (DKK): gør selve span-værdien til et “felt” */
  table.simple tbody td:nth-child(4) span,
  table.simple tbody td:nth-child(5) span {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.5rem;
    border-radius: 6px;
    border: 1px ;
    min-height: 2.3rem;
  }

  /* Sørg for at "Søg ingrediens…" får præcis samme stil som de andre felter */
  table.simple tbody td:nth-child(2) input {
    width: 100% !important;
    box-sizing: border-box;
    padding: 0.45rem 0.5rem !important;
    border-radius: 6px !important;
    border: 1px solid #cbbba7 !important;
    font-size: 0.95rem !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }

  /* X-knappen fylder sin kolonne og matcher højde */
  table.simple button.danger {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.3rem;
    padding: 0 0.75rem;
  }

  /* Let mobil-tilpasning */
  @media (max-width: 640px) {
    table.simple {
      font-size: 0.9rem;
    }

    table.simple thead th {
      white-space: normal;
    }
  }

  /* Skjul "Slå op i"-kolonnen */
  th.col-lookup,
  td.col-lookup {
    display: none;
  }

/* Header: ens padding (ingen inline-styles længere) */
table.simple thead th {
  padding: 0 6px 8px 6px;
}

/* Celler: ens padding, så rækken visuelt matcher bredde med produktnavn */
table.simple td {
  padding: 8px 6px;
}

#new_name {
  width: 100%;
  box-sizing: border-box;
}

#save_status {
  color: var(--bg-dark);
  font-weight: 500;
  line-height: 1;
}



/* ---------- CAFE-LEADBOARD -------- */ 
/* Baseline */
.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;      /* jævn kolonnefordeling */
  background: var(--bg-light);
  border: 1px solid white;
  border-radius: 12px;
  box-shadow: var(--shadow-m);
  overflow: hidden;         /* holder radius på header */
}

.table th,
.table td {
  padding: .7rem .9rem;
  
  text-align: left;         /* standard venstrejustering */
  word-break: break-word;   /* bryd lange ord */
}

/* Header */
.table thead th {
  background: var(--bg-dark);
  font-weight: 600;
}

/* Striped rows (valgfrit) */
.table tbody tr:nth-child(odd) { background: var(--bg); }

/* Små justeringer pr. position – uden at navngive kolonner */
.table th:first-child,
.table td:first-child {      /* # kolonnen */
  width: 6ch;
  text-align: center;
  white-space: nowrap;
}

.table th:last-child,
.table td:last-child {       /* Point-kolonnen */
  text-align: right;
  font-variant-numeric: tabular-nums; /* pæn taljustering */
  white-space: nowrap;
}
/* ---------------- slut ---------------*/ 
/* ---------------- Stor klimadatabase ingrediens lookup ---------------*/ 
/* ens højde/udseende */
.ctrl {
  height: 40px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
}

/* bredder: ingrediens fylder resten, mængde er smal */
.cell-lookup .ctrl { width: 100%; }
.cell-ing    .ctrl { width: 100%; }      /* bliver bredt automatisk */
.cell-qty    .ctrl { width: 110px; text-align: right; }

/* pæn højrejustering af tal-kolonner */
td.num { text-align: right; }
/* ---------------- slut ---------------*/ 
/* ---------------- FONT Styling (se også .root)---------------*/ 
/* static/css/app.css */
@font-face {
  font-family: "Quicksand VariableFont";
  src:
    url("/static/fonts/Quicksand-VariableFont_wght.woff2") format("woff2");
  /* url("/static/fonts/RubikIso-Regular.woff") format("woff");  valgfri */
  font-weight: 400;         /* Rubik Iso har normalt én regular-stil */
  font-style: normal;
  font-display: swap;       /* god UX: viser fallback mens fonten loader */
}

html, body { font-family: var(--font-display); }

/* Formularer arver ikke altid: */
button, input, select, textarea { font: inherit; }

/* ---------------- slut ---------------*/ 

/* ---------------- QR-Modul ---------------*/ 
.qr-modal.hidden { display: none; }

.qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.qr-modal-content {
  background: #fefefe;
  max-height: 90vh;
  padding: 20px;
  width: 95vw;
  max-width: 420px;
  border-radius: 16px;
}


.qr-modal-content img {
    width: 90vw;          /* Brug 90% af skærmens bredde */
    max-width: 320px;     /* Men aldrig større end 350px (så den ikke fylder for meget på desktop) */
    height: auto;         /* Bevar proportioner */
    display: block;
    margin: 0 auto;       /* Centrer den */
    max-height: 70vh;   /* maks 70% af skærmens højde */
    object-fit: contain;
}

/* ---------------- slut ---------------*/ 

/* === Burgermenu-design === */
/* Logo til venstre */
.site-header__logo h1 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Navn/e-mail i midten */
.site-header__user {
  margin: 0;
  flex: 1;
  text-align: center;
}

/* Burger helt til højre */
.site-header__toggle {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
}

/* De tre streger i burger-ikonet */
.site-header__toggle span {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Burger -> kryds når menuen er åben */
.site-header.nav-open .site-header__toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header.nav-open .site-header__toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .site-header__toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* NAV-OVERLAY + PANEL */

.site-header__nav {
  position: fixed;
  inset: 0;
  pointer-events: none;      /* inaktiv, indtil nav-open */
  z-index: 900;
}

.site-header__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Panelet fra højre side */
.site-header__nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  min-width: auto;
  max-width: 80%;
  max-height: 100%;
  height: 100%;
  background: var(--bg-light);
  box-shadow: -4px 0 14px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
}

/* Når menuen er åben */
.site-header.nav-open .site-header__nav {
  pointer-events: auto;
}
.site-header.nav-open .site-header__overlay {
  opacity: 1;
}
.site-header.nav-open .site-header__nav-panel {
  transform: translateX(0);
}

/* Luk-knap inde i panelet (kryds) */
.site-header__close {
  align-self: flex-end;
  background: var(--reg-btn);
  border: none;
  cursor: pointer;
  padding: 1rem;
  margin-bottom: 1rem;
}

.site-header__close span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transform-origin: center;
}

.site-header__close span:first-child {
  transform: rotate(45deg);
}
.site-header__close span:last-child {
  transform: rotate(-45deg) translateY(-2px);
}

/* Øverste sektion med links */
.site-header__nav-main {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;                   /* fylder det meste af højden */
}

/* Nederste sektion – Log ud fast i bunden */
.site-header__nav-footer {
  margin-top: 1.5rem;
  align-self: flex-end;
}

/* Knapper i panelet */
.site-header__nav-panel a.button,
.site-header__nav-panel a {
  display: inline-block;
  font-size: 1rem;
  padding: 0.45rem 0.9rem;
  margin-left: 0;
}

/* === MOBILE-OPTIMERING AF HEADER === */
@media (max-width: 700px) {
  .site-header__user {
    display: none;
  }
}

/* === IOS Install PWA-banner === */
.ios-share-icon {
  font-size: 1.3em;
  vertical-align: -0.05em;
  margin-right: 1px;
  margin-left: 1px;
}

/* iOS install banner layout */
.ios-install-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

/* Tekst fylder mest */
.ios-install-text {
  flex: 1;
  text-align: left;
  line-height: 1.4;
}

/* Luk-knap kolonne */
.ios-install-action {
  flex-shrink: 0;
}

/* Luk-knap styling */
.ios-install-close-btn {
  border:solid var(--bg-dark) 2px;
  background: transparent;
  color:var(--bg-dark-dark);
  padding: 6px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-m);
  border-radius:.5rem;
}

.ios-install-close-btn:active {
  transform: scale(0.96);
}

/* =========================
   Map page / cafe map
   ========================= */

#pondi-map {
  width: 100%;
  height: 70vh;
  min-height: 420px;
  border-radius: 12px;
}

.pondi-map-wrapper {
  padding: 1rem 0;
}

.leaflet-popup-content {
  min-width: 220px;
  line-height: 1.4;
}

.cafe-popup-title {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.cafe-popup-row {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.cafe-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.cafe-popup-link,
.cafe-popup-button {
  display: inline-block;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.92rem;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-m);
  border: solid var(--bg-dark) 1px;
}

.cafe-popup-link {
  background: var(--bg-white);
  color: var(--muted);
}

.cafe-popup-button {
  background: var(--bg);
  color: var(--muted);
}

.cafe-popup-link:hover,
.cafe-popup-button:hover {
  opacity: 0.9;
}

.user-location-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #16a34a;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

.map-status {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: #555;
}