/* ═══════════════════════════════════════════════
   CIVITASAI – Editorial Design System
   Basis-CSS für alle Seiten (Konzept B)
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=DM+Serif+Display:ital@0;1&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #fafaf8;
  --bg2:        #f3f2ef;
  --surface:    #ffffff;
  --border:     #e5e2db;
  --border-lt:  #eeece8;
  --text:       #1a1917;
  --text2:      #57534e;
  --text3:      #a8a29e;
  --red:        #c0392b;
  --red-h:      #e74c3c;
  --dark:       #1a1917;
  --green:      #15803d;
  --green-bg:   #f0fdf4;
  --green-bd:   #bbf7d0;
}

html { font-family: 'DM Sans', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 16px; }
body { min-height: 100vh; overflow-x: hidden; }

/* ── TOP BAR ── */
.top-bar {
  background: var(--dark); color: rgba(255,255,255,.7);
  padding: 9px 24px; font-size: .72rem; font-weight: 500; letter-spacing: .04em;
  text-align: center; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 5px #4ade80;
  display: inline-block; animation: pulse 2s infinite; flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }

/* ── HEADER ── */
header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 66px;
}

/* ── LOGO ── */
.logo { text-decoration: none; display: inline-flex; align-items: baseline; gap: 3px; }
.logo-civitas { font-family: 'DM Serif Display', serif; font-style: italic; font-size: 1.35rem; color: var(--text); line-height: 1; }
.logo-ai {
  font-family: 'DM Sans', sans-serif; font-size: .7rem; font-weight: 700;
  color: #fff; background: var(--red); padding: 2px 6px;
  border-radius: 3px; letter-spacing: .05em; vertical-align: middle;
  position: relative; top: -1px;
}

nav { display: flex; gap: 28px; align-items: center; }
nav a { color: var(--text2); text-decoration: none; font-size: .875rem; font-weight: 500; transition: color .2s; }
nav a:hover, nav a.active { color: var(--text); }

.btn-nav {
  background: var(--dark); color: #fff; border: none; cursor: pointer;
  padding: 9px 20px; border-radius: 6px; font-size: .85rem; font-weight: 600;
  font-family: inherit; letter-spacing: .01em; transition: background .2s;
}
.btn-nav:hover { background: #2c2a27; }

/* ── MAIN CONTAINER ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ── SECTION LABEL ── */
.section-head {
  display: flex; align-items: center; gap: 12px;
  padding: 44px 0 22px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 0;
}
.section-label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text2); }
.badge { font-size: .68rem; font-weight: 700; padding: 3px 10px; border-radius: 4px; }
.badge-live { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-bd); }
.badge-soon { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-locked { background: #ede9fe; color: #5b21b6; border: 1px solid #ddd6fe; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; background: var(--red); color: #fff; border: none; cursor: pointer;
  padding: 13px 26px; border-radius: 6px; font-size: .9rem; font-weight: 600;
  font-family: inherit; text-decoration: none; transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--red-h); transform: translateY(-1px); }
.btn-outline {
  display: inline-block; background: transparent; color: var(--text); border: 1px solid var(--border);
  cursor: pointer; padding: 13px 26px; border-radius: 6px; font-size: .9rem;
  font-weight: 500; font-family: inherit; text-decoration: none; transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--text2); color: var(--text); }

/* ── STATUS ── */
.status { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--green); }

/* ── FOOTER ── */
footer { border-top: 2px solid var(--text); padding: 48px 32px 32px; background: var(--bg); margin-top: 80px; }
.footer-grid {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 32px;
}
.footer-brand { font-family: 'DM Serif Display', serif; font-style: italic; font-size: 1.2rem; color: var(--text); margin-bottom: 8px; }
.footer-brand em { color: var(--red); font-style: normal; }
.footer-tagline { font-size: .82rem; color: var(--text3); line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text2); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text3); text-decoration: none; font-size: .875rem; margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1120px; margin: 0 auto;
  padding-top: 20px; border-top: 1px solid var(--border-lt);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: .75rem; color: var(--text3);
}

/* ═══════════════════════════════════════
   MOBILE NAV (Hamburger)
   ═══════════════════════════════════════ */
.hamburger-toggle { display:none; background:none; border:none; cursor:pointer; padding:8px; z-index:110; }
.hamburger-toggle span { display:block; width:22px; height:2px; background:var(--text); margin:5px 0; border-radius:1px; transition:.25s; }

/* ═══════════════════════════════════════
   MOBILE — shared breakpoints
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav */
  .nav-inner { padding: 0 16px; height: 58px; position:relative; }
  .hamburger-toggle { display:block; }
  nav { display:none; position:absolute; top:58px; left:0; right:0; background:var(--surface); border-bottom:1px solid var(--border); padding:12px 16px 20px; box-shadow:0 8px 24px rgba(0,0,0,.08); }
  header.menu-open nav { display:flex; flex-direction:column; gap:6px; }
  nav a { padding:10px 0; border-bottom:1px solid var(--border-lt); font-size:.95rem; }
  nav a:last-child { border-bottom:none; }
  .btn-nav { font-size: .8rem; padding: 8px 14px; }

  /* Container */
  .container { padding: 0 16px; }

  /* Buttons */
  .btn-primary, .btn-outline { padding: 12px 20px; font-size: .875rem; }

  /* Section heads */
  .section-head { padding: 32px 0 16px; }

  /* Footer */
  footer { padding: 40px 16px 24px; margin-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-tagline { max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
}
