/* Biorhythmus-Page — net-worx Look (cremeweiss + gold + teal) */
:root {
  --bg: #fffbf3;
  --bg-soft: #faf6ee;
  --bg-card: #ffffff;
  --ink: #2a2620;
  --ink-soft: #6b6253;
  --gold: #b89556;
  --gold-deep: #8a6b3a;
  --gold-soft: #e1c98c;
  --teal: #1f4d44;
  --border: #ead9b8;
  --shadow: 0 4px 16px rgba(184, 149, 86, 0.08);
}
body { background: var(--bg); margin: 0; font-family: "Inter", sans-serif; color: var(--ink); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

.bio-hero {
  padding: 50px 0 36px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.bio-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 48px;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 14px;
  letter-spacing: 0.005em;
}
.bio-hero h1 em { color: var(--gold-deep); font-style: italic; }
.bio-hero .lead { max-width: 720px; margin: 0 auto; color: var(--ink-soft); line-height: 1.6; }

.bio-section { padding: 40px 0; }
.bio-section h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px; font-weight: 600;
  color: var(--teal); margin: 0 0 6px;
}
.bio-section .micro { color: var(--ink-soft); font-size: 13px; margin: 0 0 18px; line-height: 1.55; }

/* FORM */
form { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 160px 1fr; gap: 28px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
@media (max-width: 700px) { .form-cols { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-field.form-wide { grid-column: 1 / -1; }
.field-label { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.form-field input {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 14px; background: var(--bg-soft);
}
.form-field input:focus { outline: none; border-color: var(--gold); background: #fff; }

.photo-zone {
  width: 160px; height: 160px; border-radius: 12px;
  border: 2px dashed var(--gold-soft); background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; overflow: hidden;
}
.photo-zone:hover { border-color: var(--gold); }
.photo-zone.has-photo { border-style: solid; }
.photo-zone img { width: 100%; height: 100%; object-fit: cover; display: none; }
.photo-zone.has-photo img { display: block; }
.photo-zone.has-photo .photo-hint { display: none; }
.photo-hint { font-size: 11px; color: var(--ink-soft); text-align: center; padding: 12px; }

.form-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.checkbox-line { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-soft); }
.checkbox-line input { margin: 0; accent-color: var(--gold); }

.btn { font-family: inherit; font-weight: 600; padding: 10px 22px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; font-size: 14px; }
.btn-big { padding: 14px 30px; font-size: 15px; margin-top: 10px; }
.btn-primary { background: var(--gold); color: white; }
.btn-primary:hover { background: var(--gold-deep); }
.btn-secondary { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal); color: white; }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--border); }
.btn-ghost:hover { color: var(--ink); border-color: var(--gold); }

/* STEUERUNG — Bezugsdatum + Zeitraum */
.bio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  align-items: flex-end;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.ctrl-block { display: flex; flex-direction: column; gap: 9px; }
.ctrl-label {
  font-size: 12px; color: var(--ink-soft); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.bio-controls input[type="date"] {
  padding: 9px 13px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 14px; background: var(--bg-soft); color: var(--ink);
}
.bio-controls input[type="date"]:focus {
  outline: none; border-color: var(--gold); background: #fff;
}
.range-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.range-btn {
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 15px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--ink-soft);
  transition: all 0.15s ease;
}
.range-btn:hover { border-color: var(--gold); color: var(--ink); }
.range-btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ERGEBNIS */
.bio-greeting {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  color: var(--teal);
  text-align: center;
  margin-bottom: 32px;
}
.bio-greeting img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 14px; border: 2px solid var(--gold-soft); }

.bio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  padding: 26px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.curve-wrap { background: var(--bg-soft); border-radius: 8px; padding: 12px; margin-bottom: 12px; overflow-x: auto; }
.curve-wrap canvas { width: 100%; max-width: 900px; height: 320px; display: block; }
.curve-legend { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.curve-legend .lg { display: flex; align-items: center; gap: 6px; }
.curve-legend .lg i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.curve-legend .lg-phys i { background: #c0392b; }
.curve-legend .lg-emo  i { background: #5dade2; }
.curve-legend .lg-int  i { background: #27ae60; }

.bio-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 600px) { .bio-stats { grid-template-columns: 1fr; } }
.bio-stat { background: var(--bg-soft); border-radius: 8px; padding: 14px 16px; border-left: 4px solid var(--gold); }
.bio-stat-name { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.bio-stat-val { font-family: "Cormorant Garamond", serif; font-size: 26px; color: var(--teal); margin: 4px 0; font-weight: 600; }
.bio-stat-phase { font-size: 12px; color: var(--ink-soft); font-style: italic; }
.bio-stat.physical { border-left-color: #c0392b; }
.bio-stat.emotional { border-left-color: #5dade2; }
.bio-stat.intellectual { border-left-color: #27ae60; }

/* Tages-Planet */
.planet-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.planet-circle { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-family: "Cormorant Garamond", serif; font-size: 30px; font-weight: 600; }
.planet-name { font-family: "Cormorant Garamond", serif; font-size: 30px; color: var(--teal); font-weight: 600; }
.planet-thema { color: var(--ink-soft); font-style: italic; font-size: 14px; }

.planet-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 700px) { .planet-lists { grid-template-columns: 1fr; } }
.list-block h4 { font-family: "Cormorant Garamond", serif; font-size: 20px; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--gold-soft); }
.list-block.nutze h4 { color: #1f6240; border-bottom-color: #a8d6b8; }
.list-block.vermeide h4 { color: #a93226; border-bottom-color: #e8a89e; }
.list-block ul { list-style: none; padding: 0; margin: 0; }
.list-block li { padding: 6px 0 6px 22px; position: relative; font-size: 14px; line-height: 1.5; }
.list-block.nutze li::before { content: "+"; color: #27ae60; font-weight: 700; position: absolute; left: 0; }
.list-block.vermeide li::before { content: "−"; color: #c0392b; font-weight: 700; position: absolute; left: 0; }

/* 7-Tage-Vorschau */
.week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
@media (max-width: 700px) { .week-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); } }
.day-card { background: var(--bg-soft); border-radius: 8px; padding: 12px 10px; text-align: center; border: 1px solid var(--border); border-top: 3px solid var(--gold); }
.day-card.today { background: linear-gradient(180deg, #fff8e8, #fef0d2); border-top-color: var(--gold-deep); box-shadow: var(--shadow); }
.day-card.is-today { outline: 2px solid var(--teal); outline-offset: -2px; }
.day-card .d-date { font-size: 11px; color: var(--ink-soft); }
.day-card .d-weekday { font-weight: 600; font-size: 13px; margin: 4px 0; color: var(--teal); }
.day-card .d-planet { font-family: "Cormorant Garamond", serif; font-size: 16px; font-weight: 600; }
.day-card .d-bio { display: flex; gap: 4px; justify-content: center; margin-top: 6px; }
.day-card .d-bio span { width: 18px; height: 18px; border-radius: 50%; font-size: 9px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; }
.d-bio .b-phys { background: #c0392b; }
.d-bio .b-emo  { background: #5dade2; }
.d-bio .b-int  { background: #27ae60; }

.bio-actions { text-align: center; margin-top: 16px; display: flex; gap: 8px; justify-content: center; }

.bio-footer { text-align: center; padding: 24px; color: var(--ink-soft); font-size: 12px; border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 40px; }
.bio-footer a { color: var(--gold-deep); }
