/* Knipsa app-sider — delt designsystem */
:root {
  --natt: #17131f;
  --natt-2: #211b2e;
  --lys: #fff6e6;
  --blits: #ffd447;
  --rosa: #ff5ca8;
  --himmel: #6ee7ff;
  --ink: #211b2e;
  --dus: #b6aecb;
  --ramme: rgba(255, 246, 230, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Bricolage Grotesque", -apple-system, "Segoe UI", sans-serif;
  background: var(--natt); color: var(--lys); line-height: 1.6; min-height: 100vh;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px 60px; }
.topp { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; gap: 12px; }
.logo { font-family: Shrikhand, cursive; font-size: 1.5rem; color: var(--lys); text-decoration: none; }
.logo b { color: var(--blits); font-weight: 400; }
h1 { font-family: Shrikhand, cursive; font-weight: 400; font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.15; margin: 14px 0 6px; }
.undertekst { color: var(--dus); margin-bottom: 24px; }
.kort { background: var(--natt-2); border: 1px solid var(--ramme); border-radius: 18px; padding: 24px; margin-bottom: 18px; }
.kort h2 { font-size: 1.1rem; margin-bottom: 10px; }
label { display: block; font-weight: 600; font-size: 0.92rem; margin: 14px 0 6px; }
input, select {
  padding: 13px 15px; border-radius: 12px; border: 2px solid transparent;
  font-size: 1rem; font-family: inherit; width: 100%; background: var(--lys); color: var(--ink);
}
/* iOS Safari: dato-felt sentrerer teksten og får egen høyde — normaliser.
   display:flex + width:100% på pseudoen er det som faktisk biter på iOS. */
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  height: 49px;
  min-height: 49px;
  text-align: left;
}
input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  width: 100%;
  margin: 0;
}
input[type="date"]::-webkit-datetime-edit {
  text-align: left;
  width: 100%;
}
.knapp {
  display: inline-block; background: var(--blits); color: var(--ink);
  font-family: inherit; font-weight: 700; font-size: 1.02rem; text-align: center;
  padding: 14px 24px; border-radius: 13px; border: none; cursor: pointer;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 5px 0 rgba(0,0,0,0.35);
}
.knapp:hover { transform: translateY(-2px); }
.knapp:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.35); }
.knapp.sekundaer { background: transparent; color: var(--lys); border: 2px solid var(--ramme); box-shadow: none; }
.knapp:disabled { opacity: 0.6; cursor: wait; }
.galleri { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; padding-top: 10px; }
.galleri a, .galleri .rute { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--natt-2); }
.galleri img, .galleri video { width: 100%; height: 100%; object-fit: cover; display: block; }
.galleri .hvem {
  position: absolute; inset: auto 0 0 0; padding: 10px 8px 5px; font-size: 0.72rem;
  color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.65)); pointer-events: none;
}
.tom { text-align: center; color: var(--dus); padding: 40px 10px; }
.tom .stor { font-size: 2.6rem; }
.status { font-size: 0.9rem; color: var(--dus); }
.feil { color: var(--rosa); font-weight: 600; }
.qr-boks { background: var(--lys); border-radius: 14px; padding: 16px; display: inline-block; }
.qr-boks img { display: block; width: 200px; height: 200px; }
.lenke-boks {
  background: var(--natt); border: 1px dashed var(--ramme); border-radius: 10px;
  padding: 10px 14px; font-family: ui-monospace, monospace; font-size: 0.85rem;
  word-break: break-all; margin: 8px 0; color: var(--himmel);
}
:is(a, button, input, select):focus-visible { outline: 3px solid var(--himmel); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
