/* Wochenküche v2 — Skeleton-Styles
 * Farbschema 1:1 aus v1.3 übernommen, leichte Anpassungen für Profil-Wähler.
 */

:root {
  --bg: #1a0f0a;
  --bg2: #231510;
  --panel: rgba(255, 255, 255, 0.04);
  --panel2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-active: rgba(240, 160, 64, 0.5);
  --text: #f5eee2;
  --text-dim: #c9a87a;
  --text-dimmer: #8b7355;
  --accent: #f0a040;
  --accent2: #e85d04;
  --red: #e74c3c;
  --overlay: rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  color: var(--text);
  font-family: 'Georgia', 'Iowan Old Style', serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

button, input { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

.hidden { display: none !important; }

/* ===== Profil-Wähler (Vollbild-Overlay) ===== */
.profile-picker {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.profile-picker-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.profile-picker-logo {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
}
.profile-picker-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--accent);
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}
.profile-picker-question {
  font-size: 16px;
  color: var(--text-dim);
  margin: 0 0 24px 0;
}
.profile-picker-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-btn {
  width: 100%;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: bold;
  transition: background 0.15s, border-color 0.15s;
}
.profile-btn:hover,
.profile-btn:active {
  background: var(--panel2);
  border-color: var(--border-active);
}
.profile-picker-hint {
  margin: 24px 0 0 0;
  font-size: 11px;
  color: var(--text-dimmer);
}

/* ===== App-Shell ===== */
.app { padding: 0; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 10, 5, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px 12px;
}
.title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}
.title {
  font-size: 22px;
  font-weight: bold;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.sub {
  font-size: 11px;
  color: var(--text-dimmer);
  margin-top: 2px;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}

.tabs { display: flex; gap: 4px; }
.tab {
  flex: 1;
  padding: 9px 4px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--text-dim);
  font-size: 13px;
  transition: all 0.15s;
}
.tab.active {
  background: var(--accent);
  color: var(--bg);
  font-weight: bold;
}

.content { padding: 14px 14px 100px; }

/* Empty-State (Stub) */
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-dim);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-title { font-size: 18px; font-weight: bold; margin-bottom: 8px; color: var(--text); }
.empty-hint { font-size: 13px; line-height: 1.5; }
.empty-hint code {
  background: var(--panel);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* ===== Profil-Wechsel-Menü ===== */
.profile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--overlay);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.profile-menu-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg2);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 20px 20px 28px;
  border: 1px solid var(--border);
}
.profile-menu-title {
  margin: 0 0 14px 0;
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
}
.profile-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.profile-menu-cancel {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dimmer);
  font-size: 14px;
}
