/* Header */

.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.landing-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.landing-logo img {
  height: 22px;
  width: auto;
  display: block;
}

.landing-header-actions {
  display: flex;
  gap: 10px;
}

/* Plain grey text link (like Buena's real header "Vertrauliches Erstgespräch") —
   only the .primary variant is a real button, matching the reference exactly. */
.header-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
}

.header-btn:hover {
  color: var(--text-default);
}

/* Solid black — matches the reference site's nav CTA. */
.header-btn.primary {
  min-height: 34px;
  padding: 0 16px;
  border-color: #000000;
  background: #000000;
  color: var(--text-inverted);
}

.header-btn.primary:hover {
  opacity: 0.85;
  color: var(--text-inverted);
}

/* Shared section primitives — every section is full-bleed (its own background,
   edge-to-edge) with a max-width inner container, so sections read as clearly
   separated bands rather than one dense, undifferentiated column. */

.landing-section {
  width: 100%;
  padding: 88px 20px;
}

.landing-section-white {
  background: var(--surface);
}

.landing-section-tint {
  background: var(--bg);
}

.section-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.section-inner-narrow {
  max-width: 680px;
}

.center {
  text-align: center;
}

.section-title {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0 0 40px;
  font-size: 16px;
  color: var(--text-muted);
}

.info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-secondary);
  font-size: 11px;
  font-style: normal;
  font-family: Georgia, serif;
  cursor: help;
  vertical-align: middle;
}

.info-icon:hover,
.info-icon:focus-visible {
  background: var(--action);
  color: var(--text-inverted);
  outline: none;
}

.info-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: var(--surface);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
  pointer-events: none;
}

.info-icon:hover .info-tooltip,
.info-icon:focus-visible .info-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Clean white hero, built to match the reference 1:1: icon badge, big centered
   headline (black + dimmed second line), centered paragraph, and a floating
   frosted-glass card straddling the boundary into the next section. */
.hero-section {
  position: relative;
  padding: 72px 20px 180px;
  background: var(--surface);
  color: var(--text-primary);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-bold);
  background: var(--background-bold);
  color: var(--text-accent);
}

.hero-icon-badge svg {
  width: 28px;
  height: 28px;
}

.hero-subheadline {
  margin: 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.landing-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-default);
}

.headline-dim {
  color: var(--text-tetriary);
}

/* Floating card — frosted glass, overlapping the section boundary below */
.hero-float-card {
  position: absolute;
  left: 50%;
  bottom: -56px;
  transform: translateX(-50%);
  z-index: 2;
  width: min(560px, calc(100% - 40px));
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.hero-float-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-float-card-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--text-accent);
}

.hero-float-card-icon svg {
  width: 100%;
  height: 100%;
}

.hero-float-card-question {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-default);
}

.hero-float-card-row {
  display: flex;
  gap: 10px;
}

.hero-float-card-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.8);
}

.hero-float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: #000000;
  color: #ffffff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}

.hero-float-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .hero-float-card-row {
    flex-direction: column;
  }

  .hero-float-btn {
    width: 100%;
  }
}

/* "Zwei Fragen" section cards */

.landing-cards {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.landing-card {
  display: block;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  text-align: left;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}

.landing-card:hover {
  border-color: var(--action);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.landing-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--button-accent-default);
  color: var(--text-inverted);
  font-size: 14px;
  font-weight: 600;
}

.landing-card-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
}

.landing-card-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.landing-disclaimer {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Promise section */

.promise-grid {
  width: 100%;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 760px) {
  .promise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .promise-grid {
    grid-template-columns: 1fr;
  }
}

/* Flat, sharp-cornered mosaic tiles — confirmed against buena.com's own feature grid
   (radius: 0, tall tiles, mostly neutral fills with one vivid accent tile), a
   deliberately different treatment from the rounded, shadowed `.card` used elsewhere
   for elevated/interactive elements. */
.promise-item {
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.promise-item:nth-child(5n + 1) { background: var(--surface); }
.promise-item:nth-child(5n + 2) { background: var(--akaroa-100); }
.promise-item:nth-child(5n + 3) { background: var(--surface); }
.promise-item:nth-child(5n + 4) { background: var(--akaroa-800); }
.promise-item:nth-child(5n + 5) { background: var(--celeste-200); }

.promise-item:nth-child(5n + 4) .promise-title,
.promise-item:nth-child(5n + 4) .promise-text {
  color: var(--text-inverted);
}

.promise-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.promise-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey-700);
}

/* Explanation section */

.explain-text {
  margin: 0 0 14px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: left;
}

.explain-text:last-child {
  margin-bottom: 0;
}

/* Mini calculator */

.mini-calc-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 28px;
  text-align: left;
}

.mini-calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mini-calc-inputs .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-calc-inputs label {
  font-size: 14px;
  font-weight: 500;
}

.mini-calc-output {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding-left: 32px;
  border-left: 1px solid var(--border);
}

.mini-calc-output .stat-label {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.mini-calc-output .stat-label:first-child {
  margin-top: 0;
}

.mini-calc-output .stat-value {
  margin: 0;
  font-size: 28px;
  font-weight: 300;
}

.button-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--action);
  color: var(--text-inverted);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s var(--ease);
}

.button-next:hover {
  opacity: 0.9;
}

.mini-calc-output .button-next {
  margin-top: 20px;
  width: 100%;
}

/* Timeline */

.timeline-list {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

/* The connecting line lives behind the numbered circles and fills as the visitor
   scrolls past — see initTimelineScroll() in index.js for the position/height math,
   which depends on .timeline-num being real elements it can measure. */
.timeline-track {
  position: absolute;
  left: 32px;
  width: 2px;
  background: var(--border);
  z-index: 0;
}

.timeline-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--action);
}

.timeline-item {
  position: relative;
  z-index: 1;
  padding: 18px 20px 18px 56px;
}

.timeline-num {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--action-bg);
  color: var(--action);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.timeline-num.reached {
  background: var(--action);
  color: var(--surface);
}

.timeline-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 500;
}

.timeline-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Embedded Ersteinschätzung picker */

.picker-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.picker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}

.picker-card:hover {
  border-color: var(--action);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.picker-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--background-bold);
  color: var(--text-accent);
}

.picker-card-icon svg {
  width: 24px;
  height: 24px;
}

.picker-card-label {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
}

/* FAQ */

.faq-list {
  width: 100%;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px 20px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq-item:hover {
  border-color: var(--border-button-bolder);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* A small colored bubble per question, cycling the brand tints — the "on-brand
   bubbles" accent that replaces the plain default accordion marker. */
.faq-item summary::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--akaroa-200);
}

.faq-item:nth-child(3n + 2) summary::before {
  background: var(--celeste-300);
}

.faq-item:nth-child(3n + 3) summary::before {
  background: var(--akaroa-500);
}

.faq-item summary::after {
  content: "";
  margin-left: auto;
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-answer {
  margin: 0 0 20px;
  padding-left: 24px;
}

.faq-answer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.pricing-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pricing-table th,
.pricing-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.pricing-table th {
  color: var(--text-secondary);
  font-weight: 500;
}

/* "Warum relevant" letter styling — serif body copy + a personal signature, closing
   with a newsletter card built like the hero's floating card (icon/label header,
   question line, input+button row) so the two feel like the same design language. */

/* Reset the browser's default blockquote indent (margin: 1em 40px) — without this,
   the quote sits 40px right of the heading/signature instead of sharing their edge. */
.explain-quote {
  margin: 24px 0 0;
  padding: 0;
}

.explain-text-letter {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
}

.explain-signature-fullname {
  margin: 24px 0 32px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-default);
}

.explain-newsletter-card {
  width: 100%;
  max-width: 640px;
  margin-top: 8px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: var(--background-bold);
  border: 1px solid var(--border-bold);
  box-shadow: var(--shadow-raised);
}

.explain-newsletter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.explain-newsletter-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--text-accent);
}

.explain-newsletter-icon svg {
  width: 100%;
  height: 100%;
}

.explain-newsletter-question {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-default);
}

.explain-newsletter-row {
  display: flex;
  gap: 10px;
}

.explain-newsletter-row input {
  flex: 1;
  background: var(--surface);
}

.newsletter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: none;
  border-radius: var(--radius-pill);
  background: #000000;
  color: #ffffff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}

.newsletter-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .explain-newsletter-row {
    flex-direction: column;
  }

  .explain-newsletter-row .newsletter-btn {
    width: 100%;
  }
}

/* Footer newsletter — compact, no consent copy (already covered above the fold). */

.footer-newsletter {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-newsletter-subtext {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-tetriary);
  text-align: right;
}

@media (max-width: 760px) {
  .footer-newsletter-subtext {
    text-align: center;
  }
}

@media (max-width: 760px) {
  .footer-newsletter {
    align-items: center;
  }
}

.footer-newsletter-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
}

@media (max-width: 760px) {
  .footer-newsletter-label {
    text-align: center;
  }
}

.footer-newsletter-form {
  width: 100%;
  display: flex;
  gap: 8px;
}

.footer-newsletter-form input {
  flex: 1;
  min-height: 44px;
  background: var(--background-bold);
  border-color: var(--border-button-default);
  color: var(--text-default);
}

.footer-newsletter-form input::placeholder {
  color: var(--text-tetriary);
}

.footer-newsletter-form .newsletter-btn {
  min-height: 44px;
}

@media (max-width: 480px) {
  .footer-newsletter-form {
    flex-direction: column;
  }
}

/* Footer */

.landing-footer {
  background: var(--surface);
  color: var(--text-secondary);
  padding: 48px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.landing-footer-row {
  width: 100%;
  max-width: 1040px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.landing-footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
}

.landing-footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}

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

.landing-footer .landing-disclaimer {
  color: var(--text-tetriary);
}

.landing-footer-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 760px) {
  .landing-footer-row {
    flex-direction: column;
    align-items: center;
  }

  .landing-footer-left {
    align-items: center;
    text-align: center;
  }

  .landing-footer-links {
    justify-content: center;
  }
}

/* Scroll-reveal was removed: the IntersectionObserver that was supposed to un-hide
   `.reveal` content didn't fire reliably in every browser (Arc, mobile Chrome DevTools
   emulation), leaving whole sections permanently invisible — content hidden by CSS the
   moment `js-reveal` was added, with no guaranteed un-hide. Not worth the risk on a
   page whose entire job is to convert. Content is always visible now. */

@media (max-width: 640px) {
  .mini-calc-grid {
    grid-template-columns: 1fr;
  }

  .mini-calc-output {
    padding-left: 0;
    border-left: none;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 480px) {
  .landing-headline {
    font-size: 30px;
  }

  .hero-subheadline {
    font-size: 16px;
  }

  .hero-section {
    padding-bottom: 200px;
  }

  .hero-float-card {
    bottom: -80px;
    padding: 18px 20px;
  }

  .landing-cards {
    grid-template-columns: 1fr;
  }

  .landing-header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .landing-header-actions {
    flex-direction: column;
  }

  .header-btn {
    width: 100%;
    justify-content: center;
  }

  .landing-footer-actions {
    flex-direction: column;
    width: 100%;
  }
}
