/* 99 – Chat · Die Seite als Messenger-Verlauf mit dem Reisebüro (eigene, neutrale Oberfläche) */
:root {
  --sand: #ece3d4;
  --sand-2: #e4d9c6;
  --panel: #f8f4ec;
  --panel-2: #f3ede2;
  --line: #e0d5c2;
  --line-2: #d3c6af;
  --in: #fffdf8;
  --petrol: #0e5d64;
  --petrol-d: #0a454b;
  --petrol-soft: #d9eae7;
  --ink: #1d2625;
  --muted: #5b6460;
  --sun: #fbc108;
  --amber: #c7811e;
  --coral: #d9694a;
  --sans: 'Figtree', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --r: 20px;
  --bar: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 17px/1.55 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure, address { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
svg { fill: currentColor; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--petrol); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2fa36b; box-shadow: 0 0 0 3px rgba(47,163,107,.18); margin-right: 8px; vertical-align: 1px; flex: none; }

/* ---------- App-Gerüst ---------- */
.app { display: grid; grid-template-columns: 300px minmax(0, 1fr) 330px; grid-template-rows: 1fr auto; min-height: 100vh; }
.side { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 20; }
.chat { grid-column: 2; grid-row: 1; position: relative; min-width: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(120, 96, 60, .09) 1px, transparent 1.6px) 0 0 / 22px 22px,
    var(--sand); }
.info { grid-column: 3; grid-row: 1 / span 2; position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--panel); border-left: 1px solid var(--line); padding: 28px 24px 32px; }
.foot { grid-column: 2; grid-row: 2; background: var(--sand); }

/* ---------- Seitenleiste = Kopf + Navigation ---------- */
.side__top { display: flex; align-items: center; gap: 14px; padding: 22px 20px 18px; border-bottom: 1px solid var(--line); }
.side__logo { flex: none; display: block; background: #fff; border-radius: 14px; padding: 7px 8px; box-shadow: 0 1px 0 var(--line-2), 0 6px 16px -10px rgba(60, 40, 10, .35); }
.side__logo img { width: 56px; height: auto; aspect-ratio: 1510 / 1300; }
.side__who { min-width: 0; }
.side__name { font: 800 16px/1.2 var(--sans); letter-spacing: -.01em; white-space: nowrap; }
.side__status { font: 500 12.5px/1.3 var(--ui); color: var(--muted); margin-top: 4px; display: flex; align-items: center; }
.menu { display: none; }
.side__top .lang--mob { display: none; }

.threads { flex: 1; display: flex; flex-direction: column; padding: 14px 10px 16px; }
.threads__h { font: 600 11.5px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px 12px 12px; }
.thread { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; text-decoration: none; position: relative; transition: background .2s; }
.thread:hover { background: var(--panel-2); }
.thread[aria-current="true"] { background: var(--petrol-soft); }
.thread[aria-current="true"]::before { content: ""; position: absolute; left: -10px; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--petrol); }
.thread__ava { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.thread__ava svg { width: 22px; height: 22px; }
.thread__ava--a { background: var(--petrol); }
.thread__ava--b { background: #3c7f8f; }
.thread__ava--c { background: var(--amber); }
.thread__ava--d { background: var(--coral); }
.thread__ava--e { background: #4b6a3e; }
.thread__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.thread__title { font: 700 16px/1.25 var(--sans); }
.thread__prev { font: 400 13.5px/1.3 var(--ui); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; align-self: start; padding-top: 3px; }
.thread__time { font: 500 11.5px/1 var(--ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--sun); color: #2d2300; font: 700 11.5px/20px var(--ui); text-align: center; }
.side__foot { margin-top: 22px; padding: 18px 12px 4px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: stretch; }
.side__call { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-radius: 16px; background: var(--petrol); color: #fff; text-decoration: none; font: 700 16px/1.2 var(--sans); transition: background .2s; }
.side__call:hover { background: var(--petrol-d); }
.side__call svg { width: 20px; height: 20px; flex: none; }
.side__call span { white-space: nowrap; }
.side__call small { display: block; font: 500 12px/1.3 var(--ui); opacity: .85; }
.lang { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 56px; padding: 0 12px; border-radius: 16px; border: 1.5px solid var(--line-2); text-decoration: none; font: 700 14px/1 var(--ui); letter-spacing: .06em; color: var(--petrol-d); background: var(--in); transition: border-color .2s, background .2s; }
.lang:hover { border-color: var(--petrol); background: var(--petrol-soft); }
.lang svg { width: 17px; height: 17px; flex: none; }
.side__foot .lang svg { display: none; }
.side__call span { font-size: 15px; }

/* ---------- Chatkopf ---------- */
.chat__bar { position: sticky; top: 0; z-index: 10; height: var(--bar); display: flex; align-items: center; gap: 14px; padding: 0 clamp(16px, 3vw, 40px); background: rgba(248, 244, 236, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.chat__who { min-width: 0; flex: 1; }
.chat__name { font: 800 17px/1.2 var(--sans); }
.chat__city { font-weight: 500; color: var(--muted); }
.chat__status { font: 500 13px/1.3 var(--ui); color: var(--muted); display: flex; align-items: center; margin-top: 3px; }
.chat__act { display: flex; gap: 8px; align-items: center; }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--petrol); background: var(--in); border: 1px solid var(--line); transition: background .2s, color .2s; }
.iconbtn:hover { background: var(--petrol); color: #fff; }
.iconbtn svg { width: 19px; height: 19px; }
.lang--bar { height: 42px; min-width: 52px; border-radius: 21px; }

.ava { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 1px var(--line), 0 2px 6px -3px rgba(60, 40, 10, .3); overflow: hidden; }
.ava img { width: 32px; height: auto; aspect-ratio: 1510 / 1300; }
.ava--bar { width: 46px; height: 46px; }
.ava--bar img { width: 36px; }

/* ---------- Verlauf ---------- */
.thread-log { padding: 26px clamp(16px, 3.4vw, 56px) 40px; max-width: 920px; margin-inline: auto; }
.day + .day { margin-top: clamp(64px, 8vw, 104px); }
.pill { text-align: center; margin: 0 0 22px; }
.pill--day { position: sticky; top: calc(var(--bar) + 10px); z-index: 4; }
.pill span { display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(255, 253, 248, .9); box-shadow: 0 0 0 1px var(--line); font: 600 12px/1.2 var(--ui); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

.msg { position: relative; display: flex; flex-direction: column; align-items: flex-start; margin-top: 6px; }
.msg--in { padding-left: 52px; }
.msg--first { margin-top: 18px; }
.msg--in.msg--first > .ava { position: absolute; left: 0; top: 0; }
.msg--out { align-items: flex-end; margin-top: 18px; }
.bubble { position: relative; max-width: min(620px, 88%); padding: 13px 18px 14px; border-radius: var(--r); background: var(--in); box-shadow: 0 0 0 1px rgba(160, 135, 95, .16), 0 1px 2px rgba(60, 40, 10, .08); }
.msg--in.msg--first > .bubble { border-top-left-radius: 6px; }
.msg--out > .bubble { background: var(--petrol); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 2px 6px -2px rgba(10, 69, 75, .45); font-weight: 500; }
.bubble h2 { font: 800 clamp(24px, 2.3vw, 30px)/1.15 var(--sans); letter-spacing: -.015em; margin-bottom: 8px; text-wrap: balance; }
.bubble p + p { margin-top: 8px; }
.bubble__from { font: 700 13px/1 var(--ui); color: var(--petrol); margin-bottom: 12px; letter-spacing: .01em; }
.meta { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font: 500 11.5px/1 var(--ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.meta svg { width: 16px; height: 10px; color: var(--petrol); }
.meta--in { display: block; text-align: right; margin: 6px -4px -4px 0; }

/* Hero */
.hero { min-height: calc(100vh - var(--bar) - 60px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 12px; }
.hero .pill--day { position: static; }
.bubble--hero { max-width: min(720px, 94%); padding: 22px 28px 26px; }
.bubble--hero h1 { font: 800 clamp(34px, 3.7vw, 58px)/1.04 var(--sans); letter-spacing: -.028em; text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.55; }
.replies { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.replies__h { width: 100%; text-align: right; font: 600 11.5px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--petrol); color: var(--petrol-d); background: var(--in); text-decoration: none; font: 700 16px/1.1 var(--sans); transition: background .2s, color .2s, transform .15s; }
.chip:hover { background: var(--petrol-soft); }
.chip:active { transform: scale(.97); }
.chip svg { width: 18px; height: 18px; flex: none; }
.chip--solid { background: var(--petrol); color: #fff; }
.chip--solid:hover { background: var(--petrol-d); }

/* Tippindikator */
.typing { display: flex; align-items: flex-end; gap: 12px; margin-top: 18px; }
.typing__dots { display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 6px 18px 18px 18px; background: var(--in); box-shadow: 0 0 0 1px rgba(160, 135, 95, .16); }
.typing__dots i { width: 8px; height: 8px; border-radius: 50%; background: #9aa39f; }
.typing__txt { font: 500 13px/1.3 var(--ui); color: var(--muted); padding-bottom: 12px; }
.seq-typing { display: none; }

/* Fälle */
.bubble--card { max-width: min(700px, 100%); width: 100%; padding: 16px 18px 14px; }
.card__head { display: flex; align-items: center; gap: 10px; font: 700 13px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--petrol); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.card__head svg { width: 20px; height: 20px; }
.card__count { margin-left: auto; min-width: 24px; height: 24px; border-radius: 12px; background: var(--sun); color: #2d2300; text-align: center; line-height: 24px; letter-spacing: 0; }
.cases { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; }
.cases li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cases li:nth-last-child(-n+2) { border-bottom: 0; }
.cases__n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--petrol-soft); color: var(--petrol-d); font: 700 14px/1 var(--ui); }
.cases h3 { font: 700 17px/1.25 var(--sans); margin-bottom: 3px; }
.cases p { font-size: 15.5px; line-height: 1.5; color: #3c4643; hyphens: auto; }

/* Kennzahlen */
.bubble--stats { padding: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 14px 16px 15px; border-radius: 14px; background: var(--panel-2); }
.stats dd { font: 800 clamp(28px, 2.6vw, 36px)/1 var(--sans); letter-spacing: -.02em; color: var(--petrol); white-space: nowrap; }
.stats dt { font: 500 13.5px/1.35 var(--ui); color: var(--muted); hyphens: auto; }

/* Karte / geteilte Route */
.bubble--map { padding: 6px; width: 100%; max-width: min(640px, 100%); }
.map { position: relative; border-radius: 15px; overflow: hidden; }
.map__svg { display: block; width: 100%; height: auto; }
.map__tag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--sun); color: #2d2300; font: 700 13px/1 var(--ui); box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .3); }
.map__tag svg { width: 15px; height: 15px; }
.leg { stroke-dasharray: 1 0; }
.bubble--map figcaption { padding: 12px 12px 8px; }
.map__codes { font: 700 15px/1.2 var(--ui); letter-spacing: .1em; color: var(--petrol); }
.map__text { margin-top: 6px; font-size: 16px; }
.map__note { margin-top: 8px; display: flex; gap: 7px; align-items: flex-start; font: 500 13.5px/1.4 var(--ui); color: var(--muted); }
.map__note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* Foto-Nachricht */
.bubble--photo { padding: 6px; max-width: min(560px, 100%); }
.bubble--photo img { border-radius: 15px; width: 100%; }
.bubble__cap { padding: 14px 12px 8px; }
.bubble--about { max-width: min(460px, 100%); }
.bubble--about img { aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 18%; }
.bubble--small { padding: 10px 16px; }

.quick { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 16px 0 6px auto; max-width: 640px; }
.svc { scroll-margin-top: 120px; }
.bubble--pick { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 999px !important; }
.bubble--pick svg { width: 20px; height: 20px; flex: none; }
.bubble--pick h3 { font: 700 17px/1.2 var(--sans); }
.svc:target .msg--in .bubble { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--sun); } 100% { box-shadow: 0 0 0 1px rgba(160, 135, 95, .16); } }

/* Ablauf */
.steps .msg { margin-top: 4px; }
.bubble--step { padding: 12px 18px 13px; border-radius: 8px 20px 20px 8px; }
.steps li:first-child .bubble--step { border-top-left-radius: 20px; }
.steps li:last-child .bubble--step { border-bottom-left-radius: 20px; }
.bubble--step h3 { display: inline; font: 800 17px/1.3 var(--sans); }
.bubble--step h3::after { content: " – "; font-weight: 400; color: var(--muted); }
.bubble--step p { display: inline; }
.step__n { float: right; margin: 2px 0 4px 14px; padding: 3px 8px; border-radius: 999px; background: var(--petrol-soft); color: var(--petrol-d); font: 700 11.5px/1.2 var(--ui); }

/* Über uns */
.bubble--list { padding: 10px 18px; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-weight: 600; }
.checks li + li { border-top: 1px solid var(--line); }
.checks svg { width: 20px; height: 20px; color: var(--petrol); flex: none; }
.bubble--voice { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; width: min(420px, 100%); }
.voice__play { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--petrol); color: #fff; transition: background .2s, transform .15s; }
.voice__play:hover { background: var(--petrol-d); transform: scale(1.06); }
.voice__play svg { width: 20px; height: 20px; }
.voice__body { flex: 1; min-width: 0; }
.wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.wave i { flex: 1; max-width: 4px; border-radius: 2px; background: #a9b6b3; height: 30%; }
.wave i:nth-child(-n+9) { background: var(--petrol); }
.wave i:nth-child(3n) { height: 70%; } .wave i:nth-child(4n) { height: 45%; } .wave i:nth-child(5n) { height: 90%; }
.wave i:nth-child(7n) { height: 55%; } .wave i:nth-child(11n) { height: 100%; } .wave i:nth-child(2n+1):nth-child(n+14) { height: 60%; }
.voice__txt { font: 500 13.5px/1.35 var(--ui); color: var(--muted); margin-top: 4px; }
.voice__txt a { color: var(--petrol-d); font-weight: 700; white-space: nowrap; }

/* Kontakt */
.bubble--loc { padding: 6px; width: min(460px, 100%); }
.loc__map { border-radius: 15px; overflow: hidden; height: 130px; }
.loc__map svg { width: 100%; height: 100%; display: block; }
.loc__body { padding: 12px 12px 8px; }
.loc__h { display: flex; align-items: center; gap: 6px; font: 700 12px/1 var(--ui); letter-spacing: .09em; text-transform: uppercase; color: var(--petrol); margin-bottom: 8px; }
.loc__h svg { width: 15px; height: 15px; }
.loc__geo { margin-top: 6px; font: 500 13px/1 var(--ui); color: var(--muted); letter-spacing: .03em; }
.bubble--vcard { width: min(520px, 100%); padding: 8px 18px 12px; }
.vcard div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 11px 0; }
.vcard div + div { border-top: 1px solid var(--line); }
.vcard dt { display: flex; align-items: center; gap: 8px; font: 600 13.5px/1.4 var(--ui); color: var(--muted); }
.vcard dt svg { width: 17px; height: 17px; color: var(--petrol); flex: none; }
.vcard dd { font-weight: 600; }
.vcard a { color: var(--petrol-d); text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.typing--end { margin-top: 26px; }

/* Eingabezeile (nur Links – kein Formular) */
.composer { position: sticky; bottom: 0; z-index: 9; display: flex; gap: 10px; align-items: center; padding: 12px clamp(16px, 3vw, 40px) 16px; background: rgba(248, 244, 236, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.composer__field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 20px; border-radius: 26px; background: var(--in); border: 1.5px solid var(--line-2); text-decoration: none; color: var(--muted); font: 500 15.5px/1.2 var(--ui); transition: border-color .2s; }
.composer__field span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer__field b { color: var(--petrol-d); font-weight: 700; }
.composer__field svg { width: 20px; height: 20px; flex: none; color: var(--petrol); }
.composer__field:hover { border-color: var(--petrol); }
.composer__send { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--petrol); color: #fff; transition: background .2s, transform .15s; }
.composer__send:hover { background: var(--petrol-d); transform: scale(1.05); }
.composer__send svg { width: 22px; height: 22px; }

/* Infospalte rechts */
.info__card { text-align: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.info__logo { display: grid; place-items: center; width: 132px; height: 132px; margin: 0 auto 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgba(60, 40, 10, .45); }
.info__logo img { width: 92px; aspect-ratio: 1510 / 1300; }
.info__name { font: 800 19px/1.2 var(--sans); }
.info__sub { font: 400 13.5px/1.4 var(--ui); color: var(--muted); margin: 6px auto 0; max-width: 24ch; }
.info__acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.info__acts a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 14px; background: var(--in); box-shadow: 0 0 0 1px var(--line); text-decoration: none; font: 600 12px/1.2 var(--ui); color: var(--petrol-d); transition: background .2s; }
.info__acts a:hover { background: var(--petrol-soft); }
.info__acts svg { width: 20px; height: 20px; }
.info__rows { padding: 16px 0; border-bottom: 1px solid var(--line); }
.info__rows div { padding: 7px 0; }
.info__rows dt { font: 600 11.5px/1.3 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.info__rows dd { font: 500 15px/1.45 var(--sans); }
.info__rows a { color: var(--petrol-d); }
.info__h { font: 600 11.5px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.info__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.info__thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.info__docs { display: flex; flex-direction: column; }
.info__docs a { display: flex; align-items: center; gap: 10px; padding: 9px 4px; text-decoration: none; font: 600 15px/1.3 var(--sans); border-bottom: 1px solid var(--line); }
.info__docs a:hover { color: var(--petrol); }
.info__docs svg { width: 20px; height: 20px; color: var(--petrol); flex: none; }

/* Fuß */
.foot { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 24px 96px; text-align: center; border-top: 1px solid var(--line); }
.foot__logo { display: block; background: #fff; border-radius: 18px; padding: 10px 14px; box-shadow: 0 0 0 1px var(--line); }
.foot__logo img { width: 84px; aspect-ratio: 1510 / 1300; }
.foot__copy { font: 500 13px/1.4 var(--ui); color: var(--muted); }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.foot__nav a { padding: 6px 12px; border-radius: 999px; background: rgba(255, 253, 248, .85); box-shadow: 0 0 0 1px var(--line); font: 600 13px/1.2 var(--ui); text-decoration: none; color: var(--petrol-d); }
.foot__nav a:hover { background: var(--petrol-soft); }

/* ---------- Bewegung (nur mit JS und ohne reduzierte Bewegung) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .seq { animation: pop .45s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: var(--d, 0s); }
  .js .seq-typing { display: flex; overflow: hidden; animation: typeout .75s .15s both; }
  .js .rv { opacity: 0; transform: translateY(14px) scale(.98); transform-origin: left bottom; transition: opacity .45s ease, transform .45s cubic-bezier(.2, .9, .3, 1.15); }
  .js .msg--out.rv, .js .quick.rv { transform-origin: right bottom; }
  .js .rv.is-in { opacity: 1; transform: none; }
  .typing__dots i { animation: blink 1.2s infinite ease-in-out; }
  .typing__dots i:nth-child(2) { animation-delay: .15s; }
  .typing__dots i:nth-child(3) { animation-delay: .3s; }
  .voice__play:hover ~ .voice__body .wave i, .bubble--voice:hover .wave i { animation: wave .9s infinite ease-in-out alternate; }
  .wave i:nth-child(2n) { animation-delay: .2s !important; } .wave i:nth-child(3n) { animation-delay: .4s !important; }
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes typeout { 0% { opacity: 0; max-height: 60px; } 12% { opacity: 1; } 82% { opacity: 1; max-height: 60px; margin-top: 18px; } 100% { opacity: 0; max-height: 0; margin-top: 0; } }
@keyframes blink { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes wave { to { transform: scaleY(.45); } }

/* ---------- Rechtsseiten ---------- */
.doc-wrap { padding: 26px clamp(16px, 3.4vw, 56px) 48px; max-width: 920px; margin-inline: auto; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.back svg { width: 18px; height: 18px; }
.bubble--file { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; }
.file__ico { flex: none; width: 52px; height: 60px; border-radius: 10px; display: grid; place-items: center; background: var(--petrol-soft); color: var(--petrol); }
.file__ico svg { width: 28px; height: 28px; }
.file__kicker { font: 700 12px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--petrol); margin-bottom: 6px; }
.bubble--file h1 { font: 800 clamp(26px, 3vw, 40px)/1.1 var(--sans); letter-spacing: -.02em; hyphens: manual; overflow-wrap: anywhere; }
.viewer { margin-top: 18px; margin-left: 52px; background: var(--in); border-radius: 8px 22px 22px 22px; box-shadow: 0 0 0 1px rgba(160, 135, 95, .2), 0 10px 30px -18px rgba(60, 40, 10, .35); padding: clamp(22px, 4vw, 48px); }
.legal-body { max-width: 68ch; font-size: 17px; line-height: 1.65; }
.legal-body h2 { font: 800 21px/1.25 var(--sans); margin: 32px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); letter-spacing: -.01em; }
.legal-body h2:first-child, .legal-body .legal-note + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body p, .legal-body ul { margin: 0 0 12px; }
.legal-body ul { padding-left: 0; }
.legal-body li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.legal-body li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--petrol); }
.legal-body a { color: var(--petrol-d); text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-body .legal-note { padding: 12px 16px; margin-bottom: 26px; border-radius: 14px; background: var(--petrol-soft); color: var(--petrol-d); font: 500 15px/1.5 var(--ui); }
.legal-body .legal-address { padding: 14px 18px; border-radius: 14px; background: var(--panel-2); font-weight: 600; white-space: pre-line; }

/* ---------- Responsiv ---------- */
@media (max-width: 1279px) {
  .app { grid-template-columns: 280px minmax(0, 1fr); }
  .info { display: none; }
}
@media (max-width: 1023px) {
  :root { --bar: 64px; }
  html { scroll-padding-top: 76px; }
  .app { display: block; }
  .side { position: sticky; top: 0; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(248, 244, 236, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .side__top { height: var(--bar); padding: 0 12px 0 14px; gap: 10px; border-bottom: 0; }
  .side__logo { border-radius: 12px; padding: 4px 6px; }
  .side__logo img { width: 50px; }
  .side__who { flex: 1; }
  .side__name { font-size: 15px; white-space: normal; line-height: 1.15; }
  .side__status { font-size: 12px; }
  .side__top .lang--mob { display: inline-flex; height: 40px; min-width: 46px; padding: 0 10px; border-radius: 20px; }
  .menu { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 20px; border: 0; background: var(--petrol); color: #fff; font: 700 14px/1 var(--ui); cursor: pointer; }
  .menu svg { width: 18px; height: 18px; }
  .js .threads { display: none; }
  .js .side.open .threads { display: flex; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--bar)); overflow-y: auto; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(40, 30, 10, .45); }
  .chat__bar { display: none; }
  .pill--day { top: calc(var(--bar) + 8px); }
  .hero { min-height: 0; padding-top: 6px; }
  .composer { position: static; padding-bottom: 20px; }
  .foot { padding-bottom: 90px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .side__status { display: none; }
  .thread-log { padding: 18px 12px 28px; }
  .msg--in { padding-left: 40px; }
  .ava { width: 32px; height: 32px; }
  .ava img { width: 25px; }
  .bubble { max-width: 100%; padding: 12px 15px 13px; }
  .msg--out > .bubble { max-width: 88%; }
  .bubble--hero { padding: 16px 18px 20px; }
  .pill span { border-radius: 14px; }
  .bubble--hero h1 { font-size: clamp(30px, 8.6vw, 38px); }
  .lead { font-size: 16.5px; }
  .replies, .quick { justify-content: flex-end; }
  .chip { padding: 10px 15px; font-size: 15px; }
  .cases { grid-template-columns: 1fr; }
  .cases li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr; }
  .stats div { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 14px; padding: 12px 14px; }
  .stats dd { min-width: 3.3ch; font-size: 28px; }
  .vcard div { grid-template-columns: 1fr; gap: 4px; }
  .map__tag { font-size: 12px; }
  .viewer { margin-left: 0; border-radius: 20px; }
  .composer__field span { white-space: normal; font-size: 14px; line-height: 1.3; }
  .composer__field { height: auto; min-height: 52px; padding: 8px 16px; }
}
