@font-face { font-family: "Akrobat"; src: url("fonts/Akrobat-Regular.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: block; }
@font-face { font-family: "Akrobat"; src: url("fonts/Akrobat-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: "Akrobat"; src: url("fonts/Akrobat-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: "Akrobat"; src: url("fonts/Akrobat-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: block; }
@font-face { font-family: "Akrobat"; src: url("fonts/Akrobat-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: block; }
:root {
  --ink: #0b1a1f;
  --ink-2: #13272e;
  --ink-3: #1d3740;
  --orange: #f79c00;
  --orange-hover: #ffb02e;
  --peach: #fdc98a;
  --peach-2: #ffe3bd;
  --paper: #fffdf9;
  --text: #0b1a1f;
  --text-on-dark: #f4efe6;
  --muted-on-dark: #b9c6ca;
  --muted: #45555a;
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --focus: #0b6bd3;
  --font: "Akrobat", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; font-family: var(--font); font-size: 1.1875rem; line-height: 1.6;
  color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.05; text-transform: uppercase; letter-spacing: .005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: 68ch; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }.site-header :focus-visible,
.overlay :focus-visible { outline-color: var(--orange); }

.skip { position: absolute; left: 12px; top: -60px; background: var(--orange); color: var(--ink); padding: 12px 18px; border-radius: 10px; font-weight: 700; z-index: 300; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; padding: 18px 0; background: var(--ink); color: var(--text-on-dark); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; }
.brand { display: block; line-height: 0; flex: none; border-radius: 6px; }
.brand img { width: 270px; height: auto; filter: brightness(0) invert(1); }
.nav { display: flex; gap: clamp(16px, 2.4vw, 34px); margin-left: 28px; }
.nav a { white-space: nowrap; text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 1.1rem; letter-spacing: .06em; padding: 14px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--orange); }
.nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 999px; font: inherit; font-weight: 800; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .05em; text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--ink); color: var(--text-on-dark); }
.btn-dark:hover { background: var(--ink-3); }
.btn svg { width: 20px; height: 20px; flex: none; }

.menu-btn { gap: 12px; }
.menu-btn .bars { display: grid; gap: 4px; }
.menu-btn .bars i { display: block; width: 18px; height: 2px; background: currentColor; }

/* ---------- Overlay menu ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--text-on-dark);
  display: none; overflow-y: auto; overscroll-behavior: contain;
}
.overlay.open { display: block; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.overlay .top { padding: 20px 0; }
.overlay .top .wrap { display: flex; align-items: center; justify-content: space-between; }
.overlay-body { display: grid; grid-template-columns: 1fr; gap: 40px; padding: clamp(24px, 6vh, 72px) 0 64px; align-items: start; }@media (min-width: 820px) { .overlay-body { grid-template-columns: auto minmax(260px, 340px); justify-content: center; gap: clamp(48px, 8vw, 120px); } }

.overlay-links { display: grid; gap: 4px; }
.overlay-links a { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; text-transform: uppercase; text-decoration: none; line-height: 1.15; padding: 6px 0; }
.overlay-links a:hover, .overlay-links a[aria-current="page"] { color: var(--orange); }
.direct { border: 2px solid var(--peach); border-radius: var(--radius); padding: 22px 26px; }
.direct h2 { font-size: .85rem; letter-spacing: .1em; margin-bottom: 14px; }
.direct ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.direct a { display: block; text-decoration: none; padding: 9px 0; font-size: 1rem; }
.direct a:hover { color: var(--orange); }
.direct .hl a { color: var(--peach); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; color: var(--text-on-dark); background: var(--ink); overflow: hidden; isolation: isolate; border-radius: 0 0 var(--radius) var(--radius); }

.page-hero { background: var(--ink); color: var(--text-on-dark); padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 88px); border-radius: 0 0 var(--radius) var(--radius); position: relative; overflow: hidden; }
.page-hero h1 { color: var(--peach); max-width: 16ch; font-size: clamp(1.65rem, 6.4vw, 4.2rem); overflow-wrap: anywhere; hyphens: manual; }
.page-hero p { color: var(--muted-on-dark); font-size: 1.15rem; max-width: 90ch; }
.page-hero .mascot { position: absolute; right: max(var(--gutter), 3vw); bottom: -8px; width: clamp(180px, 26vw, 380px); pointer-events: none; }@media (max-width: 720px) { .page-hero .mascot { opacity: .35; } }

.crumbs { font-size: .9rem; margin-bottom: 18px; color: var(--muted-on-dark); }
.crumbs a { color: var(--text-on-dark); }
.crumbs span[aria-hidden] { margin: 0 8px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-peach { background: var(--peach); }
.section-dark { background: var(--ink); color: var(--text-on-dark); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.section-dark .eyebrow { color: var(--peach); }

/* Carousel */
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid currentColor; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--ink); color: var(--text-on-dark); }
.icon-btn svg { width: 20px; height: 20px; }

.card { position: relative; display: block; flex: 0 0 min(78vw, 320px); aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--ink-2); isolation: isolate; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,26,31,0) 45%, rgba(11,26,31,.88) 100%); }
.card:hover img { transform: scale(1.04); }
.card .label { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.card .label small { display: block; font-size: .8rem; opacity: .9; }
.card .label strong { display: block; font-size: 1.15rem; text-transform: uppercase; line-height: 1.1; font-weight: 800; }

/* Tile buttons */
.tiles { display: grid; grid-template-columns: 1fr; gap: 16px; }@media (min-width: 720px) { .tiles { grid-template-columns: 1fr 1fr; } }

/* Leistungen */
.services { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.service { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid #ebe2d2; }
.service svg { width: 34px; height: 34px; color: var(--orange); margin-bottom: 14px; }
.service h3 { margin-bottom: .4em; }
.service p { color: var(--muted); margin: 0; }

/* Stats */
.split { display: grid; gap: 40px; align-items: center; }@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; } }

.stat b { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; color: var(--orange); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted-on-dark); font-size: .95rem; }

/* Referenz grid */
.subnav { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 32px; padding: 0; list-style: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.subnav a:hover { background: var(--ink); color: var(--peach); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--peach); }

/* Team */
.team-photo { border-radius: var(--radius); overflow: hidden; margin-top: -1px; }
.team-photo img { width: 100%; }
.team-grid { display: grid; gap: 24px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.person { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid #ebe2d2; }
.person .ph { aspect-ratio: 4/5; overflow: hidden; background: #f4f1ec; }
.person img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.person .txt { padding: 16px 18px 20px; }
.person h3 { margin: 0 0 4px; font-size: 1.1rem; }
.person p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; gap: 40px; }@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; } }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: start; }
.info-list svg { width: 26px; height: 26px; color: var(--orange); flex: none; margin-top: 2px; }
.info-list b { display: block; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; }
.hours { border-collapse: collapse; margin-top: 4px; }
.hours th, .hours td { text-align: left; padding: 2px 18px 2px 0; font-weight: 400; vertical-align: top; }
.form { display: grid; gap: 18px; background: #fff; border: 1px solid #ebe2d2; padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); }
.form .row { display: grid; gap: 18px; }@media (min-width: 640px) { .form .row.two { grid-template-columns: 1fr 1fr; } }

.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field small { display: block; color: var(--muted); margin-top: 4px; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 12px 14px; border: 2px solid #c9beab; border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--text); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: 3px solid var(--focus); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.err { color: #b3261e; font-weight: 600; font-size: .9rem; margin-top: 4px; }
.err-summary { border: 2px solid #b3261e; border-radius: var(--radius-sm); padding: 14px 18px; background: #fff5f4; }
.err-summary ul { margin: 6px 0 0; padding-left: 20px; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--text-on-dark); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); display: grid; gap: 24px; align-items: center; }@media (min-width: 820px) { .cta-band { grid-template-columns: 1.4fr 1fr; } }

.cta-band h2 { color: var(--peach); margin-bottom: 10px; }
.cta-band p { color: var(--muted-on-dark); margin: 0; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: 56px 0 32px; margin-top: 0; }
.site-footer .cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h2 { font-size: 1.1rem; letter-spacing: .1em; color: var(--text-on-dark); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.site-footer .fine { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--ink-3); font-size: .9rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Lightbox */
dialog.lb { border: 0; padding: 0; background: rgba(6,14,17,.97); max-width: none; max-height: none; width: 100%; height: 100%; color: #fff; }
dialog.lb::backdrop { background: rgba(6,14,17,.94); }
.lb-inner { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: 16px; gap: 12px; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lb-top h2 { margin: 0; font-size: 1.1rem; color: var(--peach); }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; }
.lb-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }   /* füllt die Bühne, Hoch- und Querformat passen komplett hinein */
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(11,26,31,.7); color: #fff; border-color: #fff; }
.lb-nav:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.lb-prev { left: 4px; } .lb-next { right: 4px; }
.lb-count { text-align: center; color: var(--muted-on-dark); font-variant-numeric: tabular-nums; }
.lb .icon-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive header */@media (max-width: 1040px) {
  .nav { display: none; }
  .header-actions .btn-primary span.long { display: none; }
  .brand img { width: 190px; }
}
@media (max-width: 420px) { .header-actions .btn-primary { padding: 0 16px; } .menu-btn .label { display: none; } .menu-btn { padding: 0 16px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Home-Hero mit Teambild */
.hero { min-height: 0; display: block; background: var(--ink); color: var(--text-on-dark); border-radius: 0 0 var(--radius) var(--radius); padding-bottom: clamp(20px, 3vw, 40px); }
.hero-intro { padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 3.5vw, 40px); }
.hero-intro h1 { color: var(--peach); max-width: 18ch; font-size: clamp(1.8rem, 6vw, 4.2rem); overflow-wrap: anywhere; }
.hero-intro p { font-size: 1.15rem; color: var(--text-on-dark); max-width: 90ch; }
.hero-intro .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stage { position: relative; width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 1; max-height: 640px; background: #fff; }

.card.mascot { background: radial-gradient(circle at 70% 60%, var(--ink-3), var(--ink) 70%); }
.card.mascot img { object-fit: contain; padding: 14% 8% 34%; }
.card.mascot::after { background: linear-gradient(180deg, rgba(11,26,31,0) 55%, rgba(11,26,31,.8) 100%); }
.section-peach .icon-btn:hover { background: var(--ink); color: var(--peach); }

/* Team: Breitformat nach kurzem Verweilen */
.team-hint { color: var(--muted); font-size: .95rem; margin: 20px 0 28px; max-width: none; }
.team-grid { position: relative; }
.person { position: relative; }
.person .ph { position: relative; }
.person .role { color: var(--text); font-weight: 600; margin-bottom: 8px; }
.person .hobby { color: var(--muted); font-size: .9rem; }
.wide-btn { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: rgba(11,26,31,.85); color: #fff; display: grid; place-items: center; cursor: pointer; }
.wide-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.wide-btn svg { width: 20px; height: 20px; }
.person { overflow: visible; }
.person .ph { border-radius: var(--radius) var(--radius) 0 0; }

/* Home: Teambild über die volle Breite */
.hero { padding-bottom: 0; overflow: hidden; }
.hero-stage { width: 100%; max-width: none; margin: 0; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 2 / 1; max-height: 720px; }

/* Leistungs-Buttons */

/* Showcase */
.show-text { display: grid; gap: 20px; align-items: end; margin-bottom: 28px; }@media (min-width: 820px) { .show-text { grid-template-columns: 1fr auto; gap: 48px; } }

.show-text p { font-size: 1.15rem; max-width: 62ch; }
.show-text p:last-child { margin-bottom: 0; }

.map-embed { display: grid; gap: 10px; }
.map-embed iframe { width: 100%; aspect-ratio: 4 / 3; min-height: 260px; border: 0; border-radius: var(--radius); background: #e8e2d6; }
.map-embed a:not(.btn) { font-size: .9rem; }

/* Team: Kachel wird breiter – erst dann erscheinen Hobbys und direkte E-Mail */
.person .wide { position: absolute; top: 0; left: 0; margin: 0; width: 100%; z-index: 20; display: grid; background: #fff; border: 1px solid #ebe2d2; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(11,26,31,.3); opacity: 0; visibility: hidden; container-type: inline-size; transition: width .5s var(--ease), opacity .3s var(--ease), visibility 0s .5s; }
.person .wide.right { left: auto; right: 0; }
.person.is-wide .wide { width: calc(200% + 20px); opacity: 1; visibility: visible; transition-delay: 0s; }
.person .wide > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.person .wide-txt { padding: 3.2cqw 3.6cqw 3.8cqw; font-size: clamp(.9rem, 2.4cqw, 1.15rem); line-height: 1.45; }
.person .wide-txt h3 { font-size: 1.35em; margin: 0 0 .2em; }
.person .wide-txt p { margin: 0 0 .5em; max-width: none; }
.person .wide-txt .role { font-weight: 600; color: var(--text); }
.person .wide-txt .hobby { color: var(--muted); }
.person .wide-txt .mail a { font-weight: 700; word-break: break-all; }
.person .wide-txt .hobby, .person .wide-txt .mail { opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease) .25s, transform .35s var(--ease) .25s; }
.person.is-wide .wide-txt .hobby, .person.is-wide .wide-txt .mail { opacity: 1; transform: none; }@media (max-width: 560px) { .person.is-wide .wide { width: 100%; } }

/* Drei Punkte unten am Text statt Symbol auf dem Foto */
.person .txt { display: flex; flex-direction: column; }
.person .txt .wide-btn { position: static; align-self: flex-end; margin-top: 8px; width: 48px; height: 44px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); }
.person .txt .wide-btn:hover { background: var(--ink); color: var(--peach); border-color: var(--ink); }
.person .txt .wide-btn svg { width: 24px; height: 24px; }

/* ---------- Zickzack-Zeilen (Leistungen / Referenzen) ---------- */
.zz { display: grid; gap: 22px; }
.zz-row { display: grid; gap: 20px; padding: clamp(14px, 2vw, 22px); border: 1px solid rgba(247,156,0,.6); border-radius: 24px; background: rgba(255,255,255,.03); align-items: center; }@media (min-width: 820px) {
  .zz-row { grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
  .zz-row:nth-child(even) .zz-img { order: 2; }
}

.zz-img { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--ink-2); border: 1px solid rgba(255,255,255,.35); }
.zz-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zz-img.mascot { background: radial-gradient(circle at 60% 55%, var(--ink-3), var(--ink) 75%); }
.zz-img.mascot img { object-fit: contain; padding: 6% 10%; }
.zz-body { padding: 4px clamp(4px, 1.5vw, 16px); }
.zz-body h3 { font-size: clamp(1.4rem, 3vw, 2.1rem); color: #fff; margin-bottom: .35em; text-transform: none; font-weight: 800; }
.zz-body p { color: var(--muted-on-dark); font-size: 1.1rem; margin-bottom: 1.1em; }
.btn-outline { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: var(--ink); }
.section-dark .zz-body p { color: var(--muted-on-dark); }

/* ---------- Galerie (nur Bilder) ---------- */
.page-hero--slim { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.page-hero--slim h1 { max-width: none; }
.page-hero--slim p { margin-bottom: 0; }
.back-link { color: var(--peach); font-weight: 700; }
.gallery { column-width: 260px; column-gap: 14px; }
.g-item { display: block; width: 100%; padding: 0; margin: 0 0 14px; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--ink-2); break-inside: avoid; }
.g-item img { width: 100%; height: auto; transition: transform .4s var(--ease), opacity .3s var(--ease); }
.g-item:hover img { transform: scale(1.03); }
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: clamp(32px, 6vw, 72px) 16px; background: var(--ink); color: var(--text-on-dark); border-radius: var(--radius); }
.empty img { width: min(60%, 320px); height: auto; }
.empty h2 { color: var(--peach); margin-bottom: 0; }
.empty p { color: var(--muted-on-dark); max-width: 46ch; }

/* ---------- Referenzen: kompakte Karten nebeneinander ---------- */
.ref-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }@media (min-width: 720px) { .ref-grid { grid-template-columns: repeat(3, 1fr); } .rc-body strong { font-size: .95rem; } }
@media (min-width: 1100px) { .ref-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; } .rc-body strong { font-size: clamp(.78rem, 1.05vw, .95rem); hyphens: manual; } }

.ref-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: rgba(255,255,255,.45); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; transition: background-color .2s var(--ease), color .2s var(--ease); }
.ref-card:hover { background: var(--ink); color: var(--peach); }
.rc-img { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--ink-2); overflow: hidden; }
.rc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.ref-card:hover .rc-img img { transform: scale(1.05); }
.rc-img.mascot { background: radial-gradient(circle at 60% 55%, var(--ink-3), var(--ink) 75%); }
.rc-img.mascot img { object-fit: contain; padding: 8% 12%; }
.rc-body { display: grid; gap: 4px; padding: 12px 14px 14px; flex: 1; align-content: start; }
.rc-body strong { font-size: clamp(.78rem, 1.05vw, .95rem); line-height: 1.15; text-transform: uppercase; font-weight: 800; overflow-wrap: anywhere; hyphens: manual; }
.rc-body small { font-size: .85rem; opacity: .85; }
.rc-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.rc-go svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.ref-card:hover .rc-go svg { transform: translateX(3px); }

/* ---------- Animiertes Chamäleon (transparente Einzelbilder) ---------- */
.cham { position: relative; }
.cham img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.cham img.on { opacity: 1; }
.page-hero .mascot.cham { width: clamp(240px, 36vw, 520px); height: auto; right: max(var(--gutter), 3vw); bottom: 0; pointer-events: auto; opacity: 1; }
.empty .empty-mascot.cham { width: min(100%, 420px); }@media (max-width: 720px) {
  .page-hero .mascot.cham { position: relative; right: auto; bottom: auto; width: min(80%, 380px); margin: 20px 0 0 auto; display: block; }
  .page-hero:has(.mascot.cham) { padding-bottom: 0; }
}
@media (min-width: 721px) {
  .page-hero:has(.mascot.cham) .wrap > p:not(.crumbs):not(.eyebrow) { max-width: min(60ch, calc(100% - clamp(240px, 36vw, 520px) - 32px)); }
  .page-hero:has(.mascot.cham) h1 { max-width: min(16ch, calc(100% - clamp(240px, 36vw, 520px) - 32px)); }
}

/* ---------- Flamingo (animiert) – Hochformat ---------- */
.anim { position: relative; }
.anim img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.anim img.on { opacity: 1; }
.page-hero .mascot.anim-flamingo { width: clamp(130px, 15vw, 230px); height: auto; right: max(var(--gutter), 3vw); bottom: 0; pointer-events: auto; opacity: 1; }
.empty .empty-mascot.anim-flamingo { width: min(60%, 220px); }@media (min-width: 721px) {
  .page-hero:has(.mascot.anim-flamingo) .wrap > p:not(.crumbs):not(.eyebrow) { max-width: min(60ch, calc(100% - clamp(130px, 15vw, 230px) - 32px)); }
  .page-hero:has(.mascot.anim-flamingo) h1 { max-width: min(16ch, calc(100% - clamp(130px, 15vw, 230px) - 32px)); }
}
@media (max-width: 720px) {
  .page-hero .mascot.anim-flamingo { position: relative; right: auto; bottom: auto; width: min(38%, 170px); margin: 16px 0 0 auto; display: block; }
  .page-hero:has(.mascot.anim-flamingo) { padding-bottom: 0; }
}

/* Schildkröten: ganzes Bild (ohne Transparenz) als Rechteck mit runden Ecken */
.cham.rect { overflow: hidden; background: var(--ink-3); border-radius: 20px 20px 0 0; }
.cham.rect img { object-fit: cover; }@media (max-width: 720px) { .page-hero .mascot.cham.rect { border-radius: 20px; } }

/* Fahrzeug-Animation: Kasten bündig am rechten Seitenrand, damit das Auto ganz aus dem Bild fährt */
.page-hero .mascot.cham[data-drive] { will-change: transform; }
.cham.mirror img { transform: scaleX(-1); }   /* Schildkröten-Auto gespiegelt */

/* Bilder bleiben beim Darüberfahren abgerundet (Safari verliert sonst die Rundung bei skalierten Bildern in overflow:hidden) */
.g-item,
.ref-card,
.rc-img,
.zz-img,
.card,
.person .ph { isolation: isolate; transform: translateZ(0); }
.g-item { clip-path: inset(0 round 14px); }
.ref-card { clip-path: inset(0 round 18px); }
.zz-img { clip-path: inset(0 round 16px); }.card { clip-path: inset(0 round var(--radius)); }
.g-item img, .rc-img img, .zz-img img { backface-visibility: hidden; }

html { scrollbar-gutter: stable; }   /* kein seitliches Springen, wenn beim Öffnen von Menü/Galerie die Scrollleiste verschwindet */

/* ---------- Bildfolgen (Animationen ohne Hintergrund, Canvas) ---------- */
.seq { position: relative; line-height: 0; }
.seq img, .seq canvas { display: block; width: 100%; height: auto; }
.seq canvas { position: absolute; inset: 0; }
/* in den Kopfbereichen der Sparten-Seiten unten rechts */
.page-hero .mascot.seq { --mw: clamp(240px, 34vw, 500px); width: var(--mw); right: max(var(--gutter), 3vw); bottom: 0; pointer-events: auto; opacity: 1; animation: none; }
.page-hero .mascot.seq.seq-sq { --mw: clamp(170px, 22vw, 330px); }@media (min-width: 721px) {
  .page-hero:has(.mascot.seq) .wrap > p:not(.crumbs):not(.eyebrow) { max-width: min(80ch, calc(100% - var(--mw-hero, 38vw) - 32px)); }
  .page-hero:has(.mascot.seq) h1 { max-width: min(16ch, calc(100% - var(--mw-hero, 38vw) - 32px)); }
}
@media (max-width: 720px) {
  .page-hero .mascot.seq { position: relative; right: auto; bottom: auto; width: min(80%, 380px); margin: 20px 0 0 auto; display: block; }
  .page-hero .mascot.seq.seq-sq { width: min(52%, 240px); }
  .page-hero:has(.mascot.seq) { padding-bottom: 0; }
}

.empty .empty-mascot.seq { width: min(100%, 420px); }
.empty .empty-mascot.seq.seq-sq { width: min(60%, 240px); }

/* Zickzack-Zeilen: Animation auf dunkler Fläche */
.zz-img.anim-panel { display: grid; place-items: center; background: radial-gradient(circle at 60% 55%, var(--ink-3), var(--ink) 75%); }
.zz-img.anim-panel .zz-seq { width: 88%; max-height: 92%; }
.zz-img.anim-panel .zz-seq.seq-sq { width: auto; height: 92%; }
.zz-img.anim-panel .seq img { position: static; width: 100%; height: auto; object-fit: contain; }

/* Home-Hero: Team-Animation mit Express-Knopf */
.hero-stage.team-stage { aspect-ratio: auto; max-height: none; padding: clamp(86px, 9vw, 128px) 4% clamp(14px, 2vw, 26px); display: grid; justify-items: center; align-items: end; }
.express-btn { position: absolute; top: clamp(20px, 2.6vw, 34px); left: 50%; translate: -50% 0; z-index: 3; transition: opacity .4s var(--ease), visibility .4s, transform .2s var(--ease), box-shadow .2s var(--ease); }
.express-btn.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.express-note { position: absolute; z-index: 3; top: clamp(18px, 2.4vw, 32px); left: calc(4% + 0.299 * 92%); translate: -50% 0; margin: 0; max-width: min(34ch, 42%); padding: 10px 18px; border-radius: 14px; background: var(--ink); color: var(--peach); font-weight: 800; font-size: clamp(.9rem, 1.7vw, 1.25rem); line-height: 1.25; text-align: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s; }
.express-note::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; background: inherit; translate: -50% 0; rotate: 45deg; border-radius: 2px; }
.express-note.show { opacity: 1; visibility: visible; transform: none; }

/* Kontakt: Flamingo läuft aus dem Bild, danach schaut ein riesiger Flamingo-Kopf über den ganzen Bildschirm */
.page-hero .mascot.seq.seq-flam1 { --mw: clamp(150px, 19vw, 270px); right: 0; }
.flam-overlay { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: grid; justify-items: center; align-items: end; overflow: hidden; }
.flam-overlay[hidden] { display: none; }
.flam-overlay .seq-flam2 { height: 100vh; height: 100dvh; width: auto; aspect-ratio: 349 / 560; }
.flam-overlay .seq-flam2 img, .flam-overlay .seq-flam2 canvas { width: 100%; height: 100%; }

/* Team-Video komplett (ohne Freistellung); das Originalfoto liegt exakt darüber, bis "Express?" gedrückt wird */
.hero-stage.team-stage { display: block; padding: 0; aspect-ratio: 1328 / 692; max-height: none; position: relative; overflow: hidden; background: #fff; }
.team-stage .team-video, .team-stage .team-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.team-stage .team-poster { z-index: 2; transition: opacity .5s ease; }
.team-stage .team-poster.gone { opacity: 0; pointer-events: none; }
.team-stage .express-btn { top: 4%; z-index: 4; }
.team-stage .express-note { top: 2%; z-index: 4; }

/* Zickzack-Animation: nie abgeschnitten, immer mittig im Rahmen (Breite kommt inline aus build_site.py) */
.zz-img.anim-panel .zz-seq { width: 88%; height: auto; max-height: none; }
.zz-img.anim-panel .zz-seq.seq-sq { width: auto; height: auto; }

/* Satz beim Löwen: wie eine Überschrift, nicht wie eine Sprechblase */
.express-note { background: none; color: var(--ink); padding: 0; border-radius: 0; max-width: none; white-space: nowrap; text-align: left; text-transform: uppercase; font-weight: 800; letter-spacing: .005em; line-height: 1.05; font-size: clamp(.85rem, 2.5vw, 2.1rem); translate: 0 0; left: 10.6%; top: 2.2%; }
.express-note::after { content: none; }
.team-stage .express-note { top: 2.2%; }

/* Telefon und E-Mail als Buttons */
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .85rem; letter-spacing: .04em; text-transform: none; font-weight: 700; word-break: normal; overflow-wrap: anywhere; text-align: left; }
.btn-sm svg { width: 18px; height: 18px; }
.info-list .btn { margin-top: 6px; }
.site-footer .btn:hover, .site-footer a.btn:hover { text-decoration: none; color: var(--ink); }
.site-footer .btn-ghost { color: var(--text-on-dark); border-color: var(--text-on-dark); }
.site-footer .btn-ghost:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.direct .hl .btn { color: var(--ink); padding-block: 0; }
.direct .hl a.btn:hover { color: var(--ink); }
.person .wide-txt .mail a.btn { font-weight: 700; word-break: normal; }
#form-ok .btn { margin-left: 4px; }

/* Team-Hochformat: ganze Person (Füsse!) sichtbar */
.person .ph { aspect-ratio: 2 / 3; }
.person img { object-fit: contain; object-position: 50% 50%; }
.person .wide img { object-fit: cover; }

/* Satz beim Löwen: grösser, etwas tiefer, mittig */
.express-note { left: 50%; translate: -50% 0; text-align: center; font-size: clamp(.68rem, 3.1vw, 2.6rem); top: 4.4%; }
.team-stage .express-note { top: 4.4%; }

/* Kontakt: richtige Karte statt Button */
.map-contact { margin-top: 28px; }
.map-contact iframe { aspect-ratio: 4 / 3; min-height: 300px; }
.map-contact .btn, .map-home .btn { justify-self: start; }

.seq-mirror img, .seq-mirror canvas { transform: scaleX(-1); }   /* Animation gespiegelt (Schildersysteme auf Home) */

/* Kontakt: Shrimp als Knopf links neben dem Flamingo */
.flam-stage { position: absolute; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: 2px; z-index: 2; }
.flam-col { display: flex; flex-direction: column; align-items: center; }
.flam-stage .mascot.seq.seq-flam1 { position: relative; right: auto; bottom: auto; width: var(--mw); }
.flam-note { margin: 0 0 6px; font-weight: 800; line-height: 1.1; text-align: center; color: #fff; font-size: clamp(.85rem, 1.5vw, 1.35rem); max-width: 14ch; text-wrap: balance; }
.shrimp-btn { all: unset; box-sizing: border-box; cursor: pointer; width: calc(clamp(150px, 19vw, 270px) * .23); margin-bottom: 2px; transition: transform .25s ease, filter .25s ease; }
.shrimp-btn img { display: block; width: 100%; height: auto; }
.shrimp-btn:hover { transform: rotate(-6deg) scale(1.15); }
.shrimp-btn:focus-visible { outline: 3px solid var(--peach, #fbc8a0); outline-offset: 4px; border-radius: 8px; }
.shrimp-btn[disabled] { cursor: default; transform: none; filter: grayscale(.4); }@media (max-width: 720px) { .flam-stage { position: relative; justify-content: flex-end; margin: 16px 0 0 auto; padding-right: var(--gutter); } }

.shrimp-btn { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; cursor: grab; }
.shrimp-btn img { pointer-events: none; -webkit-user-drag: none; }
.shrimp-btn.held { position: fixed; z-index: 200; cursor: grabbing; transform: rotate(-8deg) scale(1.5); transition: none; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); }
.shrimp-btn.gone { opacity: 0; transform: scale(.2) rotate(-20deg); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }

/* Shrimp: Trefferfläche mindestens 44 x 44 px, obwohl das Bild klein ist */
.shrimp-btn { position: relative; }
.shrimp-btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); translate: -50% -50%; }

/* Politur: Kopfzeile auf schmalen Handys ohne Seitwärtsscrollen; Links mit 44-px-Trefferfläche, ohne das Layout zu verschieben */
@media (max-width: 420px) {
  .site-header .wrap { gap: 12px; }
  .brand img { width: 124px; }
  .header-actions { gap: 8px; }
}

.crumbs a, .back-link { display: inline-block; padding-block: 12px; margin-block: -12px; }
.site-footer a:not(.btn) { display: inline-block; padding-block: 11px; margin-block: -11px; }@media (max-width: 360px) {
  .site-header .wrap { gap: 8px; }
  .brand img { width: 100px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-primary { padding: 0 12px; letter-spacing: 0; }
  .menu-btn { padding: 0 12px; }
}

/* Team-Seite: Maus-Tracker (Echse) in gleicher Höhe und Position wie vorher das Standbild (Bild 3:2, Breite clamp(180px, 26vw, 380px)) */
.page-hero .mascot.tracker { width: auto; height: calc(clamp(180px, 26vw, 380px) * 2 / 3); line-height: 0; }
.tracker img, .tracker canvas { display: block; width: 100%; height: 100%; }
.tracker canvas { position: absolute; inset: 0; }
.tracker.mirror img, .tracker.mirror canvas { transform: scaleX(-1); }   /* Echse gespiegelt */

/* Steinbock 1,5-mal so gross; der Kopfbereich wächst mit, damit nichts abgeschnitten wird */
.page-hero .mascot.seq.seq-sb { --mw: calc(clamp(240px, 34vw, 500px) * 1.5); }@media (min-width: 721px) { .page-hero:has(.mascot.seq-sb) { min-height: calc(clamp(240px, 34vw, 500px) * 1.5 * 446 / 800 + 24px); } }
@media (max-width: 720px) { .page-hero .mascot.seq.seq-sb { width: min(100%, 570px); } }

/* Home: Express-Knopf und Überschrift etwa mittig zwischen Bildoberkante und den Köpfen */
.team-stage .express-btn { top: 11%; }
.team-stage .express-note { top: 11.5%; }
/* Menü: Telefon-Knopf mit Symbol und Nummer in einer Zeile */
.direct .hl a.btn { display: inline-flex; margin-top: 8px; }

/* Känguru (Grafik) und Krabbe (Folienschnitt) im Kopfbereich 0,8-mal so gross */
.page-hero .mascot.seq.seq-s80 { --mw: calc(clamp(240px, 34vw, 500px) * .8); }@media (max-width: 720px) { .page-hero .mascot.seq.seq-s80 { width: min(64%, 304px); } }

/* Hauptüberschriften (h1) in Akrobat Black */
h1, .hero-intro h1, .page-hero h1 { font-weight: 900; }

/* Menü: Telefon-Knopf über die ganze Breite des Kastens */
.direct .hl a.btn { display: flex; width: 100%; justify-content: center; }
/* Footer: FCB Team Partner (helle Kachel, damit das dunkle Logo auf dem dunklen Fuss lesbar bleibt) */
.site-footer .partner { margin: 28px 0 0; }
.site-footer .partner img { display: block; width: min(220px, 60%); height: auto; background: #fff; border-radius: 14px; padding: 12px 16px; }

/* Express-Knopf: nur auf dem Handy kleiner */
@media (max-width: 720px) {
  .team-stage .express-btn { min-height: 34px; padding: 0 14px; font-size: .72rem; letter-spacing: .05em; top: 9%; }
}

/* Handy: Logo oben links etwas grösser (passt sich der Breite an, damit die Kopfzeile nicht überläuft) */
@media (max-width: 420px) { .brand img { width: min(146px, calc(100vw - 232px)); } }
@media (max-width: 360px) { .brand img { width: min(130px, calc(100vw - 206px)); } }

/* Neues Teamvideo 16:9; Express-Knopf etwa mittig zwischen Oberkante und den Köpfen (Köpfe beginnen bei ca. 26 % der Höhe) */
.hero-stage.team-stage { aspect-ratio: 1920 / 1080; }
.team-stage .express-btn { top: 9.5%; }
.team-stage .express-note { top: 10%; }@media (max-width: 720px) { .team-stage .express-btn { top: 5%; } .team-stage .express-note { top: 6%; } }

/* Teambild: oben ein Streifen für den Express-Knopf, darunter das Bild nur so hoch wie die Personen (ähnlich wie das Foto);
   beim Klick auf "Express?" wächst die Fläche auf volle Videohöhe, damit der Löwe ganz zu sehen ist */
.hero-stage.team-stage { --band: clamp(46px, 6vw, 84px); aspect-ratio: auto; max-height: none; padding: var(--band) 0 0; background: #fff; }
.team-stage .team-media { position: relative; width: 100%; aspect-ratio: 1920 / 830; overflow: hidden; transition: aspect-ratio 1s var(--ease); }
.team-stage.open .team-media { aspect-ratio: 1920 / 1080; }
.team-stage .team-video, .team-stage .team-poster { position: absolute; left: 0; top: 0; right: auto; bottom: auto; inset: 0 auto auto 0; width: 100%; height: auto; aspect-ratio: 1920 / 1080; object-fit: fill; }
.hero-stage.team-stage .express-btn, .hero-stage.team-stage .express-note { top: calc(var(--band) / 2 + 6px); left: 50%; translate: -50% -50%; }@media (max-width: 720px) { .hero-stage.team-stage { --band: 44px; } .hero-stage.team-stage .express-btn, .hero-stage.team-stage .express-note { top: calc(var(--band) / 2 + 4px); } }

/* Streifen über dem Video nimmt die Farben der Videooberkante an, sobald das Video läuft (kein weisser Strich) */
.hero-stage.team-stage { position: relative; }
.hero-stage.team-stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--band) + 40px); z-index: 1; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 var(--band), transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 var(--band), transparent 100%); opacity: 0; pointer-events: none; transition: opacity 1s var(--ease);
  background: linear-gradient(90deg, #dbdde3 0.0%, #e0e2e7 4.2%, #e6e8ec 8.3%, #eaecf0 12.5%, #ebedf1 16.7%, #edeff3 20.8%, #edeff3 25.0%, #eceef2 29.2%, #eaecf0 33.3%, #e9ebef 37.5%, #eaeaec 41.7%, #e9e8eb 45.8%, #e8e7ea 50.0%, #e6e6e8 54.2%, #e4e4e6 58.3%, #e5e5e7 62.5%, #e5e5e7 66.7%, #e4e4e8 70.8%, #e5e5e9 75.0%, #e5e5e9 79.2%, #e4e4e8 83.3%, #e2e1e6 87.5%, #e2e1e6 91.7%, #e1e3e7 95.8%, #e1e3e7 100.0%); }
.hero-stage.team-stage.open::before { opacity: 1; }

/* Teamfläche: Beim Video gleich viel Luft unter den Figuren wie beim Foto (Boden endet bei ca. 77 % der Videohöhe); wieder abgerundet */
.team-stage.open .team-media { aspect-ratio: 1920 / 910; }
.hero-stage.team-stage { border-radius: var(--radius); }   /* abgerundet; dahinter schaut der dunkle Hintergrund des Kopfbereichs hervor */
/* Kopfbereich unten eckig: Die Abrundung des Kopfbereichs zeigte neben den abgerundeten Ecken der Teamfläche den hellen Seitenhintergrund; jetzt ist dahinter überall das dunkle Blau */
.hero { border-radius: 0; }
.hero { padding-bottom: 1px; margin-bottom: -1px; }   /* verhindert eine feine helle Linie zwischen Kopfbereich und nächstem Abschnitt */

/* ---------- Eigene Karte ---------- */
.cmap { position: relative; border-radius: var(--radius); overflow: hidden; background: #0f2228; aspect-ratio: 1 / 1; min-height: 380px; color: var(--text-on-dark); isolation: isolate; }
.cmap .cmap-canvas { position: absolute !important; inset: 0; width: 100%; height: 100%; }
.cmap-fallback { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; text-align: center; padding: 20px; font-size: .95rem; color: var(--muted-on-dark); }
.cmap.ready .cmap-fallback { display: none; }
.cmap-legend { position: absolute; left: 10px; top: 10px; z-index: 3; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(11,26,31,.88); font-size: .78rem; line-height: 1.2; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 20px); pointer-events: none; }
.cmap-legend .lg-ci { display: inline-grid; place-items: center; width: 22px; height: 16px; border-radius: 4px; background: var(--orange); }
.cmap-legend .lg-ci img { width: 14px; height: auto; }
.cmap-legend .lg-tram { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--orange); margin-left: 6px; }
.mk-ci { display: grid; justify-items: center; cursor: default; filter: drop-shadow(0 4px 8px rgba(0,0,0,.45)); }
.mk-ci img { box-sizing: content-box; width: 40px; height: auto; padding: 9px 12px; background: var(--orange); border-radius: 12px; display: block; }
.mk-ci i { width: 14px; height: 14px; background: var(--orange); transform: rotate(45deg); margin-top: -8px; border-radius: 0 0 3px 0; }
.mk-tram { display: flex; align-items: center; gap: 6px; pointer-events: auto; cursor: default; }
.mk-tram .dot { width: 26px; height: 26px; border-radius: 50%; background: #0b1a1f; border: 2px solid var(--orange); color: var(--orange); display: grid; place-items: center; flex: none; }
.mk-tram .dot svg { width: 14px; height: 14px; }
.mk-tram .nm { font-size: .78rem; font-weight: 700; line-height: 1.1; color: #f1e6d8; text-shadow: 0 0 4px #0b1a1f, 0 0 4px #0b1a1f, 0 0 2px #0b1a1f; white-space: nowrap; }
.mk-tram .nm small { display: block; font-weight: 500; opacity: .75; font-size: .7rem; }
.cmap .maplibregl-ctrl-group { background: #0b1a1f; border: 1px solid rgba(255,255,255,.15); box-shadow: none; }
.cmap .maplibregl-ctrl-group button { background-color: transparent; }
.cmap .maplibregl-ctrl-group button + button { border-top: 1px solid rgba(255,255,255,.15); }
.cmap .maplibregl-ctrl-icon { filter: invert(1); }
.cmap .maplibregl-ctrl-attrib, .cmap .maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(11,26,31,.85); color: #9db6bb; font-size: .65rem; }
.cmap .maplibregl-ctrl-attrib-button { filter: invert(1); }
.cmap .maplibregl-ctrl-attrib a { color: #cfe0e3; }
.cmap .maplibregl-cooperative-gesture-screen { font-family: inherit; }
.map-embed .cmap + a { margin-top: 2px; }@media (max-width: 720px) { .cmap { aspect-ratio: 1 / 1; min-height: 300px; } .mk-tram .nm small { display: none; } .mk-ci img { width: 32px; } }

/* Partner-Logos im Footer: FCB gross, die übrigen kleiner daneben */
.site-footer .partner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0 0; }
.site-footer .partner .p { display: grid; place-items: center; background: #fff; border-radius: 14px; padding: 10px 14px; }
.site-footer .partner .p img { display: block; background: none; padding: 0; border-radius: 0; width: auto; height: 31px; max-width: 100%; object-fit: contain; }@media (max-width: 720px) { .site-footer .partner .p img { height: 30px; }   }

/* Partner-Footer: zwei Grössen – grosse Felder (FCB, VWP) und kleine Felder (je zwei übereinander) */
.site-footer .partner { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.site-footer .partner .p { display: grid; place-items: center; background: #fff; border-radius: 14px; padding: 10px 14px; }
.site-footer .partner .p img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.site-footer .partner .p-big { width: 190px; height: 108px; padding: 12px 16px; }
.site-footer .partner .p-col { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; width: 150px; height: 108px; }
.site-footer .partner .p-col .p { padding: 8px 12px; min-height: 0; }@media (max-width: 720px) {
  .site-footer .partner .p-big { width: calc(50% - 6px); height: 96px; }
  .site-footer .partner .p-col { width: calc(50% - 6px); }
}

.site-footer .partner .p { position: relative; --pad: 10px; padding: 0; }
.site-footer .partner .p img { position: absolute; inset: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); max-width: none; max-height: none; object-fit: contain; }
.site-footer .partner .p-big { --pad: 14px; padding: 0; }
.site-footer .partner .p-col .p { --pad: 9px; padding: 0; }

.info-list .btn-ghost.btn-sm { white-space: nowrap; }@media (max-width: 420px) { .info-list .btn-ghost.btn-sm { font-size: .8rem; padding-inline: 14px; gap: 8px; } }

/* ---------- Akkordeon-Galerie ---------- */
.accg { --h: clamp(310px, 39vw, 480px); display: flex; gap: 12px; height: var(--h); margin: 8px 0 0; }
.accg-item { position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 0; border-radius: 22px; overflow: hidden; cursor: pointer; background: var(--ink); color: #fff; transition: flex-grow .75s var(--ease); }
.accg-item.active { flex-grow: 7; }
.accg-item img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: grayscale(1) brightness(.7); transition: filter .75s var(--ease); }
.accg-item.active img { filter: none; }
.accg-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,26,31,.55), transparent 45%); opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.accg-item.active::after { opacity: 1; }
.accg-item:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.accg-item.active { cursor: zoom-in; }@media (max-width: 720px) {
  .accg { flex-direction: column; height: min(640px, 150vw); gap: 8px; }
  .accg-item { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {.accg-item,
.accg-item img,
.accg-item::after { transition: none; } }

/* Offener Streifen passt sich dem Seitenverhältnis des Bildes an (kaum Beschnitt); die schmalen Streifen füllen den Rest */
.accg { --strip: 56px; --gap: 12px; container-type: inline-size; }
.accg-item { flex: 1 1 0; transition: flex-basis .75s var(--ease), flex-grow .75s var(--ease); }
.accg-item.active { flex: 0 0 min(calc(var(--h) * var(--r)), calc(100% - 4 * (var(--strip) + var(--gap)))); }@media (max-width: 720px) {
  .accg { --strip: 44px; --gap: 8px; }
  .accg-item.active { flex: 0 0 min(calc(100cqw / var(--r)), calc(100% - 4 * (var(--strip) + var(--gap)))); }
}

.accg { height: var(--h); transition: height .75s var(--ease); }@media (max-width: 720px) { .accg { height: var(--h, min(640px, 150vw)); } }
@media (prefers-reduced-motion: reduce) { .accg { transition: none; } }

.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }   /* Falle für Roboter, für Menschen unsichtbar */

/* Impressum / Datenschutz */
.legal { max-width: 74ch; }
.legal h2 { font-size: 1.25rem; margin: 2.2em 0 .5em; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .legal-links { display: inline-flex; gap: 18px; }
.site-footer .legal-links a { text-decoration: underline; text-underline-offset: 3px; }

.site-footer .partner a.p { text-decoration: none; }
.site-footer .partner a.p:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Überall nur Akrobat (auch Formularfelder, Knöpfe, Karte, Dialoge); keine künstlich erzeugten Schnitte */
html { font-synthesis: none; }
button, input, select, textarea, option, optgroup, summary, dialog, table, .maplibregl-map, .maplibregl-ctrl, .maplibregl-popup, .maplibregl-canvas-container { font-family: var(--font); }
/* Partner-Kacheln als Links: dieselbe Form wie zuvor (die allgemeine Footer-Link-Regel soll sie nicht verändern) */
.site-footer .partner a.p { display: grid; padding: 0; margin: 0; text-decoration: none; }
.site-footer .partner a.p:hover { color: inherit; text-decoration: none; }

/* Karte: maplibre-gl.css wird später geladen und setzt Helvetica/Arial – hier überstimmt */
.cmap, .cmap *, .cmap .maplibregl-map, .cmap .maplibregl-ctrl, .cmap .maplibregl-ctrl *, .cmap .maplibregl-marker, .cmap .maplibregl-cooperative-gesture-screen { font-family: var(--font) !important; }

/* Anrede als Auswahlknöpfe statt Dropdown (das Dropdown-Menü zeichnet das Betriebssystem, nicht Akrobat) */

.info-list .ico-gap { width: 26px; flex: none; }

/* Auto und Schild stehen im Endbild nicht in der Bildmitte – im Rahmen mittig rücken */
.zz-seq[data-seq="fahrzeuge"] { translate: -20.4% 0; }
.zz-seq[data-seq="schilder"] { translate: 29% 0; }

/* Anrede: eigenes Dropdown im Stil der Seite (das System-Menü zeichnet nicht Akrobat) */
.csel { position: relative; }
.csel select { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.csel-btn { width: 100%; min-height: 48px; padding: 12px 44px 12px 14px; border: 2px solid #c9beab; border-radius: var(--radius-sm); background: #fff; color: var(--text); font: inherit; text-align: left; cursor: pointer; position: relative; transition: border-color .15s; }
.csel-btn::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.csel.open .csel-btn::after { transform: translateY(-20%) rotate(-135deg); }
.csel-btn:hover, .csel.open .csel-btn { border-color: var(--ink); }
.csel-btn:focus-visible { border-color: var(--ink); outline: 3px solid var(--focus); outline-offset: 1px; }
.csel-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-sm); box-shadow: 0 14px 34px rgba(11,26,31,.22); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .15s, transform .15s var(--ease); max-height: 260px; overflow: auto; }
.csel.open .csel-list { opacity: 1; transform: none; pointer-events: auto; }
.csel-list li { padding: 11px 12px 11px 34px; border-radius: 8px; cursor: pointer; font-weight: 600; position: relative; }
.csel-list li[aria-selected="true"]::before { content: ""; position: absolute; left: 13px; top: 50%; width: 6px; height: 11px; border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: translateY(-62%) rotate(45deg); }
.csel-list li.act { background: var(--ink); color: #fff; }
.accg-item::after { display: none; }

/* Team-Seite: dasselbe Teambild wie auf der Startseite (gleicher Zuschnitt) */
.team-photo { background: #fff; }
.team-photo img { aspect-ratio: 1328 / 692; height: auto; object-fit: fill; display: block; }

/* Vergoldungen & Veredelungen: Platzhalter, bis Bilder/Animation geliefert sind */
.zz-img.gold-ph, .rc-img.gold-ph { display: grid; place-items: center; background: radial-gradient(circle at 60% 45%, #6b4f12, var(--ink) 72%); }
.gold-ph .gold-ico { width: 34%; max-width: 150px; height: auto; color: #e9c46a; stroke-width: 1.4; filter: drop-shadow(0 0 18px rgba(233,196,106,.45)); }
.empty .gold-ico { width: 64px; height: 64px; color: #e9c46a; stroke-width: 1.6; }

/* Handy (bis 720 px): Seite nie breiter als der Bildschirm (kein Herauszoomen), Team-Kacheln zu zweit nebeneinander */
@media (max-width: 720px) {
  html, body { overflow-x: clip; max-width: 100%; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
  .person .txt { padding: 10px 10px 12px; }
  .person h3 { font-size: .95rem; overflow-wrap: anywhere; }
  .person .role { font-size: .8rem; line-height: 1.3; }
  .person .txt .wide-btn { width: 40px; height: 36px; margin-top: 6px; }
  .person .txt .wide-btn svg { width: 20px; height: 20px; }
  .person.is-wide .wide { width: calc(200% + 20px); }      /* geöffnet über beide Spalten (gleich wie die Lücke zwischen den Kacheln) */
}

/* Schliessen-Zeichen auf der geöffneten Teamkachel (nur Handy; am Computer schliesst sich die Kachel beim Wegfahren der Maus) */
.wide-close { display: none; }
@media (max-width: 720px) {
  .person .wide-close { display: grid; place-items: center; position: absolute; top: 10px; right: 10px; z-index: 3; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 2px solid var(--ink); background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; }
  .person .wide-close svg { width: 22px; height: 22px; }
}
