/* ---------------------------------------------------
   Global Layout – Coaching2Go V2
   Nude / Creme + Flieder, Bottom Nav
----------------------------------------------------- */

:root {
  --bg: #fff7f2;          /* Nude / Creme */
  --card: #ffffff;
  --accent: #9b7bcf;      /* weiches Flieder */
  --accent-soft: #c9a1d9;
  --text: #4e4e4e;
  --muted: #877f7a;
  --button-grad-start: #efd8d2;
  --button-grad-end: #e4c7c1;
  --border-soft: #f0e1da;
  --gold: #c9a15d;
}

/* Seite allgemein */

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.app {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 16px 80px; /* Platz für Bottom-Nav */
}

/* Überschriften */

h1, h2, h3, h4 {
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--accent);
}

h1 {
  font-size: 30px;
  text-align: center;
  margin-top: 10px;
}

/* Header */

header {
  text-align: center;
  margin-bottom: 12px;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin-bottom: 4px;
}

.tagline {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Karten / Panels */

.card,
.panel,
.workbook-box {
  background: var(--card);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
  margin-bottom: 16px;
  border: 1px solid var(--border-soft);
}

.section-title {
  margin-top: 0;
  margin-bottom: 6px;
}

/* Stimmungsauswahl */

.mood h2 {
  margin-bottom: 8px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

button,
.btn {
  background: linear-gradient(145deg, var(--button-grad-start), var(--button-grad-end));
  color: var(--text);
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

button.secondary {
  background: #f2e7e0;
}

/* Healing-Pfad Module */

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 10px;
  margin-top: 8px;
}

.moduleCard {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid #f1e4de;
  box-shadow: 0 2px 9px rgba(0,0,0,0.04);
}

.moduleCard h4 {
  margin-bottom: 6px;
  color: var(--accent-soft);
  font-size: 15px;
}

.moduleCard p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* SOS Panel */

#sos {
  margin-top: 12px;
}

#sos-content h3 {
  margin-bottom: 6px;
}

#sos-content p {
  margin: 0;
}

/* Daily Heart */

#daily-impulse {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Bibliothek */

#library-list {
  padding-left: 18px;
  margin: 6px 0 0;
}

/* Journal */

textarea {
  width: 100%;
  height: 160px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e7d7d0;
  background: #fffaf8;
  font-size: 14px;
  resize: vertical;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

#journalStatus {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* Workbook Box */

.workbook-box h3 {
  color: var(--accent-soft);
}

.workbook-box p {
  font-size: 14px;
}

.download-btn {
  background: linear-gradient(145deg, var(--button-grad-start), var(--button-grad-end));
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Footer */

footer {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Hidden */

.hidden {
  display: none;
}

/* ---------------------------------------------------
   Bottom Navigation (Menü B)
----------------------------------------------------- */

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-top: 1px solid #e7d9d0;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.07);
  display: flex;
  justify-content: space-around;
  padding: 6px 4px 8px;
  z-index: 999;
}

.tab-bar a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tab-bar a .icon {
  font-size: 18px;
  color: var(--gold);
}

.tab-bar a.active {
  color: var(--accent);
  font-weight: 600;
}

.tab-bar a.active .icon {
  color: var(--accent);
}

/* Responsive */

@media (max-width: 600px) {
  .app {
    padding: 12px 10px 80px;
  }
  h1 {
    font-size: 24px;
  }
}
/* ---------------------------------------------------
   Modul-Seite Styling V2.2
----------------------------------------------------- */

.module-header-img {
  width: 100%;
  height: 220px;                 /* ← feste, schöne Höhe */
  object-fit: cover;            /* ← Bild wird passend zugeschnitten */
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}


.module-text p {
  margin-bottom: 14px;
  font-size: 15px;
}

.module-list {
  margin: 0;
  padding-left: 18px;
}

.module-list li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.gold-icon {
  color: #C9A15D;
  font-size: 20px;
  margin-right: 6px;
}

.back-btn {
  background: #f4e8dd;
  margin-top: 20px;
}

.breath-circle {
  width: 160px;          /* etwas kleiner, schöner */
  height: 160px;
  margin: 20px auto;
  display: block;
  object-fit: contain;   /* ← verhindert Übergröße */
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
