/* stoisch.css — im Stil von hinjas.de */

:root {
  --bg:        #f1f3f1;
  --bg-card:   #ffffff;
  --fg:        #333333;
  --fg-dim:    #6b7d6b;
  --accent:    #4a7a5a;
  --accent2:   #3a6a4a;
  --accent-bg: rgba(74, 122, 90, 0.08);
  --rose:      #c0566a;
  --olive:     #6b8e6b;
  --gold:      #b07c3a;
  --border:    #d8e4da;
  --shadow:    0 2px 8px rgba(0,0,0,0.08);
  --radius:    8px;
  --font:      system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw:      860px;
}

/* ── Dunkelmodus (nur per Toggle, nicht per Systemeinstellung) ── */
html[data-theme="dark"] {
  --bg:        #161d18;
  --bg-card:   #1e2820;
  --fg:        #e4ede6;
  --fg-dim:    #8aaa8e;
  --accent:    #6aaa7a;
  --accent2:   #5a9a6a;
  --accent-bg: rgba(106, 170, 122, 0.12);
  --rose:      #d97a8a;
  --olive:     #8ab88a;
  --gold:      #d4a060;
  --border:    #2e4030;
  --shadow:    0 2px 8px rgba(0,0,0,0.35);
}
html[data-theme="dark"] .ritual-step textarea { background: #131a15; }
html[data-theme="dark"] .akkordeon summary:hover { background: #242e26; }

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ──────────────────────────────────────────────── */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem 1rem;
}

/* ── Brotkrumen ──────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--fg-dim);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--accent); }

/* ── Header ──────────────────────────────────────────────── */
.stoisch-header {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.5rem;
  margin-bottom: 1.25rem;
  border-top: 4px solid var(--accent);
}
.stoisch-header .subtitle {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.stoisch-header h1 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 0.6rem;
}
.stoisch-header .lead {
  color: var(--fg-dim);
  font-size: 0.93rem;
  margin: 0;
}

/* ── Zitat des Tages ─────────────────────────────────────── */
.quote-of-day {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.quote-of-day .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.quote-of-day blockquote {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--fg);
  line-height: 1.65;
}
.quote-of-day cite {
  font-size: 0.82rem;
  color: var(--fg-dim);
  font-style: normal;
}

/* ── Karten ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.card-teaser {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem;
  text-decoration: none;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 3px solid var(--border);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.card-teaser:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(0,0,0,0.12);
  text-decoration: none;
}
.card-teaser .icon { font-size: 1.4rem; }
.card-teaser h3 { font-size: 0.95rem; font-weight: 600; color: var(--fg); margin: 0; }
.card-teaser p  { font-size: 0.82rem; color: var(--fg-dim); margin: 0; line-height: 1.45; }

/* ── Abschnitt-Header ────────────────────────────────────── */
.section-head {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.35rem;
  margin: 1.75rem 0 1rem;
}
.section-head:first-child { margin-top: 0; }

/* ── Zitat-Karten ────────────────────────────────────────── */
.quote-card {
  background: var(--bg-card);
  border-left: 4px solid var(--olive);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.quote-card blockquote {
  margin: 0 0 0.5rem;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.65;
}
.quote-card cite { font-size: 0.8rem; color: var(--fg-dim); font-style: normal; }
.quote-card .tag-label {
  display: inline-block;
  font-size: 0.7rem;
  background: #e0f2f1;
  color: var(--olive);
  border-radius: 20px;
  padding: 1px 8px;
  margin-left: 0.4rem;
}

/* ── Themen-Filter ───────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.28rem 0.85rem;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--fg-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Akkordeon ───────────────────────────────────────────── */
.akkordeon {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.akkordeon summary {
  list-style: none;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  user-select: none;
  transition: background 0.15s;
}
.akkordeon summary::-webkit-details-marker { display: none; }
.akkordeon summary:hover { background: #fafafa; }
.akkordeon[open] summary { border-bottom: 1px solid var(--border); color: var(--accent); }
.akkordeon summary .arrow { margin-left: auto; color: var(--fg-dim); font-size: 0.75rem; transition: transform 0.2s; }
.akkordeon[open] summary .arrow { transform: rotate(180deg); }

.akkordeon-body { padding: 1.25rem; }

.tipp-gedanke {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.6;
  border-radius: 0 4px 4px 0;
}

.tipp-schritte {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: steps;
}
.tipp-schritte li {
  counter-increment: steps;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.55;
}
.tipp-schritte li:last-child { border-bottom: none; }
.tipp-schritte li::before {
  content: counter(steps);
  background: var(--accent);
  color: #fff;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Abend-Ritual ────────────────────────────────────────── */
.ritual-step {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.ritual-step .step-num {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.ritual-step h3 { font-size: 1rem; font-weight: 600; color: var(--fg); margin: 0 0 0.5rem; }
.ritual-step p  { font-size: 0.88rem; color: var(--fg-dim); line-height: 1.65; margin: 0 0 0.75rem; }
.ritual-step textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--fg);
  background: #fafafa;
  resize: vertical;
  line-height: 1.5;
}
.ritual-step textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(216,27,96,0.12);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.25rem;
  font-family: var(--font);
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent2); color: #fff; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ── Geschichten ─────────────────────────────────────────── */
.story-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.story-card .story-meta {
  font-size: 0.75rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.story-card h2 { font-size: 1.1rem; font-weight: 600; color: var(--fg); margin: 0 0 0.9rem; }
.story-card p  { font-size: 0.9rem; line-height: 1.75; color: var(--fg); margin-bottom: 0.75rem; }
.story-card p:last-child { margin-bottom: 0; }
.story-lesson {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  padding: 0.7rem 1rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--fg);
  line-height: 1.6;
  border-radius: 0 4px 4px 0;
}

/* ── Ressourcen ──────────────────────────────────────────── */
.ressource-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.ressource-item:last-child { border-bottom: none; }
.ressource-item .r-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.ressource-item .r-text h4 { margin: 0 0 0.2rem; font-size: 0.92rem; font-weight: 600; color: var(--fg); }
.ressource-item .r-text a { font-size: 0.88rem; }
.ressource-item .r-note { font-size: 0.82rem; color: var(--fg-dim); margin: 0.25rem 0 0; line-height: 1.5; }

/* ── Footer ──────────────────────────────────────────────── */
.stoisch-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--fg-dim);
}

/* ── Druck ───────────────────────────────────────────────── */
@media print {
  body { background: white; }
  .btn, .stoisch-footer, .breadcrumb { display: none; }
  .card, .ritual-step { box-shadow: none; border: 1px solid #ddd; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .stoisch-header h1 { font-size: 1.3rem; }
}

/* ── Theme-Toggle-Button ─────────────────────────────────── */
#hinjas-theme-toggle {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg-dim);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: box-shadow 0.15s;
}
#hinjas-theme-toggle:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
@media print { #hinjas-theme-toggle { display: none; } }
