/*
 * ACE: det, YOOtheme's stilvariabler ikke kan udtrykke.
 * Indlæses automatisk af YOOtheme efter stilen. Farver og mål kommer fra
 * tokens herunder med samme navne som i designsystemet.
 */

:root {
  --ace-night: #0b0b10;
  --ace-night-raised: #17171f;
  --ace-cream: #f5f2ed;
  --ace-mist: #c7c3cd;
  --ace-stone: #5a5560;
  --ace-berry: #a3195b;
  --ace-berry-hover: #b8226a;
  --ace-orange: #f39200;
  --ace-teal: #00a19a;
  --ace-line: #32323a;

  --ace-section-y: 128px;
  --ace-gutter: 24px;
  --ace-text-max: 620px;
}

@media (max-width: 959px) {
  :root { --ace-section-y: 72px; }
}

body {
  background: var(--ace-night);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sektionsrytme: stablede mørke sektioner skifter selv mellem night og
   night-raised. Den lyse sektion (Secondary) og sektioner med billede
   beholder deres egen baggrund. */
#tm-main > .uk-section-default:nth-of-type(even):not([class*="uk-background-image"]):not(.uk-background-norepeat),
.tm-main > .uk-section-default:nth-of-type(even):not([class*="uk-background-image"]):not(.uk-background-norepeat) {
  background-color: var(--ace-night-raised);
}

/* Brødtekst højst 620px bred, også når teksten er centreret */
.uk-section p,
.uk-section .uk-list,
.el-content > ul,
.el-content > ol {
  max-width: var(--ace-text-max);
}
.uk-text-center p,
.uk-text-center .uk-list,
.uk-text-center .el-content > ul {
  margin-left: auto;
  margin-right: auto;
}

/* Tekstlinks: cream tekst, 1px berry streg under */
.uk-section a:not([class]),
.el-content a:not([class]),
.tm-footer a:not([class]) {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--ace-berry);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.uk-section a:not([class]):hover,
.el-content a:not([class]):hover {
  text-decoration-color: var(--ace-berry-hover);
}

/* Knapper: 17 × 28 px luft, linjehøjde 1.2 */
.uk-button:not(.uk-button-text):not(.uk-button-link) {
  line-height: 1.2;
  padding: 17px 28px;
}
.uk-button-text {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ace-berry);
}
.uk-button-text::before { display: none; }
.uk-button-text:hover { border-bottom-color: var(--ace-berry-hover); }

/* Fokus: teal ramme kun ved tastatur */
:focus-visible {
  outline: 2px solid var(--ace-teal) !important;
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* Ingen skygger nogen steder */
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }

/* Vandrette skillelinjer */
hr, .uk-hr, .uk-divider-small::after { border-color: var(--ace-line); }
.uk-secondary hr, .uk-section-secondary hr { border-color: rgba(11, 11, 16, 0.16); }

/* Logo: altid proportionalt */
.uk-logo img, .uk-logo svg, .tm-footer .ace-logo img {
  height: auto;
  max-width: 100%;
}

/* Bodoni Moda er en variabel skrift med "optisk størrelse". Uden denne linje vælger
   browseren display-udgaven med hårfine streger ved store overskrifter. Tekst-
   udgaven (som prototypen bruger) er kraftigere og lettere at læse på mørk baggrund. */
html { font-optical-sizing: none; }
h1, h2, h3, h4, h5, h6, .uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6,
[class*="uk-heading-"], blockquote, .ace-pris, .ace-booking-pakke-navn, .ace-nyhedsbrev-tak {
  font-variation-settings: 'opsz' 11;
}

/* Flydende overskrifter (designsystemets display, heading og subheading).
   Samme stil-navne som i builderen, se docs/redigering.md. */
.uk-heading-2xlarge, .uk-heading-xlarge, .uk-heading-3xlarge {
  font-size: clamp(46px, 6.6vw, 104px);
  line-height: 1.02;
  letter-spacing: -1px;
}
h1, .uk-h1, .uk-heading-large {
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.5px;
}
h2, .uk-h2, h3, .uk-h3, .uk-heading-medium, .uk-heading-small {
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

/* Citat: UIkit sætter en tankestreg foran afsenderen. Den fjernes. */
blockquote footer::before { content: none; }
blockquote footer {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ace-mist);
}

/* Mobil: kortere side.
   Kortgitre med klassen ace-mobil-skub bliver en vandret række, man swiper i,
   og næste kort stikker frem i kanten. Store billeder med klassen ace-mobil-lav
   får et lavere format. Klasserne sættes under elementets Advanced → Class. */
@media (max-width: 639px) {
  .ace-mobil-skub > .uk-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    margin-right: -24px;
    padding-right: 24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ace-mobil-skub > .uk-grid::-webkit-scrollbar { display: none; }
  .ace-mobil-skub > .uk-grid > * {
    flex: 0 0 78%;
    width: 78%;
    scroll-snap-align: start;
  }
  .ace-mobil-skub .el-image {
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    width: 100%;
  }
  .ace-mobil-lav img,
  img.ace-mobil-lav {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
  }
  .ace-mobil-skub .el-title { font-size: 26px; }
}

/* Booking-formularen ([ace_booking], se wp-content/mu-plugins/ace-core/booking.php) */
.ace-booking fieldset { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.ace-booking legend { padding: 0; margin-bottom: 24px; }
.ace-booking .uk-form-label { display: block; margin-bottom: 6px; color: var(--ace-mist); font-size: 14px; }
.ace-booking-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ace-booking-trin {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  list-style: none; padding: 0; margin: 0 0 40px;
  font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ace-mist);
}
.ace-booking:not(.ace-booking-js) .ace-booking-trin { display: none; }
.ace-booking-trin li { display: flex; align-items: center; gap: 10px; }
.ace-booking-trin span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 1px solid var(--ace-line); border-radius: 50%;
  letter-spacing: 0;
}
.ace-booking-trin .ace-aktiv { color: var(--ace-cream); }
.ace-booking-trin .ace-aktiv span { border-color: var(--ace-berry); background: var(--ace-berry); }
.ace-booking-trin .ace-faerdig span { border-color: var(--ace-mist); }
.ace-booking-pakker { display: grid; gap: 12px; }
.ace-booking-pakke {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center;
  padding: 18px 20px; border: 1px solid var(--ace-line); cursor: pointer;
}
.ace-booking-pakke:has(input:checked) { border-color: var(--ace-berry); }
.ace-booking-pakke input { grid-row: span 2; accent-color: var(--ace-berry); width: 18px; height: 18px; margin: 0; }
.ace-booking-pakke-navn { font-family: 'Bodoni Moda', serif; font-size: 22px; color: var(--ace-cream); }
.ace-booking-pakke-tekst { color: var(--ace-mist); font-size: 15px; }
.ace-booking-samtykke { color: var(--ace-mist); font-size: 14px; margin-top: 16px; }
.ace-booking-fejl { color: var(--ace-cream); border-left: 3px solid var(--ace-orange); padding: 8px 14px; }
.ace-booking-knapper { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.ace-booking-knapper [hidden] { display: none; }
.ace-booking-knapper [data-prev] { margin-right: auto; }
.ace-booking input[type="date"], .ace-booking input[type="time"] { color-scheme: dark; }

/* Prisside: prisen i pakkekortene */
.ace-pris { font-family: 'Bodoni Moda', serif; font-size: 44px; line-height: 1.1; color: var(--ace-cream); margin-bottom: 8px; }
.ace-pris span { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ace-mist); }
.ace-pris-moms { font-size: 15px; color: var(--ace-mist); margin-top: 0; }
.ace-booking .uk-input, .ace-booking .uk-select, .ace-booking .uk-textarea {
  background-color: var(--ace-night); border: 1px solid var(--ace-line); color: var(--ace-cream);
}
.ace-booking .uk-input:focus, .ace-booking .uk-select:focus, .ace-booking .uk-textarea:focus { border-color: var(--ace-mist); }

/* Nyhedsbrev ([ace_nyhedsbrev]) */
.ace-nyhedsbrev-felter { display: grid; gap: 12px; align-items: end; }
@media (min-width: 640px) { .ace-nyhedsbrev-felter { grid-template-columns: 1fr 1.4fr auto; } }
.ace-nyhedsbrev .uk-form-label { display: block; margin-bottom: 6px; color: var(--ace-mist); font-size: 14px; }
.ace-nyhedsbrev .uk-input { background-color: var(--ace-night); border: 1px solid var(--ace-line); color: var(--ace-cream); }
.ace-nyhedsbrev-samtykke { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; color: var(--ace-mist); font-size: 14px; }
.ace-nyhedsbrev-samtykke .uk-checkbox { flex: none; margin-top: 2px; }
.ace-nyhedsbrev-tak { font-family: 'Bodoni Moda', serif; font-size: 26px; color: var(--ace-cream); }

/* Afkrydsningsfelter (cookieindstillinger, nyhedsbrev): tydelig kant på mørk baggrund */
.uk-checkbox { border: 1px solid var(--ace-mist); background-color: transparent; }
.uk-checkbox:checked, .uk-checkbox:checked:focus { background-color: var(--ace-berry); border-color: var(--ace-berry); }
.uk-checkbox:disabled:checked { background-color: var(--ace-stone); border-color: var(--ace-stone); opacity: 1; }

/* Åbningstider ([ace_aabningstider]) */
.ace-aabningstider { margin: 0; }
.ace-aabningstider li { display: flex; justify-content: space-between; gap: 24px; max-width: 320px;
  padding: 8px 0; border-bottom: 1px solid var(--ace-line); margin-top: 0 !important; }
.ace-aabningstider .ace-tid { font-variant-numeric: tabular-nums; }
.uk-section-secondary .ace-aabningstider li { border-color: rgba(11, 11, 16, 0.15); }
.ace-aabningstider-note { font-size: 14px; color: var(--ace-mist); margin-top: 12px; }
.uk-section-secondary .ace-aabningstider-note { color: var(--ace-stone); }

/* Holdet (funktion, ace-core/holdet.php): billederne skifter, når musen er over */
.ace-holdet-kort { outline-offset: 4px; }
.ace-holdet-billeder { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ace-night-raised); }
.ace-holdet-billeder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.ace-holdet-billeder img.ace-aktiv { opacity: 1; }
.ace-holdet-kort[tabindex] { cursor: pointer; }
.ace-holdet-navn { font-size: 24px; margin: 16px 0 0; }
.ace-holdet-rolle { color: var(--ace-mist); font-size: 15px; margin: 2px 0 0; text-transform: uppercase; letter-spacing: .08em; }
.ace-holdet-tekst { color: var(--ace-mist); font-size: 15px; margin: 6px 0 0; }
@media (prefers-reduced-motion: reduce) { .ace-holdet-billeder img { transition: none; } }

/* Cocktails (funktion, ace-core/cocktails.php) */
.ace-cocktail-filter { margin-bottom: 32px; }
.ace-cocktail-filter > * > a { text-decoration: none; color: var(--ace-mist); }
.ace-cocktail-filter > * > a:hover { color: var(--ace-cream); }
.ace-cocktail-filter > .uk-active > a { background: var(--ace-berry); color: var(--ace-cream); }
.ace-cocktail-kort { display: block; color: inherit; text-decoration: none; }
.ace-cocktail-kort:hover .ace-cocktail-navn { color: var(--ace-cream); text-decoration: underline; text-underline-offset: 4px; }
.ace-cocktail-billede { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--ace-night-raised); }
.ace-cocktail-kategori { display: block; margin-top: 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ace-mist); }
.ace-cocktail-navn { font-size: 24px; margin: 4px 0 0; }
.ace-cocktail-kort-tekst { color: var(--ace-mist); font-size: 15px; margin: 6px 0 0; }
.ace-cocktail-stort-billede { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ace-cocktail-trin { padding-left: 1.4em; }
.ace-cocktail-trin li + li { margin-top: 8px; }

/* Besked til den, der er logget ind, når en funktion er slået fra */
.ace-skjult-besked { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 640px; margin: 0 auto;
  padding: 12px 16px; background: var(--ace-orange); color: var(--ace-night); font-size: 15px; }
.ace-skjult-besked a { color: var(--ace-night); text-decoration: underline; }

/* Sektioner til funktioner, der slås til i WordPress: skjult, så længe funktionen ikke viser noget */
.ace-funktion-sektion:not(:has(.ace-prisberegner, .ace-menukort)) { display: none; }
.ace-skjult-inline { display: inline-block; padding: 4px 10px; background: var(--ace-orange); color: var(--ace-night); font-size: 14px; }

/* Prisberegner (/priser) */
.ace-prisberegner fieldset { border: 0; padding: 0; margin: 24px 0 0; }
.ace-prisberegner fieldset label { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; }
.ace-prisberegner fieldset label span { margin-left: auto; color: var(--ace-mist); font-size: 15px; white-space: nowrap; }
.ace-prisberegner input[type=radio], .ace-prisberegner input[type=checkbox] { accent-color: var(--ace-berry); }
.ace-prisberegner label:has(input:disabled) { opacity: .5; }
.ace-pb-resultat { border: 1px solid var(--ace-line); padding: 32px; }
.ace-pb-label { margin: 0 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ace-mist); }
.ace-pb-fejl { color: var(--ace-cream); border-left: 3px solid var(--ace-orange); padding: 6px 12px; }

/* Spørgsmål og svar */
.ace-faq-emne { margin-top: 48px; }
.ace-faq-emne:first-child { margin-top: 0; }
.ace-faq > li { border-bottom: 1px solid var(--ace-line); padding-bottom: 16px; }
.ace-faq .uk-accordion-title { font-size: 19px; color: var(--ace-cream); }

/* Menukort (ACE Bar) */
.ace-menukort-info { margin-left: 12px; color: var(--ace-mist); font-size: 14px; }

/* Cases */
.ace-case-billede { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--ace-night-raised); }
.ace-case-fakta { color: var(--ace-mist); letter-spacing: .04em; }
.ace-case-cover { display: block; width: 100%; max-height: 640px; object-fit: cover; margin-top: 40px; }
.ace-case-tekst { max-width: var(--ace-text-max); margin-top: 40px; }
.ace-case-galleri { margin-top: 40px; }
.ace-case-galleri img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ace-case-citat { margin: 56px 0 0; max-width: 760px; font-size: 28px; line-height: 1.35; }
.ace-case-citat footer { margin-top: 12px; font-size: 15px; color: var(--ace-mist); font-style: normal; }
.ace-prisberegner .uk-radio, .ace-prisberegner .uk-checkbox { border: 1px solid var(--ace-mist); background-color: transparent; }
.ace-prisberegner .uk-radio:checked, .ace-prisberegner .uk-checkbox:checked { background-color: var(--ace-berry); border-color: var(--ace-berry); }
.ace-faq .uk-accordion-title { text-decoration: none; }
.ace-faq .uk-accordion-title:hover { color: var(--ace-cream); text-decoration: underline; text-underline-offset: 4px; }
