/* =========================================================
   css/style.css
   Power Cycle App UI
========================================================= */

/* =========================================================
   1) DESIGN TOKENS
========================================================= */
:root {
  /* Core */
  --color-bg: #dfd5ff;        /* App background */
  --color-text: #606163;      /* Primary text */
  --color-input: #c0c7d3;     /* Inputs */
  --color-button: #a9bbb2;    /* Buttons */

  /* Accents */
  --color-accent-yellow: #fbbf24;

  /* Dots */
  --color-dot-training: #4f46e5; /* blue */
  --color-dot-period: #f97373;   /* red */

  /* Ring */
  --ring-track: #a9bbb2;        /* unfilled ring */
  --ring-color: #7c3aed;        /* default ring fill (violet) */

  /* Radius */
  --radius-app: 24px;
  --radius-card: 24px;
  --radius-pill: 999px;

  /* Layout */
  --app-padding-x: 24px;
  --app-padding-y: 32px;
}

/* =========================================================
   2) BASE / LAYOUT
========================================================= */
* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: #f5f5f8; /* desktop "outside phone" background */
  color: var(--color-text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Desktop: center mock phone */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* App container */
.app-shell {
  width: 390px;          /* iPhone 13 width */
  max-width: 100vw;
  height: 844px;         /* iPhone 13 height */
  max-height: 100vh;

  background-color: var(--color-bg);
  border-radius: var(--radius-app);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);

  overflow: hidden;
  padding: var(--app-padding-y) var(--app-padding-x);
}

.screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;

  /* helps prevent children from overflowing horizontally */
  min-width: 0;
}

/* =========================================================
   2.1) ✅ MOBILE FULLSCREEN FIX + SCROLL FIX
========================================================= */
@media (max-width: 480px) {
  body {
    background: var(--color-bg);
    display: block; /* stop centering */
    overflow: auto; /* allow scroll on phone (keyboard etc.) */
    -webkit-overflow-scrolling: touch;
  }

  .app-shell {
    width: 100vw;
    height: 100dvh; /* dynamic viewport height */
    max-width: none;
    max-height: none;

    border-radius: 0;
    box-shadow: none;

    /* Safe-area padding (iPhone notch) */
    padding:
      calc(14px + env(safe-area-inset-top))
      calc(14px + env(safe-area-inset-right))
      calc(18px + env(safe-area-inset-bottom))
      calc(14px + env(safe-area-inset-left));

    /* allow inner scroll if content is longer */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Shared inputs + buttons */
.input-pill,
.button-pill {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-pill);
  border: none;
  outline: none;
  padding: 14px 20px;
  font-size: 16px; /* >=16 prevents iOS Safari zoom */
  display: block;
}

/* Inputs */
.input-pill {
  background-color: var(--color-input);
  color: var(--color-text);
}
.input-pill::placeholder {
  color: var(--color-text);
  opacity: 0.9;
}
.input-pill:focus {
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.45);
}

/* Buttons */
.button-pill {
  background-color: var(--color-button);
  color: var(--color-text);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}
.button-pill:active { transform: translateY(1px); }
.button-pill:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

/* =========================================================
   3) REGISTER / LOGIN
========================================================= */
.register-screen__title {
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  margin: 0 0 24px;
}

/* Make auth illustrations bigger (Register + Login, if reused) */
.register-screen__illustration {
  width: 220px;      /* bigger */
  max-width: 80%;
  margin: 0 auto 20px;
  display: block;
}

/* register/login forms should not get cut off */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 16px;

  /* remove "push to bottom" which can cause clipping on mobile */
  margin-top: 16px;

  /* ensure button never hides behind bottom safe-area */
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

/* Mobile tweaks for auth spacing */
@media (max-width: 480px) {
  .register-screen__title { margin-bottom: 16px; }

  .register-screen__illustration {
    width: 250px; /* even bigger on phone (cat bigger) */
    max-width: 88%;
    margin-bottom: 18px;
  }

  .register-form {
    gap: 14px;
    margin-top: 12px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* =========================================================
   4) HOME
========================================================= */
.home-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.home-greeting {
  font-size: 28px;
  font-weight: 500;
  margin: 0;
}

.home-settings-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: none;
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
  font-size: 18px;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.home-settings-btn:active { transform: translateY(1px); }

/* -------------------------
   4.1) Cycle Ring
------------------------- */
.home-cycle-section {
  display: flex;
  justify-content: center;
  margin: 8px 0 18px;
}

.home-cycle-ring {
  width: 240px;
  height: 240px;
  position: relative;
}

.home-cycle-ring__circle {
  --progress: 0;
  --ring-color: #7c3aed;

  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    var(--ring-color) calc(var(--progress) * 1%),
    #a9bbb2 0
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-cycle-ring__circle--overdue { --ring-color: #e11d48; }

.home-cycle-ring__inner {
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background-color: var(--color-bg);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 8px;
}

/* BIG number (e.g. 35) */
.home-cycle-day {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 2px; /* slightly tighter */
}

/* ✅ NEW: small line under the big number (e.g. "Ø 43 Tage") */
.home-cycle-avg {
  font-size: 12px;
  line-height: 1.2;
  opacity: 0.85;
  margin: 0 0 6px;
}

/* ✅ Optional: "Zyklus lernt noch" hint */
.home-cycle-learning {
  font-size: 11px;
  line-height: 1.2;
  opacity: 0.75;
  margin: 0 0 6px;
}

.home-cycle-phase {
  font-size: 16px;
  margin-bottom: 8px;
}

.home-cycle-text {
  font-size: 11px;
  line-height: 1.3;
  margin: 0;
}
.home-cycle-text span { font-weight: 600; }

.home-overdue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 12px;
  border-radius: var(--radius-pill);

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;

  background: rgba(225, 29, 72, 0.15);
  color: #a30f33;
  border: 1px solid rgba(225, 29, 72, 0.25);

  max-width: 90%;
}

.home-overdue-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  margin-bottom: 12px;
}

/* -------------------------
   4.2) Week Strip
------------------------- */
.home-weekstrip {
  margin: 0 4px 28px;
}

.home-weekstrip-row {
  display: flex;
  justify-content: space-between;
}

.home-weekstrip-labels {
  font-size: 12px;
  margin-bottom: 4px;
}

.home-weekstrip-labels span {
  flex: 1;
  text-align: center;
}

.home-weekstrip-days { gap: 4px; }

.home-day {
  flex: 1;
  background: none;
  border: none;
  cursor: default;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.home-day-number { font-size: 14px; }

.home-day--today .home-day-number {
  position: relative;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-accent-yellow);
}

.is-today-label { font-weight: 600; }

/* Dots */
.home-day-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

/* IMPORTANT: hide missing dots completely so remaining dot is centered */
.home-day-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
}

.home-day-dot--training { background-color: var(--color-dot-training); }
.home-day-dot--period { background-color: var(--color-dot-period); }
.home-day-dot--hidden { display: none; } /* ✅ FIX: was opacity:0 */

/* Actions */
.home-actions { margin-top: auto; }
.home-train-btn { margin-top: 8px; }

/* =========================================================
   5) CALENDAR
========================================================= */
.calendar-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-back-btn {
  border: none;
  background: none;
  font-size: 20px;
  color: var(--color-text);
  cursor: pointer;
}

.calendar-title {
  font-size: 32px;
  font-weight: 500;
  margin: 0;
}

.calendar-month { margin-top: 8px; }

.calendar-month-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.calendar-month-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calendar-month-text span:first-child {
  font-size: 18px;
  font-weight: 500;
}

.calendar-month-nav {
  border: none;
  background: none;
  font-size: 20px;
  color: var(--color-text);
  cursor: pointer;
}

.calendar-year {
  font-size: 12px;
  opacity: 0.8;
  border: none;
  background: none;
  cursor: pointer;
}

.calendar-weekdays {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

.calendar-weekdays span {
  flex: 1;
  text-align: center;
}

.calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calendar-week-row {
  display: flex;
  justify-content: space-between;
  gap: 2px;
}

.calendar-day {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;

  padding: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.calendar-day-number { font-size: 12px; }

.calendar-day--outside .calendar-day-number { opacity: 0.4; }

.calendar-day--today .calendar-day-number {
  position: relative;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-accent-yellow);
}

/* Dots */
.calendar-day-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.calendar-day-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
}

.calendar-day-dot--training { background-color: var(--color-dot-training); }
.calendar-day-dot--period { background-color: var(--color-dot-period); }
.calendar-day-dot--hidden { display: none; } /* ✅ FIX: was opacity:0 */

.calendar-actions { margin-top: 24px; }
.calendar-home { margin-top: auto; }

/* =========================================================
   6) DAY DETAIL
========================================================= */
.daydetail-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.daydetail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.daydetail-back-btn {
  border: none;
  background: none;
  font-size: 20px;
  color: var(--color-text);
  cursor: pointer;
}

.daydetail-title {
  font-size: 32px;
  font-weight: 500;
  margin: 0;
}

.daydetail-date-section { margin-bottom: 8px; }

.daydetail-date {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.daydetail-content {
  margin-top: 8px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.daydetail-empty {
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
  margin-top: 16px;
}

.daydetail-entry-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.daydetail-entry {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 8px 12px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;

  font-size: 13px;
}

.daydetail-entry-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.daydetail-entry-type { font-weight: 600; }
.daydetail-entry-label { opacity: 0.9; }

.daydetail-entry-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.daydetail-entry-btn {
  border-radius: var(--radius-pill);
  border: none;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;

  background-color: var(--color-input);
  color: var(--color-text);
}

.daydetail-entry-delete { background-color: #fca5a5; }

.daydetail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.daydetail-home {
  margin-top: auto;
  margin-bottom: 0;
}

/* =========================================================
   7) ENTRY ADD (Period/Training)
========================================================= */
.entryadd-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.entryadd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.entryadd-back-btn {
  border: none;
  background: none;
  font-size: 20px;
  color: var(--color-text);
  cursor: pointer;
}

.entryadd-title {
  font-size: 32px;
  font-weight: 500;
  margin: 0;
}

.entryadd-card {
  margin-top: 16px;
  padding: 24px 16px;
  border-radius: var(--radius-card);
  background-color: rgba(192, 199, 211, 0.9);

  display: flex;
  flex-direction: column;
  gap: 12px;

  width: 100%;
  max-width: 100%;
}

.entryadd-date-label {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-pill);
  padding: 2px;
  border: 2px solid var(--color-accent-yellow);
}

.entryadd-date-input {
  width: 100%;
  border-radius: var(--radius-pill);
  border: none;
  outline: none;

  padding: 10px 16px;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;

  background-color: var(--color-button);
  color: var(--color-text);
}

.entryadd-option { border: 2px solid transparent; }

.entryadd-option--period-start,
.entryadd-option--period-end {
  border-color: var(--color-dot-period);
}

.entryadd-option--training { border-color: #3b82f6; }

.entryadd-home { margin-top: auto; }

/* =========================================================
   8) CONFIRMATION / CONGRATS
   - bigger cat + bigger text + better spacing
   - (Home button positioning later in JS/markup as agreed)
========================================================= */
.confirm-screen {
  display: flex;
  flex-direction: column;
  height: 100%;

  justify-content: space-between;
  align-items: center;

  padding-top: 48px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  gap: 22px; /* a bit more space */
}

/* If your congrats page does NOT use confirm-card, this won't harm */
.confirm-card {
  background-color: rgba(192, 199, 211, 0.0); /* keep transparent if card not desired */
  border-radius: var(--radius-card);
  padding: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  /* More distance between cat and text */
  gap: 18px;

  width: 100%;
}

/* Bigger congrats text */
.confirm-text {
  text-align: center;
  font-size: 18px;
  line-height: 1.35;
  margin: 10px 0 0;

  /* ensure it doesn't "stick" to anything below */
  padding: 0 8px;
}

.congrats-cat {
  width: 280px;
  height: 320px;
  max-width: 86vw;
  max-height: 42vh;

  border-radius: 16px;
  background-color: transparent;

  margin: 0 auto 0;

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.congrats-cat-img {
  width: 100%;
  height: 100%;
  object-fit: contain;

  /* won't remove baked-in white from PNG, but helps a bit at edges */
  mix-blend-mode: multiply;
}

/* =========================================================
   9) TRAINING SELECT
========================================================= */
.trainingselect-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.trainingselect-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.trainingselect-back-btn {
  border: none;
  background: none;
  font-size: 20px;
  color: var(--color-text);
  cursor: pointer;
}

.trainingselect-title {
  flex: 1;
  text-align: center;
  font-size: 32px;
  font-weight: 500;
}

.trainingselect-header-spacer { width: 32px; }

.trainingselect-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;

  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.trainingselect-exercise {
  text-align: center;
  background-color: var(--color-input);
}

.trainingselect-exercise--selected {
  background-color: var(--color-button);
}

.trainingselect-add-btn {
  align-self: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: none;

  background-color: var(--color-button);
  color: var(--color-text);

  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.trainingselect-footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trainingselect-start-btn { background-color: #fca5a5; }

.trainingselect-start-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* =========================================================
   10) TRAINING EXERCISE
========================================================= */
.trainingexercise-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.trainingexercise-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.trainingexercise-back-btn {
  border: none;
  background: none;
  font-size: 20px;
  color: var(--color-text);
  cursor: pointer;
}

.trainingexercise-title {
  flex: 1;
  text-align: center;
  font-size: 32px;
  font-weight: 600;
}

.trainingexercise-header-spacer { width: 32px; }

.trainingexercise-top { margin-top: 14px; }

.trainingexercise-last {
  font-size: 14px;
  margin-bottom: 8px;
}

.trainingexercise-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;

  color: var(--color-text);
  border: 1px solid rgba(0,0,0,0.06);
  cursor: default;
  margin-bottom: 12px;
}

.trainingexercise-badge--light {
  background: rgba(192, 199, 211, 0.75);
}

.trainingexercise-badge--equal {
  background: rgba(169, 187, 178, 0.85);
}

.trainingexercise-badge--heavy {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.25);
}

.trainingexercise-chart {
  width: 100%;
  height: 80px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
}

.trainingexercise-chart-line {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-yellow), #f59e0b);
}

.trainingexercise-chart-label {
  font-size: 11px;
  opacity: 0.8;
}

.trainingexercise-formcard {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-card);
  background-color: rgba(192, 199, 211, 0.9);

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trainingexercise-field {
  display: flex;
  align-items: center;
  gap: 8px;

  background-color: var(--color-input);
  border-radius: var(--radius-pill);
  padding: 10px 12px;
}

.trainingexercise-label { font-size: 14px; }

.trainingexercise-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px; /* >=16 stops iOS zoom */
  outline: none;
  text-align: right;

  -webkit-appearance: none;
  appearance: none;
}

.trainingexercise-unit {
  font-size: 12px;
  opacity: 0.9;
}

.trainingexercise-ok-btn {
  margin-top: 8px;
  background-color: var(--color-button);
}

.trainingexercise-home { margin-top: auto; }

.trainingexercise-chart-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trainingexercise-chart-loading,
.trainingexercise-chart-empty {
  font-size: 12px;
  opacity: 0.8;
  margin: 0;
}

.trainingexercise-spark {
  width: 100%;
  height: 100%;
}

/* =========================================================
   11) TRAINING SESSION (Let's go list)
========================================================= */
.trainingsession-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.trainingsession-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.trainingsession-back-btn {
  border: none;
  background: none;
  font-size: 20px;
  color: var(--color-text);
  cursor: pointer;
}

.trainingsession-title {
  flex: 1;
  text-align: center;
  font-size: 32px;
  font-weight: 500;
}

.trainingsession-header-spacer { width: 32px; }

.trainingsession-list-wrapper {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  padding-top: 22px;
  padding-right: 12px;
}

.trainingsession-list {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trainingsession-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.trainingsession-item-main {
  flex: 1;
  min-width: 0;

  border: none;
  background-color: var(--color-input);
  border-radius: var(--radius-pill);
  padding: 10px 16px;

  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trainingsession-item-title { font-size: 15px; }

.trainingsession-item-sub {
  font-size: 12px;
  opacity: 0.8;
}

.trainingsession-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-text);
  background-color: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

.trainingsession-item--done .trainingsession-check {
  background-color: var(--color-button);
}

.trainingsession-home {
  margin-top: 16px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

/* =========================================================
   12) ABOUT
========================================================= */
.about-screen {
  display: flex;
  flex-direction: column;
  height: 100%;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.about-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.about-back-btn {
  border: none;
  background: none;
  font-size: 20px;
  color: var(--color-text);
  cursor: pointer;
}

.about-title {
  font-size: 32px;
  font-weight: 500;
  margin: 0;
}

.about-content {
  flex: 0 0 auto;
  overflow: visible;

  background: rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  padding: 16px;

  margin-bottom: 14px;
}

.about-content h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.about-content p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
}

.about-home {
  margin-top: auto;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

/* =========================================================
   13) ONBOARDING (reuses entryadd-card)
========================================================= */
.onboarding-screen .entryadd-card {
  margin-top: 64px;
}

@media (max-width: 480px) {
  .onboarding-screen .entryadd-card {
    margin-top: 48px;
    padding: 18px 14px;
  }
}

/* =========================================================
   EXTRA: GLOBAL TITLE CONSISTENCY
========================================================= */
.daydetail-title,
.calendar-title,
.about-title,
.trainingexercise-title,
.trainingsession-title,
.trainingselect-title,
.entryadd-title {
  letter-spacing: -0.2px;
}

/* =========================================================
   EXTRA: prevent accidental horizontal overflow anywhere
========================================================= */
.screen,
.app-shell {
  overflow-x: hidden;
}

/* =========================
   TRAINING SELECT – Swipe Delete UI (override)
========================= */

.trainingselect-list {
  gap: 10px;                 /* kleiner als vorher */
  padding-right: 0;
}

.trainingselect-row {
  position: relative;
  width: 100%;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.trainingselect-row-actions {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  background: rgba(225, 29, 72, 0.95);
}

.trainingselect-row-delete {
  width: 84px;
  border: none;
  background: transparent;
  color: white;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.trainingselect-row-content {
  position: relative;
  will-change: transform;
  transform: translateX(0px);
  transition: transform 160ms ease;
  touch-action: pan-y; /* erlaubt vertical scroll, aber swipe horizontal */
}

.trainingselect-row--dragging .trainingselect-row-content {
  transition: none;
}

.trainingselect-row--open .trainingselect-row-content {
  transform: translateX(-84px);
}

.trainingselect-exercise {
  width: 100%;
  margin: 0;
}

/* optional: kompaktere Buttons */
.button-pill.trainingselect-exercise {
  padding: 12px 18px;
  font-size: 15px;
}
