@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; -webkit-text-size-adjust: 100%; }

body.guest {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--tint, #7A5E50);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---------- Hintergrund: Cover, stark weichgezeichnet ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--tint, #7A5E50);
}
.backdrop img {
  position: absolute;
  /* über den Rand hinaus, damit die Unschärfe keine hellen Kanten zeigt */
  inset: -25%;
  width: 150%;
  height: 150%;
  object-fit: cover;
  filter: blur(70px) saturate(1.5);
  transform: translateZ(0);
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--shade, 0.22));
}
.backdrop.blobs {
  background:
    radial-gradient(circle at 30% 25%, #E8C9A8 0, transparent 50%),
    radial-gradient(circle at 80% 65%, #B98472 0, transparent 48%),
    radial-gradient(circle at 15% 90%, #6F5A4C 0, transparent 45%),
    #7A5E50;
}

/* ---------- Player: Phone (Standard) ---------- */

.player {
  --col: min(334px, calc(100vw - 56px));
  --cover: clamp(180px, calc(100dvh - 440px), var(--col));
  --cover-radius: 16px;
  --cover-paused: 0.88;

  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    calc(56px + env(safe-area-inset-top))
    calc(28px + env(safe-area-inset-right))
    calc(36px + env(safe-area-inset-bottom))
    calc(28px + env(safe-area-inset-left));
  display: grid;
  grid-template-columns: var(--col);
  grid-template-rows: auto auto auto auto auto 1fr;
  grid-template-areas: "overline" "cover" "meta" "progress" "controls" "message";
  justify-content: center;
  justify-items: center;
}

.overline {
  grid-area: overline;
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 0.47em;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
}
.overline .symbol { width: 1em; height: 1em; flex: none; }

.cover {
  grid-area: cover;
  width: var(--cover);
  aspect-ratio: 1;
  border-radius: var(--cover-radius);
  overflow: hidden;
  background: #D9BFA5;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 8px 18px rgba(0, 0, 0, 0.2);
  transform: scale(var(--cover-paused));
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.is-playing .cover { transform: scale(1); }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.meta {
  grid-area: meta;
  justify-self: stretch;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.subtitle {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.progress {
  grid-area: progress;
  justify-self: stretch;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}
.fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.95);
}
.times {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.78);
}

.controls { grid-area: controls; margin-top: 22px; }
.play {
  --size: 76px;
  width: var(--size);
  height: var(--size);
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, background-color 0.2s ease;
}
.play:hover { background: rgba(255, 255, 255, 0.26); }
.play:active { transform: scale(0.94); }
.play:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.play svg { width: 42%; height: 42%; }
.play .icon-play { margin-left: 4%; }
.play .icon-pause { display: none; width: 40%; height: 40%; }
.is-playing .play .icon-play { display: none; }
.is-playing .play .icon-pause { display: block; }

.message {
  grid-area: message;
  align-self: end;
  margin: 28px 0 0;
  max-width: 300px;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-line;
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- Tablet hochkant ---------- */

@media (min-width: 700px) and (max-width: 1023.98px) and (orientation: portrait) {
  .backdrop img { filter: blur(110px) saturate(1.5); }
  .player {
    --col: min(560px, calc(100vw - 160px));
    --cover: clamp(280px, calc(100dvh - 600px), min(520px, var(--col)));
    --cover-radius: 22px;
    --cover-paused: 0.9;
    padding:
      calc(96px + env(safe-area-inset-top))
      calc(80px + env(safe-area-inset-right))
      calc(64px + env(safe-area-inset-bottom))
      calc(80px + env(safe-area-inset-left));
  }
  .overline { margin-bottom: 40px; font-size: 21px; }
  .cover { box-shadow: 0 44px 90px rgba(0, 0, 0, 0.35), 0 12px 26px rgba(0, 0, 0, 0.2); }
  .meta { margin-top: 52px; gap: 6px; }
  .title { font-size: 44px; letter-spacing: -0.025em; line-height: 1.1; }
  .subtitle { font-size: 22px; }
  .progress { margin-top: 34px; gap: 10px; }
  .bar { height: 7px; border-radius: 4px; }
  .times { font-size: 14px; }
  .controls { margin-top: 30px; }
  .play { --size: 96px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18); }
  .message { max-width: 460px; font-size: 18px; }
}

/* ---------- Desktop & Querformat: Cover links, Text rechts ---------- */

@media (min-width: 1024px), (min-width: 700px) and (orientation: landscape) {
  .backdrop img { filter: blur(140px) saturate(1.5); }
  .player {
    --pad-x: clamp(40px, 8vw, 120px);
    --cover: min(540px, calc(100dvh - 160px), calc((100vw - 2 * var(--pad-x) - 88px) * 0.52));
    --cover-radius: 24px;
    --cover-paused: 0.92;
    padding:
      calc(40px + env(safe-area-inset-top))
      calc(var(--pad-x) + env(safe-area-inset-right))
      calc(40px + env(safe-area-inset-bottom))
      calc(var(--pad-x) + env(safe-area-inset-left));
    grid-template-columns: var(--cover) minmax(0, 512px);
    grid-template-rows: 1fr auto auto auto auto auto 1fr;
    grid-template-areas:
      "cover ."
      "cover overline"
      "cover meta"
      "cover message"
      "cover progress"
      "cover controls"
      "cover .";
    column-gap: 88px;
    justify-items: start;
  }
  .cover {
    align-self: center;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.35), 0 14px 30px rgba(0, 0, 0, 0.2);
  }
  .overline { margin-bottom: 20px; font-size: 21px; text-align: left; }
  .meta { margin-top: 0; gap: 12px; }
  .title { font-size: 72px; letter-spacing: -0.03em; line-height: 1.02; }
  .subtitle { font-size: 26px; color: rgba(255, 255, 255, 0.84); }
  .message {
    align-self: auto;
    margin-top: 28px;
    max-width: 460px;
    text-align: left;
    font-size: 19px;
    line-height: 1.55;
  }
  .progress { margin-top: 44px; gap: 10px; }
  .bar { height: 7px; border-radius: 4px; }
  .times { font-size: 14px; }
  .controls { margin-top: 28px; }
  .play { --size: 88px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18); }
}

/* Niedrige Querformat-Fenster (z. B. Handy quer): kompakter, damit alles passt */
@media (min-width: 700px) and (orientation: landscape) and (max-height: 620px) {
  .player {
    --cover: min(540px, calc(100dvh - 80px), calc((100vw - 2 * var(--pad-x) - 56px) * 0.5));
    column-gap: 56px;
  }
  .overline { margin-bottom: 10px; font-size: 14px; }
  .meta { gap: 6px; }
  .title { font-size: 40px; }
  .subtitle { font-size: 18px; }
  .message { margin-top: 12px; font-size: 15px; }
  .progress { margin-top: 18px; }
  .controls { margin-top: 14px; }
  .play { --size: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .cover, .is-playing .cover { transform: none; transition: none; }
  .play { transition: none; }
}

/* ---------- „Bald gibt es hier etwas“ ---------- */

.soon {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px calc(28px + env(safe-area-inset-right)) 32px calc(28px + env(safe-area-inset-left));
  text-align: center;
}
.soon p {
  margin: 0;
  max-width: 520px;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
