@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Design-Tokens (identisch mit Freebie) ─────────────────────────────────── */
:root {
  --blaugrau:  #32435f;
  --rose:      #c4a092;
  --rose-hell: #dcc7bd;
  --beige:     #f6f5f4;
  --beige-1:   #eceae9;
  --beige-2:   #e1dcd9;
  --weiss:     #ffffff;
  --text:      #32435f;
  --text-soft: #6b7a8d;

  --shadow-sm: 0 2px 8px rgba(50,67,95,0.08);
  --shadow-md: 0 8px 32px rgba(50,67,95,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--beige);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ─── Typografie ────────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.3;
  color: var(--blaugrau);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.7rem); }

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

/* ─── Layout ────────────────────────────────────────────────────────────────── */
.container       { max-width: 740px;  margin: 0 auto; padding: 0 28px; }
.container--wide { max-width: 1000px; margin: 0 auto; padding: 0 28px; }
.section         { padding: 80px 0; }
.section--beige  { background: var(--beige); }
.section--weiss  { background: var(--weiss); }
.section--beige1 { background: var(--beige-1); }
.section--dunkel { background: var(--blaugrau); }

/* ─── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--weiss);
  border-bottom: 1px solid var(--beige-2);
  padding: 16px 36px;
  display: flex;
  align-items: center;
}
.site-header img { height: 32px; width: auto; }

/* ─── Heading-Line & Divider ────────────────────────────────────────────────── */
.heading-line {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--rose);
  margin: 16px auto 32px;
}
.heading-line--left { margin-left: 0; }

.divider { width: 48px; height: 2px; background: var(--rose); margin: 0 auto 40px; }
.divider--left { margin-left: 0; }

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--rose);
  color: var(--weiss);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { background: #b08f81; transform: translateY(-1px); }
.btn--gross { padding: 16px 40px; font-size: 1rem; }

/* ─── HERO ──────────────────────────────────────────────────────────────────── */
.hero-outer {
  background: var(--beige);
}
.hero {
  display: grid;
  grid-template-columns: 1fr 42%;
  max-width: 1300px;
  margin: 0 auto;
}
.hero__text {
  padding: 72px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 20px;
  font-weight: 500;
}
.hero__balken-wrap { display: block; margin-bottom: 12px; }
.hero__balken {
  display: inline-block;
  padding: 10px 20px;
}
.hero__balken--rose { background: var(--rose); }
.hero__balken--blau { background: var(--blaugrau); }
.hero__balken-text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--weiss);
  margin: 0;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero__balken-text--gross {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}
.hero__subline {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-top: 20px;
  margin-bottom: 28px;
  line-height: 1.7;
  text-transform: none;
  letter-spacing: 0;
}
.hero__foto {
  background: var(--beige-1);
  overflow: hidden;
  min-height: 420px;
}
.hero__foto img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: bottom center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--beige-1);
  border: 1px solid var(--beige-2);
  border-radius: 3px;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* ─── Runde Bilder in Abschnitts-Headern ────────────────────────────────────── */
.section-header-with-img {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
}
.section-header-with-img--right {
  flex-direction: row-reverse;
}
.section-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 3px solid var(--rose-hell);
}

/* ─── Sektionen Landingpage ─────────────────────────────────────────────────── */

/* Abholen */
.abholen { background: var(--weiss); }
.abholen p:first-of-type { font-size: 1rem; color: var(--text-soft); }

/* Deckel-Beispiele */
.deckel-beispiele { list-style: none; margin: 24px 0; }
.deckel-beispiele li {
  background: var(--weiss);
  border-left: 3px solid var(--rose);
  padding: 14px 20px;
  margin-bottom: 10px;
  font-style: italic;
  color: var(--blaugrau);
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
}

/* Prozess-Schritte */
.prozess-liste { list-style: none; margin: 28px 0; }
.prozess-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.prozess-nr {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--weiss);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.prozess-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--blaugrau);
  text-transform: none;
  letter-spacing: 0;
}
.prozess-text p {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0;
}

/* Für-wen-Liste */
.fuer-wen-liste { list-style: none; margin: 24px 0 0; }
.fuer-wen-liste li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--beige-2);
  font-size: 1rem;
}
.fuer-wen-liste li:last-child { border-bottom: none; }
.fuer-wen-liste__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  flex-shrink: 0;
  margin-top: 9px;
}

/* KIsanne-Sektion */
.kisanne-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: center;
}
.kisanne-foto { border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-md); }
.kisanne-foto-duo { display: flex; gap: 12px; }
.kisanne-foto-duo img {
  width: 50%;
  object-fit: cover;
  aspect-ratio: 3/4;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}
.kisanne-note {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-style: italic;
  margin-top: 8px;
}

/* FOMO */
.fomo-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.fomo-inner h2 { color: var(--weiss); }
.fomo-inner p  { color: rgba(255,255,255,0.8); }
.fomo-satz {
  font-weight: 700;
  font-size: 1rem;
  color: var(--weiss) !important;
  margin: 16px 0;
}

/* Final CTA */
.final-cta-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.final-cta-sub {
  font-size: 0.9rem;
  color: var(--text-soft);
  max-width: 440px;
  margin: 12px auto 0;
  line-height: 1.7;
}
.final-cta-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 16px;
}

/* ─── CHAT-SEITE ────────────────────────────────────────────────────────────── */

.chat-page {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--beige);
  overflow: hidden;
}

/* Chat Header – dunkel */
.chat-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--blaugrau);
}
.chat-header__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.chat-header__info { display: flex; flex-direction: column; gap: 2px; }
.chat-header__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--weiss);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chat-header__status {
  font-size: 0.72rem;
  color: var(--rose);
  font-weight: 500;
}
.chat-header__logo {
  margin-left: auto;
  height: 22px;
  opacity: 0.35;
  filter: brightness(10);
}

/* Kontext-Banner */
.chat-context {
  flex-shrink: 0;
  background: var(--beige-1);
  text-align: center;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-soft);
  border-bottom: 1px solid var(--beige-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--beige-2); border-radius: 2px; }

/* Nachrichten */
.msg {
  display: flex;
  gap: 10px;
  max-width: 82%;
  animation: fadeUp 0.22s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg--kisanne { align-self: flex-start; }
.msg--user    { align-self: flex-end; flex-direction: row-reverse; }

.msg__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  border: 2px solid var(--beige-2);
  align-self: flex-end;
}

.msg__bubble {
  padding: 12px 16px;
  font-size: 0.95rem;
  line-height: 1.65;
  word-break: break-word;
  font-family: 'Montserrat', sans-serif;
}
.msg--kisanne .msg__bubble {
  background: var(--weiss);
  color: var(--text);
  border: 1px solid var(--beige-2);
  border-radius: 0 8px 8px 8px;
}
.msg--user .msg__bubble {
  background: var(--blaugrau);
  color: var(--weiss);
  border-radius: 8px 0 8px 8px;
}

/* Tipp-Indikator */
.msg--typing .msg__bubble {
  background: var(--weiss);
  border: 1px solid var(--beige-2);
  padding: 14px 18px;
  border-radius: 0 8px 8px 8px;
}
.typing-dots { display: flex; gap: 5px; align-items: center; }
.typing-dots span {
  width: 7px; height: 7px;
  background: var(--rose);
  border-radius: 50%;
  animation: pulsieren 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulsieren {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40%           { opacity: 1;   transform: scale(1); }
}

/* End-CTAs */
.chat-end-ctas-wrap {
  align-self: stretch;
  display: flex;
  justify-content: center;
  padding: 12px 16px 4px;
}
.chat-end-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}
.cta-card {
  background: var(--weiss);
  border: 1px solid var(--beige-2);
  border-radius: 4px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  box-shadow: var(--shadow-sm);
}
.cta-card:hover { border-color: var(--rose); box-shadow: 0 2px 12px rgba(196,160,146,0.2); }
.cta-card__title { font-weight: 600; font-size: 0.88rem; color: var(--blaugrau); }
.cta-card__sub   { font-size: 0.78rem; color: var(--text-soft); margin-top: 4px; }
.cta-card--primary { background: var(--rose); border-color: var(--rose); }
.cta-card--primary .cta-card__title { color: var(--weiss); }
.cta-card--primary .cta-card__sub   { color: rgba(255,255,255,0.8); }

/* Chat-Input */
.chat-input-area {
  flex-shrink: 0;
  padding: 10px 16px 14px;
  background: var(--weiss);
  border-top: 1px solid var(--beige-2);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chat-input {
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--beige);
  border: 1.5px solid var(--beige-2);
  border-radius: 4px;
  padding: 11px 14px;
  resize: none;
  outline: none;
  max-height: 120px;
  overflow-y: auto;
  transition: border-color 0.2s;
  line-height: 1.5;
}
.chat-input:focus { border-color: var(--blaugrau); background: var(--weiss); }
.chat-input::placeholder { color: var(--text-soft); }

.chat-send-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--rose);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.1s;
}
.chat-send-btn:hover  { background: #b08f81; }
.chat-send-btn:active { transform: scale(0.93); }
.chat-send-btn svg { width: 18px; height: 18px; fill: var(--weiss); }
.chat-send-btn:disabled { background: var(--beige-2); cursor: default; }

.chat-input-area.disabled .chat-input    { pointer-events: none; opacity: 0.5; }
.chat-input-area.disabled .chat-send-btn { pointer-events: none; opacity: 0.5; }

/* CopeCart Pflichthinweis */
.chat-legal {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-soft);
  padding: 3px 16px 8px;
  background: var(--weiss);
}

/* Kein-Zugang-Screen */
.chat-access-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 32px;
  gap: 12px;
}
.chat-access-error__icon { font-size: 2.5rem; }
.chat-access-error__text {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 320px;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */

/* Tablet (bis 960px) */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr 46%; }
  .hero__text { padding: 56px 40px; }

  .kisanne-inner { grid-template-columns: 260px 1fr; gap: 40px; }
  .kisanne-foto-duo { gap: 12px; }

  .section-circle { width: 140px; height: 140px; }
}

/* Mobil (bis 750px) */
@media (max-width: 750px) {
  .section { padding: 52px 0; }
  .site-header { padding: 12px 20px; }
  .site-header img { height: 26px; }

  /* Hero: Bild oben, Text unten */
  .hero { grid-template-columns: 1fr; }
  .hero__foto { height: 380px; min-height: unset; order: -1; background: var(--beige-1); }
  .hero__foto img { object-fit: contain; object-position: bottom center; }
  .hero__text { padding: 36px 24px; }
  .hero__text .btn { display: block; width: 100%; text-align: center; }
  .hero__balken { display: block; width: 100%; }

  /* Runde Bilder: über der Überschrift */
  .section-header-with-img,
  .section-header-with-img--right {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .section-circle { width: 110px; height: 110px; }

  /* KIsanne-Sektion: einspaltig, Fotos nebeneinander */
  .kisanne-inner { grid-template-columns: 1fr; gap: 32px; }
  .kisanne-foto-duo { display: flex; gap: 12px; }
  .kisanne-foto-duo img { width: 50%; aspect-ratio: 3/4; object-fit: cover; object-position: center top; }

  .container, .container--wide { padding: 0 20px; }
  .msg { max-width: 90%; }

  /* FOMO & CTA */
  .fomo-inner, .final-cta-inner { padding: 0 4px; }
  .btn--gross { font-size: 0.95rem; padding: 16px 24px; }
}

/* Kleines Mobil (bis 480px) */
@media (max-width: 480px) {
  .section { padding: 44px 0; }
  .hero__foto { height: 320px; }
  .hero__text { padding: 28px 20px; }
  .container, .container--wide { padding: 0 16px; }

  h2 { font-size: clamp(1.1rem, 5vw, 1.5rem); }

  /* KIsanne-Sektion: nur Susanne-Foto, voll breit */
  .kisanne-foto-duo { flex-direction: column; }
  .kisanne-foto-duo img { width: 100%; aspect-ratio: 4/3; }
  .kisanne-foto-duo img:last-child { display: none; }

  .section-circle { width: 90px; height: 90px; }
  .section-header-with-img { gap: 16px; }

  /* Chat */
  .chat-input { font-size: 16px; }
  .msg { max-width: 95%; }
}
