/* ===== Apple / iOS Design Tokens ===== */
:root {
  color-scheme: light only;   /* immer heller Modus, nie Dark Mode */
  --bg:       #f2f2f7;   /* systemGroupedBackground */
  --card:     #ffffff;   /* secondarySystemGroupedBackground */
  --card-2:   #f2f2f7;
  --label:    #1c1c1e;   /* label */
  --sub:      #8a8a8e;   /* secondaryLabel */
  --sep:      rgba(60,60,67,0.18);
  --accent:   #007aff;   /* systemBlue */
  --fill:     rgba(120,120,128,0.12);
  --header-bg: rgba(242,242,247,0.82);
}

* { -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body { -webkit-font-smoothing: antialiased; }

/* Sanftes Momentum-Scrolling */
#content, #tabs { -webkit-overflow-scrolling: touch; }

/* ===== Header / Vibrancy ===== */
.header-blur {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.dock-blur {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--sep);
}

/* Hairline-Linien (echte 0.5px) */
.hairline-bottom { height: 0.5px; background: var(--sep); }

/* ===== Tabs / Segment-Pills ===== */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

.tab-pill {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 7px 12px;
  border-radius: 13px;
  background: var(--fill);
  color: var(--label);
  line-height: 1.05;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  cursor: pointer;
  user-select: none;
}
.tab-pill:active { transform: scale(0.94); }
.tab-pill .t-wd  { font-size: 11px; font-weight: 600; opacity: .6; letter-spacing: .02em; }
.tab-pill .t-day { font-size: 17px; font-weight: 700; }
.tab-pill .t-single { font-size: 14px; font-weight: 600; padding: 2px 0; }
.tab-pill.active { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(0,122,255,.32); }
.tab-pill.active .t-wd { opacity: .9; }

/* ===== Grouped List (iOS Settings-Stil) ===== */
.group-card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sub);
  padding: 0 16px 7px;
}

/* Zeilen-Trenner innerhalb einer Karte */
.row + .row .row-inner { border-top: 0.5px solid var(--sep); }

.row-inner { display: flex; gap: 12px; padding: 12px 14px; align-items: flex-start; }
.row:active .row-inner { background: var(--fill); }

/* Icon-Kachel */
.icon-tile {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--card-2);
}

/* Check-Kreis */
.check {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--sep);
  display: flex; align-items: center; justify-content: center;
  transition: all .18s ease;
  background: transparent;
  cursor: pointer;
}
.check.done { background: var(--accent); border-color: var(--accent); }
.check svg { width: 15px; height: 15px; opacity: 0; transform: scale(.5); transition: all .18s ease; color:#fff; }
.check.done svg { opacity: 1; transform: scale(1); }

.row.is-done .name { text-decoration: line-through; color: var(--sub); }
.row.is-done .icon-tile { opacity: .5; }

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  line-height: 1.4;
}
.badge-free { background: rgba(52,199,89,.16); color: #1f9d4d; }
.badge-view { background: rgba(0,122,255,.14); color: var(--accent); }
.badge-food { background: rgba(255,149,0,.16); color: #c26a00; }
.badge-tip  { background: rgba(175,82,222,.16); color: #9b4ddb; }

/* Map-Buttons */
.maps { display: flex; gap: 8px; margin-top: 10px; }
.map-btn {
  flex: 1 1 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  padding: 8px 10px; border-radius: 10px;
  background: var(--fill); color: var(--label);
  transition: transform .12s ease, opacity .2s ease;
  text-decoration: none;
}
.map-btn:active { transform: scale(0.96); opacity: .7; }
.map-btn.apple  { background: var(--accent); color: #fff; }
.map-btn svg { width: 15px; height: 15px; }

/* Callout / Info-Karte */
.callout {
  background: var(--card);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex; gap: 11px;
}
.callout .c-icon { font-size: 20px; flex: 0 0 auto; }
.callout p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--label); }
.callout .c-title { font-weight: 600; margin-bottom: 2px; }

/* Dock-Buttons */
.dock-btn {
  font-size: 15px; font-weight: 600; color: var(--accent);
  background: transparent; border: none; cursor: pointer;
  padding: 4px 2px;
}
.dock-btn:disabled { color: var(--sub); opacity: .4; }
.dock-btn:active:not(:disabled) { opacity: .5; }

/* Fortschritts-Pille */
.progress-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--sub);
}
.progress-track { width: 64px; height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.progress-fill  { height: 100%; background: var(--accent); border-radius: 3px; transition: width .35s cubic-bezier(.22,1,.36,1); }

/* Große Tagesüberschrift */
.day-hero h2 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.day-hero .day-sub { font-size: 15px; color: var(--sub); margin-top: 2px; }

/* Eintritts-Erscheinen */
.fade-in { animation: fadeIn .35s cubic-bezier(.22,1,.36,1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Live-Indikator (pulsierender Punkt) */
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #34c759;
  vertical-align: baseline;
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,199,89,.55); }
  70%  { box-shadow: 0 0 0 6px rgba(52,199,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); }
}

/* Listenpunkte für Übersicht */
.bullet { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.bullet .num {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
