/* =====================================================================
   dein anruf — Apple-Style Homepage
   Design tokens follow Apple Design.txt with brand-blue override.
   ===================================================================== */

:root {
  /* Brand */
  --color-primary: #005AF7;
  --color-primary-focus: #1A6FFF;
  --color-primary-on-dark: #4D8DFF;

  /* Surface */
  --color-canvas: #ffffff;
  --color-parchment: #f5f5f7;
  --color-pearl: #fafafc;
  --color-tile-dark-1: #272729;
  --color-tile-dark-2: #2a2a2c;
  --color-tile-dark-3: #252527;
  --color-black: #000000;

  /* Text */
  --color-ink: #1d1d1f;
  --color-body-on-dark: #ffffff;
  --color-body-muted: #cccccc;
  --color-ink-muted-80: #333333;
  --color-ink-muted-48: #7a7a7a;

  /* Hairlines */
  --color-hairline: #e0e0e0;
  --color-hairline-soft: rgba(0, 0, 0, 0.08);

  /* Spacing */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 17px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 80px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  /* Shadow — single product shadow only */
  --shadow-product: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;

  /* Type */
  --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --font-text: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--color-ink);
  background: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@supports (font-variation-settings: normal) {
  body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; letter-spacing: -0.0095em; }
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding: 0; list-style: none; margin: 0; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- Typography utilities ---------- */
.hero-display {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.028em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.10;
  letter-spacing: -0.015em;
}
.tagline {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.011em;
}
.lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.21;
  letter-spacing: 0.007em;
  color: var(--color-ink-muted-80);
}
.body { font-size: 17px; line-height: 1.47; }
.body-strong { font-size: 17px; font-weight: 600; line-height: 1.24; letter-spacing: -0.022em; }
.caption-strong { font-size: 14px; font-weight: 600; line-height: 1.29; letter-spacing: -0.016em; }
.body-muted-large {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.42;
  color: var(--color-body-muted);
  max-width: 720px;
  margin-inline: auto;
}

/* ---------- Global nav ---------- */
.global-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-black);
  height: 84px;
  width: 100%;
  display: flex;
  align-items: center;
}
.nav-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img { height: 56px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.btn-nav-cta { padding: 8px 18px; font-size: 14px; }
.nav-hamburger {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  border-radius: var(--radius-pill);
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.95); }
.btn:focus-visible {
  outline: 2px solid var(--color-primary-focus);
  outline-offset: 4px;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-focus); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary); color: #fff; }
.btn-secondary-on-dark {
  color: var(--color-primary-on-dark);
  box-shadow: inset 0 0 0 1px var(--color-primary-on-dark);
}
.btn-secondary-on-dark:hover { background: var(--color-primary-on-dark); color: var(--color-ink); }

/* ---------- Tiles ---------- */
.tile {
  width: 100%;
  padding: var(--space-section) 22px;
}
.tile-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.tile-bento .tile-inner,
.tile-process .tile-inner,
.tile-faq .tile-inner { max-width: 1100px; }

.tile-light { background: var(--color-canvas); color: var(--color-ink); }
.tile-parchment { background: var(--color-parchment); color: var(--color-ink); }
.tile-dark { background: var(--color-tile-dark-1); color: var(--color-body-on-dark); }
.tile-dark-2 { background: var(--color-tile-dark-2); color: var(--color-body-on-dark); }
.tile-dark-3 { background: var(--color-tile-dark-3); color: var(--color-body-on-dark); }

/* ---------- Hero ---------- */
.tile-hero {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xxl);
}
.hero-headline {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  line-height: 0;
}
.hero-logo {
  width: auto;
  height: auto;
  max-width: min(640px, 80%);
  max-height: 240px;
}
.tile-hero .lead {
  margin-top: var(--space-xs);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.18;
  font-weight: 500;
  color: var(--color-ink);
}
@media (max-width: 640px) {
  .hero-logo { max-width: 90%; max-height: 180px; }
  .tile-hero { padding-top: var(--space-lg); padding-bottom: var(--space-xl); }
  .tile-hero .lead { font-size: clamp(20px, 5vw, 26px); }
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}
.hero-visual {
  margin-top: var(--space-xxl);
  color: var(--color-primary);
  display: flex;
  justify-content: center;
}
.wave-svg {
  width: min(720px, 90%);
  height: auto;
}
.wave-path {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: wave-draw 3s ease-out forwards;
}
.wave-path-2 { animation-delay: 0.6s; }
@keyframes wave-draw {
  to { stroke-dashoffset: 0; }
}

/* ---------- Statement ---------- */
.tile-statement .display-lg { max-width: 14ch; margin: 0 auto; }
.tile-statement .body-muted-large { margin-top: var(--space-xl); }

/* ---------- Persona (Lena) ---------- */
.tile-persona .tile-inner.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-xxl);
  align-items: center;
  text-align: left;
  max-width: 1100px;
}
.two-col-text .lead { margin-top: var(--space-lg); }
.lena-orb {
  position: relative;
  width: min(360px, 80%);
  aspect-ratio: 1;
  margin: 0 auto;
}
.lena-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0;
  animation: lena-pulse 3.5s ease-out infinite;
}
.lena-ring-1 { animation-delay: 0s; }
.lena-ring-2 { animation-delay: 1.1s; }
.lena-ring-3 { animation-delay: 2.2s; }
.lena-core {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 80px rgba(0, 90, 247, 0.4);
}
@keyframes lena-pulse {
  0% { opacity: 0.8; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(1.15); }
}

/* ---------- Process steps ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xxl);
  text-align: left;
}
.process-step .step-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}
.process-step .tagline { margin-bottom: var(--space-xs); }
.process-step .body { color: var(--color-ink-muted-80); }

/* ---------- Bento grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: var(--space-lg);
  margin-top: var(--space-xxl);
  text-align: left;
}
.bento-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.2s ease;
}
.bento-card:hover { transform: translateY(-2px); }
.bento-card.bento-hero {
  grid-column: span 2;
  background: var(--color-parchment);
  border-color: transparent;
  justify-content: center;
}
.bento-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-sm);
}
.bento-card.bento-hero .bento-title { font-size: 32px; }
.bento-card .body { color: var(--color-ink-muted-80); }

/* ---------- Demo dialog ---------- */
.tile-demo .body-muted-large { margin-top: var(--space-md); margin-bottom: var(--space-xl); }

/* Audio player */
.audio-player {
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  text-align: left;
}
.audio-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.audio-btn:hover { background: var(--color-primary-focus); }
.audio-btn:active { transform: scale(0.94); }
.audio-btn:focus-visible {
  outline: 2px solid var(--color-primary-on-dark);
  outline-offset: 4px;
}
.audio-icon { width: 22px; height: 22px; display: block; }
.audio-icon-play { margin-left: 3px; }
.audio-icon-pause { display: none; }
.audio-player.is-playing .audio-icon-play { display: none; }
.audio-player.is-playing .audio-icon-pause { display: block; }

.audio-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.audio-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  color: var(--color-body-on-dark);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.audio-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-time {
  font-variant-numeric: tabular-nums;
  color: var(--color-body-muted);
  font-size: 13px;
  font-weight: 400;
  flex-shrink: 0;
}
.audio-progress {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  cursor: pointer;
  outline: none;
}
.audio-progress:focus-visible {
  box-shadow: 0 0 0 3px rgba(77, 141, 255, 0.4);
}
.audio-progress-bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--color-primary-on-dark);
  border-radius: var(--radius-pill);
  transition: width 0.1s linear;
}

@media (max-width: 640px) {
  .audio-player { padding: var(--space-sm) var(--space-md); gap: var(--space-md); }
  .audio-btn { width: 48px; height: 48px; }
  .audio-icon { width: 18px; height: 18px; }
}

.demo-transcript-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-body-muted);
  text-align: center;
  margin-bottom: var(--space-md);
}

.demo-dialog {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.dialog-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 78%;
}
.dialog-speaker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-body-muted);
}
.dialog-line p {
  font-size: 17px;
  line-height: 1.45;
  padding: 14px 18px;
  border-radius: 18px;
  margin: 0;
}
.dialog-lena {
  align-self: flex-start;
}
.dialog-lena p {
  background: var(--color-primary);
  color: #fff;
  border-bottom-left-radius: 4px;
}
.dialog-caller {
  align-self: flex-end;
  align-items: flex-end;
}
.dialog-caller p {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.dialog-meta {
  margin-top: var(--space-xl);
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}
.dialog-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}
.dialog-tag-urgent { background: var(--color-primary); color: #fff; }

/* ---------- Trust ---------- */
.tile-trust .lead { margin-top: var(--space-md); margin-bottom: var(--space-xxl); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  text-align: left;
}
.trust-item { display: flex; flex-direction: column; gap: var(--space-sm); }
.trust-icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}
.trust-icon svg { width: 100%; height: 100%; }
.trust-item .body { color: var(--color-ink-muted-80); }

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: var(--space-xxl);
  max-width: 820px;
  margin-inline: auto;
  text-align: left;
}
.faq-item {
  border-bottom: 1px solid var(--color-hairline);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-lg) 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.012em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-answer {
  padding: 0 0 var(--space-lg) 0;
  color: var(--color-ink-muted-80);
  max-width: 720px;
}

/* ---------- Booking (Tidycal embed) ---------- */
.tile-booking .lead { margin-top: var(--space-md); margin-bottom: var(--space-xxl); }
.tidycal-wrap {
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-parchment);
  border: 1px solid var(--color-hairline);
}
.tidycal-iframe {
  width: 100%;
  height: 760px;
  border: 0;
  display: block;
}
.booking-fallback {
  margin-top: var(--space-lg);
  font-size: 14px;
  color: var(--color-ink-muted-80);
}

/* ---------- Legal sections (Impressum, Datenschutz) ---------- */
.tile-legal {
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxl);
}
.tile-legal .tile-inner {
  text-align: left;
  max-width: 820px;
}
.tile-legal .display-md {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin-bottom: var(--space-lg);
}
.tile-legal h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}
.tile-legal p, .tile-legal address {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-ink-muted-80);
  margin-bottom: var(--space-sm);
  font-style: normal;
}
.tile-legal a { color: var(--color-primary); }

/* ---------- Final CTA ---------- */
.tile-final-cta .body-muted-large { margin-top: var(--space-lg); margin-bottom: var(--space-xl); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-parchment);
  color: var(--color-ink-muted-80);
  padding: var(--space-section) 22px var(--space-xxl);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xxl);
}
.footer-logo { height: 180px; width: auto; max-width: 100%; }
@media (max-width: 640px) {
  .footer-logo { height: 140px; }
}
.footer-byline {
  font-size: 14px;
  color: var(--color-ink-muted-80);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-hairline);
}
.footer-col .caption-strong { margin-bottom: var(--space-sm); color: var(--color-ink); }
.dense-link-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dense-link-list li {
  font-size: 14px;
  line-height: 2.0;
}
.dense-link-list a {
  color: var(--color-ink-muted-80);
  text-decoration: none;
}
.dense-link-list a:hover { color: var(--color-primary); text-decoration: underline; }
.legal-line {
  margin-top: var(--space-xl);
  font-size: 12px;
  color: var(--color-ink-muted-48);
  letter-spacing: -0.01em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1068px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.bento-hero { grid-column: span 2; }
}
@media (max-width: 833px) {
  .global-nav { height: 68px; }
  .nav-logo img { height: 44px; }
  .nav-links { display: none; }
  .btn-nav-cta { padding: 7px 14px; font-size: 13px; }
  .tile { padding: var(--space-xxl) 20px; }
  .tile-hero { padding-top: calc(var(--space-xxl) + 8px); }
  .tile-persona .tile-inner.two-col {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
  .lena-orb { margin: var(--space-md) auto 0; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
  .trust-grid { grid-template-columns: 1fr; gap: var(--space-lg); text-align: center; }
  .trust-icon { margin-inline: auto; }
}
@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-card.bento-hero { grid-column: span 1; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 16px; gap: 12px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .dialog-line { max-width: 92%; }
}
@media (max-width: 480px) {
  .tile { padding: var(--space-xl) 18px; }
  .hero-display { font-size: clamp(32px, 9vw, 44px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
