/* =========================================
   Emiso • Global Styles
   ========================================= */

:root {
  --bg: #050509;
  --bg-soft: #070814;
  --bg-softer: #0b0c1a;
  --border-soft: rgba(148, 163, 184, 0.4);

  --text: #f9fafb;
  --text-muted: #9ca3af;

  --gold: #ffd37f;
  --gold-soft: rgba(255, 211, 127, 0.22);

  --accent: #7dd3fc;

  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;

  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.7);
  --shadow-subtle: 0 16px 40px rgba(15, 23, 42, 0.8);

  --header-height: 72px;
  --max-width: 1120px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #020617 100%);
  color: var(--text);
}

/* Sprache toggeln */

.lang {
  display: inline;
}

html[data-lang="de"] .lang-en {
  display: none !important;
}

html[data-lang="en"] .lang-de {
  display: none !important;
}

/* =========================================
   PAGE LAYOUT
   ========================================= */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

/* =========================================
   HEADER
   ========================================= */

.header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: radial-gradient(circle at top left, rgba(255, 211, 127, 0.06) 0, transparent 38%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12) 0, transparent 40%),
    rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-center {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  font-size: 0.92rem;
}

.header-center a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
}

.header-center a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(to right, var(--gold), var(--accent));
  transition: width 0.18s ease-out;
}

.header-center a:hover {
  color: var(--text);
}

.header-center a:hover::after {
  width: 100%;
}

/* HEADER RIGHT */

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-select {
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text);
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  outline: none;
}

.lang-select option {
  background: #020617;
  color: #f9fafb;
}

.btn-login {
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
}

/* BURGER BUTTON */

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0.3rem;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

/* =========================================
   MOBILE MENU
   ========================================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 30;
}

.mobile-menu-inner {
  width: 260px;
  max-width: 82%;
  background: rgba(10, 14, 27, 0.98);
  border-left: 1px solid rgba(15, 23, 42, 0.95);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.85);
  padding: 1.5rem 1.25rem 1.75rem;
  transform: translateX(100%);
  transition: transform 0.18s ease-out;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu.show {
  pointer-events: auto;
}

.mobile-menu.show .mobile-menu-inner {
  transform: translateX(0%);
}

.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.96rem;
}

.mobile-auth-button {
  width: 100%;
  text-align: center;
}

/* =========================================
   MAIN
   ========================================= */

.main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
}

.main-home {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-home {
  min-height: 52vh;
}

.hero-text h1 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin: 0 0 0.9rem;
}

.hero-text p {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* HERO PILL (rechte Seite) */

.hero-pill {
  display: flex;
  justify-content: flex-end;
}

.hero-pill-inner {
  position: relative;
  background: radial-gradient(circle at top, rgba(255, 211, 127, 0.25) 0, rgba(15, 23, 42, 0.95) 45%, #020617 100%);
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.9rem;
  max-width: 360px;
  width: 100%;
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-soft);
}

.pill-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  margin-top: 0.25rem;
  color: var(--text-muted);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #4ade80 0, #16a34a 45%, #052e16 100%);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.9);
}

.pill-text {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: #e5e7eb;
}

/* SECTION INTRO ("Warum wir Emie bauen") */

.section-intro {
  margin-top: 3.2rem;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-intro h2 {
  margin: 0 0 0.7rem;
  font-size: 1.55rem;
}

.section-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* SECTION GRID */

.section-grid {
  margin-top: 2.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.feature-grid {
  margin-bottom: 0.5rem;
}

.card {
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.12) 0, rgba(15, 23, 42, 0.96) 40%, #020617 100%);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
  border-color: rgba(148, 163, 184, 0.9);
}

.card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================================
   BUTTONS
   ========================================= */

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn-primary {
  background: radial-gradient(circle at top left, #fbbf24 0, #eab308 30%, #f97316 100%);
  color: #0b0b10;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(251, 191, 36, 0.48);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.btn-secondary:hover {
  border-color: rgba(249, 250, 251, 0.85);
}

/* =========================================
   FOOTER + FOOTER NAV
   ========================================= */

.footer {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0.9rem 1.25rem 1.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(15, 23, 42, 0.95);
}

.footer-dot {
  opacity: 0.5;
}

/* Neuer Footer mit Navigation */

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
  padding-top: 0.8rem;
}

.footer-col h4 {
  margin: 0 0 0.6rem;
  font-size: 0.88rem;
  color: #e5e7eb;
}

.footer-col a {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.3rem;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.78rem;
}

/* =========================================
   AUTH MODAL
   ========================================= */

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 9, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.auth-modal-backdrop.open {
  display: flex;
}

.auth-modal {
  background: var(--bg-soft);
  border-radius: 1rem;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
  max-width: 420px;
  width: 90%;
  padding: 1.75rem 1.6rem 1.8rem;
  position: relative;
}

.auth-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.auth-modal h2 {
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
}

.auth-modal-sub {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Tabs */

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.auth-tab-active {
  border-color: var(--gold);
  color: var(--gold);
  background: radial-gradient(circle at top, #fff2cc 0, rgba(255, 211, 127, 0.12) 40%, transparent 100%);
}

/* Forms */

.auth-form {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-form-active {
  display: flex;
}

.auth-form label span {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.auth-form input {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: var(--bg-softer);
  color: var(--text);
  font-size: 0.9rem;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 211, 127, 0.5);
}

.auth-submit {
  margin-top: 0.4rem;
}

/* Divider */

.auth-divider {
  margin: 1rem 0 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Social */

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.auth-social-btn {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: var(--bg-softer);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-social-btn.auth-google {
  background: #ffffff;
  color: #111827;
}

.auth-social-btn.auth-apple {
  background: #0f172a;
  color: #f9fafb;
}

/* Wenn Modal offen ist, Emie-Widget ausblenden */

.has-auth-open .emie-widget {
  opacity: 0;
  pointer-events: none;
}

/* =========================================
   EMIE FLOATING WIDGET
   ========================================= */

.emie-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 35;
  border-radius: 999px;
  border: 1px solid rgba(255, 211, 127, 0.5);
  background: radial-gradient(circle at top left, rgba(255, 211, 127, 0.18) 0, rgba(15, 23, 42, 0.98) 45%, #020617 100%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.95rem 0.5rem 0.5rem;
  cursor: pointer;
  border-width: 1px;
}

.emie-widget-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, #facc15 0, #f97316 45%, #111827 100%);
  overflow: hidden;
}

.emie-widget-inner {
  width: 18px;
  height: 18px;
  border-radius: 40%;
  border: 1px solid rgba(15, 23, 42, 0.9);
  background: rgba(15, 23, 42, 0.4);
}

.emie-widget-pulse {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.2);
  animation: emie-pulse 1.8s ease-out infinite;
}

@keyframes emie-pulse {
  0% {
    opacity: 0.9;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

.emie-widget-text {
  text-align: left;
}

.emie-widget-title {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.emie-widget-line {
  font-size: 0.78rem;
  color: #e5e7eb;
  max-width: 220px;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {
  .header-center {
    display: none;
  }

  .btn-login {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-pill {
    justify-content: flex-start;
    margin-top: 1.1rem;
  }

  .section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.2rem;
  }

  .emie-widget {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .main {
    padding-top: 1.6rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-pill-inner {
    padding: 1.3rem 1.25rem;
  }

  .section-intro {
    margin-top: 2.5rem;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .emie-widget {
    right: 0.75rem;
    bottom: 0.75rem;
    padding-right: 0.8rem;
  }

  .emie-widget-line {
    max-width: 170px;
    font-size: 0.72rem;
  }
}

