/* ---- typography helpers ---- */
.overline {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
}
.meta {
  font-size: 11.5px;
  opacity: 0.5;
}
.page-title {
  font-family: var(--font-serif);
  font-size: 29px;
  font-weight: 300;
}
.screen-title {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 300;
}
.empty-state {
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  opacity: 0.4;
  text-align: center;
}

/* ---- back row ---- */
.back-row {
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
  opacity: 0.55;
  padding: 0 22px;
  margin-bottom: 4px;
  user-select: none;
}
.back-row svg { flex: none; }

/* ---- buttons ---- */
.btn {
  padding: 15px;
  text-align: center;
  border-radius: var(--radius-field);
  cursor: pointer;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  user-select: none;
  border: 1px solid transparent;
}
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent.is-disabled { background: transparent; color: var(--line-strong); border-color: var(--line-strong); cursor: default; }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost { opacity: 0.6; cursor: pointer; }

/* ---- fields ---- */
.field {
  padding: 13px 15px;
  border-radius: var(--radius-field);
  background: var(--surface);
  border: 1px solid var(--line);
}
.field.is-strong { border-color: var(--line-strong); }
.field input, .field textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 16px;
  color: inherit;
  padding: 0;
}

/* ---- pills / chips ---- */
.pill-switch {
  display: flex;
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--line);
  flex: none;
}
.pill-switch > div {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  cursor: pointer;
}
.pill-switch > div.is-active { background: var(--accent); color: var(--on-accent); }
.pill-switch > div:not(.is-active) { opacity: 0.55; }

.chip-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.chip {
  flex: none;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
}
.chip.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.cat-chip-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-left: 2px;
}
.cat-chip {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding-bottom: 2px;
  opacity: 0.45;
  border-bottom: 1px solid transparent;
}
.cat-chip.is-active { opacity: 1; border-bottom-color: var(--line-strong); }

/* ---- checkbox / round check ---- */
.check-square, .check-circle {
  width: 15px;
  height: 15px;
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  flex: none;
}
.check-circle { border-radius: var(--radius-pill); }
.check-square.is-on, .check-circle.is-on { background: var(--accent); border-color: var(--accent); }

/* ---- switches ---- */
.switch {
  width: 40px;
  height: 23px;
  flex: none;
  border-radius: var(--radius-pill);
  padding: 2px;
  display: flex;
  background: transparent;
  border: 1px solid var(--line-strong);
  justify-content: flex-start;
  cursor: pointer;
}
.switch.is-on { background: var(--accent); border-color: var(--accent); justify-content: flex-end; }
.switch .knob { width: 17px; height: 17px; border-radius: var(--radius-pill); background: var(--line-strong); }
.switch.is-on .knob { background: var(--on-accent); }

/* ---- fact grid ---- */
.fact-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact-cell { padding: 13px 2px; background: var(--bg); }
.fact-cell .overline { opacity: 0.4; }
.fact-cell .value { font-size: 15px; margin-top: 4px; }

/* ---- surface card ---- */
.card {
  border-radius: var(--radius-field);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px 15px;
}
.card.is-strong { border-color: var(--line-strong); }
.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border-radius: var(--radius-field);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
}
.card-link .arrow { opacity: 0.35; }

/* ---- 1px divider list ---- */
.divider-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
}
.divider-list > * { background: var(--surface); }

/* ---- mountain rating ---- */
.peaks { display: flex; }
.peak-btn {
  width: 32px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.peak-btn svg { display: block; }

/* ---- image placeholder ---- */
.img-placeholder {
  border-radius: var(--radius-field);
  background-image: repeating-linear-gradient(135deg, var(--stripe-a) 0 7px, var(--stripe-b) 7px 14px);
}

/* ---- list entries (Ideas) ---- */
.entry-row {
  display: flex;
  gap: 15px;
  cursor: pointer;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.entry-fav {
  position: absolute;
  top: -4px;
  right: -6px;
  padding: 6px;
  cursor: pointer;
  opacity: 0.28;
  line-height: 0;
}
.entry-fav.is-on { opacity: 1; color: var(--accent); }
.entry-thumb {
  width: 64px;
  height: 78px;
  flex: none;
  border-radius: var(--radius-field);
  background-image: repeating-linear-gradient(135deg, var(--stripe-a) 0 5px, var(--stripe-b) 5px 10px);
  overflow: hidden;
  position: relative;
}
/* Das Bild blendet sich erst ein, wenn es wirklich da ist — sonst blitzt
   kurz ein leerer Rahmen auf. */
.entry-thumb img, .detail-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0; transition: opacity 0.35s ease;
}
.entry-thumb img.is-da, .detail-hero img.is-da { opacity: 1; }
/* Lag das Bild schon im Telefon, ist es sofort da — dann kein Einblenden. */
.entry-thumb img.sofort, .detail-hero img.sofort, .foto-vorschau img.sofort { transition: none; }
.entry-title {
  font-family: var(--font-serif);
  font-size: 19px;
  margin-top: 5px;
  line-height: 1.25;
}

/* ---- tab bar ---- */
/* Zeichen links, danach drei gleich breite Spalten für die Reiter. */
.tab-bar {
  flex: none;
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  align-items: center;
  padding: 15px 0 20px 22px;
  border-top: 1px solid var(--line);
}
.tab-bar .mark {
  display: flex;
  align-items: center;
  margin-right: 4px;
  opacity: 0.32;
}
.tab-bar .tab {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  opacity: 0.38;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
}
.tab-bar .tab.is-active { opacity: 1; }

/* ---- nudge ---- */
.nudge {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 88px;
  padding: 15px 16px;
  border-radius: var(--radius-field);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--nudge-bg);
  color: var(--nudge-fg);
}
.nudge .close { font-size: 16px; cursor: pointer; opacity: 0.6; line-height: 1; background: none; border: none; color: inherit; }

/* ---- sort menu ---- */
.sort-menu { margin-top: 10px; }
.sort-option {
  padding: 13px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sort-option .label { font-size: 14px; opacity: 0.55; }
.sort-option.is-active .label { opacity: 1; }
.sort-option .tick { font-size: 12px; color: transparent; }
.sort-option.is-active .tick { color: var(--accent); }

/* ---- notes ---- */
.note-card {
  padding: 16px 16px 18px;
}
.note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.note-who {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
}
.note-text {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  margin-top: 10px;
  opacity: 0.85;
}

/* ---- add-way list ---- */
.way-row {
  padding: 18px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.way-row .title { font-size: 15px; }
.way-row .hint { font-size: 12px; margin-top: 3px; opacity: 0.5; }
.way-row { background: var(--surface); opacity: 0.55; transition: opacity 0.15s ease, background 0.15s ease; }
.way-row.is-active { background: var(--quiet); opacity: 1; }

/* ---- logo ---- */
.wordmark {
  display: flex;
  align-items: center;
  gap: 13px;
}
.wordmark span { letter-spacing: 0.06em; line-height: 1; }

/* ---- scrollbar hide for chip rows ---- */
.chip-row::-webkit-scrollbar { display: none; }
