/* Page order and alternating light/dark sections */
.hero-art {
  background-color: var(--paper-light);
  background-image: url('images/mi-tierra-home-background-v5.png');
  position: absolute;
  grid-area: 1 / 1 / -1 / -1;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.hero-copy,
.home-cards {
  position: relative;
  z-index: 2;
}

.home-card > div {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-card .text-link {
  margin-top: auto;
}

.album-description span {
  display: block;
}

.album-description span:first-child {
  margin-bottom: .75em;
}

.site-header nav .nav-order {
  border: 1px solid var(--wine);
  background: var(--wine);
  color: #fff;
  padding: 10px 14px;
}

.site-header nav .nav-order::after {
  display: none;
}

.site-header nav .nav-order:hover,
.site-header nav .nav-order:focus-visible,
.site-header.is-floating nav .nav-order {
  background: #fffaf5;
  color: var(--wine);
}

.album-story-teaser {
  max-width: 370px;
  margin: 28px auto 0;
  text-align: center;
}

.album-story-teaser p {
  color: #d8cbc2 !important;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.35vw, 21px) !important;
  line-height: 1.25;
}

.album-story-teaser button {
  margin-top: 12px;
  border: 0;
  border-bottom: 1px solid var(--gold);
  padding: 0 0 5px;
  background: transparent;
  color: #fff8ee;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.album-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex-shrink: 0;
}

.album-actions .spotify-link,
.album-actions .cd-order-link {
  min-height: 50px;
  padding: 0 clamp(20px, 2.4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.album-actions .cd-order-link {
  border-left: 1px solid rgba(255, 255, 255, .28);
  background: #991017;
  color: #fff;
}

.album-story-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 54px);
}

.album-story-modal[hidden] {
  display: none;
}

.album-story-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 8, 7, .84);
  backdrop-filter: blur(8px);
}

.album-story-dialog {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: min(850px, 90svh);
  overflow: auto;
  border: 1px solid rgba(181, 138, 55, .55);
  background: var(--paper-light);
  color: var(--ink);
  padding: clamp(30px, 5vw, 66px);
  box-shadow: 0 45px 120px rgba(0, 0, 0, .5);
}

.album-story-dialog > h2 {
  margin: 8px 0 28px;
  color: var(--wine);
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  line-height: .95;
}

.album-story-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: 0;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
}

.album-story-body h3 {
  margin: 30px 0 7px;
  color: var(--wine);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
}

.album-story-body p {
  margin: 0 0 16px;
  color: #554843;
  font-size: 15px;
  line-height: 1.72;
}

.story-order {
  width: fit-content;
  margin-top: 26px;
}

body.has-story-modal {
  overflow: hidden;
}

body.has-story-modal .page-stack {
  overflow: hidden;
}

/* Hohe Desktopfenster: Motiv an der Seitenhöhe statt an der Breite ausrichten. */
@media (min-width: 821px) and (max-aspect-ratio: 8 / 5) {
  .hero-art {
    background-position: right center;
    background-size: auto 100%;
  }
}

.about-screen {
  grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.28fr);
  gap: clamp(48px, 7vw, 110px);
  background:
    radial-gradient(circle at 15% 18%, rgba(181, 138, 55, .08), transparent 28%),
    var(--paper-light);
}

.about-screen .screen-copy {
  position: relative;
  z-index: 2;
  max-width: 470px;
}

.about-screen .screen-copy::before {
  content: '';
  display: block;
  width: 72px;
  height: 1px;
  margin-bottom: 28px;
  background: var(--gold);
}

.about-media {
  position: relative;
  display: block;
  height: min(650px, 76vh);
  min-height: 500px;
  isolation: isolate;
}

.about-media::before {
  content: '';
  position: absolute;
  top: 1%;
  right: 7%;
  width: 54%;
  height: 78%;
  border: 1px solid rgba(181, 138, 55, .5);
  transform: translate(22px, -22px);
  z-index: -1;
}

.about-photo {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 34px 80px rgba(43, 25, 18, .24);
}

.about-photo-main {
  top: 4%;
  left: 0;
  width: 76%;
  height: 76%;
  aspect-ratio: auto;
}

.about-photo-accent {
  right: 0;
  bottom: 2%;
  width: 45%;
  height: 52%;
  aspect-ratio: auto;
  border: 10px solid var(--paper-light);
  object-position: center 28%;
  z-index: 2;
}

.contact-screen {
  color: #f6efe8;
  background:
    radial-gradient(circle at 76% 34%, rgba(154, 20, 27, .22), transparent 34%),
    radial-gradient(circle at 12% 78%, rgba(181, 138, 55, .1), transparent 28%),
    linear-gradient(135deg, #281a18 0%, #17100f 52%, #0f0b0a 100%);
}

.contact-copy h2 { color: #fffaf5; }
.contact-copy > p { color: #d6c8bf; }
.contact-copy .email-link { color: #fffaf5; }
.contact-copy .social-link { color: #d6aa53; }
.contact-copy .contact-note {
  color: #a99990;
  font-size: 12px !important;
}

.contact-form {
  border-color: rgba(181, 138, 55, .5);
  background: rgba(255, 253, 249, .97);
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .38);
}

.contact-screen .site-footer {
  border-top: 1px solid rgba(181, 138, 55, .22);
  background: rgba(10, 7, 6, .72);
}

/* Mitwandernde Navigation */
.site-header {
  position: fixed;
  z-index: 100;
  transition:
    top .35s ease,
    left .35s ease,
    width .35s ease,
    height .35s ease,
    padding .35s ease,
    background-color .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}

.site-header.is-floating {
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(78px, 9vh, 92px);
  padding: 0 clamp(38px, 4.7vw, 74px);
  gap: clamp(58px, 6.6vw, 104px);
  border: 0;
  border-bottom: 1px solid rgba(181, 138, 55, .32);
  background:
    linear-gradient(rgba(255, 253, 249, .98), rgba(250, 246, 239, .98));
  box-shadow: 0 8px 26px rgba(43, 25, 18, .1);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header nav a {
  position: relative;
  transition: color .25s ease;
}

.site-header nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.site-header nav a.is-active {
  color: var(--wine);
}

.site-header nav a.is-active::after {
  transform: scaleX(1);
}

.screen-section {
  scroll-snap-stop: always;
}

.preview-controls {
  grid-template-columns: 48px minmax(90px, 1fr) auto auto;
}

.preview-next {
  min-height: 38px;
  padding: 0 13px;
  color: var(--wine);
  border: 1px solid rgba(111, 11, 17, .32);
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.preview-next:hover,
.preview-next:focus-visible {
  color: #fff;
  border-color: var(--wine);
  background: var(--wine);
  outline: none;
}

@media (max-width: 820px) {
  .about-screen {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-media {
    height: 690px;
    min-height: 0;
  }

  .about-photo-main {
    width: 88%;
    height: 68%;
  }

  .about-photo-accent {
    width: 56%;
    height: 48%;
  }
}

@media (max-width: 520px) {
  .about-media { height: 540px; }
  .about-photo-main { width: 94%; height: 63%; }
  .about-photo-accent { width: 68%; height: 48%; border-width: 7px; }
}

/* Echte mobile Komposition: lesbar, aber weiterhin nah am Desktopentwurf */
@media (max-width: 820px) {
  html,
  body {
    height: 100%;
  }

  body {
    overflow: hidden;
  }

  .page-stack {
    height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
  }

  .screen-section {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  .site-header,
  .site-header.is-floating {
    top: 0;
    left: 0;
    width: 100%;
    height: 66px;
    padding: 0 20px;
    gap: 24px;
    border-bottom: 1px solid rgba(181, 138, 55, .22);
    background: rgba(255, 253, 249, .96);
    box-shadow: 0 7px 22px rgba(43, 25, 18, .08);
  }

  .site-header nav {
    gap: 18px;
  }

  .site-header nav a,
  .site-header nav a:nth-child(3) {
    display: inline-block;
    font-size: 10px;
  }

  .site-header nav .nav-order {
    display: none;
  }

  .brand-mark {
    font-size: 30px;
  }

  .home-screen {
    position: relative;
    display: grid;
    grid-template: 1fr 250px / 1fr;
    background: var(--paper-light);
  }

  .home-screen::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 66px 0 0;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      rgba(255, 253, 249, .99) 0%,
      rgba(255, 253, 249, .96) 42%,
      rgba(255, 253, 249, .58) 57%,
      rgba(255, 253, 249, 0) 76%
    );
  }

  .hero-art {
    position: absolute;
    z-index: 0;
    grid-area: 1 / 1 / -1 / -1;
    inset: 0;
    width: 100%;
    height: 100%;
    background-position: right -150px bottom;
    background-size: auto 76%;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    grid-area: 1 / 1;
    align-self: center;
    width: 64%;
    padding: 76px 0 225px 22px;
  }

  .hero-copy h1 {
    white-space: nowrap;
    font-size: clamp(48px, 13vw, 66px);
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: .18em;
  }

  .hero-line {
    max-width: 280px;
    font-size: 16px;
  }

  .hero-actions .button {
    width: auto;
    min-width: 185px;
  }

  .home-cards {
    position: absolute;
    z-index: 3;
    grid-area: auto;
    top: 56%;
    left: 22px;
    width: min(64%, 340px);
    height: 250px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    background: rgba(255, 253, 249, .94);
    border: 1px solid var(--line);
  }

  .home-card,
  .home-card.album-card {
    min-height: 125px;
    padding: 15px 20px;
    grid-template-columns: 22px 1fr;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-card h2 {
    margin: 2px 0 5px;
    font-size: 25px;
  }

  .home-card p:not(.section-kicker) {
    display: none;
  }

  .home-card .text-link {
    margin-top: 7px;
    font-size: 9px;
  }

  .home-card > div {
    align-self: center;
  }

  .music-screen {
    display: grid;
    grid-template: auto minmax(0, 1fr) / 1fr;
    gap: 18px;
    padding: 84px 20px 24px;
  }

  .music-screen .screen-copy h2 {
    max-width: 330px;
    margin: 4px 0 8px;
    font-size: 43px;
  }

  .music-screen .screen-copy > p:last-of-type {
    max-width: 560px;
    font-size: 14px;
    line-height: 1.5;
  }

  .preview-player {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .preview-stage {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 15px;
    padding: 16px;
  }

  .preview-record {
    width: 88px;
  }

  .preview-now h3 {
    font-size: 31px;
  }

  .preview-note {
    font-size: 12px;
  }

  .preview-controls {
    grid-template-columns: 42px minmax(50px, 1fr) auto auto;
    gap: 8px;
    margin-top: 14px;
  }

  .preview-play {
    width: 42px;
    height: 42px;
  }

  .preview-next span {
    display: none;
  }

  .preview-tracklist {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 16px;
    overflow-y: auto;
  }

  .track-copy strong {
    font-size: 18px;
  }

  .track-copy small {
    font-size: 10px;
  }

  .about-screen {
    display: grid;
    grid-template: auto minmax(0, 1fr) / 1fr;
    gap: 20px;
    padding: 88px 20px 28px;
  }

  .about-screen .screen-copy {
    max-width: 560px;
  }

  .about-screen .screen-copy::before {
    margin-bottom: 14px;
  }

  .about-screen .screen-copy h2 {
    margin: 3px 0 8px;
    font-size: 48px;
  }

  .about-screen .screen-copy > p:last-child {
    font-size: 15px;
    line-height: 1.5;
  }

  .about-media {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .about-photo-main {
    top: 2%;
    left: 0;
    width: 84%;
    height: 76%;
  }

  .about-photo-accent {
    right: 0;
    bottom: 0;
    width: 48%;
    height: 50%;
  }

  .contact-screen {
    display: grid;
    grid-template: auto minmax(0, 1fr) auto / 1fr;
    gap: 16px;
    padding: 84px 20px 0;
  }

  .contact-copy {
    align-self: start;
  }

  .contact-copy h2 {
    margin: 3px 0 7px;
    font-size: 46px;
  }

  .contact-copy > p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
  }

  .email-link {
    margin: 9px 0 3px;
    font-size: 24px;
  }

  .social-link {
    margin-top: 7px;
    font-size: 10px;
  }

  .contact-copy .contact-note {
    display: none;
  }

  .contact-form {
    align-self: stretch;
    padding: 18px;
    overflow-y: auto;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }

  .contact-form label {
    margin-bottom: 11px;
  }

  .contact-form textarea {
    min-height: 72px;
    max-height: 92px;
  }

  .contact-form .button {
    width: auto;
    min-height: 44px;
  }

  .site-footer {
    min-height: 58px;
    margin: 0 -20px;
    padding: 0 20px;
  }

  .footer-brand {
    font-size: 20px;
  }

  .site-footer nav {
    gap: 14px;
  }

  .site-footer nav a,
  .site-footer small {
    font-size: 9px;
  }
}

@media (max-width: 430px) {
  .site-header nav .nav-order {
    display: none;
  }

  .album-actions {
    grid-template-columns: 1fr;
  }

  .album-actions .cd-order-link {
    border-top: 1px solid rgba(255, 255, 255, .28);
    border-left: 0;
  }

  .album-story-dialog {
    max-height: 94svh;
    padding: 48px 24px 30px;
  }

  .site-header nav {
    gap: 12px;
  }

  .site-header nav a {
    font-size: 9px;
  }

  .hero-art {
    background-position: right -155px bottom;
    background-size: auto 68%;
  }

  .hero-copy {
    width: 66%;
  }

  .home-cards {
    top: 57%;
    width: 68%;
  }

  .home-card p:not(.section-kicker) {
    display: none;
  }

  .music-screen .screen-copy > p:last-of-type {
    display: none;
  }

  .about-photo-main {
    width: 88%;
  }

  .contact-screen {
    padding-right: 14px;
    padding-left: 14px;
  }

  .site-footer {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .site-footer small {
    display: none;
  }
}

/* Mobile Unterseiten bleiben wie am Desktop angeordnet – nur kompakter skaliert. */
@media (max-width: 820px) and (orientation: portrait) {
  .site-header nav a:first-child {
    display: inline-block;
  }

  .music-screen,
  .about-screen,
  .contact-screen {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  .music-screen {
    grid-template: minmax(0, 1fr) / minmax(125px, .62fr) minmax(0, 1.38fr);
    align-items: center;
    gap: 10px;
    padding: 76px 10px 18px;
  }

  .music-screen .screen-copy h2 {
    max-width: 170px;
    margin: 3px 0 9px;
    font-size: clamp(31px, 8.5vw, 48px);
    line-height: .93;
  }

  .music-screen .screen-copy > p:last-of-type {
    display: block;
    font-size: clamp(8px, 1.8vw, 12px);
    line-height: 1.45;
  }

  .album-story-teaser {
    margin-top: 15px;
  }

  .album-story-teaser p {
    font-size: clamp(11px, 2.4vw, 16px) !important;
  }

  .album-story-teaser button {
    font-size: 7px;
    line-height: 1.5;
  }

  .preview-player {
    height: min(760px, 82svh);
  }

  .preview-stage {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }

  .preview-record {
    width: 66px;
  }

  .preview-now h3 {
    font-size: clamp(23px, 5vw, 31px);
  }

  .preview-note,
  .preview-status {
    font-size: 8px;
  }

  .preview-controls {
    grid-template-columns: 34px minmax(34px, 1fr) auto auto;
    gap: 5px;
    margin-top: 9px;
  }

  .preview-play {
    width: 34px;
    height: 34px;
  }

  .preview-next {
    min-height: 30px;
    padding: 0 7px;
    font-size: 8px;
  }

  .preview-tracklist {
    padding: 0 10px;
  }

  .preview-track {
    grid-template-columns: 22px 1fr auto;
    gap: 7px;
    padding: 7px 0;
  }

  .track-copy strong {
    font-size: 14px;
  }

  .track-copy small,
  .track-number,
  .track-time {
    font-size: 7px;
  }

  .album-actions {
    grid-template-columns: 1fr 1fr;
  }

  .album-actions .spotify-link,
  .album-actions .cd-order-link {
    min-height: 42px;
    padding: 0 9px;
    font-size: 7px;
  }

  .about-screen {
    grid-template: minmax(0, 1fr) / minmax(135px, .72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: 12px;
    padding: 76px 12px 24px;
  }

  .about-screen .screen-copy::before {
    width: 44px;
    margin-bottom: 12px;
  }

  .about-screen .screen-copy h2 {
    font-size: clamp(34px, 8vw, 46px);
  }

  .about-screen .screen-copy > p:last-child {
    font-size: clamp(9px, 1.9vw, 13px);
    line-height: 1.48;
  }

  .about-media {
    width: 100%;
    height: min(760px, 78svh);
  }

  .about-media::before {
    top: 6%;
    right: 4%;
    width: 58%;
    height: 70%;
    transform: translate(8px, -8px);
  }

  .about-photo {
    object-fit: contain;
  }

  .about-photo-main {
    top: 3%;
    left: 0;
    width: 90%;
    height: 67%;
    object-position: center;
  }

  .about-photo-accent {
    right: 0;
    bottom: 3%;
    width: 54%;
    height: 45%;
    border-width: 5px;
    object-position: center;
  }

  .contact-screen {
    grid-template: minmax(0, 1fr) auto / minmax(130px, .7fr) minmax(0, 1.3fr);
    gap: 0 12px;
    padding: 76px 10px 0;
  }

  .contact-copy h2 {
    font-size: clamp(34px, 8vw, 48px);
  }

  .contact-copy > p,
  .contact-copy .email-link {
    font-size: clamp(9px, 2vw, 13px);
  }

  .contact-form {
    align-self: center;
    width: 100%;
    min-width: 0;
    padding: 12px;
  }

  .contact-form label,
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    min-width: 0;
  }

  .contact-form label > span:first-child,
  .consent-row span {
    font-size: 7px !important;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    padding: 6px 2px;
    font-size: 9px;
  }

  .contact-form textarea {
    min-height: 58px;
    max-height: 72px;
  }

  .contact-form .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 8px;
  }
}
