@import url("fonts.css");

/* ============================================================
   PFOTENRUF — KI-Telefonassistent für Tierarztpraxen
   Farbwelt: Petrol, Salbei, Apricot. Weiche, runde Formen.
   ============================================================ */

:root {
  --ink:        #10312F;
  --ink-soft:   #2C4E4B;
  --muted:      #55706D;
  --petrol:     #0E6B63;
  --petrol-deep:#084F49;
  --petrol-tint:#E2F1EE;
  --mint:        #F3F9F7;
  --mint-deep:   #E7F2EF;
  --paper:      #FFFFFF;
  --line:       #D6E6E2;
  --apricot:    #E2853F;
  --apricot-tint:#FDF0E3;
  --alarm:      #C4452F;
  --alarm-tint: #FBEAE6;
  --warn:       #C98A16;
  --warn-tint:  #FCF3DF;

  --radius:     18px;
  --radius-lg:  28px;
  --maxw:       1140px;
  --gutter:     clamp(20px, 5vw, 48px);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(16,49,47,.05), 0 6px 18px rgba(16,49,47,.05);
  --shadow-md: 0 2px 8px rgba(16,49,47,.06), 0 22px 50px rgba(16,49,47,.09);

  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--mint);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.028em; line-height: 1.13; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--petrol-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--petrol); }

:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--petrol-deep); color: #fff; padding: 12px 20px;
  border-radius: 0 0 12px 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 118px); }
.section--tight { padding-block: clamp(52px, 7vw, 88px); }
.section--paper { background: var(--paper); }
.section--deep { background: var(--petrol-deep); color: #E4F2EF; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--petrol); background: var(--petrol-tint);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.section--deep .eyebrow { color: #FFD8B0; background: rgba(226,133,63,.18); }

.h2 { font-size: clamp(30px, 4.4vw, 45px); }
.lede { font-size: clamp(17px, 1.9vw, 19.5px); color: var(--muted); max-width: 62ch; margin-top: 20px; }
.section--deep .lede { color: #A9CCC7; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243,249,247,.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.brand span { font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-size: 15px; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--petrol); }
@media (max-width: 900px) { .nav .nav-link { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-size: 15.5px; font-weight: 700; line-height: 1;
  padding: 16px 28px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--petrol); color: #fff; box-shadow: 0 8px 22px rgba(14,107,99,.26); }
.btn--primary:hover { background: var(--petrol-deep); color: #fff; box-shadow: 0 12px 28px rgba(14,107,99,.32); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--petrol); color: var(--petrol-deep); }
.btn--sm { padding: 11px 20px; font-size: 14.5px; border-width: 1.5px; }
.btn--block { width: 100%; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(52px, 8vw, 100px) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 52% at 82% 6%, rgba(226,133,63,.16), transparent 62%),
    radial-gradient(50% 48% at 4% 92%, rgba(14,107,99,.12), transparent 64%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(36px, 5.9vw, 63px); letter-spacing: -.035em; line-height: 1.07; }
.hero h1 mark { background: none; color: var(--petrol); }
.hero-lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-soft); max-width: 47ch; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14.5px; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { color: var(--petrol); flex: none; }

/* Anrufkarte */
.callcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 26px; position: relative;
}
.callcard-head { display: flex; align-items: center; gap: 13px; padding-bottom: 17px; border-bottom: 1px solid var(--line); margin-bottom: 19px; }
.callcard-dot { width: 42px; height: 42px; border-radius: 14px; flex: none; background: var(--petrol-tint); color: var(--petrol-deep); display: grid; place-items: center; }
.callcard-head strong { font-size: 15px; display: block; font-weight: 700; }
.callcard-head small { font-size: 13px; color: var(--muted); }
.callcard-live { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--petrol); display: inline-flex; align-items: center; gap: 6px; }
.callcard-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--petrol); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .28; } }
@media (prefers-reduced-motion: reduce) { .callcard-live i { animation: none; } }

.bubble { font-size: 15px; line-height: 1.55; padding: 12px 17px; border-radius: 17px; margin-bottom: 10px; max-width: 90%; }
.bubble--them { background: var(--mint-deep); color: var(--ink-soft); border-bottom-left-radius: 6px; }
.bubble--us { background: var(--petrol); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }

.callcard-verdict {
  margin-top: 18px; padding: 15px 17px; border-radius: 15px;
  background: var(--alarm-tint); border: 1.5px solid rgba(196,69,47,.28);
  display: flex; gap: 13px; align-items: flex-start;
}
.callcard-verdict svg { color: var(--alarm); flex: none; margin-top: 2px; }
.callcard-verdict strong { display: block; font-size: 14.6px; color: var(--alarm); font-weight: 800; margin-bottom: 3px; }
.callcard-verdict p { font-size: 14px; color: #8A3826; margin: 0; line-height: 1.5; }

/* ---------- Karten ---------- */
.cards { display: grid; gap: 18px; margin-top: 48px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .cards--3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards--4 { grid-template-columns: 1fr; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 27px 25px; box-shadow: var(--shadow-sm); }
.card-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--apricot-tint); color: #B4621F; margin-bottom: 17px; }
.card h3 { font-size: 18.5px; margin-bottom: 9px; font-weight: 800; }
.card p { font-size: 15.3px; color: var(--muted); line-height: 1.6; }

/* ---------- Triage ---------- */
.triage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
@media (max-width: 860px) { .triage { grid-template-columns: 1fr; } }
.tri {
  border-radius: var(--radius); padding: 26px 24px; border: 1.5px solid;
  background: var(--paper);
}
.tri--1 { border-color: rgba(196,69,47,.3); background: var(--alarm-tint); }
.tri--2 { border-color: rgba(201,138,22,.3); background: var(--warn-tint); }
.tri--3 { border-color: var(--line); background: var(--petrol-tint); }
.tri-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.tri--1 .tri-label { color: var(--alarm); }
.tri--2 .tri-label { color: #9A6A0F; }
.tri--3 .tri-label { color: var(--petrol-deep); }
.tri-label i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.tri h3 { font-size: 19px; margin-bottom: 10px; }
.tri p { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }
.tri ul { margin: 0; padding-left: 19px; font-size: 14.6px; color: var(--muted); }
.tri li { margin-bottom: 5px; }

.triage-note {
  margin-top: 26px; padding: 20px 24px; border-radius: var(--radius);
  background: var(--paper); border: 1.5px dashed var(--line);
  font-size: 15.2px; color: var(--ink-soft);
}
.triage-note strong { color: var(--ink); }

/* ---------- ROI ---------- */
.roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
@media (max-width: 900px) { .roi-grid { grid-template-columns: 1fr; } }
.roi-panel { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 36px); }
.roi-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15.5px; }
.roi-row:last-of-type { border-bottom: 0; }
.roi-row span { color: #9CC3BE; }
.roi-row b { font-size: 20px; font-weight: 800; color: #fff; }
.roi-total { margin-top: 20px; padding-top: 22px; border-top: 2px solid rgba(226,133,63,.5); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.roi-total span { font-size: 15.5px; color: #E4F2EF; font-weight: 600; }
.roi-total b { font-size: clamp(32px, 5vw, 44px); font-weight: 800; color: #F5AE6D; letter-spacing: -.03em; line-height: 1; }
.roi-fine { font-size: 13.2px; color: #96BBB6; margin-top: 18px; line-height: 1.55; }

/* ---------- Schritte ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; counter-reset: s; }
@media (max-width: 840px) { .steps { grid-template-columns: 1fr; gap: 18px; } }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px;
  background: var(--petrol); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 15.2px; color: var(--muted); }

/* ---------- Nutzen ---------- */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 40px; margin-top: 40px; padding: 0; list-style: none; }
@media (max-width: 780px) { .benefits { grid-template-columns: 1fr; } }
.benefits li { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line); }
.benefits svg { flex: none; color: var(--petrol); margin-top: 3px; }
.benefits strong { display: block; font-size: 16.5px; font-weight: 700; margin-bottom: 3px; }
.benefits p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Vertrauen ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
@media (max-width: 920px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }
.trust-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; background: var(--mint); }
.section--paper .trust-item { background: var(--mint); }
.trust-item svg { color: var(--petrol); margin-bottom: 13px; }
.trust-item strong { display: block; font-size: 16px; margin-bottom: 5px; font-weight: 700; }
.trust-item p { font-size: 14.6px; color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; max-width: 860px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 21px 52px 21px 24px; position: relative;
  font-size: 17px; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.2px solid var(--petrol); border-bottom: 2.2px solid var(--petrol);
  transform: rotate(45deg); transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--petrol-deep); }
.faq-body { padding: 0 26px 23px; font-size: 15.6px; color: var(--muted); }

/* ---------- Formular ---------- */
.cta-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(34px, 5vw, 64px); align-items: start; }
@media (max-width: 940px) { .cta-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 36px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 17px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--ink);
  background: var(--mint); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--petrol); background: var(--paper);
  box-shadow: 0 0 0 3px rgba(14,107,99,.14);
}
.field input::placeholder, .field textarea::placeholder { color: #90ABA7; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13.6px; color: var(--muted); line-height: 1.5; margin: 4px 0 20px; }
.form-consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--petrol); }
.form-fine { font-size: 13px; color: var(--muted); margin-top: 15px; text-align: center; }

.cta-side h2 { font-size: clamp(28px, 4.2vw, 42px); }
.cta-side .lede { margin-bottom: 28px; }
.cta-list { list-style: none; padding: 0; margin: 0; }
.cta-list li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; font-size: 15.6px; color: var(--ink-soft); }
.cta-list svg { flex: none; color: var(--petrol); margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9EB9B6; padding-block: 56px 32px; font-size: 14.8px; }
.footer-top { display: flex; justify-content: space-between; gap: 34px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand { color: #E4F2EF; }
.site-footer .brand:hover { color: #fff; }
.footer-blurb { max-width: 38ch; margin-top: 14px; color: #7E9D99; font-size: 14.5px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: #9EB9B6; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13.6px; color: #688582; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 780px; padding-block: clamp(48px, 7vw, 86px); }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 14px; }
.legal h2 { font-size: 23px; margin: 44px 0 12px; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; font-weight: 700; }
.legal p, .legal li { font-size: 16px; color: var(--ink-soft); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal .updated { color: var(--muted); font-size: 14.5px; }
.todo { background: var(--apricot-tint); border: 1.5px dashed var(--apricot); border-radius: 12px; padding: 15px 18px; font-size: 14.6px; color: #8C531F; margin: 22px 0; }
.todo strong { color: #6B3D12; }

/* ---------- Danke ---------- */
.thanks { min-height: 74vh; display: grid; place-items: center; text-align: center; padding-block: 70px; }
.thanks .inner { max-width: 520px; }
.thanks-ico { width: 68px; height: 68px; border-radius: 22px; background: var(--petrol-tint); color: var(--petrol-deep); display: grid; place-items: center; margin: 0 auto 26px; }
.thanks h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 16px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Kopfzeile der Anrufkarte auf kleinen Displays umbrechen lassen */
@media (max-width: 520px) {
  .callcard-head, .phone-head { flex-wrap: wrap; }
  .callcard-head > div, .phone-head > div { min-width: 0; flex: 1 1 60%; }
  .callcard-live, .phone-live { margin-left: 0; flex-basis: 100%; }
}
