/*
Theme Name: Cavoro Editorial Blue Gold v7
Theme URI: https://cavoro.de
Author: Cavoro
Description: Editoriales WordPress-Theme für Cavoro mit Sotheby-inspiriertem Blue-Gold-Farbsystem.
Version: BlueGold 7.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: cavoro-editorial
*/

:root {
  --bg: #ffffff;
  --bg-soft: rgba(0, 35, 73, .045);
  --paper: #ffffff;
  --ink: #002349;
  --ink-2: #213d5c;
  --muted: #64768a;
  --bronze: #957C3D;
  --bronze-dark: #6f5c2e;
  --sand: rgba(0, 35, 73, .08);
  --line: rgba(0, 35, 73, .14);
  --line-strong: rgba(0, 35, 73, .26);
  --shadow: 0 24px 70px rgba(0, 35, 73, .14);
  --radius: 28px;
  --container: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
}
.skip-link:focus { left: 16px; }
.container { width: var(--container); margin: 0 auto; }

.site-wrap {
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0%, rgba(149, 124, 61, .18), transparent 28rem),
    radial-gradient(circle at 4% 16%, rgba(0, 35, 73, .10), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, rgba(0, 35, 73, .055) 48%, #ffffff 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(0, 35, 73, .12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}
.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-size: 1.18rem;
  font-weight: 780;
  letter-spacing: -.035em;
}
.brand-claim {
  margin-top: 6px;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: .88rem;
  color: var(--ink-2);
}
.main-nav ul,
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 18px; }
.main-nav a { position: relative; padding: 8px 0; }
.main-nav a:hover { color: var(--ink); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 13px 22px;
  border: 1px solid rgba(0, 35, 73, .28);
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -.015em;
  white-space: nowrap;
  box-shadow: 0 12px 32px rgba(0, 35, 73, .16);
}
.header-cta:hover { background: #001a36; color: #fff !important; }
.header-cta::after { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 720;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 18px 44px rgba(0, 35, 73, .20); }
.button-primary:hover { background: #001a36; color: #fff; }
.button-secondary { background: rgba(255, 255, 255, .72); color: var(--ink); }
.button-secondary:hover { background: #ffffff; }

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  padding: clamp(74px, 9vw, 132px) 0 clamp(64px, 8vw, 110px);
  display: grid;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 22px 22px auto auto;
  width: min(46vw, 540px);
  aspect-ratio: 1;
  border: 1px solid rgba(149, 124, 61, .25);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .72fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: end;
}
.overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bronze-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.overline::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}
.hero h1 {
  margin: 24px 0 24px;
  max-width: 960px;
  font-size: clamp(3.7rem, 9.4vw, 8.8rem);
  line-height: .94;
  letter-spacing: -.065em;
  font-weight: 850;
}
.hero-lead {
  max-width: 720px;
  color: var(--ink-2);
  font-size: clamp(1.1rem, 1.6vw, 1.38rem);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.scroll-note {
  margin-top: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: .88rem;
}
.scroll-note span {
  width: 34px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  position: relative;
}
.scroll-note span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bronze);
  transform: translateX(-50%);
  animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { transform: translate(-50%,0); opacity: 1; } 80% { transform: translate(-50%,18px); opacity: 0; } 100% { opacity: 0; } }

.hero-card {
  position: relative;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(0, 35, 73, .14);
  box-shadow: var(--shadow);
  padding: 26px;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(149, 124, 61, .28), transparent 46%);
  pointer-events: none;
}
.process-orbit {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}
.orbit-ring {
  width: 260px;
  height: 260px;
  border: 1px solid rgba(0, 35, 73, .18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.26);
}
.orbit-core {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  letter-spacing: -.03em;
  box-shadow: 0 22px 56px rgba(0, 35, 73, .24);
}
.orbit-item {
  position: absolute;
  max-width: 138px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0, 35, 73, .14);
  box-shadow: 0 12px 30px rgba(0, 35, 73, .08);
  font-size: .82rem;
  color: var(--ink-2);
}
.orbit-item strong { display: block; color: var(--ink); font-size: .86rem; margin-bottom: 3px; }
.orbit-item:nth-child(2) { top: 14px; left: 26px; }
.orbit-item:nth-child(3) { top: 52px; right: 6px; }
.orbit-item:nth-child(4) { bottom: 52px; left: 0; }
.orbit-item:nth-child(5) { bottom: 16px; right: 32px; }

.story-section { padding: clamp(80px, 10vw, 144px) 0; }
.story-grid {
  display: grid;
  grid-template-columns: .46fr 1fr;
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}
.side-title { position: sticky; top: 120px; }
.section-index {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--bronze-dark);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
}
.side-title h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.story-copy {
  border-top: 1px solid var(--line-strong);
  padding-top: 28px;
}
.story-copy p {
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.25vw, 1.22rem);
  margin-bottom: 22px;
}
.story-copy .lead-strong {
  color: var(--ink);
  font-size: clamp(1.5rem, 2.7vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 760;
  margin-bottom: 28px;
}

.dual-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
  border-block: 1px solid var(--line);
}
.dual-panel > article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 6vw, 72px);
  min-height: 620px;
}
.panel-bright { background: var(--paper); }
.panel-dark { background: var(--ink); color: #f8fbff; }
.dual-panel h2 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 7.1rem);
  line-height: .94;
  letter-spacing: -.062em;
}
.dual-panel p { max-width: 580px; font-size: 1.08rem; color: inherit; opacity: .82; }
.panel-dark .button-secondary { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; }

.stats-band {
  padding: clamp(52px, 7vw, 86px) 0;
  background: #002349;
  color: #f8fbff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.16);
}
.stat-card {
  background: #002349;
  padding: 32px 26px;
  min-height: 170px;
}
.stat-card strong {
  display: block;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: .9;
  letter-spacing: -.06em;
  color: var(--bronze);
}
.stat-card span { display: block; margin-top: 16px; color: rgba(248,251,255,.82); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.editorial-card {
  min-height: 340px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 46px rgba(0, 35, 73, .06);
}
.editorial-card small {
  display: inline-block;
  color: var(--bronze-dark);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.editorial-card h3 {
  margin: 18px 0 12px;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.editorial-card p { color: var(--ink-2); }
.card-arrow { color: var(--bronze-dark); font-weight: 800; margin-top: 28px; }

.workflow-stage {
  position: relative;
  background: var(--paper);
  border-block: 1px solid var(--line);
  padding: clamp(72px, 10vw, 140px) 0;
  overflow: hidden;
}
.workflow-stage::before {
  content: "";
  position: absolute;
  inset: auto -10vw -20vw auto;
  width: 52vw;
  aspect-ratio: 1;
  border: 1px solid rgba(149,124,61,.24);
  border-radius: 50%;
}
.workflow-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
}
.workflow-steps {
  position: relative;
  border-left: 1px solid var(--line-strong);
  padding-left: 24px;
}
.workflow-step {
  position: relative;
  padding: 22px 0 22px 28px;
}
.workflow-step::before {
  content: attr(data-step);
  position: absolute;
  left: -46px;
  top: 20px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
}
.workflow-step h3 { margin: 0 0 6px; font-size: 1.22rem; letter-spacing: -.03em; }
.workflow-step p { color: var(--ink-2); }

.chat-window {
  border-radius: 28px;
  background: #002349;
  color: #f8fbff;
  padding: 26px;
  box-shadow: var(--shadow);
}
.chat-top { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 24px; color: rgba(248,251,255,.78); font-size: .86rem; }
.chat-msg { max-width: 84%; padding: 13px 15px; border-radius: 18px; margin: 12px 0; background: rgba(255,255,255,.08); }
.chat-msg.bot { background: rgba(149,124,61,.24); margin-left: auto; }
.chat-input { margin-top: 18px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(248,251,255,.64); }

.contact-band {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--ink);
  color: #f8fbff;
}
.contact-grid { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(34px, 7vw, 86px); align-items: start; }
.contact-band h2 { margin: 0 0 24px; font-size: clamp(2.7rem, 6vw, 6rem); line-height: .96; letter-spacing: -.06em; }
.contact-band p { color: rgba(248,251,255,.76); font-size: 1.08rem; }
.contact-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 28px; padding: 28px; }
.contact-row { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-row:last-child { border-bottom: 0; }
.contact-row small { display: block; color: rgba(248,251,255,.60); margin-bottom: 4px; }
.contact-row strong { display: block; font-size: 1.12rem; }

.page-main { padding: clamp(70px, 9vw, 128px) 0; }
.page-shell { max-width: 880px; }
.page-shell h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: .96; letter-spacing: -.06em; margin: 0 0 30px; }
.page-shell .content { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 28px; padding: clamp(26px, 5vw, 52px); color: var(--ink-2); }
.page-shell .content h2, .page-shell .content h3 { color: var(--ink); letter-spacing: -.04em; }
.page-shell .content a { color: var(--bronze-dark); text-decoration: underline; text-underline-offset: 3px; }

.site-footer {
  background: rgba(0, 35, 73, .07);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 92px;
  font-size: .9rem;
}
.footer-nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.footer-nav a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .header-inner { min-height: auto; padding: 16px 0; align-items: flex-start; }
  .main-nav { display: none; }
  .brand-claim { display: none; }
  .hero { min-height: auto; }
  .hero-grid, .story-grid, .workflow-layout, .contact-grid { grid-template-columns: 1fr; }
  .side-title { position: relative; top: auto; }
  .dual-panel { grid-template-columns: 1fr; }
  .dual-panel > article { min-height: 430px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --container: min(100vw - 28px, 1180px); }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.05rem; }
  .hero h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .hero-card { padding: 18px; }
  .process-orbit { min-height: auto; display: block; }
  .orbit-ring { display: none; }
  .orbit-item { position: relative; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; margin: 10px 0; max-width: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; padding: 26px 0; }
}

/* === Cavoro Editorial v2 additions === */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform .2s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.mobile-nav-inner { padding: 18px 0 24px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mobile-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-weight: 720;
}
.mobile-nav .header-cta { justify-content: center; background: var(--ink); color: #fff !important; }

.subpage-main { background: linear-gradient(180deg, #ffffff 0%, rgba(0, 35, 73, .055) 50%, #ffffff 100%); }
.sub-hero {
  padding: clamp(90px, 12vw, 170px) 0 clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.sub-hero::after {
  content: "";
  position: absolute;
  right: -24vw;
  top: 6%;
  width: min(50vw, 600px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(149,124,61,.18);
  pointer-events: none;
  z-index: 0;
}
.sub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .54fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: end;
  position: relative;
  z-index: 1;
}
.sub-hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(3.2rem, 8.8vw, 8.2rem);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 850;
}
.sub-hero p {
  max-width: 520px;
  justify-self: start;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
  line-height: 1.68;
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}
.editorial-stack { padding: clamp(64px, 9vw, 120px) 0; }
.service-list { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(20px, 4vw, 54px);
  align-items: start;
  background: rgba(255,255,255,.78);
  padding: clamp(28px, 5vw, 58px);
}
.service-row > span {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: .9;
  font-weight: 850;
  letter-spacing: -.07em;
  color: var(--bronze);
}
.service-row h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.6vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -.052em;
}
.service-row p { max-width: 820px; color: var(--ink-2); font-size: 1.08rem; }
.compact-band { padding: clamp(64px, 8vw, 100px) 0; }
.workflow-gallery { padding: clamp(64px, 9vw, 120px) 0; background: var(--paper); }
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.case-card {
  min-height: 380px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
}
.case-card.featured { grid-column: span 2; background: #002349; color: #f8fbff; box-shadow: var(--shadow); }
.case-card small { color: var(--bronze); text-transform: uppercase; letter-spacing: .12em; font-weight: 850; }
.case-card h2 { margin: 18px 0 16px; font-size: clamp(1.8rem, 3.4vw, 3.65rem); line-height: 1.02; letter-spacing: -.055em; overflow: visible; }
.case-card p { color: inherit; opacity: .78; }
.case-card ul { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.case-card li { padding-left: 18px; position: relative; }
.case-card li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--bronze); }
.no-border-top { border-top: 0; }
.tighter { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.cards-section { padding: clamp(56px, 8vw, 100px) 0; }
.four-cards { grid-template-columns: repeat(4, 1fr); }
.four-cards .editorial-card { min-height: 260px; }
.slim-panel, .slim-panel > article { min-height: 520px; }
.contact-page-section { padding: clamp(64px, 9vw, 120px) 0; }
.contact-page-grid { display: grid; grid-template-columns: .78fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.light-panel { background: rgba(255,255,255,.78); color: var(--ink); border-color: var(--line); }
.light-panel .contact-row { border-bottom-color: var(--line); }
.light-panel .contact-row small { color: var(--muted); }
.form-placeholder {
  border-radius: 30px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: clamp(30px, 5vw, 58px);
  box-shadow: 0 18px 48px rgba(0,35,73,.08);
}
.form-placeholder h2 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.06em;
}
.form-placeholder p { color: var(--ink-2); margin-bottom: 28px; font-size: 1.08rem; }
.legal-page { background: linear-gradient(180deg, #ffffff 0%, rgba(0, 35, 73, .055) 100%); }
.legal-content ul { margin-top: 10px; }
.legal-content li { margin-bottom: 8px; }

@media (max-width: 1100px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .four-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .mobile-nav.is-open { display: block; }
  .sub-hero-grid, .contact-page-grid { grid-template-columns: 1fr; }
  .sub-hero h1 { font-size: clamp(3rem, 13vw, 6rem); line-height: 1; }
  .service-row { grid-template-columns: 1fr; }
  .service-row > span { font-size: 3rem; }
}
@media (max-width: 700px) {
  .case-grid, .four-cards { grid-template-columns: 1fr; }
  .case-card.featured { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr !important; }
}
/* === Cavoro Editorial v3 typography/layout fixes === */
.main-nav .cta-menu-item { margin-left: 2px; }
.main-nav .cta-menu-item a { padding: 13px 22px; }
.main-nav .cta-menu-item a::after { display: none; }

.hero h1,
.sub-hero h1,
.side-title h2,
.dual-panel h2,
.contact-band h2,
.page-shell h1,
.service-row h2,
.case-card h2,
.form-placeholder h2 {
  text-wrap: balance;
}

.sub-hero > .container { position: relative; z-index: 1; }

.case-card.featured h2 {
  font-size: clamp(2.35rem, 4.2vw, 4.15rem);
  line-height: 1.04;
  padding-top: 2px;
  padding-bottom: 2px;
}

@media (max-width: 1200px) {
  .sub-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, .52fr); }
  .sub-hero::after { right: -32vw; opacity: .75; }
}

@media (max-width: 980px) {
  .sub-hero::after { right: -44vw; top: 0; width: 78vw; opacity: .45; }
  .sub-hero p { max-width: 760px; }
  .header-cta { min-height: 48px; padding: 15px 22px; }
}

@media (max-width: 700px) {
  .hero h1, .sub-hero h1 { letter-spacing: -.052em; }
  .dual-panel h2 { letter-spacing: -.05em; }
  .case-card { padding: 26px; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 30px;
  align-items: start;
  padding: 44px 0 24px;
}
.footer-name { font-size: 1.25rem; font-weight: 850; letter-spacing: -.04em; color: var(--ink); }
.footer-brand p { margin: 6px 0 8px; color: var(--ink); font-weight: 700; }
.footer-brand small { color: var(--muted); }
.footer-bottom { padding: 18px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }


/* === Cavoro Editorial v4 editable content areas === */
.editor-section {
  padding: clamp(56px, 8vw, 104px) 0;
  background: rgba(255, 255, 255, .42);
  border-top: 1px solid var(--line);
}
.editor-section + .editorial-stack,
.editor-section + .workflow-gallery,
.editor-section + .story-section,
.editor-section + .cards-section {
  border-top: 0;
}
.editor-panel,
.wp-editor-content {
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(26px, 5vw, 58px);
  box-shadow: 0 18px 48px rgba(0,35,73,.07);
  color: var(--ink-2);
}
.editor-panel > *:first-child,
.wp-editor-content > *:first-child,
.content > *:first-child { margin-top: 0; }
.editor-panel > *:last-child,
.wp-editor-content > *:last-child,
.content > *:last-child { margin-bottom: 0; }
.editor-panel p,
.wp-editor-content p,
.content p { margin: 0 0 1.05em; }
.editor-panel h2,
.editor-panel h3,
.wp-editor-content h2,
.wp-editor-content h3,
.content h2,
.content h3 {
  margin: 1.25em 0 .55em;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.editor-panel h2,
.wp-editor-content h2,
.content h2 { font-size: clamp(1.8rem, 3vw, 3.1rem); }
.editor-panel h3,
.wp-editor-content h3,
.content h3 { font-size: clamp(1.35rem, 2.1vw, 2rem); }
.editor-panel ul,
.editor-panel ol,
.wp-editor-content ul,
.wp-editor-content ol,
.content ul,
.content ol {
  margin: 1em 0 1.2em;
  padding-left: 1.2em;
}
.editor-panel li,
.wp-editor-content li,
.content li { margin: .35em 0; }
.editor-panel a,
.wp-editor-content a,
.content a { color: var(--bronze-dark); text-decoration: underline; text-underline-offset: 3px; }
.editor-hint {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--bronze-dark);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.legal-content .editor-panel,
.legal-content.wp-editor-content { box-shadow: none; }
.contact-page-section .wp-editor-content { margin-top: 24px; }

@media (max-width: 700px) {
  .editor-section { padding: 42px 0; }
  .editor-panel, .wp-editor-content { border-radius: 22px; padding: 24px; }
}


/* === Cavoro Editorial v5 hero/spacing refinement ===
   Ziel: Startseiten-Orbit entzerren, Unterseiten-Hero wieder stärker/lesbarer machen,
   Kreis-Designelement sichtbarer positionieren und Header-CTA sauberer setzen. */

/* Startseite: Orbit-Element 02 etwas weiter vom Zentrum weg, ohne aus der Karte zu laufen. */
@media (min-width: 981px) {
  .orbit-item:nth-child(3) {
    right: -12px;
    top: 48px;
  }
}

/* Header-CTA: mehr Luft, stabilere Zeilenhöhe, keine gequetschte Schrift. */
.header-cta,
.main-nav .cta-menu-item a.header-cta {
  min-height: 48px;
  padding: 14px 26px;
  line-height: 1.18;
  letter-spacing: -.005em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.main-nav .cta-menu-item { margin-left: 6px; }
.main-nav .cta-menu-item a { padding: 14px 26px; }
.mobile-nav .cta-menu-item a.header-cta {
  min-height: 54px;
  padding: 0 18px;
}

/* Unterseiten-Hero: wieder präsenter, aber mit sicherem Abstand zwischen Headline und Text. */
.sub-hero {
  padding: clamp(88px, 11vw, 158px) 0 clamp(62px, 8vw, 104px);
  overflow: hidden;
  isolation: isolate;
}
.sub-hero::after {
  right: -13vw;
  top: 8%;
  width: min(46vw, 560px);
  opacity: .9;
  border-color: rgba(149,124,61,.24);
}
.sub-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .48fr);
  gap: clamp(58px, 7vw, 108px);
  align-items: center;
}
.sub-hero h1 {
  max-width: 940px;
  font-size: clamp(3.3rem, 7.8vw, 7.45rem);
  line-height: 1.01;
  letter-spacing: -.058em;
  overflow: visible;
}
.sub-hero p {
  max-width: 460px;
  justify-self: end;
  line-height: 1.72;
  padding-top: 26px;
  position: relative;
  z-index: 2;
}

/* Leistungen: lange Hero-Headline zusätzlich stabilisieren. */
body.page-template-page-leistungen .sub-hero h1,
body.page-id .sub-hero h1 {
  overflow: visible;
}

/* Service- und Case-Headlines: mehr vertikale Luft gegen gequetschte Wirkung. */
.service-row h2,
.case-card h2,
.story-copy .lead-strong,
.dual-panel h2,
.side-title h2 {
  line-height: 1.06;
  letter-spacing: -.052em;
}
.case-card.featured h2 {
  line-height: 1.07;
  margin-top: 20px;
  margin-bottom: 18px;
}

/* Überschriften generell etwas weniger aggressiv, damit sie hochwertiger und weniger gedrückt wirken. */
.hero h1 {
  line-height: .97;
  letter-spacing: -.058em;
}

@media (max-width: 1200px) {
  .sub-hero::after {
    right: -18vw;
    width: min(58vw, 560px);
    opacity: .72;
  }
  .sub-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .5fr);
    gap: clamp(42px, 6vw, 76px);
  }
  .sub-hero h1 {
    font-size: clamp(3.1rem, 7.3vw, 6.5rem);
  }
}

@media (max-width: 980px) {
  .sub-hero {
    padding-top: clamp(70px, 12vw, 112px);
  }
  .sub-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .sub-hero p {
    justify-self: start;
    max-width: 760px;
  }
  .sub-hero::after {
    right: -20vw;
    top: 4%;
    width: 68vw;
    opacity: .34;
  }
}

@media (max-width: 700px) {
  .sub-hero h1 {
    font-size: clamp(2.65rem, 14vw, 4.65rem);
    line-height: 1.03;
    letter-spacing: -.048em;
  }
  .hero h1 {
    line-height: 1.01;
  }
}


/* === Cavoro Editorial v6 case-card featured fix ===
   Behebt abgeschnittene/komisch beschnittene Workflow-Kacheln. */
.workflow-gallery {
  overflow: visible;
}

.workflow-gallery .container.case-grid {
  overflow: visible;
}

.case-grid {
  align-items: stretch;
  grid-auto-rows: auto;
  overflow: visible;
}

.case-card {
  position: relative;
  height: auto;
  min-height: 0;
  align-self: stretch;
  justify-content: flex-start;
  gap: 22px;
  overflow: visible;
  contain: none;
}

.case-card > * {
  min-width: 0;
}

.case-card.featured {
  grid-column: span 2;
  min-height: 430px;
  padding: clamp(36px, 4.6vw, 58px);
  overflow: visible;
}

.case-card.featured h2 {
  max-width: 100%;
  font-size: clamp(2.25rem, 4vw, 3.95rem);
  line-height: 1.08;
  letter-spacing: -.05em;
  margin: 22px 0 18px;
  overflow: visible;
  word-break: normal;
  overflow-wrap: normal;
}

.case-card.featured p {
  max-width: 680px;
}

.case-card.featured ul {
  margin-top: 28px;
}

@media (max-width: 1100px) {
  .case-card.featured {
    min-height: 390px;
  }
}

@media (max-width: 700px) {
  .case-card,
  .case-card.featured {
    min-height: 0;
    padding: 28px;
  }

  .case-card.featured h2 {
    font-size: clamp(2.05rem, 12vw, 3.3rem);
    line-height: 1.08;
  }
}


/* === Cavoro Editorial v7 workflow grid fix ===
   Ursache: CSS Grid mit 1fr nutzt implizit minmax(auto, 1fr). Lange Headlines
   in den anderen Workflow-Karten haben einzelne Spalten verbreitert und die
   Featured-Kachel dadurch rechts zusammengedrückt. Dadurch wurde "Anfragepilot"
   am rechten Rand abgeschnitten. */
.workflow-gallery .case-grid,
.case-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.case-card,
.case-card.featured {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
.case-card h2,
.case-card.featured h2 {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.case-card.featured h2 {
  font-size: clamp(2.15rem, 3.2vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  padding-right: .18em;
}
@media (max-width: 1100px) {
  .workflow-gallery .case-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-card.featured { grid-column: span 2; }
}
@media (max-width: 700px) {
  .workflow-gallery .case-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }
  .case-card.featured { grid-column: auto; }
  .case-card.featured h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}


/* === Cavoro Editorial v8 mobile workflow list fix ===
   Behebt abgeschnittene Workflow-Auflistungen auf Smartphone-Breite.
   Ursache: Die nummerierten Marker lagen links außerhalb des Containers
   und wurden durch das horizontale Overflow-Clipping des Layouts abgeschnitten. */
@media (max-width: 780px) {
  .workflow-stage {
    overflow: hidden;
  }

  .workflow-layout {
    gap: 32px;
  }

  .workflow-steps {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    border-left: 0;
    display: grid;
    gap: 14px;
  }

  .workflow-step {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px 0 20px 62px;
    overflow: visible;
  }

  .workflow-step::before {
    left: 0;
    top: 18px;
    width: 42px;
    height: 42px;
  }

  .workflow-step::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 68px;
    bottom: -14px;
    width: 1px;
    background: var(--line-strong);
  }

  .workflow-step:last-child::after {
    display: none;
  }

  .workflow-step h3,
  .workflow-step p {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
  }
}

@media (max-width: 420px) {
  .workflow-step {
    padding-left: 56px;
  }

  .workflow-step::before {
    width: 38px;
    height: 38px;
    font-size: .72rem;
  }

  .workflow-step::after {
    left: 18px;
    top: 64px;
  }
}


/* === Cavoro Editorial v11 fixed header ===
   Der Header bleibt dauerhaft sichtbar, auch beim Scrollen.
   Der zusätzliche obere Abstand verhindert, dass Inhalte unter dem fixierten Header liegen. */
:root {
  --header-height: 82px;
}

html {
  scroll-padding-top: calc(var(--header-height) + 24px);
}

.site-wrap {
  padding-top: var(--header-height);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 5000;
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 78px;
  }

  html {
    scroll-padding-top: calc(var(--header-height) + 18px);
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 74px;
  }
}


/* === Cavoro Bluegold v2: Contact Form 7 integration === */
.cavoro-contact-form-wrap {
  margin-top: 24px;
}

.cavoro-contact-form-wrap .wpcf7-form {
  display: grid;
  gap: 18px;
}

.cavoro-contact-form-wrap .wpcf7-form p {
  margin: 0;
}

.cavoro-contact-form-wrap label,
.cavoro-contact-form-wrap .wpcf7-list-item-label {
  color: var(--ink-2);
  font-size: .94rem;
  font-weight: 650;
}

.cavoro-contact-form-wrap input[type="text"],
.cavoro-contact-form-wrap input[type="email"],
.cavoro-contact-form-wrap input[type="tel"],
.cavoro-contact-form-wrap textarea,
.cavoro-contact-form-wrap select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font: inherit;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.cavoro-contact-form-wrap textarea {
  min-height: 150px;
  resize: vertical;
}

.cavoro-contact-form-wrap input:focus,
.cavoro-contact-form-wrap textarea:focus,
.cavoro-contact-form-wrap select:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 4px rgba(149,124,61,.14);
  background: #fff;
}

.cavoro-contact-form-wrap input[type="submit"],
.cavoro-contact-form-wrap button[type="submit"] {
  appearance: none;
  border: 0;
  cursor: pointer;
  justify-self: start;
  border-radius: 999px;
  padding: 14px 24px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  letter-spacing: -.01em;
  box-shadow: 0 16px 34px rgba(0,35,73,.18);
}

.cavoro-contact-form-wrap input[type="submit"]:hover,
.cavoro-contact-form-wrap button[type="submit"]:hover {
  background: var(--bronze-dark);
}

.cavoro-contact-form-wrap .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #9b2d20;
  font-size: .84rem;
}

.cavoro-contact-form-wrap .wpcf7-response-output {
  margin: 4px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 14px;
  border-color: var(--line-strong) !important;
  color: var(--ink-2);
}

.contact-privacy-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: .9rem;
}


/* === Cavoro Editorial Bluegold v3 legal content overflow fix ===
   Behebt lange Datenschutz-/Rechtstexte, die in der Kachel rechts herauslaufen.
   Layout und Farbschema bleiben unverändert. */
.page-shell,
.page-shell .content,
.legal-content,
.legal-content > * {
  min-width: 0;
  max-width: 100%;
}

.legal-content {
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.legal-content p,
.legal-content li,
.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content a,
.legal-content strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.legal-content ul,
.legal-content ol {
  max-width: 100%;
  padding-left: 1.25em;
}

.legal-content table,
.legal-content pre {
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100%, calc(100vw - 32px));
  }

  .page-shell .content {
    padding: 24px 20px;
  }
}


/* === Cavoro Bluegold v4 footer legal links ===
   Entfernt den AGB-Footerlink und stellt die Links als
   Impressum | Datenschutz | Kontakt dar. */
.footer-legal-list {
  gap: 10px !important;
}

.footer-separator {
  color: var(--muted);
  opacity: .72;
  user-select: none;
}

.footer-legal-list a {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .footer-legal-list {
    justify-content: flex-start;
    row-gap: 8px !important;
  }
}


/* === Cavoro Editorial Bluegold v5 workflow card heading fix ===
   Korrigiert hässliche Zeilenumbrüche der Überschriften in den Workflow-Karten 02–04.
   Ursache: Die nicht hervorgehobenen Workflow-Karten sind im 4-Spalten-Raster schmal,
   während die Headline-Größe aus dem allgemeinen Case-Card-Stil zu groß war. */
.workflow-gallery .case-card:not(.featured) h2 {
  font-size: clamp(1.62rem, 1.85vw, 2rem);
  line-height: 1.12;
  letter-spacing: -.032em;
  margin: 16px 0 14px;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}

.workflow-gallery .case-card:not(.featured) {
  gap: 18px;
}

@media (max-width: 1100px) {
  .workflow-gallery .case-card:not(.featured) h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.55rem);
    line-height: 1.1;
  }
}

@media (max-width: 700px) {
  .workflow-gallery .case-card:not(.featured) h2 {
    font-size: clamp(2rem, 8.5vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -.04em;
  }
}



/* === Cavoro Editorial Bluegold v7 Rudi-style local chatbot ===
   Orientiert sich funktional am kompakten Website-Chatbot-Prinzip:
   Floating CTA, Bot-Identität, freie Eingabe, Hinweis auf begrenzte Website-Inhalte.
   Keine externe KI, keine API, keine Cookies, kein Tracking. */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cavoro-chatbot {
  position: fixed;
  right: clamp(16px, 2.4vw, 28px);
  bottom: clamp(16px, 2.4vw, 28px);
  z-index: 980;
  font-family: inherit;
}

.cavoro-chat-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 20px;
  border: 1px solid rgba(149, 124, 61, .48);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 820;
  letter-spacing: -.018em;
  cursor: pointer;
  box-shadow: 0 20px 54px rgba(0, 35, 73, .24);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.cavoro-chat-toggle:hover,
.cavoro-chat-toggle:focus-visible {
  background: #001a36;
  transform: translateY(-1px);
  box-shadow: 0 24px 64px rgba(0, 35, 73, .28);
  outline: none;
}

.cavoro-chat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bronze);
  box-shadow: 0 0 0 5px rgba(149, 124, 61, .18);
}

.cavoro-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(410px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 126px));
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .985), rgba(255, 255, 255, .95)),
    radial-gradient(circle at 100% 0%, rgba(149, 124, 61, .17), transparent 16rem),
    radial-gradient(circle at 0% 100%, rgba(0, 35, 73, .08), transparent 14rem);
  border: 1px solid rgba(0, 35, 73, .16);
  border-radius: 24px;
  box-shadow: 0 28px 84px rgba(0, 35, 73, .22);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.cavoro-chatbot.is-open .cavoro-chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cavoro-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 15px;
  background: rgba(0, 35, 73, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.cavoro-chat-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cavoro-chat-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bronze);
  color: #fff;
  font-size: .92rem;
  font-weight: 850;
  letter-spacing: -.04em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.cavoro-chat-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, .68);
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.cavoro-chat-title {
  margin: 0;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.12;
  letter-spacing: -.026em;
  white-space: nowrap;
}

.cavoro-chat-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.cavoro-chat-close:hover,
.cavoro-chat-close:focus-visible {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .34);
  outline: none;
}

.cavoro-chat-body {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 14px;
  overflow: hidden;
}

.cavoro-chat-source-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(149, 124, 61, .22);
  border-radius: 16px;
  background: rgba(149, 124, 61, .08);
  color: var(--ink-2);
  font-size: .8rem;
  line-height: 1.38;
}

.cavoro-chat-messages {
  flex: 1 1 auto;
  min-height: 180px;
  max-height: 355px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 2px 4px 8px;
  overflow-y: auto;
}

.cavoro-chat-message {
  max-width: 92%;
  padding: 11px 13px;
  border-radius: 18px;
  font-size: .91rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cavoro-chat-message.is-bot {
  justify-self: start;
  background: rgba(0, 35, 73, .065);
  color: var(--ink-2);
  border-top-left-radius: 7px;
}

.cavoro-chat-message.is-user {
  justify-self: end;
  background: var(--ink);
  color: #fff;
  border-top-right-radius: 7px;
}

.cavoro-chat-message.is-typing {
  color: var(--muted);
  font-size: .82rem;
  background: rgba(0, 35, 73, .045);
}

.cavoro-chat-suggestions {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}

.cavoro-chat-option {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0, 35, 73, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-weight: 680;
  line-height: 1.25;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.cavoro-chat-option:hover,
.cavoro-chat-option:focus-visible {
  background: #fff;
  border-color: rgba(149, 124, 61, .48);
  transform: translateY(-1px);
  outline: none;
}

.cavoro-chat-form {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 35, 73, .1);
}

.cavoro-chat-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(0, 35, 73, .16);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
  outline: none;
}

.cavoro-chat-input:focus {
  border-color: rgba(149, 124, 61, .72);
  box-shadow: 0 0 0 3px rgba(149, 124, 61, .14);
}

.cavoro-chat-send {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--bronze);
  border-radius: 999px;
  background: var(--bronze);
  color: #fff;
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
}

.cavoro-chat-send:hover,
.cavoro-chat-send:focus-visible {
  background: var(--bronze-dark);
  border-color: var(--bronze-dark);
  outline: none;
}

.cavoro-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.cavoro-chat-link,
.cavoro-chat-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 780;
  line-height: 1;
}

.cavoro-chat-link {
  background: var(--bronze);
  color: #fff;
  border: 1px solid var(--bronze);
}

.cavoro-chat-link:hover,
.cavoro-chat-link:focus-visible {
  background: var(--bronze-dark);
  color: #fff;
  outline: none;
}

.cavoro-chat-reset {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(0, 35, 73, .18);
  cursor: pointer;
}

.cavoro-chat-reset:hover,
.cavoro-chat-reset:focus-visible {
  border-color: rgba(0, 35, 73, .34);
  outline: none;
}

.cavoro-chat-note {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.36;
}

@media (max-width: 700px) {
  .cavoro-chatbot {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .cavoro-chat-toggle {
    margin-left: auto;
    padding-inline: 18px;
  }

  .cavoro-chat-panel {
    right: 0;
    left: 0;
    width: 100%;
    max-height: min(650px, calc(100vh - 112px));
    border-radius: 22px;
  }

  .cavoro-chat-body {
    min-height: 410px;
  }

  .cavoro-chat-title {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .cavoro-chat-form {
    gap: 6px;
  }

  .cavoro-chat-send {
    padding-inline: 11px;
  }
}
