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

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,500;1,9..144,600&family=Work+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Basis: Weiss, Schwarz - klar und kontrastreich */
  --paper: #ffffff;
  --paper-alt: #f4f5f7;
  --ink: #111111;
  --muted: #5c5f66;
  --line: #dcdfe3;

  /* Akzente: Blau (Vertrauen, primär) und Rot (Energie, punktuell) */
  --accent: #1a44d1;
  --accent-dark: #12318f;
  --accent-ink: #ffffff;

  --red: #d81f3c;
  --red-dark: #a4152c;

  /* Karten-Töne: kräftig statt pastell */
  --peach: #f6f0e4;
  --peach-deep: #d81f3c;
  --sage: #e3ebff;
  --sky: #eef1f5;
  --blush: #f6f0e4;

  --error: #d81f3c;
  --success: #1a44d1;

  --font-display: Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --font-mono: Arial, Helvetica, sans-serif;
  --font-logo: 'Fraunces', Georgia, serif;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Inhalts-Links (Fliesstext, Hinweise). Nav, Buttons, Footer, Toggles setzen
   ihre eigene Farbe und überschreiben das hier. */
a {
  color: var(--accent-dark);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 24px;
}

.wide {
  max-width: 780px;
}

/* ============== NAV: schwebende Pille ============== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: #ffffff;
  border-bottom: 2px solid var(--ink);
  position: relative;
  z-index: 10;
}

nav > div {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav .logo {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a:not(.logo) {
  color: var(--ink);
  text-decoration: none;
  margin-left: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.15s;
}

nav a:not(.logo):hover {
  background: var(--paper-alt);
}

/* Auf schmalen Screens darf die Nav umbrechen statt über den Rand
   hinauszulaufen (sonst bekommt die ganze Seite horizontales Scrollen). */
@media (max-width: 600px) {
  nav {
    flex-wrap: wrap;
    row-gap: 6px;
    padding: 12px 16px;
  }
  nav > div {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 4px;
  }
  nav a:not(.logo) {
    margin-left: 2px;
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

/* ============== TYPOGRAFIE ============== */
h1 {
  font-size: 1.9rem;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.15;
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 600;
}

p.subtitle {
  color: var(--muted);
  margin-bottom: 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent-dark);
  font-weight: 500;
}

/* ============== BUTTONS: dunkle Pillen ============== */
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  margin-top: 18px;
  font-family: var(--font-body);
}

input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--ink);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea { resize: vertical; min-height: 80px; }

button, .btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}

button:hover, .btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

button.secondary, .btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

button.secondary:hover, .btn.secondary:hover { background: var(--ink); color: var(--paper); }

button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.full-width { width: 100%; margin-top: 24px; }

.hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.message {
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 0.9rem;
  display: none;
}

/* ============== INFO-TOOLTIP (Fragezeichen zum Draufhovern) ============== */
.info-tip {
  position: relative;
  display: inline-flex;
  margin-left: 2px;
}

.info-tip-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: help;
}

.info-tip-text {
  display: none;
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 9px 11px;
  border-radius: 8px;
  width: 220px;
  z-index: 20;
}

.info-tip:hover .info-tip-text,
.info-tip:focus-within .info-tip-text {
  display: block;
}

.message.error {
  background: #f8e6e3;
  color: var(--error);
  display: block;
}

.message.success {
  background: #e2efe6;
  color: var(--success);
  display: block;
}

.hidden { display: none !important; }

.role-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  background: var(--paper-alt);
  padding: 5px;
  border-radius: 999px;
}

.role-toggle a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.15s;
}

.role-toggle a.active {
  background: var(--ink);
  color: var(--paper);
}


footer {
  text-align: center;
  padding: 40px 32px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 64px;
}

footer a {
  color: var(--muted);
  margin: 0 8px;
}

/* ============== GROSSER SEITEN-FOOTER (Startseite & Info-Seiten) ============== */
.site-footer {
  background: var(--ink);
  color: #cbd0d8;
  margin-top: 96px;
  padding: 56px 32px 28px;
  text-align: left;
  font-size: 0.9rem;
}

.site-footer .footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.site-footer .footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
}

@media (max-width: 720px) {
  .site-footer .footer-cols { grid-template-columns: 1fr; gap: 32px; }
}

.site-footer h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8a919c;
  margin-bottom: 16px;
}

.site-footer .footer-about p {
  color: #cbd0d8;
  max-width: 460px;
  line-height: 1.65;
}

.site-footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer .footer-links a {
  color: #cbd0d8;
  margin: 0;
  text-decoration: none;
  width: fit-content;
}

.site-footer .footer-links a:hover { color: #fff; text-decoration: none; }

.site-footer .footer-social {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}

.site-footer .footer-social a {
  color: #8a919c;
  display: inline-flex;
}

.site-footer .footer-social a:hover { color: #fff; }

.site-footer .footer-bottom {
  border-top: 1px solid #2a2d33;
  margin-top: 40px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #8a919c;
}

/* Sprachumschalter: im grossen Footer als eigenständiger Block rechts unten,
   im kleinen (alten) Footer inline neben den Links. */
.lang-switch {
  display: inline-flex;
  gap: 4px;
}

.site-footer .lang-switch a {
  color: #8a919c;
  margin: 0;
  padding: 2px 6px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.site-footer .lang-switch a.active { color: #fff; background: #2a2d33; }

footer:not(.site-footer) .lang-switch {
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

footer:not(.site-footer) .lang-switch a {
  color: var(--muted);
  margin: 0 4px;
  text-decoration: none;
  font-weight: 500;
}

.lang-switch a.active {
  color: var(--accent);
  font-weight: 700;
}

/* ============== LANDINGPAGE-KOMPONENTEN ============== */

.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 32px 48px;
}

@media (max-width: 860px) {
  .hero-section { grid-template-columns: 1fr; padding: 48px 20px; }
}

.hero-headline {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-dark);
}

.hero-copy {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 420px;
  margin: 24px 0 32px;
}

.hero-visual {
  background: var(--paper-alt);
  border-radius: 6px;
  padding: 32px;
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1120px;
  margin: 24px auto;
  padding: 0 32px;
}

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

.value-card {
  border-radius: 6px;
  padding: 32px 28px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.value-card.visible { opacity: 1; transform: translateY(0); }
.value-card.tone-sage { background: var(--sage); }
.value-card.tone-sky { background: var(--sky); }
.value-card.tone-blush { background: var(--blush); }

.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--ink);
  opacity: 0.75;
}

.section-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 32px;
}

.section-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--accent-dark);
  margin-bottom: 12px;
  display: block;
}

.section-title-big {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  max-width: 640px;
}

.story-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px 96px;
  position: relative;
}

.story-spine {
  position: absolute;
  left: 32px;
  top: 40px;
  bottom: 96px;
  width: 1.5px;
  background: var(--line);
}

@media (max-width: 720px) {
  .story-spine { left: 20px; }
}

.story-beat {
  padding: 56px 0 56px 56px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  position: relative;
}

.story-beat.visible { opacity: 1; transform: translateY(0); }

.story-beat::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 62px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.story-beat.visible::before {
  background: var(--accent);
  border-color: var(--accent);
}

.story-beat h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 500;
  line-height: 1.3;
  max-width: 480px;
}

.story-beat h3 em {
  font-style: italic;
  color: var(--accent-dark);
}

.story-beat p {
  color: var(--muted);
  margin-top: 10px;
  max-width: 420px;
}

/* Testimonial-Ticker */
.ticker-wrap {
  overflow: hidden;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll-ticker 32s linear infinite;
  width: max-content;
}

@keyframes scroll-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .value-card { opacity: 1; transform: none; transition: none; }
}

.cta-band {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 6px;
  max-width: 1120px;
  margin: 0 auto 64px;
  padding: 56px 40px;
  text-align: center;
}

.cta-band h2 { color: var(--accent-ink); }
.cta-band .btn { background: var(--ink); }
.cta-band .btn.secondary { border-color: var(--accent-ink); color: var(--accent-ink); }

/* ============== AVATAR: rundes Profilbild mit Initialen-Fallback ============== */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #d9dce1;
  color: #4a4d52;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Datei-Upload: nativen "Keine Datei ausgewählt"-Text durch eigenen Button ersetzen */
.file-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.file-field .file-btn {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
}

.file-field .file-name {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 10px;
  word-break: break-all;
}

/* ============== AUFKLAPPBARES GEBÜHREN-FENSTER (Startseite) ============== */
.fee-disclosure {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0 20px;
  max-width: 720px;
  margin: 0 auto 64px;
  background: #fff;
}

.fee-disclosure summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fee-disclosure summary::-webkit-details-marker { display: none; }
.fee-disclosure summary::after { content: '+'; font-size: 1.3rem; color: var(--muted); line-height: 1; }
.fee-disclosure[open] summary::after { content: '\2013'; }

.fee-disclosure p {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0 0 18px;
  margin: 0;
}

/* ============== CHAT: Nachricht mit Avatar (WhatsApp-Stil) ============== */
.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 85%;
}

.msg-row.mine { align-self: flex-end; }
.msg-row.theirs { align-self: flex-start; }
.msg-row .bubble { max-width: 100%; }
.msg-row .msg-avatar { width: 28px; height: 28px; font-size: 11px; }
.bubble-time { font-size: 0.7rem; opacity: 0.7; margin-top: 3px; }

.subject-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s;
  margin: -3px;
}

.subject-icon:hover {
  background: var(--ink);
  color: #fff;
  transform: scale(1.12);
  z-index: 2;
  position: relative;
}
