/* ============================================================
   KOSTENLOSE PRAXISANALYSE - landing page + the modal form it opens.
   Reuses existing tokens/components (leistung-vorteile-card, leistung-timeline,
   faq-3) from leistungen.css/hero-scroll.css - only the modal itself is new.
   ============================================================ */

.analyse-cta-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Buttons: the shared .button-sekund-r ghost style (transparent
   bg + white border) is meant to sit on a dark section next to a solid
   sibling button - used alone here it rendered with no visible border at
   all. These two are solid instead, matching the provided design. ---------- */
.analyse-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: Lato, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.analyse-btn:hover {
  filter: brightness(0.92);
}

.analyse-btn-accent {
  background-color: var(--tertiär);
  color: #fff;
}

.analyse-btn-primary {
  background-color: var(--primär);
  color: #fff;
}

/* ---------- Hero: smaller gradient card + solid accent CTA, matching the
   provided design more closely than the shared .leistung-hero-card (which
   is taller and pairs with the ghost button style). ---------- */
.analyse-hero {
  background-color: #fff;
  padding: 10px 0 0;
}

.analyse-hero-card {
  background: linear-gradient(135deg, var(--primär) 0%, #123e9e 55%, var(--sekundär) 100%);
  border-radius: 24px;
  padding: 64px 64px 56px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.analyse-hero-card::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 30%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff22, transparent 70%);
  z-index: 0;
}

.analyse-hero-text {
  position: relative;
  z-index: 1;
}

.analyse-hero-text p {
  max-width: 620px;
}

@media screen and (max-width: 767px) {
  .analyse-hero {
    padding: 10px 0 0;
  }

  .analyse-hero-card {
    padding: 40px 28px;
  }
}

/* ---------- Card grid shared by the "3 Bereiche" and "Ablauf" sections:
   plain white cards with a thin border, no heavy shadow. ---------- */
.analyse-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.analyse-card {
  background-color: #fff;
  border: 1px solid #0b2c561a;
  border-radius: 20px;
  padding: 32px 28px;
}

.analyse-card h3 {
  font-family: Clashdisplay, Verdana, sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--black);
  margin: 0 0 20px;
}

.analyse-card p {
  color: var(--black);
  opacity: 0.75;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.analyse-card-num {
  font-family: Clashdisplay, Verdana, sans-serif;
  font-weight: 500;
  font-size: 2.5rem;
  color: var(--grey);
  margin-bottom: 18px;
}

.analyse-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--tertiär);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Clashdisplay, Verdana, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.analyse-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analyse-checklist li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--black);
  opacity: 0.75;
}

.analyse-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--tertiär);
  font-weight: 700;
}

@media screen and (max-width: 900px) {
  .analyse-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Team entries: plain photo + text on the section's own muted
   background, no extra card box around each entry. ---------- */
.analyse-team-entry {
  display: flex;
  align-items: center;
  gap: 22px;
}

.analyse-team-entry h3 {
  font-family: Clashdisplay, Verdana, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--black);
  margin: 0 0 6px;
}

.analyse-team-entry p {
  color: var(--black);
  opacity: 0.75;
  font-size: 0.92rem;
  margin: 0;
}

@media screen and (max-width: 700px) {
  .analyse-team-entry {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Report section: the inverse of .leistung-vorteile (muted cards on
   a white section, instead of white cards on a muted section). ---------- */
.leistung-report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.leistung-report-card {
  background-color: var(--quatär);
  border-radius: 16px;
  padding: 28px 26px;
}

.leistung-report-card h4 {
  font-family: Clashdisplay, Verdana, sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--black);
  margin: 0 0 10px;
}

.leistung-report-card p {
  color: var(--black);
  opacity: 0.75;
  font-size: 0.92rem;
  margin: 0;
}

@media screen and (max-width: 900px) {
  .leistung-report-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Team section grid + photo (entry styling is .analyse-team-entry, below) ---------- */
.leistung-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.leistung-team-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

@media screen and (max-width: 700px) {
  .leistung-team-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sticky bottom CTA bar, shown once the visitor has scrolled
   past the hero (js/analyse-sticky.js toggles .is-visible). ---------- */
.analyse-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: #fff;
  border-top: 1px solid var(--line-cool, #e3e7ef);
  box-shadow: 0 -12px 30px -20px #0b2c5640;
  padding: 14px var(--content-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.analyse-sticky-bar.is-visible {
  transform: translateY(0);
}

.analyse-sticky-text {
  font-family: Clashdisplay, Verdana, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--black);
  white-space: nowrap;
}

.analyse-sticky-btn {
  flex-shrink: 0;
  background-color: var(--primär);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: Lato, sans-serif;
  transition: background-color 0.15s ease;
}

.analyse-sticky-btn:hover {
  background-color: var(--sekundär);
}

@media screen and (max-width: 700px) {
  .analyse-sticky-text {
    display: none;
  }

  .analyse-sticky-bar {
    justify-content: center;
  }
}

/* ---------- modal ---------- */

.analyse-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: #0b2c56b3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.analyse-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.analyse-modal-box {
  background-color: #fff;
  border-radius: 20px;
  padding: 40px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.analyse-modal-overlay.is-open .analyse-modal-box {
  transform: translateY(0);
}

.analyse-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: var(--quatär);
  color: var(--black);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analyse-modal-close:hover {
  background-color: var(--primär);
  color: #fff;
}

.analyse-modal-box h3 {
  font-family: Clashdisplay, Verdana, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--black);
  margin: 0 0 8px;
  padding-right: 30px;
}

.analyse-modal-box .analyse-modal-sub {
  font-family: Lato, sans-serif;
  font-size: 0.92rem;
  color: var(--black);
  opacity: 0.65;
  margin: 0 0 24px;
}

.analyse-field {
  margin-bottom: 18px;
}

.analyse-field label {
  display: block;
  font-family: Lato, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}

.analyse-field input,
.analyse-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #0b2c5626;
  background-color: var(--quatär);
  font-family: Lato, sans-serif;
  font-size: 0.95rem;
  color: var(--black);
}

.analyse-field textarea {
  resize: vertical;
  min-height: 70px;
}

.analyse-field input:focus,
.analyse-field textarea:focus {
  outline: none;
  border-color: var(--primär);
  background-color: #fff;
}

.analyse-social-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.analyse-social-row input {
  flex: 1 1 auto;
}

.analyse-add-channel-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  color: var(--primär);
  font-family: Lato, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.analyse-add-channel-btn:hover {
  text-decoration: underline;
}

.analyse-extra-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.analyse-extra-channels[hidden] {
  display: none;
}

.analyse-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.analyse-checkbox-option {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #0b2c5626;
  background-color: var(--quatär);
  font-family: Lato, sans-serif;
  font-size: 0.9rem;
  font-weight: 700 !important;
  color: var(--black);
  cursor: pointer;
  margin-bottom: 0 !important;
}

.analyse-checkbox-option input {
  width: auto;
  accent-color: var(--primär);
  cursor: pointer;
}


.analyse-submit-btn {
  width: 100%;
  background-color: var(--primär);
  color: #fff;
  border: none;
  border-radius: 980px;
  padding: 14px 0;
  font-family: Lato, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.analyse-submit-btn:hover {
  background-color: var(--sekundär);
}

.analyse-submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.analyse-form-note {
  font-family: Lato, sans-serif;
  font-size: 0.78rem;
  color: var(--black);
  opacity: 0.5;
  margin: 14px 0 0;
  text-align: center;
}

.analyse-status {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.analyse-status.is-visible {
  display: block;
}

.analyse-status-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--quatär);
  color: var(--primär);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.analyse-status h3 {
  padding-right: 0;
}

.analyse-status.is-error .analyse-status-icon {
  color: var(--tertiär);
}
