/* Hjørnets Bageri. Niveau 3: en morgen, man scroller igennem.
   Tokens øverst, derefter header, scenerne i rækkefølge, bestil, find, fod. */

:root {
  /* Farver hentet fra bagerens bord */
  --mel: #FFFFFF;          /* mel, hvid baggrund */
  --rug: #2A1A14;          /* rugbrødsskorpe, tekst og nat */
  --rug-blod: #6B5249;     /* lys rugkrumme, dæmpet tekst på hvid */
  --hindbaer: #C8174F;     /* glasuren på en hindbærsnitte */
  --glasur: #FFE1EA;       /* lyserød glasur, flader */
  --blomme: #F5C518;       /* æggeblomme og vaniljecreme, på mørk bund */
  --nat-tekst: #E9DED8;    /* brødtekst om natten */

  --serif: 'Young Serif', Georgia, serif;
  --sans: 'Sofia Sans', system-ui, sans-serif;

  --fs-brod: clamp(1.0625rem, .98rem + .3vw, 1.1875rem);
  --fs-lille: .9375rem;
  --fs-h3: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  --fs-h2: clamp(2.4rem, 1.4rem + 4vw, 5.4rem);

  --kant: clamp(1.25rem, 4vw, 3.5rem);
  --form: 48% 48% 1.1rem 1.1rem / 32% 32% 1.1rem 1.1rem; /* brødformen: rund top, flad bund */

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --reveal-dur: 1s;
  --reveal-y: 2rem;
}

html { background: var(--mel); }
body {
  font-family: var(--sans);
  font-size: var(--fs-brod);
  line-height: 1.55;
  color: var(--rug);
  background: var(--mel);
  font-optical-sizing: auto;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.015em; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
::selection { background: var(--blomme); color: var(--rug); }

.knap {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: .7rem 1.5rem;
  background: var(--hindbaer); color: #fff;
  font-weight: 700; font-size: 1.0625rem; text-decoration: none;
  border-radius: 999px;
  transition: background-color .3s var(--ease-out), scale .4s var(--ease-out);
}
.knap:hover { background: #A8103F; }
.knap:active { scale: .97; }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem var(--kant);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.logo {
  font-family: var(--serif); font-size: 1.35rem; text-decoration: none; line-height: 1;
  padding: .7rem 1.1rem; margin-left: -1.1rem; border-radius: 999px;
  transition: background-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.menu { display: flex; gap: .25rem; margin-left: auto; }
.menu a {
  font-weight: 600; text-decoration: none; padding: .55rem .9rem; border-radius: 999px;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.menu a:hover { background: var(--glasur); color: var(--rug); }
.menu .menu-ring { display: none; }
.ring {
  font-weight: 700; text-decoration: none; padding: .7rem 1.2rem; border-radius: 999px;
  background: var(--rug); color: var(--mel); white-space: nowrap;
  transition: background-color .3s var(--ease-out);
}
.ring:hover { background: var(--hindbaer); }
.menu-knap { display: none; }

/* Når man har scrollet, samles logo og menu i en hvid kapsel, der kan stå på alt */
.is-scrolled .logo,
.is-scrolled .menu { background: var(--mel); box-shadow: 0 .4rem 1.6rem -.6rem rgb(42 26 20 / .35); }
.is-scrolled .menu { border-radius: 999px; padding: .25rem; }
.is-scrolled .logo { margin-left: 0; }
.is-scrolled .ring { background: var(--hindbaer); box-shadow: 0 .4rem 1.6rem -.6rem rgb(42 26 20 / .35); }
.is-scrolled .ring:hover { background: #A8103F; }

/* ---------- Scene 1: Morgen ---------- */
.morgen { position: relative; height: 100svh; min-height: 34rem; }
.scener .morgen { height: 270vh; }
.morgen-scene {
  position: sticky; top: 0; height: 100svh; min-height: 34rem;
  overflow: hidden; isolation: isolate; background: var(--mel);
}
.morgen-foto, .morgen-foto img { position: absolute; inset: 0; width: 100%; height: 100%; }
.morgen-foto img { object-fit: cover; object-position: 50% 45%; transform-origin: 50% 45%; }
.morgen-maske {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--mel); color: #000;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.ord {
  font-family: var(--serif);
  font-size: 27vw; line-height: .9; letter-spacing: -.05em;
  white-space: nowrap; translate: -.5vw -5vh;
}
.morgen-mork { position: absolute; inset: 0; background: var(--rug); opacity: 0; pointer-events: none; }

.morgen-tekst {
  position: absolute; left: var(--kant); right: var(--kant); bottom: clamp(1.5rem, 6vh, 4rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem;
}
.morgen-tekst h1 { font-size: clamp(1.7rem, 1rem + 2.4vw, 3.1rem); max-width: 17ch; line-height: 1.04; }
.morgen-info { display: grid; justify-items: end; gap: .9rem; }
.aaben { font-weight: 600; color: var(--rug-blod); }
.aaben strong { color: var(--rug); font-weight: 800; }

.morgen-efter {
  position: absolute; left: var(--kant); bottom: 18vh;
  font-family: var(--serif); font-size: clamp(2.4rem, 1rem + 6vw, 7rem); line-height: .98;
  color: var(--mel); letter-spacing: -.02em;
  display: none;
}
.scener .morgen-efter { display: block; opacity: 0; }

/* Indgang ved load: ordet hæver sig op fra bagepladen */
.js .ord { animation: haev 1.6s var(--ease-out) .1s both; }
@keyframes haev { from { clip-path: inset(100% 0 0 0); translate: -.5vw 2vh; } to { clip-path: inset(-10% 0 -10% 0); translate: -.5vw -5vh; } }
.js .morgen-tekst { animation: ind 1.2s var(--ease-out) .7s both; }
@keyframes ind { from { opacity: 0; translate: 0 1.5rem; } }

/* ---------- Scene 2: Natten ---------- */
.natten {
  position: relative; background: var(--rug); color: var(--nat-tekst);
  transition: background-color 1.2s var(--ease-in-out), color 1.2s var(--ease-in-out);
}
.natten-scene { padding: clamp(5rem, 12vh, 8rem) var(--kant) clamp(4rem, 10vh, 7rem); }
.natten-h { font-size: var(--fs-h2); color: var(--mel); max-width: 12ch; margin-bottom: 3rem; transition: color 1.2s var(--ease-in-out); }
.ur { display: none; }
.trin { display: grid; gap: 4.5rem; }
.trin-et { display: grid; gap: 1.5rem; }
.trin-tid { font-family: var(--serif); font-size: clamp(3.4rem, 2rem + 8vw, 6rem); line-height: 1; color: var(--blomme); margin-bottom: .6rem; font-variant-numeric: tabular-nums; }
.trin-tekst h3 { font-size: var(--fs-h3); color: var(--mel); margin-bottom: .8rem; transition: color 1.2s var(--ease-in-out); }
.trin-tekst p:not(.trin-tid) { max-width: 38ch; }
.trin-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--form); }

@media (min-width: 900px) {
  /* Desktop med bevægelse: sektionen låses, uret går, og trinnene skifter */
  .scener .natten { height: 420vh; }
  .scener .natten-scene {
    position: sticky; top: 0; height: 100svh; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); column-gap: 5vw;
    grid-template-rows: auto 1fr; padding-top: 6.5rem; padding-bottom: 3rem;
  }
  .scener .natten-h { grid-column: 1; font-size: clamp(1.5rem, 1rem + 1.2vw, 2.2rem); margin: 0; max-width: none; color: var(--blomme); }
  .scener .ur {
    display: block; grid-column: 1; grid-row: 2; align-self: center;
    font-family: var(--serif); font-size: clamp(7rem, 17vw, 19rem); line-height: .8; letter-spacing: -.04em;
    color: var(--blomme); margin-top: -12vh; font-variant-numeric: tabular-nums;
    transition: color 1.2s var(--ease-in-out);
  }
  .ur-tal { display: inline-block; }
  .ur-tal.vender { animation: vend .7s var(--ease-out); }
  @keyframes vend { from { opacity: 0; translate: 0 .25em; } }
  .scener .trin { position: absolute; inset: 0; display: block; padding: 6.5rem var(--kant) 3rem; }
  .scener .trin-et {
    position: absolute; inset: 6.5rem var(--kant) 3rem;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); column-gap: 5vw; align-items: end;
  }
  .scener .trin-tid { display: none; }
  .scener .trin-tekst { grid-column: 1; max-width: 34rem; opacity: 0; translate: 0 1.5rem; transition: opacity .6s var(--ease-out), translate .9s var(--ease-out); }
  .scener .trin-foto { grid-column: 2; grid-row: 1; align-self: stretch; position: relative; }
  .scener .trin-foto img {
    position: absolute; inset: 0; height: 100%; aspect-ratio: auto;
    clip-path: inset(100% 0 0 0 round 48% 48% 1.1rem 1.1rem / 32% 32% 1.1rem 1.1rem);
    transition: clip-path 1.1s var(--ease-out);
  }
  .scener .trin-et.er-aktiv .trin-tekst { opacity: 1; translate: 0 0; transition-delay: .15s; }
  .scener .trin-et.er-aktiv .trin-foto img { clip-path: inset(0 0 0 0 round 48% 48% 1.1rem 1.1rem / 32% 32% 1.1rem 1.1rem); }
  .scener .trin-sidste .trin-tekst { grid-column: 2; }
}

/* Morgen: døren låses op, og natten bliver til mel */
.natten.er-morgen { background: var(--mel); color: var(--rug); }
.natten.er-morgen .natten-h,
.natten.er-morgen .trin-tekst h3 { color: var(--rug); }
.natten.er-morgen .ur { color: var(--hindbaer); }
.natten:not(.er-morgen) a { color: var(--mel); }

/* ---------- Scene 3: Disken ---------- */
.disken { position: relative; padding: clamp(4rem, 10vh, 7rem) 0; }
.disken-scene { overflow: hidden; }
.disken-spor {
  display: flex; gap: 1.25rem; align-items: stretch;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--kant) 1rem; scroll-padding-inline: var(--kant);
}
.disken-spor::-webkit-scrollbar { display: none; }
.disken-intro { flex: 0 0 82vw; scroll-snap-align: start; align-self: center; }
.disken-intro h2 { font-size: clamp(3.6rem, 2rem + 9vw, 11rem); line-height: .86; letter-spacing: -.04em; margin-bottom: 1.2rem; }
.disken-intro p { max-width: 30ch; color: var(--rug-blod); font-weight: 500; }
.vare { flex: 0 0 74vw; scroll-snap-align: start; display: grid; align-content: start; gap: 1rem; }
.vare-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--form); }
.vare h3 { font-size: var(--fs-h3); margin-bottom: .35rem; }
.vare p { color: var(--rug-blod); max-width: 30ch; }
.vare--ord {
  align-content: center; background: var(--rug); color: var(--mel);
  border-radius: 1.1rem; padding: 2rem 1.6rem;
}
.vare--ord h3 { font-size: clamp(3rem, 2rem + 4vw, 6rem); color: var(--blomme); }
.vare--ord p { color: var(--nat-tekst); font-size: 1.15rem; }
.disken-slut {
  flex: 0 0 74vw; scroll-snap-align: start; align-self: center;
  display: grid; gap: 1rem; padding: 2rem 0; text-decoration: none;
}
.disken-slut-stor { font-family: var(--serif); font-size: clamp(2.2rem, 1.4rem + 3vw, 4.6rem); line-height: 1; color: var(--hindbaer); text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.disken-slut-lille { color: var(--rug-blod); font-weight: 500; max-width: 30ch; }
.disken-slut:hover .disken-slut-stor { text-decoration-thickness: .12em; }

@media (min-width: 900px) {
  /* Desktop med bevægelse: sektionen låses og disken glider sidelæns */
  .scener .disken { height: var(--disken-h, 400vh); padding: 0; }
  .scener .disken-scene { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
  .scener .disken-spor {
    overflow: visible; scroll-snap-type: none; padding: 5rem var(--kant) 2rem;
    gap: 4vw; align-items: center; will-change: transform; height: 100%;
  }
  .scener .disken-intro { flex-basis: 36vw; }
  .scener .vare { flex-basis: auto; }
  .scener .vare--stor { width: 34vw; }
  .scener .vare--lille { width: 22vw; }
  .scener .vare--stor .vare-foto img { aspect-ratio: auto; height: 58vh; }
  .scener .vare--lille .vare-foto img { aspect-ratio: auto; height: 42vh; }
  .scener .vare--hoej { align-self: flex-start; margin-top: 4vh; }
  .scener .vare--lav { align-self: flex-end; margin-bottom: 2vh; }
  .scener .vare--ord { width: 26vw; height: 52vh; padding: 2.5rem; align-self: center; }
  .scener .disken-slut { flex-basis: 32vw; padding-right: 6vw; }
}

/* ---------- Bestil ---------- */
.bestil { background: var(--hindbaer); color: #fff; padding: clamp(4.5rem, 12vh, 8rem) var(--kant); }
.bestil-ind {
  max-width: 82rem; margin: 0 auto;
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}
.bestil-hoved h2 { font-size: var(--fs-h2); max-width: 11ch; margin-bottom: 1.2rem; }
.bestil-hoved p { max-width: 40ch; }
.bestil-foto { display: none; }
.bestil-form { display: grid; gap: 1.6rem; align-content: start; }
.valg { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.valg legend, .felt label { font-weight: 700; margin-bottom: .6rem; display: block; padding: 0; }
.valg label { position: relative; }
.valg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.valg span {
  display: inline-block; padding: .65rem 1.15rem; border-radius: 999px;
  border: 2px solid rgb(255 255 255 / .7); font-weight: 600;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.valg input:checked + span { background: #fff; color: var(--hindbaer); border-color: #fff; }
.valg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.valg label:hover span { border-color: #fff; }
.felt input[type="text"], .felt input[type="date"] {
  width: 100%; min-height: 3.1rem; padding: .6rem 1rem;
  border: 2px solid rgb(255 255 255 / .7); border-radius: .8rem;
  background: transparent; color: #fff; font-size: 1.0625rem;
  color-scheme: dark;
}
.felt input::placeholder { color: rgb(255 255 255 / .75); }
.felt input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-color: #fff; }
.valgfri { font-weight: 400; opacity: .85; }
.antal { display: flex; align-items: center; gap: 1rem; }
.antal input { flex: 1; accent-color: #fff; min-height: 2rem; }
.antal output { font-family: var(--serif); font-size: 1.5rem; min-width: 7.5ch; text-align: right; }

.seddel {
  background: var(--mel); color: var(--rug);
  padding: 2rem 1.6rem 1.6rem; border-radius: 0 0 .4rem .4rem;
  rotate: -1.5deg; align-self: start;
  box-shadow: 0 2rem 3rem -1.6rem rgb(42 26 20 / .55);
  position: relative;
}
.seddel::before {
  content: ""; position: absolute; left: 0; right: 0; top: -.5rem; height: .5rem;
  background: conic-gradient(from -45deg at 50% 100%, var(--mel) 90deg, #0000 0) 0 0 / 1rem 100% repeat-x;
}
.seddel-hoved { font-family: var(--serif); font-size: 1.7rem; line-height: 1.05; color: var(--hindbaer); margin-bottom: 1.2rem; }
.seddel-hoved span { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--rug-blod); }
.seddel-linjer { display: grid; margin-bottom: 1.6rem; }
.seddel-linjer > div {
  display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 1rem;
  padding: .7rem 0; border-bottom: 2px dotted rgb(42 26 20 / .35);
}
.seddel-linjer dt { font-weight: 700; color: var(--rug-blod); }
.seddel-linjer dd { font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; overflow-wrap: anywhere; }
.seddel-linjer dd.tom { font-family: var(--sans); color: var(--rug-blod); font-style: italic; font-size: 1rem; }
.knap--seddel { width: 100%; }
.seddel-fod { font-size: var(--fs-lille); color: var(--rug-blod); margin-top: .9rem; }
.seddel-fod a { color: var(--rug); font-weight: 700; }

/* ---------- Find os ---------- */
.find {
  position: relative; overflow: hidden;
  padding: clamp(5rem, 14vh, 9rem) var(--kant) clamp(5rem, 12vh, 8rem);
  min-height: 90svh; display: flex; align-items: center;
}
.find-ord {
  overflow: hidden;
  position: absolute; top: 0; bottom: 0; right: -.12em;
  writing-mode: vertical-rl;
  font-family: var(--serif); font-size: clamp(9rem, min(26vw, 21svh), 30rem); line-height: .78; letter-spacing: -.04em;
  color: var(--rug); white-space: nowrap; text-align: center;
  pointer-events: none;
}
.find-ind { position: relative; max-width: min(46rem, 62%); }
.find-ind h2 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.8rem); margin-bottom: 1.5rem; max-width: 14ch; }
.find-nu {
  display: inline-flex; align-items: center; gap: .6rem; font-weight: 700;
  background: var(--glasur); padding: .45rem 1rem; border-radius: 999px; margin-bottom: 2rem;
}
.find-nu::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--hindbaer); }
.find-nu.er-lukket::before { background: var(--rug-blod); }
.find-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 2.5rem; }
.find-info dt { font-weight: 700; color: var(--rug-blod); margin-bottom: .2rem; }
.find-info dd { font-family: var(--serif); font-size: clamp(1.25rem, 1rem + .7vw, 1.6rem); line-height: 1.2; overflow-wrap: anywhere; }
.find-info a { text-decoration-color: var(--hindbaer); text-decoration-thickness: 2px; }
.find-info a:hover { color: var(--hindbaer); }

/* ---------- Fod ---------- */
.fod {
  background: var(--rug); color: var(--nat-tekst);
  padding: 3.5rem var(--kant) 5.5rem;
  display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  font-size: var(--fs-lille);
}
.fod-navn { font-family: var(--serif); font-size: 1.6rem; color: var(--mel); line-height: 1; }
.fod-lille { grid-column: 1 / -1; max-width: 68ch; color: #BFAFA7; font-size: .875rem; }
.fod a { color: var(--mel); }

/* ---------- Faste elementer ---------- */
.sh-maerke {
  position: fixed; left: .75rem; bottom: .75rem; z-index: 60;
  font-size: .8125rem; font-weight: 600; line-height: 1; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 .9rem; border-radius: 999px;
  background: var(--mel); color: var(--rug);
  box-shadow: 0 .3rem 1.2rem -.4rem rgb(42 26 20 / .4);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.sh-maerke:hover { background: var(--rug); color: var(--mel); }
.ring-flyd { display: none; }

/* ---------- Mobil ---------- */
@media (max-width: 899px) {
  .menu-knap {
    display: inline-flex; margin-left: auto; position: relative; z-index: 2;
    font-weight: 700; padding: .7rem 1.1rem; border-radius: 999px;
    background: var(--mel); color: var(--rug);
    box-shadow: 0 .4rem 1.6rem -.6rem rgb(42 26 20 / .35);
  }
  .ring { display: none; }
  .logo { background: var(--mel); margin-left: -.4rem; padding: .65rem .9rem; font-size: 1.15rem; }
  .is-scrolled .logo { box-shadow: 0 .4rem 1.6rem -.6rem rgb(42 26 20 / .35); }
  .menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: .25rem;
    padding: 6rem var(--kant) 4rem; margin: 0;
    background: var(--rug); border-radius: 0 !important; box-shadow: none !important;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-out), visibility 0s .4s;
  }
  .menu a { font-family: var(--serif); font-size: clamp(2.2rem, 10vw, 3rem); font-weight: 400; color: var(--mel); padding: .3rem 0; line-height: 1.1; }
  .menu a:hover { background: none; color: var(--blomme); }
  .menu .menu-ring { display: block; margin-top: 1.5rem; font-family: var(--sans); font-size: 1.25rem; font-weight: 700; color: var(--blomme); }
  .menu-open .menu { opacity: 1; visibility: visible; transition: opacity .4s var(--ease-out); }
  .menu-open .menu-knap { background: var(--blomme); }
  .is-scrolled .menu { padding: 6rem var(--kant) 4rem; }

  .scener .morgen { height: 200vh; }
  .ord { font-size: 50vw; line-height: .8; translate: -1vw -8vh; text-align: left; }
  .brud { display: block; }
  @keyframes haev { from { clip-path: inset(100% 0 0 0); translate: -1vw 0; } to { clip-path: inset(-10% 0 -10% 0); translate: -1vw -8vh; } }
  .morgen-tekst { grid-template-columns: 1fr; gap: 1.1rem; bottom: 4.5rem; }
  .morgen-tekst h1 { font-size: clamp(1.75rem, 7.6vw, 2.3rem); }
  .morgen-info { justify-items: start; }
  .morgen-efter { bottom: 22vh; }

  .ring-flyd {
    display: inline-flex; position: fixed; right: .75rem; bottom: .75rem; z-index: 60;
    align-items: center; min-height: 3rem; padding: 0 1.3rem; border-radius: 999px;
    background: var(--hindbaer); color: #fff; font-weight: 800; text-decoration: none;
    box-shadow: 0 .5rem 1.4rem -.5rem rgb(42 26 20 / .5);
  }
  .sh-maerke { bottom: .9rem; font-size: .75rem; min-height: 2.5rem; padding: 0 .8rem; }
  .find-ord { font-size: 40vw; opacity: .08; right: -.18em; }
  .find-ind { max-width: none; }
  .find-info { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .bestil-ind { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, .85fr); column-gap: clamp(2rem, 4vw, 4rem); }
  .bestil-foto { display: block; margin-top: 2.5rem; max-width: 18rem; }
  .bestil-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--form); }
  .bestil-form { padding-top: .6rem; }
  .seddel { position: sticky; top: 6rem; }
}

@media (min-width: 900px) and (max-width: 1180px) {
  .bestil-ind { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bestil-hoved { grid-column: 1 / -1; }
  .bestil-foto { display: none; }
}

/* Reduceret bevægelse: alt står stille og fuldt synligt */
@media (prefers-reduced-motion: reduce) {
  .js .ord, .js .morgen-tekst { animation: none; }
}

/* ---------- 404 ---------- */
.u404-scene { position: relative; height: 100svh; min-height: 34rem; overflow: hidden; isolation: isolate; }
.ord--404 { font-size: 30vw; translate: 0 -16vh; }
.u404-tekst { position: absolute; left: var(--kant); right: var(--kant); bottom: clamp(3.5rem, 8vh, 5rem); max-width: 34rem; }
.u404-tekst h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); margin-bottom: .8rem; }
.u404-tekst p { color: var(--rug-blod); margin-bottom: 1.4rem; }
@media (max-width: 899px) {
  .side-404 .logo { box-shadow: none; }
  .ord--404 { font-size: 44vw; translate: 0 -14vh; }
}
.js .ord--404 { animation: haev-404 1.6s var(--ease-out) .1s both; }
@keyframes haev-404 { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(-10% 0 -10% 0); } }
@media (prefers-reduced-motion: reduce) { .js .ord--404 { animation: none; } }
