/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --cream:     #FAF7F0;
  --cream-dim: rgba(250,247,240,0.85);
  --gold:      #C9A84C;
  --gold-dim:  rgba(201,168,76,0.4);
  --navy:      #1A2744;
  --navy-dim:  rgba(26,39,68,0.7);
  --charcoal:  #2C2C2C;
  --white:     #FFFFFF;
  --shadow:    0 4px 24px rgba(44,44,44,0.08);
}

/* ─── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html, body { height:100%; overflow:hidden; background:var(--cream); }
body {
  font-family: 'Lato', sans-serif;
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }
.hidden { display: none !important; }

/* ─── Screens ───────────────────────────────────────────────────────────────── */
.screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
}
.screen.active { display: flex; flex-direction: column; }

/* ─── LOGIN / SUBSCRIBE ─────────────────────────────────────────────────────── */
.login-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero-zen.jpg') center center / cover no-repeat;
  opacity: 0.18;
}
.login-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--navy) 0%, rgba(26,39,68,0.92) 100%);
}
.login-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 32px;
  text-align: center;
}
.login-logo {
  width: 64px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(5deg);
  opacity: 0.9;
}
.login-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 8px;
}
.login-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--cream-dim);
  margin-bottom: 32px;
}
.login-divider {
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
  margin: 0 auto 32px;
}
.login-box {
  width: 100%;
  max-width: 360px;
}
.login-error {
  background: rgba(180,60,60,0.15);
  border: 1px solid rgba(180,60,60,0.4);
  color: #f5a5a5;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
  text-align: left;
}
.login-input {
  width: 100%;
  background: rgba(250,247,240,0.08);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--cream);
  padding: 14px 16px;
  font-size: 15px;
  border-radius: 8px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.3s;
}
.login-input::placeholder { color: rgba(250,247,240,0.35); }
.login-input:focus { border-color: var(--gold); }
.login-btn {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 16px;
  border-radius: 8px;
  margin-top: 4px;
  margin-bottom: 16px;
  transition: opacity 0.3s;
}
.login-btn:hover { opacity: 0.88; }
.login-sub {
  font-size: 13px;
  color: rgba(250,247,240,0.5);
  margin-bottom: 8px;
}
.login-sub a { color: var(--gold); }
.login-brand {
  position: absolute;
  bottom: 28px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
  color: rgba(250,247,240,0.25);
  letter-spacing: 0.1em;
}
.subscribe-desc {
  font-size: 15px;
  color: var(--cream-dim);
  line-height: 1.7;
  margin-bottom: 24px;
}
.subscribe-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 24px;
}
.subscribe-price span {
  font-size: 18px;
  color: var(--cream-dim);
}

/* ─── App Shell ─────────────────────────────────────────────────────────────── */
#screen-app {
  background: var(--cream);
  overflow: hidden;
}

/* ─── Tab Content ───────────────────────────────────────────────────────────── */
.tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 80px;
  -webkit-overflow-scrolling: touch;
}
.tab-content.active { display: block; }

/* ─── Home ──────────────────────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  height: 240px;
  background: url('images/hero-zen.jpg') center center / cover no-repeat;
  overflow: hidden;
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,39,68,0.3) 0%, var(--cream) 100%);
}
.home-hero-text {
  position: absolute;
  bottom: 20px;
  left: 24px;
  z-index: 2;
}
.home-welcome {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--navy);
}
.home-welcome-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
}
.home-body { padding: 20px 20px 0; }
.home-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}
.home-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--navy);
}
.home-brand-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
}
.home-featured-label,
.home-categories-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(44,44,44,0.45);
  margin-bottom: 12px;
}
.home-categories-label { margin-top: 28px; }

/* Featured Card */
.featured-card { margin-bottom: 8px; }
.featured-inner {
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 120px;
  cursor: pointer;
  transition: transform 0.2s;
}
.featured-inner:active { transform: scale(0.98); }
.featured-cat {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.featured-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}
.featured-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 12px;
}
.featured-play svg { width: 20px; height: 20px; margin-left: 2px; }

/* Category Pills */
.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}
.cat-pill:active { opacity: 0.75; }

/* ─── Page Header ───────────────────────────────────────────────────────────── */
.page-header {
  padding: 56px 20px 16px;
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 5;
}
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 14px;
}
.search-input {
  width: 100%;
  background: rgba(26,39,68,0.05);
  border: 1px solid rgba(26,39,68,0.12);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.3s;
}
.search-input:focus { border-color: var(--gold); }

/* ─── Library List ──────────────────────────────────────────────────────────── */
.library-list { padding: 8px 20px; }
.audio-card {
  margin-bottom: 14px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.audio-card:active { transform: scale(0.98); }
.audio-card-color {
  padding: 20px 20px 16px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.audio-card-cat {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.audio-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  flex: 1;
}
.audio-card-play {
  align-self: flex-start;
  margin-top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.audio-card-play svg { width: 14px; height: 14px; margin-left: 2px; }

/* ─── Empty / Loading ───────────────────────────────────────────────────────── */
.empty-msg, .loading-msg {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: rgba(44,44,44,0.4);
}
.featured-loading {
  padding: 40px;
  text-align: center;
  font-style: italic;
  color: rgba(44,44,44,0.4);
}

/* ─── Profile ───────────────────────────────────────────────────────────────── */
.profile-body { padding: 20px; }
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.profile-email {
  text-align: center;
  font-size: 14px;
  color: rgba(44,44,44,0.55);
  margin-bottom: 28px;
}
.profile-divider {
  height: 1px;
  background: rgba(44,44,44,0.08);
  margin: 16px 0;
}
.profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  padding: 4px 0;
}
.profile-badge {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 12px;
}
.profile-logout {
  width: 100%;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid rgba(44,44,44,0.15);
  border-radius: 10px;
  font-size: 15px;
  color: rgba(44,44,44,0.6);
  transition: all 0.3s;
}
.profile-logout:hover { border-color: var(--navy); color: var(--navy); }
.profile-brand {
  text-align: center;
  margin-top: 32px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(44,44,44,0.3);
}
.profile-privacy {
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(44,44,44,0.35);
}
.profile-privacy a { color: var(--gold); }

/* ─── Bottom Navigation ─────────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--cream);
  border-top: 1px solid rgba(44,44,44,0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 20;
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  color: rgba(44,44,44,0.35);
  transition: color 0.2s;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn.active { color: var(--navy); }
.nav-btn.active svg { stroke: var(--navy); }

/* ─── Audio Player Overlay ──────────────────────────────────────────────────── */
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.player-bg {
  position: absolute;
  inset: 0;
  transition: background 0.5s;
}
.player-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.55) 100%);
}
.player-overlay-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 52px 28px 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}
.player-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: auto;
}
.player-back, .player-fav {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
}
.player-back svg, .player-fav svg { width: 24px; height: 24px; }
.player-center {
  text-align: center;
  margin-bottom: 40px;
}
.player-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1.3;
}
.player-category {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
}
.player-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(201,168,76,0.45);
  transition: transform 0.2s;
}
.player-play-btn:active { transform: scale(0.94); }
.player-play-btn svg { width: 28px; height: 28px; color: var(--navy); margin-left: 3px; }
.player-play-btn svg.hidden { display: none; }
.player-bottom { margin-top: auto; }
.player-progress-wrap { margin-bottom: 6px; }
.player-progress {
  width: 100%;
  -webkit-appearance: none;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.25);
  outline: none;
  cursor: pointer;
}
.player-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}
.player-times {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}
.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-bottom: 28px;
}
.player-controls button {
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-controls button svg { width: 32px; height: 32px; }
.ctrl-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.ctrl-play svg { width: 22px; height: 22px; color: white; }
.ctrl-play svg.hidden { display: none; }
.player-mantra {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

/* ─── Mockup Card Design (v3) ───────────────────────────────────────────────── */

/* Featured Card – Mockup Style: weißer Hintergrund, Thumbnail links, Text rechts */
.featured-inner-new {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(44,44,44,0.10);
  cursor: pointer;
  transition: transform 0.2s;
  min-height: 100px;
}
.featured-inner-new:active { transform: scale(0.98); }
.featured-thumb {
  width: 110px;
  height: 110px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 12px;
  margin: 10px 0 10px 10px;
}
.featured-text-new {
  flex: 1;
  padding: 14px 12px;
}
.featured-cat-new {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(44,44,44,0.45);
  margin-bottom: 4px;
}
.featured-title-new {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 6px;
}
.featured-duration {
  font-size: 12px;
  color: rgba(44,44,44,0.4);
}
.featured-play-new {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 14px;
  box-shadow: 0 2px 12px rgba(201,168,76,0.35);
}
.featured-play-new svg { width: 16px; height: 16px; margin-left: 2px; }

/* Audio Card – Mockup Style: Farbe links (55%), Bild rechts (45%) */
.audio-card-new {
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(44,44,44,0.10);
  cursor: pointer;
  transition: transform 0.2s;
  height: 160px;
}
.audio-card-new:active { transform: scale(0.98); }
.audio-card-left {
  flex: 0 0 52%;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.audio-card-cat-new {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.audio-card-title-new {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  flex: 1;
}
.audio-card-play-new {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(201,168,76,0.3);
}
.audio-card-play-new svg { width: 14px; height: 14px; margin-left: 2px; }
.audio-card-thumb {
  flex: 0 0 48%;
  width: 48%;
  object-fit: cover;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--cream);
  z-index: 200;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.cookie-content { max-width: 480px; margin: 0 auto; }
.cookie-content p { font-size: 13px; line-height: 1.5; margin-bottom: 12px; color: rgba(250,247,240,0.85); }
.cookie-content a { color: var(--gold); }
.cookie-btn {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  letter-spacing: 0.04em;
}

/* App Footer */
.app-footer {
  position: fixed;
  bottom: 72px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 6px 0;
  font-size: 11px;
  color: rgba(44,44,44,0.35);
  background: var(--cream);
  z-index: 15;
  letter-spacing: 0.04em;
}
.app-footer a { color: rgba(44,44,44,0.45); }
.app-footer span { margin: 0 6px; }
