/* =========================================================
   Leadfluss – LinkedIn Text Generator
   Design system based on the official Leadfluss styleguide
   Font: Jost · Square corners (radius 0) · Signal Green #00C281
   ========================================================= */

/* Self-hosted Jost (variable font) – DSGVO-freundlich, keine Google-Server */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand */
  --signal-green: #00c281;
  --signal-green-hover: #00a870;
  --signal-foreground: #05271c;
  --brand-navy: #232d44;
  --icon-surface: #e3f8ef;

  /* Semantic */
  --background: #ffffff;
  --foreground: #232d44;
  --card: #ffffff;
  --muted: #f4f7f5;
  --muted-foreground: #5d6975;
  --secondary: #f2f6f3;
  --border: #dce3df;
  --ring: #00c281;

  --radius: 0;
  --container: 1120px;

  --font-sans: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(35, 45, 68, 0.05);
  --shadow-md: 0 12px 34px rgba(35, 45, 68, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--foreground);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-green);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--signal-green);
}

.lead {
  font-size: 1.18rem;
  color: var(--muted-foreground);
  max-width: 60ch;
}

.text-green { color: var(--signal-green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.05s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--signal-green);
  color: #ffffff;
}
.btn-primary:hover { background: var(--signal-green-hover); }

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--foreground); }

.btn-ghost {
  background: transparent;
  color: var(--foreground);
}
.btn-ghost:hover { color: var(--signal-green); }

.btn-sm { height: 40px; padding: 0 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--brand-navy);
}
.logo-mark { height: 46px; width: 46px; flex-shrink: 0; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word .lw-top {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand-navy);
}
.logo-word .lw-sub {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--signal-green);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--foreground); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 44px 0 60px;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(0, 194, 129, 0.12), transparent 60%),
    radial-gradient(50% 40% at 5% 90%, rgba(0, 194, 129, 0.08), transparent 60%),
    var(--background);
}
.hero .lead { margin-bottom: 28px; }
.hero-inner { max-width: 820px; margin: 0 auto 26px; text-align: center; }
.hero h1 { margin-bottom: 10px; }
.hero-cta-title {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
  margin: 0 0 18px;
}
.hero-inner .badge-free { margin-bottom: 16px; }
.hl {
  color: var(--signal-green);
  font-weight: 700;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.badge-free {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--icon-surface);
  color: var(--signal-foreground);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.badge-free .dot {
  width: 8px; height: 8px; background: var(--signal-green); border-radius: 50%;
}

/* ---------- Tool ---------- */
.tool { padding: 8px 0 72px; }
.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--foreground);
  margin-bottom: 10px;
}
.tool-input {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 16px 18px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tool-input:focus {
  outline: none;
  border-color: var(--signal-green);
  box-shadow: 0 0 0 3px rgba(0, 194, 129, 0.18);
  background: #fff;
}

.outputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.output-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--background);
}
.output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--secondary);
}
.output-head .name { font-size: 0.85rem; font-weight: 600; }
.output-body {
  flex: 1;
  min-height: 84px;
  padding: 16px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--foreground);
  word-break: break-word;
  white-space: pre-wrap;
}
.output-body.empty { color: var(--muted-foreground); font-style: italic; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
}
.copy-btn:hover { border-color: var(--signal-green); color: var(--signal-green); }
.copy-btn.copied {
  background: var(--signal-green);
  border-color: var(--signal-green);
  color: #fff;
}
.copy-btn svg { width: 15px; height: 15px; }

/* Deaktivierter Zustand + Hover-Hinweis (noch kein Text eingegeben) */
.copy-btn {
  position: relative;
}
.copy-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.copy-btn.is-disabled:hover {
  border-color: var(--border);
  color: var(--foreground);
}
.copy-btn.is-disabled::after {
  content: "Bitte zuerst Text schreiben";
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  padding: 7px 11px;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 30;
}
.copy-btn.is-disabled::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent;
  border-top-color: var(--brand-navy);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 30;
}
.copy-btn.is-disabled:hover::after,
.copy-btn.is-disabled:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tool-hint {
  margin: 20px 0 0;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

/* ---------- Sections ---------- */
.section { padding: 66px 0; }
.section.alt { background: var(--muted); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Intro-Titelblock enger an den nächsten Abschnitt rücken */
#ueber-generator { padding: 52px 0 0; }
#ueber-generator .section-head,
#ueber-generator .lead { margin-bottom: 0; }
#ueber-generator + .section { padding-top: 40px; }

.prose { max-width: 760px; }
.prose h3 { margin-top: 40px; }
.prose h3:first-child { margin-top: 0; }
.prose p { color: #3c4657; }
.prose img {
  border: 1px solid var(--border);
  margin: 22px 0;
  box-shadow: var(--shadow-sm);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 8px;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px 24px;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--icon-surface);
  color: var(--signal-foreground);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted-foreground); font-size: 0.98rem; }

/* Video */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Two-column media */
.media-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.media-split img { border: 1px solid var(--border); box-shadow: var(--shadow-sm); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--foreground);
  text-align: left;
}
.faq-q .icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  position: relative;
  transition: transform 0.25s ease;
}
.faq-q .icon::before, .faq-q .icon::after {
  content: "";
  position: absolute;
  background: var(--signal-green);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-q .icon::before { width: 14px; height: 2px; }
.faq-q .icon::after { width: 2px; height: 14px; transition: transform 0.25s ease; }
.faq-item.open .faq-q .icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner { padding: 0 4px 24px; color: var(--muted-foreground); max-width: 68ch; }

/* ---------- Creator card ---------- */
.creator {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.creator-avatar {
  position: relative;
  flex-shrink: 0;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--icon-surface);
  color: var(--signal-foreground);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
}
.creator-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.creator-body { min-width: 0; }
.creator-body .role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--signal-green);
}
.creator-body h3 { font-size: 1.35rem; margin: 0; }
.creator-body p { margin: 0 0 16px; color: var(--muted-foreground); }
.creator-body .btn svg { width: 17px; height: 17px; }
@media (max-width: 560px) {
  .creator { flex-direction: column; text-align: center; gap: 18px; padding: 26px 22px; }
  .creator-body .role { justify-content: center; }
}

/* ---------- CTA banner ---------- */
.cta {
  padding: 84px 0;
  background:
    radial-gradient(70% 120% at 85% 0%, rgba(0, 194, 129, 0.35), transparent 60%),
    var(--brand-navy);
  color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.75); max-width: 56ch; margin: 0 auto 30px; font-size: 1.15rem; }
.cta .eyebrow { color: #6fe9bd; }
.cta .eyebrow::before { background: #6fe9bd; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 18px; }
.footer-brand .logo-word .lw-top { color: #fff; }
.footer-brand .logo-word .lw-sub { color: #34d399; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; max-width: 34ch; }
.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--signal-green); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: var(--signal-green); }

/* ---------- Legal pages ---------- */
.legal { padding: 60px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--muted-foreground); margin-bottom: 40px; font-size: 0.95rem; }
.legal h2 { font-size: 1.5rem; margin-top: 44px; }
.legal h3 { font-size: 1.15rem; margin-top: 28px; }
.legal p, .legal li { color: #3c4657; }
.legal a { color: var(--signal-green); font-weight: 500; }
.legal ul { padding-left: 20px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted-foreground); font-size: 0.9rem; font-weight: 500;
  margin-bottom: 28px;
}
.back-link:hover { color: var(--signal-green); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--brand-navy);
  color: #fff;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .media-split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .main-nav, .header-actions .btn:not(.btn-keep) { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 1px solid var(--border);
    cursor: pointer;
  }
  .outputs { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tool-card { padding: 22px; }
  .hero { padding: 32px 0 40px; }
  .section { padding: 56px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Mobile nav open */
.main-nav.open {
  display: flex;
  position: absolute;
  top: 74px; left: 0; right: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 24px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.main-nav.open a { padding: 10px 0; width: 100%; }

/* CTA link only inside the mobile dropdown */
.nav-cta { display: none; }
.main-nav.open .nav-cta {
  display: inline-flex !important;
  align-items: center;
  margin-top: 10px;
  padding: 12px 20px;
  width: auto;
  background: var(--signal-green);
  color: #fff !important;
  font-weight: 600;
}
