:root {
  --forest:   #173f2a;
  --forest-2: #24563b;
  --leaf:     #4f7c53;
  --lime:     #d9ecad;
  --cream:    #f5f2e9;
  --paper:    #fffefb;
  --ink:      #15201a;
  --muted:    #66716a;
  --line:     #dce1db;
  --red:      #b94036;
  --orange:   #d67b31;
  --shadow:   0 20px 50px rgba(23,63,42,.13);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100dvh; background: var(--cream); overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(79,124,83,.35); outline-offset: 2px;
}
.hidden { display: none !important; }

/* ─── Påmeldingsskjema ─────────────────────────────────────────────────── */
.booking-page {
  min-height: 100dvh;
  background: #eef0ea;
}

/* ── Hero – full bredde ──────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: clamp(360px, 65vh, 600px);
  background: var(--forest);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-overlay {
  position: relative; z-index: 1;
  background: linear-gradient(to top, rgba(5,18,10,.88) 0%, rgba(5,18,10,.45) 55%, transparent 100%);
  padding: clamp(28px,6vw,52px) clamp(20px,6vw,48px) clamp(28px,6vw,44px);
  color: white;
}
.hero-overlay .eyebrow {
  font-size: .7rem; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--lime); margin: 0 0 10px; opacity: .9;
}
.hero-overlay h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  margin: 0; line-height: 1.0;
  text-shadow: 0 3px 20px rgba(0,0,0,.4);
}
.hero-sub {
  margin: 10px 0 22px; font-size: clamp(.92rem,2.5vw,1.05rem); opacity: .9; line-height: 1.45;
}
.hero-pills {
  display: flex; flex-wrap: wrap; gap: 9px;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; padding: 7px 15px;
  font-size: .82rem; font-weight: 700; color: white;
  backdrop-filter: blur(6px);
}

/* ── Sentrert innhold ────────────────────────────────────────────────────── */
.booking-wrap {
  width: min(100%, 540px);
  margin: 0 auto;
  padding: 0 0 56px;
}

/* ── Info-notice ─────────────────────────────────────────────────────────── */
.info-notice {
  margin: 0 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #e4edd9, #d6e8c4);
  border: 1.5px solid rgba(79,124,53,.3);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
}
.info-notice-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 5px 0;
}
.info-notice-row + .info-notice-row {
  border-top: 1px solid rgba(79,124,53,.15);
  margin-top: 5px; padding-top: 10px;
}
.info-icon { font-size: 1.05rem; flex-shrink: 0; line-height: 1.55; }
.info-notice span:not(.info-icon) { font-size: .86rem; color: #1e4a28; line-height: 1.58; }
.info-notice a { color: var(--forest); font-weight: 700; text-decoration: none; }
.info-notice a:hover { text-decoration: underline; }

/* ── Form-kort ───────────────────────────────────────────────────────────── */
.card-body {
  margin: 0 16px;
  background: var(--paper);
  border: 1.5px solid rgba(23,63,42,.1);
  border-top: 0;
  border-radius: 0 0 26px 26px;
  padding: clamp(22px, 6vw, 38px);
  box-shadow: 0 24px 60px rgba(23,63,42,.13);
}

/* ── Seksjonsoverskrifter ────────────────────────────────────────────────── */
.section-label {
  font-size: .72rem; font-weight: 800;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--forest); margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: ''; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); border: 2px solid var(--leaf);
  flex-shrink: 0;
}
.form-section { margin-bottom: 28px; }
.form-section + .form-section {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* ── Dato-valg ───────────────────────────────────────────────────────────── */
.dates-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.date-option { display: none; }
.date-label {
  display: block;
  border: 2px solid #c8d1c7; border-radius: 18px;
  padding: 18px 14px 16px;
  cursor: pointer; background: white;
  text-align: center;
  transition: all .2s cubic-bezier(.2,.8,.4,1);
}
.date-label:hover {
  border-color: var(--leaf);
  background: rgba(217,236,173,.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23,63,42,.1);
}
.date-label .day-name {
  font-size: .64rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--leaf); display: block; margin-bottom: 6px;
}
.date-label .day-num {
  font-family: Georgia, serif; font-size: 2rem; font-weight: 700;
  display: block; line-height: 1.1; color: var(--forest);
}
.date-label .day-month {
  font-size: .85rem; font-weight: 600; color: var(--ink);
  display: block; margin-bottom: 6px;
}
.date-label .day-time {
  font-size: .75rem; color: var(--muted); display: block;
}
.date-option:checked + .date-label {
  border-color: var(--forest);
  background: var(--forest);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(23,63,42,.28);
}
.date-option:checked + .date-label .day-name { color: var(--lime); }
.date-option:checked + .date-label .day-num  { color: white; }
.date-option:checked + .date-label .day-month { color: rgba(255,255,255,.88); }
.date-option:checked + .date-label .day-time  { color: rgba(255,255,255,.65); }
.loading-dates {
  color: var(--muted); font-size: .88rem; font-style: italic;
  grid-column: 1 / -1;
}

/* ── Tidspunkt-slots ─────────────────────────────────────────────────────── */
.slots-grid {
  display: flex; flex-wrap: wrap; gap: 9px;
}
.slot-option { display: none; }
.slot-label {
  display: block;
  border: 2px solid #c8d1c7; border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer; background: white;
  font-size: .9rem; font-weight: 700;
  color: var(--forest);
  transition: all .15s;
}
.slot-label:hover {
  border-color: var(--leaf);
  background: rgba(217,236,173,.35);
  transform: translateY(-1px);
}
.slot-option:checked + .slot-label {
  border-color: var(--forest); background: var(--forest); color: white;
  box-shadow: 0 4px 12px rgba(23,63,42,.22);
}
.slots-placeholder {
  color: var(--muted); font-size: .87rem; font-style: italic;
}

/* ── Felt ────────────────────────────────────────────────────────────────── */
.field-group { margin-bottom: 16px; }
.field-label {
  display: block; font-size: .82rem; font-weight: 750;
  margin: 0 0 7px;
}
.field-label .req { color: var(--leaf); }
.field-label .opt { color: var(--muted); font-weight: 500; font-size: .78rem; }

input[type='text'],
input[type='email'],
input[type='tel'] {
  width: 100%; min-height: 52px;
  border: 1.5px solid #c8d1c7; border-radius: 13px;
  padding: 0 15px; color: var(--ink); background: white;
  transition: border-color .15s, box-shadow .15s;
}
input[type='text']:focus,
input[type='email']:focus,
input[type='tel']:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(79,124,53,.15);
  outline: none;
}
input::placeholder { color: #9ba89d; }

/* ── Stepper ─────────────────────────────────────────────────────────────── */
.stepper {
  display: inline-flex; align-items: center;
  border: 1.5px solid #c8d1c7; border-radius: 13px;
  background: white; overflow: hidden;
}
.stepper-btn {
  width: 52px; height: 52px; border: 0;
  background: transparent; color: var(--forest);
  font-size: 1.5rem; font-weight: 700;
  display: grid; place-items: center;
  flex-shrink: 0; transition: background .1s;
}
.stepper-btn:hover { background: var(--lime); }
.stepper-btn:disabled { color: #b5bfb8; }
.stepper-val {
  min-width: 54px; text-align: center;
  font-size: 1.25rem; font-weight: 800;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  height: 52px; line-height: 52px;
}

/* ── Feil ────────────────────────────────────────────────────────────────── */
.form-error {
  color: var(--red); font-size: .83rem; min-height: 18px; margin: 6px 0 0;
}

/* ── Prisliste ───────────────────────────────────────────────────────────── */
.price-list { margin: 24px 0 4px; }
.price-items {
  list-style: none; margin: 0; padding: 0;
  border: 1.5px solid var(--line); border-radius: 14px;
  overflow: hidden; background: white;
}
.price-item {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; padding: 11px 18px;
  border-bottom: 1px solid var(--line);
}
.price-item:last-child { border-bottom: 0; }
.price-name { font-size: .95rem; font-weight: 700; }
.price-val { font-size: .87rem; color: var(--forest); font-weight: 600; text-align: right; }
.price-bulk { color: var(--muted); font-weight: 500; font-size: .82rem; }

/* ── Gratis-seksjon ──────────────────────────────────────────────────────── */
.free-section {
  margin: 24px 0 4px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #fdf6f9, #faeef4);
  border: 1.5px solid rgba(180,120,140,.2);
  border-radius: 16px;
}
.free-text {
  color: var(--muted); font-size: .85rem; line-height: 1.62;
  margin: 0 0 14px;
}
.free-check-row {
  display: flex; align-items: center; gap: 11px; cursor: pointer;
}
.free-check-row input[type='checkbox'] {
  width: 20px; min-height: 20px; flex-shrink: 0;
  accent-color: var(--forest); cursor: pointer;
}
.free-check-label { font-size: .9rem; font-weight: 700; }

/* ── Innsendings-knapp ───────────────────────────────────────────────────── */
.submit-btn {
  width: 100%; margin-top: 24px; min-height: 62px;
  border: 0; border-radius: 16px;
  background: linear-gradient(135deg, #1a5234 0%, var(--forest) 60%, #0f3320 100%);
  color: white;
  font-size: 1.08rem; font-weight: 800;
  box-shadow: 0 10px 28px rgba(23,63,42,.3);
  transition: transform .15s, box-shadow .15s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(23,63,42,.38);
}
.submit-btn:active { transform: scale(.99); }
.submit-btn:disabled { background: #aeb7b0; box-shadow: none; cursor: not-allowed; transform: none; }
.submit-arrow { font-size: 1.2rem; transition: transform .15s; }
.submit-btn:hover .submit-arrow { transform: translateX(3px); }

/* ── Suksess-kort ────────────────────────────────────────────────────────── */
.success-card {
  background: var(--paper);
  border: 1.5px solid rgba(23,63,42,.1);
  border-radius: 26px;
  padding: clamp(28px,6vw,44px);
  box-shadow: 0 24px 60px rgba(23,63,42,.13);
  text-align: center;
}
.success-check {
  width: 88px; height: 88px; margin: 0 auto 20px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--lime); color: var(--forest);
  font-size: 2.7rem; font-weight: 900;
  animation: pop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.success-card h2 {
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0 0 8px;
}
.success-card p { color: var(--muted); margin: 0 0 6px; }
.success-detail {
  display: inline-flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 8px;
  background: #eaf3e8; color: var(--forest);
  border-radius: 14px; padding: 13px 20px;
  font-weight: 700; margin: 14px 0 8px;
}
.success-address {
  color: var(--muted); font-size: .87rem; margin: 0 0 16px !important;
}
.success-notice {
  margin: 0 0 22px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #e8f2e3, #d9ecad55);
  border-radius: 14px;
  border: 1px solid rgba(79,124,53,.2);
  font-size: .86rem; line-height: 1.6; color: #1e4a28;
  text-align: left;
}
.success-notice p { margin: 0 0 6px; }
.success-notice p:last-child { margin: 0; }
.success-notice a { color: var(--forest); font-weight: 700; }
.again-btn {
  width: 100%; min-height: 52px;
  border: 2px solid var(--forest); border-radius: 14px;
  background: transparent; color: var(--forest); font-weight: 800;
  transition: background .15s, transform .1s;
}
.again-btn:hover { background: var(--lime); transform: translateY(-1px); }

/* ─── Admin ─────────────────────────────────────────────────────────────── */
.admin-shell { min-height: 100dvh; background: var(--cream); }

.app-header {
  position: sticky; top: 0; z-index: 20; height: 66px;
  display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: rgba(255,254,251,.95); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand-dot {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 12px 12px 12px 4px; background: var(--forest);
  display: grid; place-items: center; font-size: 1.1rem;
}
.brand-name { font-family: Georgia, serif; font-size: .97rem; font-weight: 700; }
.brand-sub  { display: block; font-size: .75rem; color: var(--muted); }
.header-spacer { flex: 1; }

.admin-main { width: min(1100px, 100%); margin: 0 auto; padding: 30px 24px 60px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-family: Georgia, serif; font-size: clamp(1.8rem,5vw,2.6rem); margin: 0; }
.page-head p  { color: var(--muted); margin: 5px 0 0; }
.head-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

/* Stat-rad */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 24px; }
.stat-card  { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.stat-label { display: block; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 10px; }
.stat-card strong { display: block; font-size: clamp(1.6rem,4vw,2.3rem); line-height: 1; }
.stat-card small  { display: block; color: var(--leaf); margin-top: 7px; font-size: .83rem; }

/* Filter-tabs */
.filter-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.filter-tab {
  min-height: 38px; padding: 0 15px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: white; color: var(--forest); font-weight: 700; font-size: .85rem;
  transition: background .12s, border-color .12s;
}
.filter-tab:hover { background: var(--lime); border-color: var(--leaf); }
.filter-tab.active { background: var(--forest); color: white; border-color: var(--forest); }
.filter-tab .tab-count {
  display: inline-block; margin-left: 5px; padding: 1px 6px;
  border-radius: 999px; background: rgba(255,255,255,.22);
  font-size: .72rem;
}
.filter-tab:not(.active) .tab-count {
  background: var(--lime); color: var(--forest);
}

/* Bookings-liste */
.bookings-list { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--paper); }
.list-header {
  display: grid; grid-template-columns: 1.2fr 1fr 110px 90px 80px 42px;
  gap: 12px; padding: 10px 20px;
  background: #f2f4f0; color: var(--muted);
  font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.booking-row {
  display: grid; grid-template-columns: 1.2fr 1fr 110px 90px 80px 42px;
  gap: 12px; align-items: center; min-height: 72px;
  padding: 11px 20px; border-top: 1px solid #e8ebe6;
  cursor: pointer; transition: background .1s;
  border-left: 4px solid transparent;
}
.booking-row:hover { background: #f7f9f5; }
.booking-row.pending  { border-left-color: var(--orange); }
.booking-row.approved { border-left-color: var(--leaf); }
.booking-row.rejected { border-left-color: #c9b8b5; }

.row-name     { font-weight: 700; }
.row-name small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; font-weight: 400; }
.row-contact  { font-size: .85rem; }
.row-contact small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.row-time     { font-size: .88rem; }
.row-time small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.row-people   { font-weight: 700; font-size: .9rem; }

.status-chip {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; padding: 4px 10px;
  font-size: .72rem; font-weight: 800; white-space: nowrap;
}
.status-chip.pending  { background: #fff4e6; color: #9a5a18; }
.status-chip.approved { background: #eaf3e8; color: var(--forest); }
.status-chip.rejected { background: #f4efee; color: #8a5c59; }

.delete-btn {
  width: 34px; height: 34px; border: 0; border-radius: 9px;
  background: #f4f0eb; color: #9a7a70; font-size: 1rem;
  display: grid; place-items: center; transition: background .1s;
}
.delete-btn:hover { background: #ffe8e4; color: var(--red); }

.free-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff0f2; color: #222;
  border: 1.5px solid #e0002a;
  border-radius: 999px; padding: 4px 12px;
  font-size: .95rem; font-weight: 700; margin-top: 3px;
}
.free-badge .fh { color: #e0002a; font-size: 1.25em; line-height: 1; }

.empty-state { padding: 56px 20px; text-align: center; color: var(--muted); }
.empty-state .empty-icon { font-size: 2.2rem; display: block; margin-bottom: 9px; }

/* Dato-gruppeoverskrift */
.date-group-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 8px;
  background: #f7f9f5; border-top: 1px solid var(--line);
  font-size: .74rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--leaf);
}
.date-group-header:first-child { border-top: 0; }
.group-pill {
  background: var(--lime); color: var(--forest);
  border-radius: 999px; padding: 2px 9px; font-size: .7rem;
}

/* Innlogging */
.login-page {
  min-height: 100dvh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(217,236,173,.6), transparent 35%),
    linear-gradient(160deg, #f8f5ec, #e7ede2);
}
.login-card {
  width: min(100%, 400px);
  background: rgba(255,254,251,.97);
  border: 1px solid rgba(23,63,42,.1); border-radius: 26px;
  padding: clamp(26px,6vw,42px); box-shadow: var(--shadow);
}
.login-mark {
  width: 62px; height: 62px; border-radius: 20px 20px 20px 7px;
  background: var(--forest); display: grid; place-items: center;
  font-size: 2rem; margin-bottom: 20px;
}
.login-card h1 { font-family: Georgia, serif; font-size: 2.2rem; margin: 0; }
.login-card .intro { color: var(--muted); margin: 9px 0 24px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px; }
.pw-toggle {
  position: absolute; right: 6px; top: 6px;
  min-height: 40px; padding: 0 11px;
  border: 0; border-radius: 9px; background: #eef1ec;
  color: var(--forest); font-weight: 700; font-size: .82rem;
}

/* Modal */
.modal-root {
  position: fixed; z-index: 80; inset: 0;
  display: grid; place-items: center; padding: 20px;
}
.modal-scrim {
  position: fixed; inset: 0; background: rgba(10,22,15,.5);
  animation: fadein .2s ease;
}
@keyframes fadein { from { opacity: 0; } }
.modal-card {
  position: relative; z-index: 1;
  width: min(600px, 100%); max-height: min(92dvh, 800px);
  overflow-y: auto; background: var(--paper);
  border-radius: 24px; padding: clamp(22px,5vw,36px);
  box-shadow: 0 32px 80px rgba(0,0,0,.26);
  animation: slideup .25s cubic-bezier(.34,1.2,.64,1);
}
@keyframes slideup { from { transform: translateY(20px); opacity: 0; } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: #f0f2ee; color: var(--muted); font-size: 1.4rem;
  display: grid; place-items: center;
}

/* Kundekort i modal */
.customer-header {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 20px; padding-right: 40px;
}
.customer-initials {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
  background: var(--forest); color: white;
  display: grid; place-items: center;
  font-family: Georgia, serif; font-size: 1.3rem; font-weight: 700;
}
.customer-name { font-family: Georgia, serif; font-size: 1.7rem; margin: 0; }
.customer-meta { color: var(--muted); font-size: .85rem; margin: 3px 0 0; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.info-cell { padding: 12px 14px; border-radius: 12px; background: #f1f3ef; }
.info-cell .ic-label { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.info-cell .ic-val   { font-weight: 700; font-size: .95rem; }
.info-cell a { color: var(--forest); text-decoration: none; }
.info-cell a:hover { text-decoration: underline; }

.status-row {
  display: flex; gap: 9px; margin-bottom: 20px; flex-wrap: wrap;
}
.status-btn {
  flex: 1; min-height: 48px; border: 2px solid var(--line);
  border-radius: 13px; background: white; color: var(--muted);
  font-weight: 800; font-size: .9rem; transition: all .15s;
}
.status-btn.approve:hover,
.status-btn.approve.active { background: #eaf3e8; border-color: var(--leaf); color: var(--forest); }
.status-btn.reject:hover,
.status-btn.reject.active  { background: #fff0ee; border-color: #d08880; color: var(--red); }
.status-btn.pending-btn:hover,
.status-btn.pending-btn.active { background: #fff8ee; border-color: #e8b070; color: #9a5a18; }

.note-label { display: block; font-size: .82rem; font-weight: 750; margin: 0 0 7px; }
.note-textarea {
  width: 100%; min-height: 90px; border: 1.5px solid #cbd2cb; border-radius: 12px;
  padding: 11px 14px; resize: vertical; background: white;
  transition: border-color .15s;
}
.note-textarea:focus { border-color: var(--leaf); }

.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions > * { flex: 1; }

/* Knapper */
.primary-btn {
  min-height: 50px; border: 0; border-radius: 13px;
  background: var(--forest); color: white; font-weight: 800;
  box-shadow: 0 5px 15px rgba(23,63,42,.18); transition: background .15s;
}
.primary-btn:hover { background: var(--forest-2); }
.primary-btn:disabled { background: #aeb7b0; box-shadow: none; cursor: not-allowed; }
.secondary-btn {
  min-height: 50px; border: 1.5px solid var(--line); border-radius: 13px;
  background: white; color: var(--muted); font-weight: 700;
}
.secondary-btn:hover { background: #f0f2ee; }
.icon-btn {
  min-height: 42px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 11px;
  background: white; color: var(--forest); font-weight: 700; font-size: .85rem;
}
.icon-btn:hover { background: var(--lime); border-color: var(--leaf); }
.danger-link {
  background: none; border: none; color: var(--red);
  font-size: .85rem; font-weight: 700; text-decoration: underline; cursor: pointer;
}

/* Toast */
.toast {
  position: fixed; z-index: 120; left: 50%; bottom: 24px;
  min-width: min(90vw, 280px); transform: translate(-50%, 24px);
  opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 13px; background: #152019; color: white;
  font-weight: 700; text-align: center;
  box-shadow: 0 10px 32px rgba(0,0,0,.24);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Innstillinger */
.settings-form { display: grid; gap: 18px; }
.settings-section { padding-top: 18px; border-top: 1px solid var(--line); }
.settings-section:first-child { border-top: 0; padding-top: 0; }
.settings-section h3 { font-family: Georgia, serif; margin: 0 0 5px; }
.settings-section p  { color: var(--muted); font-size: .87rem; margin: 0 0 14px; line-height: 1.5; }
.schedule-textarea {
  width: 100%; min-height: 200px; border: 1.5px solid #cbd2cb; border-radius: 12px;
  padding: 12px 14px; font-family: 'Courier New', monospace; font-size: .82rem;
  resize: vertical; background: #f8faf6;
}

/* ── Responsivt — Booking ────────────────────────────────────────────────── */
@media (max-width: 500px) {
  .hero-section { min-height: clamp(300px, 55vh, 440px); }
  .hero-overlay { padding: 20px 18px 24px; }
  .hero-pills   { gap: 7px; }
  .hero-pill    { font-size: .76rem; padding: 5px 11px; }
  .booking-wrap { padding: 0 0 40px; }
  .info-notice,
  .card-body    { margin-left: 12px; margin-right: 12px; }
  .date-label   { padding: 14px 8px 12px; }
  .date-label .day-num { font-size: 1.65rem; }
  .slot-label   { padding: 9px 16px; }
  .free-section { padding: 14px 16px; }
}
@media (max-width: 360px) {
  .dates-grid   { grid-template-columns: 1fr; }
}

/* ── Responsivt — Admin ──────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .list-header { display: none; }
  .booking-row { grid-template-columns: 1fr auto 34px; grid-template-rows: auto auto; gap: 8px; padding: 13px 14px; }
  .booking-row .row-contact,
  .booking-row .row-time { display: none; }
  .booking-row .row-people { grid-column: 2; }
  .booking-row .delete-btn { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .admin-main { padding: 18px 14px 40px; }
  .app-header  { padding: 0 14px; }
  .info-grid   { grid-template-columns: 1fr; }
  .status-row  { flex-direction: column; }
  .modal-root  { padding: 0; align-items: flex-end; }
  .modal-card  { width: 100%; max-height: 94dvh; border-radius: 22px 22px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 500px) {
  .stats-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
