:root {
  --bg: #f7f2e8; --card: #fffdf8; --ink: #2a2823; --muted: #6b675d; --line: #e3dccb;
  --green: #3f5a3a; --green-d: #2d422a; --accent: #b4623a; --warn: #a3372b;
  --serif: Georgia, 'Times New Roman', serif; --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1d1c19; --card: #262521; --ink: #f0ebe0; --muted: #a29d90; --line: #3a3832; --green: #7fa377; --green-d: #a5c79d; --accent: #d98a62; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--green-d); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); } h2 { font-size: clamp(1.5rem, 3vw, 2rem); } h3 { font-size: 1.2rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header.site { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font: 600 1.4rem var(--serif); color: var(--accent); text-decoration: none; }
.logo img { height: 36px; width: auto; }
.flogo { height: 76px; width: auto; margin-bottom: 14px; opacity: .92; }
.hero-logo { width: clamp(120px, 16vw, 190px); height: auto; margin: 0 auto 18px; filter: drop-shadow(0 2px 10px rgba(0,0,0,.45)); }
@media (prefers-color-scheme: dark) { .logo img { filter: invert(1) brightness(1.15); } }
nav.main { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
nav.main a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
nav.main a:hover, nav.main a[aria-current] { background: var(--bg); color: var(--green-d); }
nav.main a.cart { background: var(--green); color: #fff; }
nav.main a.cart:hover { background: var(--green-d); color: #fff; }
.count { display: inline-block; min-width: 1.4em; text-align: center; background: #fff; color: var(--green-d); border-radius: 99px; font-size: .8rem; margin-left: 4px; padding: 0 5px; }

.hero { position: relative; color: #fff; text-align: center; padding: clamp(70px, 14vw, 150px) 20px;
  background-image: linear-gradient(rgba(20,25,15,.28), rgba(20,25,15,.42)), var(--hero, linear-gradient(135deg, #5c7a52, #8a6f4a));
  background-size: cover; background-repeat: no-repeat;
  background-position: center, var(--pos, center 88%), var(--pos, center 88%); }
.hero h1, .hero p { text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.hero p { font: 1.2rem var(--serif); margin: 0 auto; max-width: 34ch; opacity: .95; }
.hero .btn { margin-top: 24px; }
.hero.tall { min-height: clamp(460px, 62vw, 760px); display: flex; flex-direction: column; align-items: center; justify-content: center; --pos: center 58%; }
.hero.small { padding: clamp(50px, 9vw, 100px) 20px; }

.btn { display: inline-block; background: var(--green); color: #fff; border: 0; padding: 11px 22px; border-radius: 10px; font: 600 1rem var(--sans); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--green-d); }
.btn.alt { background: transparent; color: var(--green-d); border: 1.5px solid var(--green); }
.btn.alt:hover { background: var(--green); color: #fff; }
.btn.danger { background: var(--warn); } .btn.sm { padding: 6px 12px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

section { padding: 56px 0; }
.lead { font: 1.25rem/1.5 var(--serif); color: var(--muted); max-width: 46ch; }
.center { text-align: center; } .center .lead { margin-inline: auto; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card .pic { aspect-ratio: 4/3; background: linear-gradient(135deg, #cdd8c2, #e7dcc4); display: grid; place-items: center; font: 3rem var(--serif); color: rgba(63,90,58,.55); overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .body p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; }
.price { font: 600 1.15rem var(--serif); } .meta { color: var(--muted); font-size: .9rem; }
a.tile { text-decoration: none; color: inherit; } a.tile:hover { border-color: var(--green); }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs button { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); padding: 8px 16px; border-radius: 99px; cursor: pointer; font: inherit; font-size: .95rem; }
.tabs button[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 14px; }
.group-title { margin: 30px 0 12px; }

.two { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; } @media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
form.f label { display: block; font-weight: 600; margin: 14px 0 4px; font-size: .95rem; }
form.f input, form.f select, form.f textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); font: inherit; }
form.f textarea { min-height: 90px; } form.f .row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.hp { position: absolute; left: -9999px; }
.msg { padding: 12px 14px; border-radius: 9px; margin: 14px 0; } .msg.err { background: #f8dcd7; color: #6d1f16; } .msg.ok { background: #dfead9; color: #23401f; }
.cartline { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cartline .grow { flex: 1; } .total { font: 600 1.4rem var(--serif); text-align: right; margin-top: 16px; }

footer.site { background: var(--green-d); color: #e9efe4; padding: 40px 0; margin-top: 30px; font-size: .95rem; }
footer.site a { color: #fff; } footer.site h3 { color: #fff; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 10px; z-index: 50; box-shadow: 0 6px 20px rgba(0,0,0,.25); }

/* admin */
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--card); }
table.t th, table.t td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: .8rem; background: var(--line); }
.pill.available, .pill.new { background: #dfead9; color: #23401f; } .pill.reserved, .pill.invoiced { background: #f6e6c2; color: #6b4a08; } .pill.sold, .pill.paid { background: #d9e3f2; color: #1e3a66; }
.pill.cancelled { background: #f8dcd7; color: #6d1f16; }
.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }

/* forsidehero: tekst til venstre, sauen til høyre */
.hero.left { text-align: left; align-items: stretch; --pos: center 38%; }
.hero.left .hero-in { width: 100%; }
.hero.left .hero-in > * { max-width: min(38%, 480px); }
.hero.left .hero-logo { margin: 0 0 18px; width: clamp(100px, 12vw, 150px); }
.hero.left p { margin: 0; }
@media (max-width: 760px) { .hero.left { --pos: 62% 38%; } .hero.left .hero-in > * { max-width: 100%; } .hero.left::before { content:''; position:absolute; inset:0; background: rgba(20,25,15,.25); } .hero.left .hero-in { position: relative; } }
