/* ============================================================
   Medienbro Concierge — Landingpage
   Design-Richtung: Warm Craft (bodenständig, warm, ehrlich)
   Statisch, kein Framework, system-ui-Fonts, keine Fremd-Requests.
   ============================================================ */

/* ---- Tokens ---- */
:root {
  /* Farbe */
  --color-bg: #FAF5EC;
  --color-surface: #FFFFFF;
  --color-surface-tint: #F2E8D8;
  --color-text: #241E17;
  --color-text-muted: #6B5E4F;
  --color-primary: #B54A2C;
  --color-primary-dark: #8F3A20;
  --color-primary-tint: #F4E3DA;
  --color-secondary: #2F4A3D;
  --color-secondary-tint: #E3EAE4;
  --color-border: #E7DCC9;
  --color-border-strong: #241E17;
  --color-positive: #2F6B4A;

  /* Typografie: system-ui-Stack, keine Web-/Google-Fonts */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Abstand */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radius & Schatten */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 3px rgba(36, 30, 23, 0.10);
  --shadow-md: 0 8px 20px rgba(36, 30, 23, 0.12);
  --shadow-lg: 0 18px 40px rgba(36, 30, 23, 0.16);

  /* Bewegung */
  --duration-fast: 140ms;
  --duration-base: 260ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, li, figure, details { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

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

/* ---- Base ---- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 750; letter-spacing: -0.01em; line-height: 1.15; color: var(--color-text); }
h1 { font-size: clamp(2.1rem, 5vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw + 1rem, 2.35rem); }
h3 { font-size: 1.15rem; }

.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top var(--duration-base) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: 650;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
}
.btn--large { padding: var(--space-4) var(--space-6); font-size: 1.0625rem; }
.btn--small { padding: var(--space-2) var(--space-4); font-size: 0.9375rem; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn--ghost:hover { background: var(--color-text); color: var(--color-bg); }

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

/* ---- Header ---- */
.site-header { border-bottom: 1px solid var(--color-border); background: var(--color-bg); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.05rem;
  font-weight: 600;
  margin-right: auto;
}
.brand strong { font-weight: 800; }
.brand__mark-bg { fill: var(--color-primary); }
.brand__mark-bubble { fill: var(--color-bg); }
.brand__mark-check { stroke: var(--color-secondary); }

.site-nav { display: none; gap: var(--space-6); font-weight: 550; }
.site-nav a { color: var(--color-text-muted); }
.site-nav a:hover { color: var(--color-primary); }

@media (min-width: 768px) {
  .site-nav { display: flex; }
}

/* ---- Hero ---- */
.hero { padding: var(--space-8) 0 var(--space-7); }
.hero__inner { max-width: 760px; }
.eyebrow {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}
.hero__headline { margin-bottom: var(--space-4); }
.hero__note-ref a { color: var(--color-primary); font-weight: 700; }
.hero__sub {
  font-size: 1.1875rem;
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-4); }
.hero__footnote { font-size: 0.875rem; color: var(--color-text-muted); }
.hero__footnote-mark { color: var(--color-primary); font-weight: 700; }

/* ---- Sections ---- */
.section { padding: var(--space-8) 0; }
.section--tint { background: var(--color-surface-tint); }
.section__title { margin-bottom: var(--space-2); }
.section__lede { color: var(--color-text-muted); font-size: 1.0625rem; margin-bottom: var(--space-7); max-width: 56ch; }

/* ---- Steps ---- */
.steps {
  display: grid;
  gap: var(--space-6);
  counter-reset: none;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
}
.steps__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.steps__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  background: var(--color-primary-tint);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.steps__icon svg { stroke: currentColor; }
.steps__title { margin-bottom: var(--space-2); font-size: 1.1875rem; }
.steps__text { color: var(--color-text-muted); }

/* ---- Chat mockup (phone) ---- */
.phone { display: flex; justify-content: center; margin-bottom: var(--space-4); }
.phone__frame {
  width: 100%;
  max-width: 380px;
  background: var(--color-text);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: var(--shadow-lg);
}
.chat {
  background: var(--color-bg);
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
}
.chat__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-secondary);
  color: #FFFFFF;
}
.chat__avatar {
  display: inline-flex;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--color-primary);
}
.chat__avatar .brand__mark-bg { fill: transparent; }
.chat__avatar .brand__mark-bubble { fill: #FFFFFF; }
.chat__title { font-weight: 650; font-size: 0.9375rem; margin-right: auto; }
.chat__status { font-size: 0.75rem; color: #CDE0D5; }

.chat__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 320px;
}

.bubble {
  max-width: 84%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.45;
  position: relative;
}
.bubble p { margin-bottom: var(--space-1); }
.bubble p:last-of-type { margin-bottom: 0; }

.bubble--out {
  align-self: flex-end;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-bottom-right-radius: var(--space-1);
  color: var(--color-text);
}
.bubble--in {
  align-self: flex-start;
  background: var(--color-secondary);
  color: #FFFFFF;
  border-bottom-left-radius: var(--space-1);
}
.bubble--tap { padding: var(--space-2) var(--space-4); }
.bubble--tap p { font-size: 1.375rem; margin-bottom: 0; }

.bubble__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.75; margin-bottom: var(--space-2) !important; }
.bubble__link {
  display: block;
  margin: var(--space-2) 0;
  padding: var(--space-2) var(--space-3);
  background: rgba(255,255,255,0.14);
  border: 1px dashed rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  word-break: break-all;
}
.bubble__actions { display: flex; gap: var(--space-2); margin: var(--space-2) 0; flex-wrap: wrap; }
.chip {
  font-size: 0.8125rem;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
}
.chip--positive { background: rgba(255,255,255,0.92); color: var(--color-positive); font-weight: 700; border-color: transparent; }

.bubble__time { display: block; font-size: 0.6875rem; opacity: 0.6; margin-top: var(--space-1); }

.phone__caption { text-align: center; color: var(--color-text-muted); font-size: 0.875rem; }

@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: bubble-in var(--duration-base) var(--ease-out) both; }
  .chat__body .bubble:nth-child(1) { animation-delay: 40ms; }
  .chat__body .bubble:nth-child(2) { animation-delay: 160ms; }
  .chat__body .bubble:nth-child(3) { animation-delay: 320ms; }
  .chat__body .bubble:nth-child(4) { animation-delay: 420ms; }
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Features (bento, bewusst asymmetrisch) ---- */
.features {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .features__item--wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .features__item--wide { grid-column: span 3; }
}
.features__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.features__item h3 { margin-bottom: var(--space-2); font-size: 1.0625rem; }
.features__item p { color: var(--color-text-muted); }
.features__item--wide {
  background: var(--color-secondary);
  color: #FFFFFF;
}
.features__item--wide h3 { color: #FFFFFF; }
.features__item--wide p { color: #DCE6DF; }

/* ---- Vergleichstabelle ---- */
.table-scroll { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  min-width: 640px;
}
.compare th, .compare td {
  text-align: left;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}
.compare thead th {
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 650;
}
.compare tbody th { font-weight: 650; color: var(--color-text-muted); }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: none; }
.compare__highlight { background: var(--color-primary-tint); font-weight: 650; color: var(--color-primary-dark); }
.compare thead .compare__highlight { background: var(--color-primary); color: #FFFFFF; }

/* ---- Pricing ---- */
.pilot-note {
  display: inline-block;
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  font-weight: 650;
  font-size: 0.9375rem;
  margin-bottom: var(--space-7);
}
.pricing { display: grid; gap: var(--space-5); }
@media (min-width: 900px) {
  .pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}
.price-card--highlight {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.price-card__badge {
  position: absolute;
  top: -14px;
  left: var(--space-5);
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}
.price-card__name { font-size: 1.25rem; }
.price-card__amount { font-size: 2.1rem; font-weight: 800; }
.price-card__price { color: var(--color-text-muted); }
.price-card__setup { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.price-card__list { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-3); flex-grow: 1; }
.price-card__list li { padding-left: var(--space-5); position: relative; color: var(--color-text); font-size: 0.9375rem; }
.price-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-secondary);
}

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); max-width: 760px; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--color-text-muted); margin-top: var(--space-3); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--color-border); padding: var(--space-7) 0; }
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .site-footer__inner { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
.site-footer__brand p { color: var(--color-text-muted); margin-bottom: var(--space-1); }
.site-footer__brand a { color: var(--color-primary); font-weight: 600; }
.site-footer__legal { display: flex; gap: var(--space-5); }
.site-footer__legal a { color: var(--color-text-muted); }
.site-footer__legal a:hover { color: var(--color-primary); }
.site-footer__ai-note { color: var(--color-text-muted); font-size: 0.8125rem; max-width: 32ch; }

@media (min-width: 768px) {
  .site-footer__ai-note { text-align: right; }
}
