/* =========================================================
   Global
   ========================================================= */

   :root{
    --card-radius: 18px;
    --soft-border: rgba(0,0,0,0.06);
    --soft-shadow: 0 12px 28px rgba(0,0,0,0.08);
    --soft-shadow-hover: 0 18px 40px rgba(0,0,0,0.12);
  }
  
  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
      "Open Sans", "Helvetica Neue", sans-serif;
    background: radial-gradient(1200px 500px at 20% 0%, rgba(13,110,253,0.10), transparent 60%),
                radial-gradient(900px 400px at 80% 10%, rgba(32,201,151,0.10), transparent 55%),
                #f7f8fb;
  }
  
  .app-container{
    max-width: 980px;
  }
  
  .app-header{
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--soft-border);
  }
  
  .brand-title{
    font-weight: 800;
    letter-spacing: -0.3px;
  }
  
  .brand-subtitle{
    color: rgba(0,0,0,0.55);
    font-size: 0.92rem;
  }
  
  .brand-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(13,110,253,0.10);
    color: rgb(13,110,253);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(13,110,253,0.18);
  }
  
  .app-footer{
    border-top: 1px solid var(--soft-border);
    background: rgba(13, 110, 110, 0.582);
    backdrop-filter: blur(10px);
  }
  
  /* =========================================================
     Cards / Layout
     ========================================================= */
  
  .track-card {
    border: 0;
    border-radius: var(--card-radius);
    box-shadow: var(--soft-shadow);
    transition: transform 160ms ease, box-shadow 160ms ease;
    background: rgba(255,255,255,0.92);
  }
  
  .track-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow-hover);
  }
  
  .card-soft{
    border-radius: var(--card-radius);
    border: 1px solid var(--soft-border);
    background: rgba(255,255,255,0.70);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  }
  
  .hero-inner{
    padding: 18px;
  }
  
  .hero-title{
    font-weight: 850;
    letter-spacing: -0.4px;
  }
  
  .hero-text{
    color: rgba(0,0,0,0.62);
  }
  
  /* =========================================================
     Track header (cover + text)
     ========================================================= */
  
  .cover-wrap {
    width: 120px;
    min-width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0,0,0,0.03);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  }
  
  .cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .cover-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(0,0,0,0.55);
    font-size: 0.85rem;
    padding: 10px;
    text-align: center;
  }
  
  .track-title {
    font-size: 1.25rem;
    font-weight: 750;
    line-height: 1.2;
  }
  
  .track-subtitle {
    font-size: 0.95rem;
  }
  
  /* =========================================================
     Rating blocks
     ========================================================= */
  
  .rating-block {
    padding: 14px 14px 10px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.80);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
    margin-bottom: 12px;
  }
  
  .rating-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  
  .rating-title {
    font-weight: 700;
  }
  
  .rating-helper {
    margin-top: 4px;
    margin-bottom: 10px;
    font-size: 0.9rem;
  }
  
  .rating-value-badge {
    min-width: 38px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: rgba(13,110,253,0.12);
    color: rgb(13,110,253);
    box-shadow: inset 0 0 0 1px rgba(13,110,253,0.18);
  }
  
  /* Clickable 1..7 scale */
  .rating-scale {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
  }
  
  .rating-tick {
    border: 0;
    background: rgba(0,0,0,0.04);
    border-radius: 12px;
    padding: 10px 0;
    font-weight: 750;
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
    user-select: none;
  }
  
  .rating-tick:hover {
    transform: translateY(-1px);
    background: rgba(13,110,253,0.10);
  }
  
  .rating-tick.is-active {
    background: rgba(13,110,253,0.16);
    box-shadow: inset 0 0 0 2px rgba(13,110,253,0.35);
    color: rgb(13,110,253);
  }
  
  .rating-anchors {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(0,0,0,0.55);
  }
  
  /* Sticky submit bar */
  .sticky-submit {
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding: 12px;
    margin-top: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 -10px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
  }
  
  /* =========================================================
     Pill controls (scenario)
     ========================================================= */
  
  .pill-group{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--soft-border);
    background: rgba(255,255,255,0.75);
  }
  
  .pill-title{
    font-weight: 700;
  }
  
  .pill-options{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
  }
  
  .btn-pill{
    border-radius: 999px !important;
    border: 1px solid rgba(0,0,0,0.10) !important;
    background: rgba(0,0,0,0.03) !important;
    font-weight: 700 !important;
  }
  
  .btn-check:checked + .btn-pill{
    background: rgba(13,110,253,0.14) !important;
    border-color: rgba(13,110,253,0.35) !important;
    color: rgb(13,110,253) !important;
  }
  
  /* =========================================================
     Mobile tuning
     ========================================================= */
  
  @media (max-width: 576px){
    .app-container{
      padding-left: 14px;
      padding-right: 14px

    }
    .track-card {
      margin-bottom: 22px;
    }
    /* bigger cover on phone but not too dominant */
    .cover-wrap{
      width: 104px;
      min-width: 104px;
      height: 104px;
      border-radius: 14px;
    }
  
    .track-title{
      font-size: 1.12rem;
    }
  
    /* make tick buttons smaller for thumbs */
    .rating-scale{
      gap: 6px;
    }
  
    .rating-tick{
      padding: 8px 0;
      font-size: 0.9rem;
      border-radius: 10px;
      padding-left: 14px;
      padding-right: 14px;
    }
  
    .rating-helper{
      font-size: 0.88rem;
      padding-left: 14px;
      padding-right: 14px;
    }
  
    .sticky-submit{
      padding: 10px;
      padding-left: 14px;
      padding-right: 14px;
    }
  }
  /* Index slider (mobile friendly) */
  .freq-range {
    margin-top: 6px;
  }
  
  /* =========================
   FIX: Slider volle Breite (iOS / Safari)
   ========================= */

.freq-range {
  width: 100%;
  display: block;
  box-sizing: border-box;
}

/* iOS Safari zwingend */
input[type="range"] {
  width: 100%;
}
/* =========================
   FIX: Slider volle Breite (iOS / Safari)
   ========================= */

   .freq-range {
    width: 100%;
    display: block;
    box-sizing: border-box;
  }
  
  /* iOS Safari zwingend */
  input[type="range"] {
    width: 100%;
  }
  