:root{
  --sage:#6b7d5e;        /* rolig stald-grøn */
  --sage-deep:#4a5a3f;
  --sand:#efe9dd;        /* varm sand */
  --sand-light:#f8f5ef;
  --bark:#3a332b;        /* mørk trætekst */
  --clay:#c07a4b;        /* accent, jordfarve (varmere/mere brun end default) */
  --line:#ddd4c4;
  --white:#fffdf9;
  --ok:#3f7a4a;
  --err:#b3402f;
  --shadow:0 6px 24px rgba(58,51,43,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;font-family:"Inter",system-ui,-apple-system,sans-serif;
  color:var(--bark);background:var(--sand-light);line-height:1.6;
}
h1,h2,h3,h4{font-family:"Fraunces","Georgia",serif;font-weight:600;line-height:1.15;color:var(--bark)}
a{color:var(--sage-deep)}
img{max-width:100%;display:block}
.container{max-width:1120px;margin:0 auto;padding:0 24px}

/* Header */
header.site{position:sticky;top:0;z-index:50;background:rgba(255,253,249,.92);
  backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:72px}
.brand{display:flex;align-items:center;gap:10px;font-family:"Fraunces",serif;font-size:1.15rem;font-weight:600;text-decoration:none;color:var(--bark)}
.brand .brand-logo{height:58px;width:auto;display:block}
.brand .brand-suffix{color:var(--sage-deep)}
/* Bevar den runde emoji-variant hvis den bruges andre steder */
.brand .logo{width:40px;height:40px;border-radius:50%;background:var(--sage);color:var(--white);
  display:grid;place-items:center;font-size:1.2rem}
.nav-links{display:flex;gap:28px;align-items:center}
.nav-links a{text-decoration:none;color:var(--bark);font-size:.95rem}
.nav-links a:hover{color:var(--sage-deep)}
.btn{border:none;cursor:pointer;font:inherit;font-weight:600;border-radius:999px;
  padding:11px 22px;transition:transform .15s ease,background .2s ease}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--sage);color:var(--white)}
.btn-primary:hover{background:var(--sage-deep)}
.btn-clay{background:var(--clay);color:var(--white)}
.btn-clay:hover{filter:brightness(.94)}
.btn-ghost{background:transparent;border:1.5px solid var(--sage);color:var(--sage-deep)}
.btn-sm{padding:8px 16px;font-size:.9rem}

/* Hero */
.hero{position:relative;padding:0}
.hero-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:0;align-items:stretch}
.hero-text{padding:88px 56px 88px 0}
.hero-text .eyebrow{color:var(--clay);font-weight:600;letter-spacing:.02em;margin-bottom:14px}
.hero-text h1{font-size:clamp(2.4rem,5vw,3.6rem);margin:0 0 20px}
.hero-text p{font-size:1.12rem;max-width:52ch;color:#5b544a}
.hero-actions{display:flex;gap:14px;margin-top:30px;flex-wrap:wrap}
.hero-img{background-size:cover;background-position:center;min-height:520px;border-radius:0 0 0 120px}

/* Sections */
section{padding:76px 0}
.section-head{max-width:60ch;margin-bottom:40px}
.section-head h2{font-size:clamp(1.8rem,3.4vw,2.5rem);margin:0 0 12px}
.section-head p{color:#5b544a;font-size:1.05rem}
.tag{display:inline-block;color:var(--sage-deep);font-weight:600;margin-bottom:10px}

.values{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.value{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:26px}
.value-icon{width:34px;height:34px;color:var(--sage);stroke:var(--sage);margin-bottom:14px;display:block}
.value h4{margin:0 0 8px;font-size:1.1rem}
.value p{margin:0;color:#5b544a;font-size:.95rem}

.band{background:var(--sage);color:var(--white)}
.band h2,.band h3,.band h4{color:var(--white)}
.band .section-head p{color:rgba(255,255,255,.85)}

/* Offerings */
.offer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.offer{background:var(--white);border:1px solid var(--line);border-radius:18px;overflow:hidden;
  display:flex;flex-direction:column;box-shadow:var(--shadow)}
.offer .thumb{aspect-ratio:3/2;background-size:cover;background-position:center}
.offer .body{padding:16px;display:flex;flex-direction:column;gap:6px;flex:1}
.offer .kicker{color:var(--clay);font-weight:600;font-size:.8rem}
.offer h3{margin:0;font-size:1.1rem;line-height:1.2}
.offer p{margin:0;color:#5b544a;font-size:.88rem;flex:1}
.offer .price{font-family:"Fraunces",serif;font-size:1.25rem;color:var(--sage-deep)}
.offer .price small{font-family:"Inter",sans-serif;font-size:.8rem;color:#8a8377;font-weight:400}
.offer .btn{margin-top:2px}

/* Vores heste (popup) */
.modal-wide{max-width:820px;width:100%}
.horse-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.horse-card{background:var(--white);border:1px solid var(--line);border-radius:18px;overflow:hidden}
.horse-card .photo{aspect-ratio:4/3;background:var(--sand);background-size:cover;background-position:center;
  display:grid;place-items:center;color:#b7ae9d}
.horse-card .photo svg{width:48px;height:48px;stroke:#b7ae9d}
.horse-card .hc-body{padding:18px}
.horse-card h3{margin:0 0 4px;font-size:1.2rem}
.horse-card .hc-meta{color:var(--clay);font-weight:600;font-size:.85rem;margin-bottom:8px}
.horse-card p{margin:0;color:#5b544a;font-size:.92rem}
@media (max-width:720px){ .horse-grid{grid-template-columns:1fr} }

/* Vælg tidspunkt-popup */
.time-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:8px}
.time-slot{display:flex;flex-direction:column;align-items:flex-start;gap:2px;
  border:1.5px solid var(--line);background:var(--white);border-radius:12px;
  padding:12px 14px;cursor:pointer;font:inherit;text-align:left;transition:border-color .15s,background .15s}
.time-slot:hover:not(:disabled){border-color:var(--sage);background:var(--sand-light)}
.time-slot .ts-time{font-family:"Fraunces",serif;font-size:1.15rem;font-weight:600;color:var(--sage-deep)}
.time-slot .ts-info{font-size:.8rem;color:#8a8377}
.time-slot.full{opacity:.5;cursor:not-allowed}
@media (max-width:720px){ .time-list{grid-template-columns:1fr} }

/* Booking list */
.book-controls{margin-bottom:20px}
.filters{display:flex;gap:10px;flex-wrap:wrap}
.chip{border:1.5px solid var(--line);background:var(--white);border-radius:999px;
  padding:9px 18px;cursor:pointer;font:inherit;font-size:.92rem;color:var(--bark)}
.chip.active{background:var(--sage);color:var(--white);border-color:var(--sage)}

/* Segmenter (foldbare felter) – kompakte */
.segments{display:flex;flex-direction:column;gap:10px}
.segment{background:var(--white);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.segment-head{width:100%;display:flex;align-items:center;justify-content:space-between;
  background:transparent;border:none;cursor:pointer;font:inherit;padding:14px 18px;color:var(--bark)}
.segment-head:hover{background:var(--sand-light)}
.seg-title{font-family:"Fraunces",serif;font-size:1.05rem;font-weight:600}
.seg-right{display:flex;align-items:center;gap:12px}
.seg-count{font-size:.82rem;color:#8a8377}
.seg-caret{width:18px;height:18px;color:var(--sage);transition:transform .2s ease}
.segment.open .seg-caret{transform:rotate(180deg)}
.segment-body{max-height:0;overflow:hidden;transition:max-height .3s ease}
.segment.open .segment-body{max-height:6000px}
.segment-body .slots{padding:2px 18px 18px}
.slots{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;align-items:stretch}

/* Denne uge: opdeling pr. dag med kompakte kort */
.day-group{margin-bottom:18px}
.day-group:last-child{margin-bottom:0}
.day-label{font-family:"Fraunces",serif;font-weight:600;color:var(--sage-deep);
  font-size:1rem;margin:0 2px 8px;padding-bottom:6px;border-bottom:1px solid var(--line)}
.slots-compact{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;align-items:stretch}
.slot.slot-sm{flex-direction:row;align-items:center;justify-content:space-between;
  padding:10px 12px;gap:12px;height:auto;border-radius:12px}
.slot.slot-sm .btn{margin-top:0;flex:0 0 auto;white-space:nowrap}
.slot.slot-sm .sm-main{display:flex;flex-direction:column;gap:1px;min-width:0}
.slot.slot-sm .type{font-size:.7rem;margin-bottom:1px}
.slot.slot-sm h4{font-size:.95rem;line-height:1.15}
.slot.slot-sm .when{font-size:.8rem;color:#5b544a}
@media (max-width:720px){ .slots-compact{grid-template-columns:1fr} }
.slot{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:8px;height:100%}
.slot .desc{color:#5b544a;font-size:.9rem;margin:4px 0;flex:1 1 auto}
.slot .type{font-size:.8rem;font-weight:600;color:var(--clay)}
.slot h4{margin:0;font-size:1.1rem}
.slot .when{color:#5b544a;font-size:.92rem}
.slot .meta{display:flex;justify-content:space-between;align-items:center;margin-top:6px}
.slot .cost{font-family:"Fraunces",serif;font-weight:600;color:var(--sage-deep)}
.slot .spots{font-size:.82rem;color:#8a8377}
.slot .full{color:var(--err);font-weight:600;font-size:.85rem}
.slot .btn{margin-top:4px}

/* Priser strip */
.prices{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.price-card{background:var(--sand);border-radius:18px;padding:26px;text-align:center}
.price-card h4{margin:0 0 6px;color:var(--sage-deep)}
.price-card .amt{font-family:"Fraunces",serif;font-size:2rem;color:var(--bark);margin:8px 0}
.price-card small{color:#6b6456}

/* About */
.about{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.about ul{list-style:none;padding:0;margin:18px 0 0}
.feature-list li{display:flex;align-items:center;gap:12px;padding:9px 0;color:var(--bark)}
.feature-list .ficon{width:22px;height:22px;flex:0 0 22px;color:var(--sage);stroke:var(--sage)}
/* Checkout-ikoner */
.checkout-icon{width:56px;height:56px;color:var(--sage);stroke:var(--sage);margin:0 auto 6px}
.pay-method{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;padding:12px 18px;color:var(--bark)}
.pay-method svg{width:22px;height:22px;color:var(--sage-deep);stroke:var(--sage-deep)}

/* Footer */
footer.site{background:var(--bark);color:#e9e3d8;padding:56px 0 28px}
footer.site a{color:#cfc6b6}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}
.foot-grid h4{color:var(--white)}
footer .copy{border-top:1px solid rgba(255,255,255,.12);margin-top:40px;padding-top:20px;font-size:.85rem;color:#a9a294}

/* Modal */
.modal-backdrop{position:fixed;inset:0;background:rgba(58,51,43,.55);display:none;
  align-items:center;justify-content:center;z-index:100;padding:20px}
.modal-backdrop.open{display:flex}
.modal{background:var(--white);border-radius:22px;max-width:460px;width:100%;padding:34px;box-shadow:var(--shadow);max-height:92vh;overflow:auto}
.modal h3{margin:0 0 6px}
.modal .sub{color:#5b544a;margin:0 0 22px;font-size:.95rem}
.field{margin-bottom:16px}
.field label{display:block;font-size:.88rem;font-weight:600;margin-bottom:6px}
.field input,.field select{width:100%;padding:12px 14px;border:1.5px solid var(--line);
  border-radius:12px;font:inherit;background:var(--sand-light)}
.field input:focus,.field select:focus{outline:2px solid var(--sage);border-color:var(--sage)}
.modal-actions{display:flex;gap:12px;margin-top:8px}
.msg{padding:12px 14px;border-radius:12px;font-size:.9rem;margin-bottom:16px}
.msg.err{background:#fbe9e6;color:var(--err)}
.msg.ok{background:#e7f2e9;color:var(--ok)}
.switch{margin-top:18px;font-size:.9rem;text-align:center;color:#5b544a}
.switch a{cursor:pointer;font-weight:600}
.close-x{float:right;cursor:pointer;font-size:1.4rem;color:#8a8377;background:none;border:none}
.hint{font-size:.8rem;color:#8a8377;margin-top:4px}

.badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:.78rem;font-weight:600}
.badge.paid{background:#e7f2e9;color:var(--ok)}
.badge.active{background:#e7f2e9;color:var(--ok)}
.badge.pending{background:#fbf1e0;color:var(--clay)}
.badge.cancelled{background:#f0eee9;color:#8a8377}
.badge.expired{background:#f0eee9;color:#8a8377}
.badge.failed{background:#f7e9e6;color:var(--err)}

@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr}
  .hero-text{padding:56px 0 40px}
  .hero-img{min-height:320px;border-radius:0}
  .values,.prices{grid-template-columns:repeat(2,1fr)}
  .prices{gap:12px}
  .price-card{padding:18px 14px}
  .price-card .amt{font-size:1.6rem}
  .price-card h4{font-size:.95rem}
  .price-card small{font-size:.78rem}
  .offer-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .about{grid-template-columns:1fr}
  .offer .body{padding:12px}
  .offer h3{font-size:1rem}
  .slots{grid-template-columns:1fr}
  .segment-body .slots{padding:2px 14px 14px}
  .segment-head{padding:14px 14px}
  /* Kompakte lektionskort på mobil */
  .slot{padding:14px;gap:5px;border-radius:14px}
  .slot h4{font-size:1rem}
  .slot .when{font-size:.85rem}
  .slot .desc{font-size:.85rem;margin:2px 0}
  .slot .cost{font-size:1rem}
  .slot .type{font-size:.72rem}
  .slot .btn{padding:8px 14px;font-size:.85rem}
  .nav-links{display:none}
  .foot-grid{grid-template-columns:1fr}
}

/* Kontomenu i headeren */
.acct{position:relative}
.acct-btn{display:flex;align-items:center;gap:8px;background:var(--white);border:1.5px solid var(--line);
  border-radius:999px;padding:4px 10px 4px 4px;cursor:pointer;font:inherit;font-weight:600;color:var(--bark);
  transition:border-color .15s ease,background .15s ease}
.acct-btn:hover,.acct-btn[aria-expanded="true"]{border-color:var(--sage);background:var(--sand-light)}
.acct-btn:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
.acct-avatar{width:32px;height:32px;border-radius:50%;background:var(--sage);color:var(--white);
  display:grid;place-items:center;font-size:.9rem;font-weight:600}
.acct-name{font-size:.92rem;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-chev{color:#8a8377;transition:transform .15s ease}
.acct-btn[aria-expanded="true"] .acct-chev{transform:rotate(180deg)}
.acct-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:240px;background:var(--white);
  border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px rgba(60,50,35,.14);
  padding:6px;z-index:60}
.acct-menu[hidden]{display:none}
.acct-head{padding:10px 12px 10px;border-bottom:1px solid var(--line);margin-bottom:6px;display:flex;flex-direction:column;gap:2px}
.acct-head strong{font-size:.92rem;color:var(--bark);overflow-wrap:anywhere}
.acct-head span{font-size:.8rem;color:#8a8377;overflow-wrap:anywhere}
.acct-menu [role=menuitem]{display:block;width:100%;text-align:left;background:none;border:none;font:inherit;
  font-size:.92rem;color:var(--bark);padding:10px 12px;border-radius:9px;cursor:pointer;text-decoration:none}
.acct-menu [role=menuitem]:hover,.acct-menu [role=menuitem]:focus-visible{background:var(--sand-light);outline:none;color:var(--sage-deep)}
.acct-sep{height:1px;background:var(--line);margin:6px 4px}
.nav-links a{white-space:nowrap}
@media (max-width:1100px){ .nav-links{gap:20px} }
@media (max-width:720px){ .acct-name{display:none} .acct-btn{padding:4px 8px 4px 4px} }

/* ---- Kompakte aktivitetskort på forsiden ---- */
.slots{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.segment-body .slots{padding:2px 14px 14px}
.slot{padding:14px 16px;gap:3px;border-radius:14px}
.slot .type{font-size:.72rem}
.slot h4{font-size:1rem;line-height:1.25}
.slot .when{font-size:.84rem}
.slot .when.next{color:#8a8377;font-size:.8rem}
.slot .desc{font-size:.82rem;margin:4px 0 0;flex:0 1 auto;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Pris og knap på samme linje nederst i kortet */
.slot .foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:10px}
.slot .foot .meta{display:flex;flex-direction:column;align-items:flex-start;gap:0;margin:0}
.slot .foot .cost{font-size:.98rem;line-height:1.2}
.slot .foot .spots,.slot .foot .full{font-size:.76rem}
.slot .foot .btn{margin:0;flex:0 0 auto;padding:8px 16px;font-size:.85rem;white-space:nowrap}
@media (max-width:720px){
  .slots{grid-template-columns:1fr;gap:10px}
  .slot{padding:12px 14px}
}

/* Priskortene fylder rækken ud, uanset hvor mange der er */
@media (min-width:901px){ .prices{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))} }
