/* ============================================================
   Mental Helpy — Landing Page Stylesheet
   Design tokens inherited from core project (Inter, cream/beige)
   ============================================================ */

:root {
  --color-dark: #333333;
  --color-beige: #C8B8AA;
  --color-beige-light: #DDD0C4;
  --color-cream: #FFF8F0;
  --color-white: #FFFFFF;
  --text-primary: #333333;
  --text-muted: #888888;
  --border-color: #E8D8CA;
  --user-bubble-bg: #FDEBD3;
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Scroll Reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Background Logo ========== */
.bg-logo-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  width: 210vw;
  overflow: visible;
}

.bg-logo {
  width: 100%;
  height: auto;
  opacity: 0.04;
  animation: bgFloat 100s ease-in-out infinite;
  filter: grayscale(100%) brightness(0.85);
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(30px, -40px) rotate(1.5deg) scale(1.01); }
  50% { transform: translate(-20px, 25px) rotate(-1deg) scale(0.99); }
  75% { transform: translate(35px, 30px) rotate(1deg) scale(1.01); }
}

/* Ensure all content sits above bg-logo */
.nav, .hero, .video-section, .kernpunkte, .kontakt, .footer {
  position: relative;
  z-index: 1;
  background: var(--color-cream);
}

.funktionsweise {
  position: relative;
  z-index: 1;
}

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo {
  width: 24px;
  height: 24px;
}

.nav-brand:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:not(.nav-btn)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--text-primary);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:not(.nav-btn):hover::after {
  width: 100%;
}

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

.nav-btn {
  padding: 8px 20px !important;
  background: var(--text-primary);
  color: var(--color-white) !important;
  border-radius: 10px;
  font-weight: 600 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(51, 51, 51, 0.2);
  color: var(--color-white) !important;
}

.nav-btn:active {
  transform: translateY(0);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.2s ease;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--color-white);
  border-color: var(--text-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 51, 51, 0.18);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: #f5ede5;
  border-color: var(--color-beige);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 184, 170, 0.15);
}

.btn-full {
  width: 100%;
}

/* ========== Hero ========== */
.hero {
  padding: 140px 0 80px;
  text-align: center;
}

.hero-content {
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.hero-logo {
  width: 220px;
  height: 220px;
  margin-bottom: 24px;
  transition: transform 0.15s ease-out;
  will-change: transform;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.typewriter-visible {
  color: var(--text-primary);
}

.typewriter-hidden {
  color: transparent;
}

.hero-headline.typewriter-active .typewriter-visible::after {
  content: '|';
  font-weight: 300;
  color: var(--color-beige);
  animation: cursorBlink 0.6s step-end infinite;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 36px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== Video ========== */
.video-section {
  padding: 40px 0 80px;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border-color);
  background: #000;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.video-wrapper:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========== Section shared ========== */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 540px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 48px;
}

/* ========== Kernpunkte (3 cards) ========== */
.kernpunkte {
  padding: 80px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--color-beige);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.card:hover .card-number {
  color: var(--text-primary);
}

.card-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ========== Funktionsweise ========== */
.funktionsweise {
  padding: 80px 0;
  background: var(--color-white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.funktionsweise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.step {
  padding-left: 20px;
  border-left: 2px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.step:hover {
  border-left-color: var(--text-primary);
}

.step:hover .step-number {
  color: var(--text-primary);
}

.step-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-beige);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ========== Phone Mockup ========== */
.phone-mockup {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 100px;
}

.phone-frame {
  width: 300px;
  background: var(--color-cream);
  border: 2px solid var(--border-color);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.phone-frame:hover {
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.phone-notch {
  width: 100px;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  margin: 4px auto 12px;
}

.phone-screen {
  background: var(--color-white);
  border-radius: 24px;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  flex-shrink: 0;
}

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

.mockup-chat {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
  min-height: 320px;
}

.mockup-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.78rem;
  line-height: 1.5;
  max-width: 85%;
  word-wrap: break-word;
}

.mockup-bot {
  background: transparent;
  color: var(--text-primary);
  align-self: flex-start;
  padding: 4px 0;
}

.mockup-user {
  background: var(--user-bubble-bg);
  color: var(--text-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.mockup-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.mockup-action-btn {
  display: block;
  text-align: center;
  padding: 8px 14px;
  background: var(--color-white);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.mockup-action-btn:hover {
  background: #f5ede5;
  border-color: var(--color-beige);
}

/* Typing dots animation */
.mockup-typing-dots {
  display: flex;
  gap: 4px;
  padding: 10px 14px !important;
  align-self: flex-start;
}

.mockup-typing-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-beige);
  animation: dotPulse 1.2s ease-in-out infinite;
}

.mockup-typing-dots .dot:nth-child(2) {
  animation-delay: 0.15s;
}

.mockup-typing-dots .dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dotPulse {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.85); }
  30% { opacity: 1; transform: scale(1); }
}

/* Mockup input bar */
.mockup-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.mockup-input-field {
  flex: 1;
  background: var(--color-cream);
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  padding: 8px 14px;
  font-size: 0.72rem;
  color: var(--text-primary);
  min-height: 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.mockup-cursor {
  font-size: 0.72rem;
  white-space: nowrap;
}

.mockup-input-field.typing .mockup-cursor::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--text-primary);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.6s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.mockup-send-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ========== Kontakt / Newsletter ========== */
.kontakt {
  padding: 80px 0;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 36px;
  align-items: start;
}

.kontakt-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-white);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: default;
}

.tag:hover {
  transform: translateY(-2px);
  border-color: var(--color-beige);
  color: var(--text-primary);
}

.kontakt-form-wrapper {
  background: var(--color-white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.3s ease;
}

.kontakt-form-wrapper:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}

.form-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.form-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--color-cream);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--color-beige);
  box-shadow: 0 0 0 3px rgba(200, 184, 170, 0.2);
  transform: translateY(-1px);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
}

.form-select option[disabled] {
  color: var(--text-muted);
}

.form-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: successPop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.success-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 8px;
}

/* ========== Footer ========== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: rotate(15deg) scale(1.1);
}

.footer-brand strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.footer-brand p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.footer-links a:hover::after {
  width: 100%;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .funktionsweise-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .phone-mockup {
    position: static;
  }

  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 248, 240, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }

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

  .nav-mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 110px 0 60px;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-logo {
    width: 160px;
    height: 160px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .phone-frame {
    width: 260px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
  }
}
