@font-face {
  font-family: "Lars Comic";
  src: url("assets/lars-comic.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #4a2117;
  --ink-dark: #2c1510;
  --red: #a91012;
  --red-dark: #75070a;
  --gold: #d79b35;
  --gold-light: #f1cf79;
  --paper: #f7e4b8;
  --paper-light: #fff7dd;
  --leather: #64331c;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f2d38e;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

/* Das offene @ bleibt beim Fettdruck der Kontaktdaten klar lesbar. */
.contact-at {
  font-weight: 400;
  font-synthesis: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: #17110e;
  border-radius: 0.4rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-page {
  min-height: 100vh;
  font-family: "Lars Comic", "Comic Sans MS", cursive;
  color: var(--ink-dark);
  background:
    radial-gradient(circle at 9% 14%, rgba(194, 116, 31, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 91% 8%, rgba(171, 74, 26, 0.13) 0 3px, transparent 4px),
    linear-gradient(135deg, #f7e2a9, #fff3ce 46%, #eec36d);
  background-size: 46px 46px, 62px 62px, auto;
}

.desktop-stage {
  position: relative;
  width: min(100vw, 1448px, 133.333svh);
  margin: 0 auto;
  aspect-ratio: 1448 / 1086;
  box-shadow: 0 0 38px rgba(93, 47, 14, 0.22);
}

.desktop-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tablet-landscape-art,
.tablet-landscape-contacts,
.tablet-landscape-tagline,
.tablet-landscape-legal {
  display: none;
}

.desktop-wide-qr {
  display: none;
}

.hotspot,
.legal-hotspot,
.desktop-qr {
  position: absolute;
  display: block;
  border-radius: 0.75rem;
}

.hotspot:focus-visible,
.legal-hotspot:focus-visible,
.desktop-qr:focus-visible {
  outline: 2px solid rgba(130, 17, 17, 0.92);
  outline-offset: 2px;
}

.hotspot.whatsapp { left: 8.8%; top: 35.7%; width: 22.7%; height: 9.5%; }
.hotspot.instagram { left: 8.8%; top: 58.2%; width: 22.7%; height: 9.4%; }
.hotspot.facebook { left: 33.1%; top: 35.8%; width: 21.7%; height: 9.2%; }
.hotspot.phone { left: 33.1%; top: 48.1%; width: 21.7%; height: 9.2%; }
.hotspot.email { left: 33.1%; top: 60.0%; width: 21.7%; height: 9.5%; }

.desktop-qr {
  left: 16.15%;
  top: 44.35%;
  width: 7.6%;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 0.12rem;
  background: transparent;
}

.desktop-qr img {
  display: block;
  width: 100%;
  height: 100%;
}

.legal-imprint { left: 82.7%; top: 95.0%; width: 7.0%; height: 3.5%; }
.legal-privacy { left: 90.2%; top: 95.0%; width: 7.1%; height: 3.5%; }

@media (hover: none) and (pointer: coarse) and (min-width: 700px) and (orientation: landscape),
       (min-width: 900px) and (min-aspect-ratio: 8/5) {
  .home-page {
    --landscape-width: min(100vw, 209.84svh);
    --landscape-height: min(100svh, 47.65625vw);
    position: relative;
    overflow: hidden;
    background: #efd595;
  }

  .home-page > main {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100%;
    min-height: 100svh;
    place-items: center;
  }

  .desktop-stage {
    width: var(--landscape-width);
    height: auto;
    aspect-ratio: 1536 / 732;
    max-height: 100svh;
    overflow: hidden;
    background: #efd595;
    box-shadow: none;
  }

  .desktop-art {
    display: none;
  }

  .tablet-landscape-art {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .desktop-hotspots,
  .desktop-qr,
  .desktop-legal {
    display: none;
  }

  .tablet-landscape-contacts {
    position: absolute;
    z-index: 5;
    left: 15.4%;
    top: 33.8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 40%;
    height: 46%;
    overflow: visible;
    color: #35190f;
  }

  .tablet-book-page {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 9% 4% 8%;
  }

  .tablet-book-page::before,
  .tablet-book-page::after {
    position: absolute;
    left: 8%;
    right: 8%;
    z-index: 0;
    color: #ad6a20;
    content: "❦  ♡  ❦";
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(0.7rem, 1.25vw, 1.05rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.16em;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 243, 204, 0.75);
    opacity: 0.9;
  }

  .tablet-book-page::before {
    top: 2%;
  }

  .tablet-book-page::after {
    bottom: 1.5%;
  }

  .tablet-book-page-left {
    padding-left: 18%;
    padding-right: 7%;
  }

  .tablet-book-page-right {
    padding-left: 14%;
    padding-right: 10%;
  }

  .tablet-contact {
    --tablet-icon-size: clamp(2.35rem, 3.3vw, 3.15rem);
    position: relative;
    z-index: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: var(--tablet-icon-size) minmax(0, 1fr);
    align-items: center;
    gap: clamp(0.35rem, 0.75vw, 0.7rem);
    color: #35190f;
    font-family: "Lars Comic", "Comic Sans MS", cursive;
    font-synthesis: weight;
    text-rendering: optimizeLegibility;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .tablet-contact + .tablet-contact,
  .desktop-wide-qr + .tablet-contact {
    padding-top: clamp(0.48rem, 0.9vw, 0.78rem);
    border-top: 1px solid rgba(174, 105, 31, 0.58);
  }

  .tablet-contact + .tablet-contact::before,
  .desktop-wide-qr + .tablet-contact::before {
    position: absolute;
    top: -0.66em;
    left: 50%;
    padding: 0 0.32em;
    color: #ad6a20;
    background: rgba(248, 229, 182, 0.94);
    border-radius: 50%;
    content: "♡";
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(0.68rem, 1.05vw, 0.92rem);
    font-weight: 700;
    line-height: 1;
    transform: translateX(-50%);
  }

  .tablet-contact > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12em;
    line-height: 1.12;
  }

  .tablet-contact-label,
  .tablet-contact strong {
    font: inherit;
    font-weight: 700;
  }

  .tablet-contact-label {
    color: #59301d;
    font-size: clamp(0.78rem, 1.24vw, 1.05rem);
  }

  .tablet-contact strong {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    color: #2d150d;
    font-family: inherit;
    font-size: clamp(0.82rem, 1.25vw, 1.06rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0.012em;
  }

  .tablet-contact-email strong {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(0.72rem, 1.15vw, 0.96rem);
  }

  .tablet-contact-icon {
    display: grid;
    place-items: center;
    width: var(--tablet-icon-size);
    min-width: var(--tablet-icon-size);
    height: var(--tablet-icon-size);
    min-height: var(--tablet-icon-size);
    aspect-ratio: auto;
    justify-self: center;
    color: #fff;
    background: #b51718;
    border: clamp(1px, 0.18vw, 3px) solid var(--gold-light);
    border-radius: 999px;
    box-shadow:
      0 2px 3px rgba(66, 24, 12, 0.3),
      inset 0 0 0 1px rgba(91, 22, 10, 0.38);
  }

  .tablet-contact-icon svg {
    width: 58%;
    height: 58%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .tablet-contact-icon .tablet-icon-dot {
    fill: currentColor;
    stroke: none;
  }

  .tablet-facebook {
    padding: 0;
  }

  .tablet-facebook svg {
    width: 54%;
    height: 54%;
    stroke-width: 1.8;
  }

  .tablet-contact:focus-visible {
    outline: none;
  }

  .tablet-contact:focus-visible .tablet-contact-icon,
  .tablet-contact:active .tablet-contact-icon {
    box-shadow:
      0 0 0 3px rgba(210, 151, 52, 0.62),
      0 2px 3px rgba(66, 24, 12, 0.3),
      inset 0 0 0 1px rgba(91, 22, 10, 0.38);
  }

  .legal-hotspot:hover,
  .legal-hotspot:focus-visible {
    outline: none;
    background: transparent;
  }

  .tablet-landscape-tagline {
    position: absolute;
    z-index: 5;
    left: 14.31%;
    bottom: 2.7%;
    display: block;
    width: 42.35%;
    margin: 0;
    color: #3f2116;
    font-family: "Lars Comic", "Comic Sans MS", cursive;
    padding: 0;
    font-size: clamp(0.92rem, 1.55vw, 1.35rem);
    font-weight: 700;
    line-height: 1.08;
    text-align: center;
    text-shadow:
      -1px -1px 0 rgba(255, 241, 198, 0.98),
      1px -1px 0 rgba(255, 241, 198, 0.98),
      -1px 1px 0 rgba(255, 241, 198, 0.98),
      1px 1px 0 rgba(255, 241, 198, 0.98),
      0 0 5px rgba(255, 241, 198, 0.9);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .tablet-landscape-legal {
    position: absolute;
    z-index: 7;
    right: 4.89%;
    bottom: 2.2%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0;
    color: #2f180f;
    font-family: "Lars Comic", "Comic Sans MS", cursive;
    font-size: clamp(0.78rem, 1.08vw, 0.98rem);
    font-weight: 700;
    text-shadow:
      -1px -1px 0 rgba(255, 241, 198, 0.98),
      1px -1px 0 rgba(255, 241, 198, 0.98),
      -1px 1px 0 rgba(255, 241, 198, 0.98),
      1px 1px 0 rgba(255, 241, 198, 0.98),
      0 0 4px rgba(255, 241, 198, 0.9);
    background: transparent;
    border-radius: 0;
  }

  .tablet-landscape-legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.12em;
  }
}

@media (min-width: 900px) and (min-aspect-ratio: 8/5) {
  .home-page > main::before,
  .home-page > main::after {
    position: absolute;
    top: 50%;
    z-index: 0;
    width: calc((100vw - var(--landscape-width)) / 2 + 1px);
    height: var(--landscape-height);
    background-image: url("assets/tablet-landscape-v2.jpg");
    background-size: var(--landscape-width) var(--landscape-height);
    background-repeat: no-repeat;
    content: "";
    transform: translateY(-50%) scaleX(-1);
    pointer-events: none;
  }

  .home-page > main::before {
    left: 0;
    background-position: left center;
  }

  .home-page > main::after {
    right: 0;
    background-position: right center;
  }

  .desktop-stage {
    z-index: 1;
  }

  .tablet-landscape-contacts {
    left: 16.7%;
    width: 39.2%;
  }

  .tablet-book-page-left {
    padding-top: 6%;
    padding-bottom: 5%;
  }

  .desktop-wide-qr {
    position: relative;
    z-index: 1;
    display: block;
    align-self: center;
    flex: 0 0 auto;
    width: clamp(4.5rem, 5.8vw, 6rem);
    aspect-ratio: 1;
  }

  .desktop-wide-qr img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .desktop-wide-qr:focus-visible {
    outline: 2px solid #8f1616;
    outline-offset: 3px;
  }
}

@media (hover: none) and (pointer: coarse) and (min-width: 700px) and (orientation: landscape) {
  .tablet-landscape-contacts {
    left: 15.4%;
    width: 40%;
  }

  .tablet-book-page-left {
    padding-top: 9%;
    padding-bottom: 8%;
  }

  .desktop-wide-qr {
    display: none;
  }

}

.portrait-layout {
  display: none;
}

.mobile-book-art {
  display: none;
}

.legal-page {
  min-height: 100vh;
  color: #171717;
  background: #fff;
  font-family: "Lars Comic", "Comic Sans MS", cursive;
  font-size: 1.08rem;
  line-height: 1.65;
}

.legal-content {
  width: min(100% - 2rem, 820px);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.legal-content h1 {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  font-weight: 400;
}

.legal-content h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 400;
}

.legal-content p {
  margin: 0.45rem 0 1rem;
}

.legal-content a {
  text-underline-offset: 0.2em;
}

.legal-updated {
  margin-top: 2.5rem !important;
  color: #555;
  font-size: 0.92rem;
}

.back-link {
  margin-top: 3rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid #d7d7d7;
  font-weight: 400;
}

/* Die Rechtstexte öffnen auch in der einzelnen Offline-Vorschau ohne JavaScript. */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 0.75rem;
  color: #171717;
  background: rgba(32, 20, 13, 0.62);
  font-family: "Lars Comic", "Comic Sans MS", cursive;
  font-size: 1.08rem;
  line-height: 1.65;
}

.legal-modal:target {
  display: grid;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
}

.legal-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 820px);
  max-height: calc(100vh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 0.4rem;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

.legal-modal .legal-content {
  width: auto;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3.25rem);
}

.legal-modal .legal-content h1 {
  padding-right: 2.5rem;
}

.legal-modal-close {
  position: sticky;
  top: 0.5rem;
  z-index: 2;
  float: right;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0.5rem 0.5rem -3.25rem 0;
  border: 1px solid #d7d7d7;
  border-radius: 0.35rem;
  color: #171717;
  background: #fff;
  font-size: 1.8rem;
  line-height: 1;
  text-decoration: none;
}

.legal-modal-close:focus-visible,
.legal-modal-backdrop:focus-visible {
  outline: 3px solid #8f1616;
  outline-offset: 2px;
}

@media (max-width: 899px) and (orientation: portrait), (max-width: 699px) {
  .desktop-stage {
    display: none;
  }

  .portrait-layout {
    display: block;
    width: min(100%, 878px);
    margin: 0 auto;
    overflow: hidden;
    background:
      radial-gradient(circle at 7% 20%, rgba(177, 99, 25, 0.19) 0 2px, transparent 3px),
      linear-gradient(#fce8b7, #f6d78e);
    box-shadow: 0 0 28px rgba(98, 48, 9, 0.22);
  }

  .portrait-hero {
    display: block;
    width: 100%;
    height: auto;
  }

  .contact-book {
    position: relative;
    z-index: 2;
    margin: -0.2rem clamp(0.7rem, 4vw, 2rem) 0;
    padding: clamp(0.5rem, 2vw, 0.9rem);
    border: 2px solid #7d441f;
    border-radius: 0.7rem 0.7rem 1.4rem 1.4rem;
    background: linear-gradient(100deg, #4f2515, #8b4d26 48%, #4d2414);
    box-shadow:
      0 9px 0 #3a1a10,
      0 13px 19px rgba(69, 35, 11, 0.38);
  }

  .contact-book::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 2.5% -0.5rem;
    height: 1rem;
    border-radius: 0 0 50% 50%;
    background: repeating-linear-gradient(0deg, #d4a34d 0 1px, #f2cf7e 1px 3px);
    box-shadow: 0 2px 0 #7e421d;
  }

  .book-pages {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "wa fb"
      "ig phone"
      ". mail";
    gap: 0 clamp(1.2rem, 4.5vw, 2.6rem);
    padding: clamp(1.1rem, 3vw, 1.6rem) clamp(0.8rem, 3vw, 1.5rem);
    overflow: hidden;
    border: 1px solid #d8a64a;
    border-radius: 0.3rem 0.3rem 1rem 1rem;
    background:
      linear-gradient(90deg, transparent 48.8%, rgba(83, 40, 15, 0.16) 49.6%, rgba(255,255,255,0.48) 50.2%, transparent 51.3%),
      repeating-linear-gradient(0deg, transparent 0 31px, rgba(138, 78, 26, 0.055) 32px 33px),
      linear-gradient(95deg, #f1d69a, #fff3c9 44%, #efd08d 50%, #fff1c2 58%, #efcf8b);
    box-shadow:
      inset 0 0 24px rgba(107, 57, 16, 0.18),
      inset 8px 0 0 rgba(255, 251, 221, 0.35),
      inset -8px 0 0 rgba(157, 92, 28, 0.08);
  }

  .book-pages::before,
  .book-pages::after {
    content: "❦";
    position: absolute;
    top: 0.15rem;
    color: rgba(157, 80, 21, 0.65);
    font-size: clamp(1rem, 3vw, 1.4rem);
  }

  .book-pages::before { left: 23%; }
  .book-pages::after { right: 23%; transform: scaleX(-1); }

  .contact-row {
    min-width: 0;
    display: grid;
    grid-template-columns: clamp(2.6rem, 8vw, 4rem) minmax(0, 1fr) 1rem;
    align-items: center;
    gap: clamp(0.45rem, 1.7vw, 0.85rem);
    padding: clamp(0.65rem, 2vw, 1rem) 0;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(164, 94, 31, 0.38);
    -webkit-tap-highlight-color: transparent;
  }

  .contact-row:hover,
  .contact-row:focus-visible {
    outline: none;
    background: transparent;
  }

  .contact-row:hover .contact-icon,
  .contact-row:focus-visible .contact-icon {
    box-shadow:
      0 0 0 3px rgba(210, 151, 52, 0.62),
      0 2px 3px rgba(66, 24, 12, 0.3),
      inset 0 0 0 1px rgba(91, 22, 10, 0.38);
  }

  .contact-whatsapp { grid-area: wa; align-self: start; }
  .contact-instagram { grid-area: ig; }
  .contact-facebook { grid-area: fb; }
  .contact-phone { grid-area: phone; }
  .contact-email { grid-area: mail; }

  .contact-icon {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    color: #fff;
    background: radial-gradient(circle at 35% 25%, #d52c2d, var(--red) 52%, var(--red-dark));
    border: clamp(2px, 0.4vw, 4px) solid var(--gold-light);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(66, 24, 12, 0.35), inset 0 0 0 1px rgba(91, 22, 10, 0.45);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: clamp(1.25rem, 4vw, 2rem);
    line-height: 1;
  }

  .contact-icon svg {
    width: 58%;
    height: 58%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .contact-icon svg .icon-dot {
    fill: currentColor;
    stroke: none;
  }

  .icon-facebook { font-family: Arial, Helvetica, sans-serif; font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .icon-instagram { font-size: clamp(1.55rem, 5vw, 2.35rem); }
  .icon-email { font-size: clamp(1.15rem, 3.7vw, 1.8rem); }

  .contact-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: "Lars Comic", "Comic Sans MS", cursive;
  }

  .contact-label {
    color: #5a301d;
    font-size: clamp(0.92rem, 2.6vw, 1.18rem);
    font-weight: 700;
    line-height: 1;
  }

  .contact-copy strong {
    overflow-wrap: anywhere;
    color: #32190f;
    font-family: inherit;
    font-size: clamp(1.08rem, 3vw, 1.45rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 0.01em;
  }

  .contact-arrow {
    color: #a45f21;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    line-height: 1;
  }

  .portrait-footer {
    padding: clamp(1.6rem, 5vw, 2.6rem) 1rem 1.4rem;
    text-align: center;
  }

  .portrait-footer p {
    margin: 0 0 1.1rem;
    color: #28120d;
    font-family: "Lars Comic", "Comic Sans MS", cursive;
    font-size: clamp(1.35rem, 5vw, 2rem);
    font-style: normal;
    line-height: 1.08;
  }

  .portrait-footer nav {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    font-family: "Lars Comic", "Comic Sans MS", cursive;
    font-size: 0.9rem;
  }

  .portrait-footer a {
    text-underline-offset: 0.18em;
  }
}

@media (max-width: 599px),
       (min-width: 600px) and (max-width: 899px) and (orientation: portrait) {
  .contact-book {
    margin-inline: clamp(0.6rem, 3.2vw, 1rem);
    padding: 0.28rem 0.35rem 0.4rem 1rem;
    border: 2px solid #5d2b16;
    border-radius: 0.35rem 0.65rem 0.9rem 0.35rem;
    background:
      repeating-linear-gradient(7deg, rgba(255,255,255,0.025) 0 2px, rgba(32,10,5,0.04) 2px 5px),
      linear-gradient(100deg, #3f190f, #6c351b 58%, #402015);
    box-shadow:
      0 7px 0 #2d110a,
      0 12px 15px rgba(57, 25, 8, 0.38),
      inset 0 0 0 1px rgba(222, 165, 70, 0.3);
  }

  .contact-book::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0.18rem;
    top: 0.62rem;
    bottom: 0.72rem;
    width: 1.55rem;
    border: 1px solid #c18c3e;
    border-radius: 72% 0 0 72%;
    background:
      linear-gradient(90deg, #c18b3c, #f1d593 50%, #d9ae61 78%, #8e5726);
    box-shadow:
      inset -7px 0 8px rgba(79, 38, 13, 0.24),
      -2px 2px 4px rgba(63, 27, 8, 0.2);
  }

  .contact-book::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0.5rem -0.38rem -0.52rem 1.05rem;
    height: auto;
    border: 1px solid #a36b2c;
    border-radius: 0.25rem 0.9rem 1.15rem 0.25rem;
    background:
      repeating-linear-gradient(0deg, #bf8839 0 1px, #f0ce7c 1px 3px, #d7aa58 3px 4px);
    box-shadow: 3px 4px 6px rgba(65, 29, 9, 0.28);
  }

  .book-pages {
    display: block;
    padding: 1.5rem clamp(0.85rem, 4vw, 1.2rem) 1rem clamp(1.15rem, 5vw, 1.55rem);
    border: 1px solid #c18b37;
    border-radius: 0.18rem 0.95rem 1.15rem 0.3rem;
    background:
      linear-gradient(90deg, rgba(81, 34, 11, 0.34), rgba(255,255,255,0.5) 3%, rgba(163,103,39,0.12) 7%, transparent 13%),
      linear-gradient(270deg, rgba(125, 65, 18, 0.16), transparent 6%),
      repeating-linear-gradient(0deg, transparent 0 31px, rgba(138, 78, 26, 0.055) 32px 33px),
      linear-gradient(102deg, #e3bd72, #fff0bb 12%, #fff6d4 78%, #e7c078);
    box-shadow:
      inset 19px 0 22px -22px #3e170b,
      inset -14px 0 17px -19px #6f3516,
      inset 0 -13px 18px -20px #6c3214,
      2px 3px 5px rgba(65, 28, 8, 0.22);
    transform: perspective(900px) rotateY(-0.65deg);
    transform-origin: left center;
  }

  .book-pages::before {
    left: auto;
    right: 1rem;
    transform: none;
  }

  .book-pages::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 2;
    left: auto;
    right: -1px;
    top: auto;
    bottom: -1px;
    width: 2.15rem;
    height: 2.15rem;
    background: linear-gradient(135deg, transparent 0 48%, #d4a65a 49% 64%, #f5dda1 65% 100%);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    transform: none;
    box-shadow: none;
  }

  .contact-row {
    grid-template-columns: clamp(2.8rem, 14vw, 3.7rem) minmax(0, 1fr);
    padding: clamp(0.7rem, 3.5vw, 0.95rem) 0;
    border-bottom: 0;
  }

  .contact-row:last-child {
    border-bottom: 0;
  }

  .contact-label {
    font-size: clamp(0.9rem, 4vw, 1.08rem);
  }

  .contact-copy strong {
    font-size: clamp(1.02rem, 4.75vw, 1.26rem);
  }

  .contact-book {
    width: calc(100% - clamp(0.7rem, 3vw, 1.2rem));
    aspect-ratio: 1122 / 1402;
    margin: -0.1rem auto 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .contact-book::before,
  .contact-book::after {
    display: none;
  }

  .mobile-book-art {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
  }

  .book-pages {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 19% 9.5% 27.5% 21%;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transform: none;
  }

  .book-pages::before,
  .book-pages::after {
    display: none;
  }

  .contact-row {
    flex: 1 1 0;
    min-height: 0;
    grid-template-columns: clamp(2.15rem, 11vw, 2.8rem) minmax(0, 1fr);
    gap: clamp(0.35rem, 1.8vw, 0.6rem);
    padding: 0.22rem 0;
    border-bottom: 0;
  }

  .contact-whatsapp {
    align-self: stretch;
  }

  .contact-icon {
    font-size: clamp(1rem, 4.5vw, 1.4rem);
    border-width: 2px;
    background: #b51718;
    box-shadow:
      0 2px 3px rgba(66, 24, 12, 0.3),
      inset 0 0 0 1px rgba(91, 22, 10, 0.38);
  }

  .icon-facebook,
  .icon-instagram {
    font-size: clamp(1.25rem, 5.8vw, 1.75rem);
  }

  .icon-email {
    font-size: clamp(0.9rem, 4.2vw, 1.25rem);
  }

  .contact-label {
    font-size: clamp(0.9rem, 4vw, 1.08rem);
  }

  .contact-copy strong {
    font-size: clamp(1.02rem, 4.75vw, 1.26rem);
  }

  .contact-arrow {
    display: none;
  }
}

@media (min-width: 600px) and (max-width: 899px) and (orientation: portrait) {
  .contact-book {
    width: min(calc(100% - 2rem), 820px);
  }

  .contact-row {
    grid-template-columns: clamp(3.5rem, 8vw, 4.3rem) minmax(0, 1fr);
    gap: clamp(0.7rem, 2vw, 1rem);
    padding: 0.35rem 0;
  }

  .contact-label {
    font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  }

  .contact-copy strong {
    font-size: clamp(1.35rem, 3.45vw, 1.75rem);
  }

  .contact-icon {
    font-size: clamp(1.45rem, 3.8vw, 2rem);
  }

  .icon-facebook,
  .icon-instagram {
    font-size: clamp(1.8rem, 4.5vw, 2.35rem);
  }

  .icon-email {
    font-size: clamp(1.3rem, 3.2vw, 1.7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
