/* ============================================
   World of Mind — Fantasy Pergament Design
   ============================================ */

:root {
  --gold: #b8862f;
  --gold-light: #d4a94f;
  --gold-dark: #8a621e;
  --ember: #b3452b;
  --ember-dark: #8f3520;
  --parchment: #faf3df;
  --parchment-dark: #f0e6c8;
  --parchment-darker: #e5d7b0;
  --ink: #3a2f1d;
  --ink-light: #6b5d42;
  --brown-dark: #2b2118;

  --font-head: 'Fraunces', serif;
  --font-body: 'Lora', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--brown-dark);
  margin: 0 0 12px;
}

a { text-decoration: none; color: inherit; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER / NAV ============ */
header.site {
  background: var(--parchment-dark);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brown-dark);
}

.logo-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-crumb.sub {
  font-size: 1rem;
  color: var(--ember);
}

.logo-mark { width: 22px; height: 22px; }

.dot { color: var(--ember); }
.sep { color: var(--ink-light); opacity: 0.5; }

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-light);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ember); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--ember);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--ember-dark);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold-dark) !important;
}

.btn.ghost:hover {
  background: var(--gold);
  color: #fff !important;
}

.btn.block {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px;
  font-size: 1rem;
}

/* ============ PROFILE DROPDOWN ============ */
.profile-dropdown { position: relative; }

.profile-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--parchment-darker);
  border: 2px solid var(--gold);
  border-radius: 30px;
  padding: 6px 16px 6px 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brown-dark);
}

.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ember);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.profile-menu {
  display: none;
  position: absolute;
  top: 115%;
  right: 0;
  background: var(--parchment);
  border: 2px solid var(--gold);
  border-radius: 8px;
  overflow: hidden;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.profile-menu.open { display: block; }

.profile-menu a {
  display: block;
  padding: 12px 18px;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  color: var(--ink);
  border-bottom: 1px solid var(--parchment-darker);
}

.profile-menu a:last-child { border-bottom: none; }
.profile-menu a:hover { background: var(--parchment-dark); }

/* ============ HERO ============ */
.hero {
  padding: 90px 24px 70px;
  text-align: center;
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-dark) 100%);
}

.hero h1 {
  font-size: 3rem;
  max-width: 800px;
  margin: 0 auto 18px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-light);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ============ PARCHMENT CARD (mit Nieten) ============ */
.parchment {
  position: relative;
  background: var(--parchment);
  border: 2px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(58,47,29,0.12);
}

.rivet-t1, .rivet-t2, .rivet-b1, .rivet-b2 {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.rivet-t1 { top: 10px; left: 10px; }
.rivet-t2 { top: 10px; right: 10px; }
.rivet-b1 { bottom: 10px; left: 10px; }
.rivet-b2 { bottom: 10px; right: 10px; }

/* ============ FEATURES / SECTIONS ============ */
section { padding: 80px 24px; }

section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

section p.section-lead {
  text-align: center;
  color: var(--ink-light);
  max-width: 600px;
  margin: 0 auto 50px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  padding: 32px 26px;
  text-align: left;
}

.feature-card h3 { font-size: 1.25rem; }
.feature-card p { color: var(--ink-light); font-size: 0.95rem; }

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--brown-dark);
  color: var(--parchment);
  text-align: center;
  padding: 70px 24px;
}

.cta-band h2 { color: var(--parchment); }
.cta-band p { color: var(--parchment-darker); margin-bottom: 30px; }
.cta-band .btn.ghost { border-color: var(--gold-light); color: var(--gold-light) !important; }

/* ============ FOOTER ============ */
footer {
  background: var(--brown-dark);
  color: var(--parchment-darker);
  padding: 30px 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ FORMS (Login/Register) ============ */
.form-outer {
  display: flex;
  justify-content: center;
  padding: 70px 24px;
  min-height: 60vh;
}

.form-card {
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
}

.form-card h2 { text-align: center; }

.sub-text {
  text-align: center;
  color: var(--ink-light);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--parchment-darker);
  border-radius: 6px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 22px;
}

.form-row a { color: var(--ember); font-weight: 600; }

.form-msg {
  margin-top: 14px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 20px;
}

.form-msg.error { color: var(--ember); }
.form-msg.success { color: #2e7d32; }

.form-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--ink-light);
}

.form-footer a { color: var(--ember); font-weight: 600; }

/* ============ PROFIL-SEITE ============ */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  margin-bottom: 30px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ember);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
}

.profile-header .email {
  color: var(--ink-light);
  font-size: 0.9rem;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--parchment-darker);
}

.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-light);
  cursor: pointer;
}

.tab-btn.active {
  color: var(--ember);
  border-bottom-color: var(--ember);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.char-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.char-card {
  padding: 22px;
  position: relative;
}

.char-card h4 { margin-bottom: 4px; }
.char-card .meta { color: var(--ink-light); font-size: 0.85rem; margin-bottom: 12px; }

.lvl-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.empty-state {
  text-align: center;
  color: var(--ink-light);
  font-style: italic;
}

/* ============ HAMBURGER MENU (Mobile Nav) ============ */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hamburger-btn { display: flex; }

  .nav { position: relative; flex-wrap: wrap; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--parchment-dark);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--parchment-darker);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .hero h1 { font-size: 2.1rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .profile-header {
    flex-wrap: wrap;
    padding: 20px;
    gap: 12px;
  }

  .tabs {
    flex-wrap: wrap;
  }
}

