/* Rosenborg Klinik (eksempel). Niveau 1, retning 9. Ro. */

:root {
  /* Palet */
  --perle: #F8F8FB;      /* baggrund */
  --isblaa: #E6EEF4;     /* rolige flader */
  --lavendel: #C9C6DA;   /* linjer, tidslinje */
  --blaaregn: #6C5A84;   /* links, knapper, accent */
  --plum: #3A2E46;       /* tekst og kontaktflade */
  --plum-blid: #5E5270;  /* sekundær tekst */

  --serif: 'Erode', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hedvig Letters Sans', system-ui, sans-serif;

  --t-h1: clamp(2.6rem, 1.4rem + 5.4vw, 6.4rem);
  --t-h2: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --t-h3: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem);
  --t-brod: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --t-lille: .9375rem;

  --kant: clamp(1.25rem, 4vw, 3.5rem);
  --maks: 90rem;

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

html { background: var(--perle); }
body {
  background: var(--perle);
  color: var(--plum);
  font-family: var(--sans);
  font-size: var(--t-brod);
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.05; letter-spacing: -.015em; }
::selection { background: var(--lavendel); color: var(--plum); }

/* Knapper og links */
.knap {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .85rem 1.6rem;
  background: var(--plum); color: var(--perle);
  border-radius: 999px; text-decoration: none; font-size: 1rem;
  transition: background-color .5s var(--ease-out);
}
.knap:hover { background: var(--blaaregn); }
.knap--lille { min-height: 2.75rem; padding: .6rem 1.2rem; font-size: .9375rem; }
.tekstlink {
  display: inline-block; padding-block: .6rem;
  color: var(--plum); text-decoration: underline; text-decoration-color: var(--lavendel);
  text-decoration-thickness: 1px; text-underline-offset: .35em;
  transition: text-decoration-color .4s var(--ease-out);
}
.tekstlink:hover { text-decoration-color: var(--blaaregn); }

/* Header */
.site-header {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; gap: 2rem;
  max-width: var(--maks); margin-inline: auto;
  padding: 1.25rem var(--kant);
}
.ordmaerke {
  font-family: var(--serif); font-size: 1.375rem; font-weight: 400;
  text-decoration: none; letter-spacing: -.01em; margin-right: auto;
  view-transition-name: ordmaerke;
}
.nav { display: flex; gap: 2rem; }
.nav a { text-decoration: none; font-size: .9375rem; color: var(--plum-blid); padding-block: .5rem; transition: color .3s; }
.nav a:hover { color: var(--plum); }

/* Hero: tekst i luft, bredt foto under, der åbner sig */
.hero {
  max-width: var(--maks); margin-inline: auto;
  padding: clamp(7rem, 16vh, 11rem) var(--kant) 0;
}
.hero-sted { color: var(--plum-blid); font-size: var(--t-lille); margin-bottom: 1.5rem; }
.hero-titel { font-size: var(--t-h1); max-width: 13ch; }
.hero-side {
  display: grid; gap: 1.75rem;
  max-width: 28rem; margin: 2rem 0 0 auto;
}
.hero-side p { color: var(--plum-blid); }
.handlinger { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

.hero-foto { --foto-r: 1.75rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); border-radius: var(--foto-r); overflow: clip; }
.hero-foto img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 40%; }

@media (min-width: 62rem) {
  .hero-tekst { display: grid; grid-template-columns: 1.35fr 1fr; align-items: end; column-gap: 4rem; }
  .hero-sted { grid-column: 1 / -1; }
  .hero-side { margin: 0 0 .6rem; }
}

/* Signatur: fotoet åbner sig langsomt, som et åndedrag */
@media (prefers-reduced-motion: no-preference) {
  .hero-foto {
    clip-path: inset(10% 14% 10% 14% round 999px);
    animation: aabn 2.2s var(--ease-out) .35s forwards;
  }
  .hero-foto img { scale: 1.08; animation: slip 2.6s var(--ease-out) .35s forwards; }
  .hero-titel, .hero-side, .hero-sted { opacity: 0; animation: frem 1.4s var(--ease-out) forwards; }
  .hero-titel { animation-delay: .1s; }
  .hero-side { animation-delay: .5s; }
}
@keyframes aabn { to { clip-path: inset(0 0 0 0 round var(--foto-r)); } }
@keyframes slip { to { scale: 1; } }
@keyframes frem { from { opacity: 0; translate: 0 .75rem; } to { opacity: 1; translate: 0 0; } }

/* Tilgang */
.tilgang {
  max-width: 64rem; margin-inline: auto;
  padding: clamp(5rem, 12vw, 10rem) var(--kant) clamp(4rem, 9vw, 7rem);
}
.tilgang-citat { font-size: var(--t-h2); max-width: 22ch; }
.tilgang-tekst { max-width: 34rem; margin: clamp(2rem, 4vw, 3rem) 0 0 auto; display: grid; gap: 1.1rem; }

/* Behandlinger */
.behandlinger {
  background: var(--isblaa);
  border-radius: clamp(1.75rem, 4vw, 3rem) clamp(1.75rem, 4vw, 3rem) 0 0;
  padding: clamp(4rem, 9vw, 7rem) var(--kant) clamp(4rem, 8vw, 6rem);
}
.sektionshoved, .behandlingsliste { max-width: 72rem; margin-inline: auto; }
.sektionshoved { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sektionshoved h2 { font-size: var(--t-h2); }
.sektionshoved p { max-width: 30rem; color: var(--plum-blid); }
.behandling {
  display: grid; gap: .75rem 3rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--lavendel);
}
.behandling:last-child { border-bottom: 1px solid var(--lavendel); }
.behandling h3 { font-size: var(--t-h3); }
.behandling-tekst { display: grid; gap: .75rem; max-width: 36rem; }
.godt-til { color: var(--plum-blid); font-size: var(--t-lille); }
.godt-til span { color: var(--blaaregn); margin-right: .35em; }
.varighed { font-family: var(--serif); color: var(--plum-blid); font-variant-numeric: tabular-nums; }
.varighed span { font-size: 1.75rem; color: var(--plum); margin-right: .15em; }
@media (min-width: 52rem) {
  .behandling { grid-template-columns: minmax(12rem, 1fr) 2fr auto; align-items: baseline; }
}

/* Et besøg: tidslinje i rigtige proportioner */
.besoeg { background: var(--isblaa); padding: 0 var(--kant) clamp(5rem, 10vw, 8rem); }
.besoeg-indre {
  max-width: 72rem; margin-inline: auto;
  background: var(--perle); border-radius: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(2rem, 5vw, 4rem);
}
.besoeg h2 { font-size: var(--t-h2); }
.besoeg-intro { color: var(--plum-blid); margin-top: .75rem; }
.tidslinje { display: flex; gap: 4px; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.tid { flex: var(--min) 1 0; height: .9rem; border-radius: 999px; transform-origin: left center; }
.tid--samtale { background: var(--lavendel); }
.tid--behandling { background: var(--blaaregn); }
.tid--raad { background: var(--plum); }
.trin { display: grid; gap: 1.75rem; margin-top: 1.75rem; }
.trin h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.trin p:last-child { color: var(--plum-blid); font-size: var(--t-lille); max-width: 26rem; }
.trin-tid::before { content: ''; display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .5rem; background: var(--prik); }
.trin li:nth-child(1) { --prik: var(--lavendel); }
.trin li:nth-child(2) { --prik: var(--blaaregn); }
.trin li:nth-child(3) { --prik: var(--plum); }
.trin-tid { font-family: var(--serif); color: var(--plum-blid); margin-bottom: .25rem; font-variant-numeric: tabular-nums; }
.trin-tid span { color: var(--plum); font-size: 1.25rem; }
@media (min-width: 52rem) {
  .trin { grid-template-columns: 1fr 2.4fr 1.2fr; gap: 2.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .tid { scale: 0 1; transition: scale 1.4s var(--ease-out); }
  .js .tid--behandling { transition-delay: .25s; }
  .js .tid--raad { transition-delay: .5s; }
  .js .tidslinje.is-in .tid { scale: 1 1; }
}

/* Kontakt */
.kontakt {
  background: var(--plum); color: var(--perle);
  padding: clamp(5rem, 11vw, 9rem) var(--kant) clamp(4rem, 8vw, 6rem);
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
}
.kontakt > * { width: 100%; max-width: 72rem; margin-inline: auto; }
.kontakt h2 { font-size: var(--t-h2); }
.kontakt-hoved p { margin-top: 1rem; max-width: 30rem; color: #DCD8E6; }
.kontakt-tlf {
  display: inline-block; font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 1.5rem + 7vw, 7.5rem); line-height: 1; letter-spacing: -.02em;
  text-decoration: none; font-variant-numeric: tabular-nums;
  transition: color .5s var(--ease-out);
}
.kontakt-tlf:hover { color: var(--lavendel); }
.kontakt-mail { margin-top: 1rem; font-size: 1.25rem; }
.kontakt-mail a { text-decoration-color: rgb(201 198 218 / .5); text-underline-offset: .3em; text-decoration-thickness: 1px; }
.praktisk { display: grid; gap: 1.5rem; padding-top: 2rem; border-top: 1px solid rgb(201 198 218 / .35); }
.praktisk dt { color: var(--lavendel); font-size: var(--t-lille); margin-bottom: .25rem; }
.praktisk dd { margin: 0; max-width: 22rem; }
@media (min-width: 52rem) { .praktisk { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.kontakt :focus-visible { outline-color: var(--perle); }

/* Footer */
.site-footer {
  background: var(--plum); color: #DCD8E6; font-size: var(--t-lille);
  padding: 2.5rem var(--kant) 5.5rem;
  display: grid; gap: 1.25rem;
  border-top: 1px solid rgb(201 198 218 / .2);
}
.site-footer > * { max-width: 72rem; }
.site-footer a { color: inherit; }
.footer-navn { font-family: var(--serif); font-size: 1.375rem; color: var(--perle); }
.footer-note { color: #B9B3C7; }
@media (min-width: 52rem) {
  .site-footer { grid-template-columns: 1.2fr 1fr 1fr 1.4fr; padding-inline: max(var(--kant), calc((100% - 72rem) / 2)); align-items: start; }
}
.site-footer :focus-visible { outline-color: var(--perle); }

/* Eksempel-mærke: lille, fast, i nederste venstre hjørne */
.eksempel-maerke {
  position: fixed; left: .75rem; bottom: .75rem; z-index: 50;
  display: inline-flex; align-items: center; min-height: 2.75rem;
  padding: .45rem 1rem; border-radius: 999px;
  background: var(--perle); color: var(--plum);
  border: 1px solid var(--lavendel);
  font-size: .8125rem; line-height: 1.2; text-decoration: none;
  transition: background-color .4s var(--ease-out);
}
.eksempel-maerke:hover { background: var(--isblaa); }

/* Mobil */
@media (max-width: 44rem) {
  .nav { display: none; }
  .site-header { padding-block: 1rem; }
  .hero { padding-top: 6rem; }
  .ordmaerke { padding-block: .6rem; }
  .ordmaerke { font-size: 1.2rem; }
  .hero-foto { --foto-r: 1.25rem; margin-inline: calc(var(--kant) * -.4); }
  .hero-foto img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
  .hero-side { margin-left: 0; }
}

/* 404 */
.side404 { min-height: 100svh; padding-bottom: 6rem; }
.side404 .hero-side { margin-left: 0; }
