:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --soft: #F7F7F7;
  --ink: #222222;
  --ink-2: #484848;
  --muted: #717171;
  --line: #EBEBEB;
  --navy: #0B2545;          /* FTI */
  --navy-2: #1B3A66;
  --coral: #F2545B;         /* warmer Akzent */
  --magenta: #C8236F;
  --grad: linear-gradient(90deg, var(--coral) 0%, var(--magenta) 100%);
  --warn-bg: #FFF4D6;
  --warn-ink: #7A5200;
  --r: 16px;
  --shadow: 0 6px 20px rgba(0,0,0,.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  padding-bottom: 84px; /* Platz für Sticky-Bar */
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
h2 { margin: 0 0 14px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
h3 { margin: 0; }
.muted { color: var(--muted); }

.banner { background: var(--warn-bg); color: var(--warn-ink); padding: 8px 16px; font-size: 13px; text-align: center; }
.banner strong { letter-spacing: .08em; margin-right: 6px; }

/* Topbar */
.topbar { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.wordmark { color: var(--navy); font-weight: 500; letter-spacing: .14em; font-size: 14px; }
.wordmark b { font-weight: 800; }
.for { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--soft); }

/* Hero */
.hero { padding-top: 28px; padding-bottom: 8px; }
.hello { margin: 0 0 6px; font-weight: 700; font-size: 15px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 { margin: 0 0 10px; font-size: clamp(28px, 7.6vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; color: var(--navy); max-width: 18ch; }
.lede { margin: 0 0 22px; color: var(--ink-2); max-width: 52ch; }
.searchbar {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  padding: 8px 8px 8px 16px; max-width: 640px; background: #fff; transition: box-shadow .2s;
}
.searchbar:hover { box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.search-cells { display: flex; flex: 1; min-width: 0; }
.cell { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 2px 6px 2px 0; }
.cell + .cell { border-left: 1px solid var(--line); padding-left: 10px; }
.cell b { font-size: 11px; font-weight: 700; }
.cell span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-btn { flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); }

main section { padding-top: 36px; scroll-margin-top: 64px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; font-size: 13px; color: var(--muted); }

/* Team-Listings: horizontal wischen auf dem Handy, Raster ab Tablet */
.listings {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; padding: 4px 16px 12px; margin: 0 -16px;
  scrollbar-width: none;
}
.listings::-webkit-scrollbar { display: none; }
@media (min-width: 720px) {
  .listings { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; padding: 4px 0 0; margin: 0; }
}
.listing { scroll-snap-align: start; min-width: 0; }
.media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; background: var(--soft); cursor: pointer; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.listing:hover .media img { transform: scale(1.04); }
.badge { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.heart { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.heart svg { width: 26px; height: 26px; fill: rgba(0,0,0,.45); stroke: #fff; stroke-width: 2.2; transition: fill .2s; }
.heart[aria-pressed="true"] svg { fill: var(--coral); }
.heart.pop svg { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.listing-body { all: unset; display: flex; flex-direction: column; gap: 2px; padding: 10px 2px 0; cursor: pointer; width: 100%; box-sizing: border-box; }
.listing-body:focus-visible { outline: 3px solid var(--navy); }
.name { font-size: 16px; font-weight: 700; }
.role { font-size: 14px; color: var(--muted); line-height: 1.35; }
.super { font-size: 14px; color: var(--ink); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 12px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }

/* Ausstattung */
.amenities { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .amenities { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.amenity { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ico { flex: 0 0 48px; height: 48px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; font-size: 24px; }
.amenity h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.amenity p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* Fallbeispiel */
.case { border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.case::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--navy), var(--coral)); }
.fict { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); margin: 4px 0 14px; }
.case-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.case-head .logo { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.case-head div { display: flex; flex-direction: column; }
.case-head .muted { font-size: 13px; }
.case h3 { font-size: 20px; line-height: 1.25; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.case h4 { margin: 16px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.case p { margin: 0; color: var(--ink-2); font-size: 15px; }
.steps { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 6px 0 6px 38px; font-size: 15px; color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 5px; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); font-weight: 700; font-size: 13px; display: grid; place-items: center; color: var(--navy); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.stat { background: var(--soft); border-radius: 14px; padding: 12px 10px; text-align: center; }
.stat b { display: block; font-size: 24px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 12px; color: var(--ink-2); line-height: 1.3; display: block; }

/* Buchungs-Widget */
.booking { border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 10px 34px rgba(0,0,0,.12); max-width: 440px; }
.dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #B0B0B0; border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.dates > div { padding: 10px 12px; display: flex; flex-direction: column; }
.dates > div + div { border-left: 1px solid #B0B0B0; }
.dates .full { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid #B0B0B0; }
.dates span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.dates strong { font-size: 14px; font-weight: 500; }
.btn-grad { display: flex; justify-content: center; align-items: center; min-height: 50px; border-radius: 10px; background: var(--grad); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; background-size: 200% 100%; transition: background-position .4s; }
.btn-grad:hover { background-position: 100% 0; }
.btn-grad.small { min-height: 46px; padding: 0 22px; font-size: 15px; }
.nocharge { text-align: center; font-size: 13px; color: var(--muted); margin: 10px 0 14px; }
.row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-ghost { display: flex; justify-content: center; align-items: center; min-height: 46px; border: 1px solid var(--ink); border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; }
.host { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.host img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.host div { display: flex; flex-direction: column; }
.host span { font-size: 12px; color: var(--muted); }
.host strong { font-size: 15px; }
.host small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.address { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

.foot { padding-top: 36px; padding-bottom: 20px; font-size: 12px; color: var(--muted); text-align: center; }

/* Sticky-Bar unten (wie eine Buchungsleiste) */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.stickybar div { display: flex; flex-direction: column; font-size: 14px; }
.stickybar span { font-size: 13px; color: var(--muted); text-decoration: underline; }

/* CV-Sheet */
.sheet {
  border: 0; padding: 0; width: 100%; max-width: 640px; max-height: 88vh; border-radius: 22px 22px 0 0;
  margin: auto auto 0; overflow-y: auto; color: var(--ink);
}
@media (min-width: 720px) { .sheet { margin: auto; border-radius: 22px; } }
.sheet[open] { animation: up .28s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet::backdrop { background: rgba(0,0,0,.45); }
.sheet-close { position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); font-size: 15px; cursor: pointer; z-index: 1; }
#sheet-body { padding: 20px; }
.sheet-top { display: flex; gap: 14px; align-items: center; }
.sheet-top img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: 0 0 84px; }
.kicker { font-size: 12px; font-weight: 700; color: var(--magenta); text-transform: uppercase; letter-spacing: .05em; }
.sheet-top h3 { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.15; }
.sheet-top .muted { margin: 2px 0 0; font-size: 14px; line-height: 1.35; }
#sheet-body .super { background: var(--soft); border-radius: 12px; padding: 10px 12px; margin: 16px 0 0; font-weight: 600; }
.bio { color: var(--ink-2); margin: 14px 0 0; }
#sheet-body h4 { margin: 18px 0 8px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.timeline { margin: 0; padding: 0 0 0 16px; border-left: 2px solid #F6C9CB; list-style: none; }
.timeline li { position: relative; margin: 0 0 9px; font-size: 14px; color: var(--ink-2); }
.timeline li::before { content: ''; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.plain { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.plain li { margin-bottom: 4px; }
.extra { font-size: 14px; color: var(--ink-2); margin: 14px 0 0; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; }

/* Prüfhinweise (nur Entwurfsmodus) */
.review { margin: 12px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-ink); font-size: 13px; }
.review.small { align-self: flex-start; margin-top: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { animation: none !important; transition: none !important; }
}
