/* NeueMedienFraktion – IT-Consulting
   Keine externen Fonts / CDNs (DSGVO-freundlich) */

:root {
  --ink: #262b30;
  --ink-2: #31363b;
  --paper: #f3f4f4;
  --paper-2: #e6e8e8;
  --white: #ffffff;
  --line: rgba(38, 43, 48, .13);
  --line-dark: rgba(255, 255, 255, .12);
  --muted: #646567;
  --muted-dark: #a3a9ad;
  --accent: #65adae;
  --accent-strong: #30949b;
  --on-accent: #102a2b;
  --grey: #646567;
  --accent-ink: #2a7c81;
  --radius: 16px;
  --max: 1200px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.035em; }
h3 { font-size: 1.3rem; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section--dark { background: var(--ink); color: #e9eef0; }
.section--alt { background: var(--paper-2); }
.section--white { background: var(--white); }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: .6em;
  margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--accent); }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 46ch; }
.section--dark .lead, .hero .lead, .page-hero .lead { color: var(--muted-dark); }
.muted { color: var(--muted); }
.section-head { display: grid; gap: 1rem 4rem; grid-template-columns: 1fr; margin-bottom: 3rem; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.1fr 1fr; align-items: end; } .section-head .lead { margin: 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: #7cc0c1; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(127,127,127,.1); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #3c4248; }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(38, 43, 48, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 104px; gap: 1rem; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 80px; width: auto; }
.site-footer .brand img { height: 104px; margin-bottom: .5rem; }
.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; padding: .5em .85em; border-radius: 999px; font-size: .95rem; color: #d8dfe2; transition: background .15s, color .15s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a[aria-current="page"] { color: var(--accent); background: rgba(101,173,174,.12); }
.nav-links .btn { margin-left: .5rem; padding: .6em 1.1em; color: var(--on-accent); }
.nav-links .btn:hover, .nav-links .btn[aria-current="page"] { background: #7cc0c1; color: var(--on-accent); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 980px) {
  .nav { height: 84px; }
  .brand img { height: 64px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 84px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-130%); transition: transform .25s ease;
    visibility: hidden;
  }
  .nav-links a { display: block; padding: .8em .6em; border-radius: 8px; font-size: 1.05rem; }
  .nav-links .btn { display: flex; margin: .8rem 0 0; justify-content: center; }
  body.nav-open .nav-links { transform: none; visibility: visible; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 620px; height: 620px; right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(101,173,174,.32), transparent 65%);
  filter: blur(10px);
}
.hero-grid { display: grid; gap: 3.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.35fr 1fr; } }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 1.5rem 0 2.2rem; max-width: 52ch; }

.console {
  background: linear-gradient(180deg, #353b41, #2c3136);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  font-family: var(--mono); font-size: .86rem;
  overflow: hidden;
}
.console-bar { display: flex; gap: 7px; padding: .9rem 1rem; border-bottom: 1px solid var(--line-dark); align-items: center; }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; background: #4c5258; }
.console-bar i:first-child { background: var(--accent); }
.console-bar span { margin-left: auto; color: var(--muted-dark); font-size: .74rem; }
.console-body { padding: 1.2rem 1.3rem 1.4rem; color: #c9d3d8; line-height: 1.9; }
.console-body .k { color: var(--accent); }
.console-body .c { color: #7d8489; }
.console-body .ok { color: #7ee2a8; }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--accent); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .4;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 18ch; }
.page-hero .lead { margin-top: 1.2rem; }
.crumbs { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 1.5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 2rem 1.5rem 2rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .stat { border-bottom: 0; border-right: 1px solid var(--line); padding-left: 1.5rem; } .stat:first-child { padding-left: 0; } .stat:last-child { border-right: 0; } }
.stat b { display: block; font-size: clamp(2.2rem, 4vw, 3.1rem); letter-spacing: -.04em; line-height: 1; margin-bottom: .5rem; }
.stat b sup { font-size: .45em; color: var(--accent-ink); vertical-align: top; margin-left: 2px; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); padding: 2rem 1.8rem 2.2rem;
  display: flex; flex-direction: column; gap: .4rem;
  text-decoration: none; position: relative; transition: background .2s;
  min-height: 260px;
}
a.card:hover { background: var(--white); }
.card .num { font-family: var(--mono); font-size: .75rem; color: var(--grey); letter-spacing: .1em; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--accent); display: grid; place-items: center; margin: 1rem 0 1.1rem; }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: .3rem; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card .more { margin-top: auto; padding-top: 1.2rem; font-weight: 600; font-size: .92rem; color: var(--accent-ink); }
a.card:hover .more { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 1.2rem; grid-template-columns: 1fr; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border-top: 2px solid var(--line-dark); padding-top: 1.4rem; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: .8rem; color: var(--accent); letter-spacing: .1em;
  display: block; margin-bottom: 1rem;
}
.step::after { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--accent); }
.step h3 { color: #fff; }
.step p { color: var(--muted-dark); font-size: .97rem; margin: 0; }

/* ---------- Quote / split ---------- */
.split { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.quote { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.25; letter-spacing: -.025em; font-weight: 600; }
.quote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--accent); margin-bottom: .6rem; }
.quote footer { margin-top: 1.2rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.checklist li { padding-left: 1.9rem; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102a2b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/62% no-repeat;
}
.section--dark .checklist li { color: #d4dde1; }

/* ---------- Awards / feature ---------- */
.feature-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; display: flex; flex-direction: column; gap: .5rem;
}
.feature .tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.feature h3 { margin: .2rem 0 .2rem; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
.feature--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.feature--dark p { color: var(--muted-dark); }
.feature--dark .tag { color: var(--accent); }

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 640px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .clients { grid-template-columns: repeat(5, 1fr); } }
.clients li {
  list-style: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.6rem 1.1rem; font-weight: 600; letter-spacing: -.01em; font-size: .98rem;
  display: flex; align-items: center; min-height: 92px; color: #31363b;
  transition: background .2s, color .2s;
}
.clients li:hover { background: var(--grey); color: #fff; }
.clients { padding: 0; margin: 0; }

/* ---------- Partners ---------- */
.partners { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 760px) { .partners { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .partners { grid-template-columns: repeat(3, 1fr); } }
.partner { background: var(--paper); padding: 1.6rem 1.6rem 1.8rem; text-decoration: none; display: flex; flex-direction: column; gap: .3rem; transition: background .2s; }
.partner:hover { background: var(--white); }
.partner .role { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.partner h3 { font-size: 1.15rem; margin: .2rem 0; }
.partner p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- CTA ---------- */
.cta {
  background: var(--accent); color: var(--on-accent); border-radius: calc(var(--radius) + 8px);
  padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center;
  position: relative; overflow: hidden;
}
@media (min-width: 900px) { .cta { grid-template-columns: 1.4fr auto; } }
.cta h2 { margin: 0 0 .5rem; }
.cta p { margin: 0; font-size: 1.1rem; max-width: 50ch; color: #1d4446; }
.cta .btn--ink:hover { background: #000; }
.cta .btn--ghost { color: var(--on-accent); }

/* ---------- Detail sections (Leistungen) ---------- */
.detail { display: grid; gap: 1.5rem 4rem; grid-template-columns: 1fr; padding: 3.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.detail:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .detail { grid-template-columns: 5fr 7fr; } }
.detail .num { font-family: var(--mono); font-size: .8rem; color: var(--accent-ink); letter-spacing: .1em; display: block; margin-bottom: .8rem; }
.detail h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.detail .body p { color: #3b4045; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.pill-list li { font-size: .88rem; padding: .4em .9em; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }

/* ---------- Apps ---------- */
.app {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
}
.app-icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; }
.app h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.app p { margin: 0; color: var(--muted); font-size: .96rem; }
.app .badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.badge { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: .35em .7em; border-radius: 6px; background: var(--paper-2); color: #4a4f53; }
.badge--hot { background: #dcefef; color: var(--accent-ink); }
.app-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.5fr 1fr; } }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.field label .req { color: var(--accent-ink); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .8em .95em; border-radius: 10px;
  border: 1.5px solid #d3d7d8; background: var(--paper); color: var(--ink); transition: border-color .15s, background .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { margin: 0; font-weight: 500; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: .55em 1em; border-radius: 999px; border: 1.5px solid #d3d7d8; font-size: .92rem; cursor: pointer; transition: all .15s; background: var(--paper); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; margin: .5rem 0; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--accent-ink); flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.reveal-box { display: none; padding: 1.2rem; border-radius: 12px; background: var(--paper); border: 1px dashed #c4cbcc; margin: .5rem 0 1rem; }
.reveal-box.is-open { display: block; }
.notice { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.5rem; font-weight: 500; display: none; }
.notice.is-ok { display: block; background: #e2f6ea; color: #14532d; }
.notice.is-err { display: block; background: #fde4dc; color: #7c2d12; }

.info-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 2rem; }
.info-card h3 { color: #fff; }
.info-card dl { margin: 1.2rem 0 0; display: grid; gap: 1.1rem; }
.info-card dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }
.info-card dd { margin: .2rem 0 0; font-size: 1.05rem; }
.info-card a { text-decoration: none; }
.info-card a:hover { color: var(--accent); }
.info-card + .info-card { margin-top: 1.2rem; }
.info-card--light { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.info-card--light h3 { color: var(--ink); }
.dl-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.dl-list a { display: flex; justify-content: space-between; align-items: center; padding: .75em 1em; border-radius: 10px; background: var(--paper); text-decoration: none; font-weight: 500; font-size: .95rem; transition: background .15s; }
.dl-list a:hover { background: var(--paper-2); }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 75ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.prose p, .prose li { color: #3b4045; }
.prose address { font-style: normal; line-height: 1.8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d3d8; padding: 4.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); font-weight: 500; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; color: #dfe6e9; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--muted-dark); font-size: .85rem; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
}

/* ---------- Logo-Elemente ---------- */
.hero-mark { position: absolute; right: -40px; bottom: -60px; width: 340px; opacity: .1; z-index: -1; pointer-events: none; }

.step::before { color: var(--accent); }
.stat b { color: var(--ink-2); }
.stat b sup, .stat b em { color: var(--accent-strong); font-style: normal; }
.card .ico { background: var(--grey); color: #fff; }
a.card:hover .ico { background: var(--accent-strong); }
.card .ico { transition: background .2s; }

/* ---------- App-Icons & Store-Links ---------- */
.app { grid-template-columns: 88px 1fr; gap: 1.4rem; }
.app-icon { width: 88px; height: 88px; display: block; background: none; border-radius: 0; }
.app-icon img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; }
.app-icon--ios img { border-radius: 22.5%; box-shadow: 0 6px 16px -6px rgba(38,43,48,.35), inset 0 0 0 1px rgba(0,0,0,.06); }
.app-icon:hover img { transform: scale(1.05); }
.stores { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.store { display: inline-flex; align-items: center; gap: .35em; padding: .5em .95em; border-radius: 999px; background: var(--ink-2); color: #fff; text-decoration: none; font-size: .85rem; font-weight: 600; transition: background .15s; }
.store:hover { background: var(--accent-strong); }
.store--plain { background: transparent; color: var(--accent-ink); border: 1.5px solid #c4dfe0; }
.store--plain:hover { background: #e3f1f1; color: var(--accent-ink); }
.feature-icon { width: 56px; height: 56px; border-radius: 22.5%; margin-bottom: .6rem; box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); }
@media (max-width: 520px) { .app { grid-template-columns: 64px 1fr; gap: 1rem; } .app-icon { width: 64px; height: 64px; } }


/* ---------- CTA (Aufbau wie Version 1, dunkel mit Maskottchen) ---------- */
.cta { background: var(--ink-2); color: #fff; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 15% 100%, rgba(101,173,174,.35), transparent 55%);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: #c3cacd; }
.cta .btn--ink { background: var(--accent); color: var(--on-accent); }
.cta .btn--ink:hover { background: #7cc0c1; }
.cta .btn--ghost { color: #fff; }
.cta-mascot { display: block; width: 180px; height: auto; }
@media (min-width: 900px) {
  .cta { grid-template-columns: 270px 1fr; column-gap: 3rem; padding-top: 0; padding-bottom: 0; align-items: end; }
  .cta-mascot { grid-row: 1 / span 2; width: 290px; max-width: none; margin: 2rem 0 0 -1.5rem; align-self: end; }
  .cta > div { padding-top: clamp(2.5rem, 5vw, 3.8rem); align-self: end; }
  .cta > .btn-row { grid-column: 2; padding: 1.6rem 0 clamp(2.5rem, 5vw, 3.8rem); align-self: start; }
  .cta h2 { max-width: 20ch; }
}

/* ---------- Aviation ---------- */
.regcard { background: var(--ink-2); color: #fff; border-radius: var(--radius); padding: 2rem; position: sticky; top: 130px; }
.regcard .tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.regcard h3 { color: #fff; margin: .6rem 0 .2rem; font-size: 1.5rem; }
.regcard-sub { color: var(--muted-dark); font-size: .95rem; margin-bottom: 1.2rem; }
.regcard blockquote { margin: 0; padding-left: 1rem; border-left: 3px solid var(--accent); font-style: italic; color: #dfe5e7; line-height: 1.6; }
.shots { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .shots { grid-template-columns: repeat(4, 1fr); } }
.shot { display: block; text-decoration: none; border-radius: 14px; overflow: hidden; background: #1b1f23; border: 1px solid var(--line-dark); transition: transform .2s ease, border-color .2s; }
.shot:hover { transform: translateY(-4px); border-color: var(--accent); }
.shot img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.shot span { display: block; padding: .7rem .9rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); }
.device { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; }
.device img { margin: 0 auto; width: 100%; max-width: 420px; height: auto; }
.device figcaption { margin-top: 1rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.focus { list-style: none; counter-reset: f; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 700px) { .focus { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .focus { grid-template-columns: repeat(3, 1fr); } }
.focus li { background: var(--paper); padding: 1rem 1.2rem 1rem 3.4rem; position: relative; font-size: .97rem; min-height: 64px; display: flex; align-items: center; }
.focus li::before { counter-increment: f; content: counter(f, decimal-leading-zero); position: absolute; left: 1.2rem; font-family: var(--mono); font-size: .78rem; color: var(--accent-ink); }
.kugel { background: var(--ink-2); color: #e6eaec; border-radius: calc(var(--radius) + 6px); padding: clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden; }
.kugel::before { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(101,173,174,.28), transparent 65%); pointer-events: none; }
.kugel > * { position: relative; }
.kugel-head { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1.8rem; }
.kugel-head img { width: 96px; height: 96px; border-radius: 22%; box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); flex: none; }
.kugel-head .tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.kugel-head h3 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); margin: .3rem 0 .2rem; }
.kugel-claim { margin: 0; color: var(--muted-dark); font-style: italic; }
.kugel-body { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 940px) { .kugel-body { grid-template-columns: 1.3fr 1fr; gap: 3rem; } }
.kugel-body p { color: #c9d1d4; }
.kugel .pill-list li { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: #e6eaec; }
.kugel .btn--ghost { color: #fff; }
.kugel-note { margin-top: 1.4rem; font-size: .9rem; color: var(--muted-dark) !important; border-top: 1px solid var(--line-dark); padding-top: 1.2rem; }
.kugel-note a { color: var(--accent); }
.linklist { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .5rem; }
.linklist li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.linklist li:last-child { border-bottom: 0; }
.linklist a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.linklist a:hover { text-decoration: underline; }
@media (max-width: 859px) { .feature[style*="span 2"] { grid-column: auto !important; } }
.finenote { max-width: 80ch; font-size: .9rem; color: var(--muted); }
.finenote p { margin-bottom: .8rem; }
.finenote a { color: var(--accent-ink); }
.focus { background: var(--paper); gap: 0; }
.focus li { box-shadow: inset -1px -1px 0 var(--line); }

/* Referenzen mit Links */
.clients li { padding: 0; }
.clients li a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; height: 100%; padding: 1.6rem 1.1rem; text-decoration: none; color: inherit; }
.clients li a i { font-style: normal; font-size: .85rem; color: var(--accent-ink); opacity: 0; transform: translate(-4px, 4px); transition: opacity .2s, transform .2s; }
.clients li:hover a i { opacity: 1; transform: none; color: #fff; }
.clients li a:focus-visible { outline-offset: -3px; }
.clients li.more { padding: 1.6rem 1.1rem; }

/* ---------- Footer-Kontaktformular ---------- */
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-contact { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.1fr .8fr .9fr 1.8fr; } .footer-contact { grid-column: auto; } }
.footer-direct { margin: 0 0 1rem; line-height: 1.9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fform { display: grid; gap: .6rem; scroll-margin-top: 140px; }
.frow { display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 520px) { .frow { grid-template-columns: 1fr 1fr; } }
.fform input[type=text], .fform input[type=email], .fform textarea {
  width: 100%; font: inherit; font-size: .95rem; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); border-radius: 10px;
  padding: .75em .9em; transition: border-color .15s, background .15s;
}
.fform textarea { resize: vertical; min-height: 92px; }
.fform input::placeholder, .fform textarea::placeholder { color: #8d969b; }
.fform input:focus, .fform textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.09); }
.fbottom { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; justify-content: space-between; margin-top: .2rem; }
.fcheck { display: flex; gap: .55rem; align-items: flex-start; font-size: .82rem; color: var(--muted-dark); max-width: 34ch; }
.fcheck input { width: 1rem; height: 1rem; margin-top: .15rem; accent-color: var(--accent); flex: none; }
.fcheck a { color: var(--accent) !important; }
.fform .btn { padding: .7em 1.2em; font-size: .92rem; }
.fnotice { display: none; padding: .7rem .9rem; border-radius: 10px; font-size: .9rem; }
.fnotice.is-ok { display: block; background: rgba(126,226,168,.12); color: #a7efc4; border: 1px solid rgba(126,226,168,.3); }
.fnotice.is-err { display: block; background: rgba(255,120,90,.12); color: #ffb9a6; border: 1px solid rgba(255,120,90,.3); }
.device { background: none; border: 0; padding: 0; align-self: center; }
.device img { max-width: 560px; filter: drop-shadow(0 30px 40px rgba(38,43,48,.22)); }
.pill-list li a { color: inherit; text-decoration: none; }
.pill-list li:has(a):hover { border-color: var(--accent); background: #e3f1f1; }
.kugel .pill-list li:has(a):hover { background: rgba(101,173,174,.15); }
.detail .body a:not(.btn), .split a:not(.btn):not(.store) { color: var(--accent-ink); text-underline-offset: 3px; }
.lead a { color: inherit; text-underline-offset: 3px; }

/* ---------- Cookie-Banner ---------- */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent-inner { max-width: 760px; width: 100%; background: var(--ink-2); color: #e6eaec; border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: 0 24px 60px -20px rgba(0,0,0,.55); display: grid; gap: 1rem; }
@media (min-width: 760px) { .consent-inner { grid-template-columns: 1fr auto; align-items: center; } }
.consent p { margin: 0; font-size: .9rem; line-height: 1.55; color: #c9d1d4; }
.consent p strong { color: #fff; }
.consent a { color: var(--accent); }
.consent-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.consent .btn { padding: .65em 1.15em; font-size: .9rem; }
.consent .btn--ghost { color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #dfe6e9; cursor: pointer; }
.linkbtn:hover { color: var(--accent); }
.linkbtn--inline { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: .1em .35em; border-radius: 4px; }
.consent-inner { border-color: rgba(101,173,174,.45); }

/* Menü-Hover: Türkis halbtransparent */
.nav-links a:not(.btn):hover { color: #fff; background: rgba(101,173,174,.3); }
.nav-links a[aria-current="page"]:not(.btn):hover { color: #fff; background: rgba(101,173,174,.38); }

/* Hover Türkis 40 % – Menü und Referenz-Boxen */
.nav-links a:not(.btn):hover { background: rgba(101,173,174,.4); }
.nav-links a[aria-current="page"]:not(.btn):hover { background: rgba(101,173,174,.48); }
.clients li:hover { background: rgba(101,173,174,.4); color: var(--ink-2); }
.clients li:hover a i { color: var(--ink-2); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }

/* Saisonales Logo (15.11.–31.12.), Umschaltung per Klasse .xmas am <html> */
.brand .logo-xmas { display: none; }
.xmas .brand .logo-std { display: none; }
.xmas .brand .logo-xmas { display: block; }
.site-footer .brand .logo-xmas { display: none !important; }

/* Formular-Rückmeldungen: Erfolg in Türkis, Fehler in Rot */
.notice { border: 1px solid transparent; padding-left: 2.9rem; position: relative; }
.notice::before { position: absolute; left: 1.1rem; top: 1rem; font-weight: 700; }
.notice.is-ok  { background: #e3f1f1; color: #1d4446; border-color: #9fcfd0; }
.notice.is-ok::before  { content: "✓"; color: var(--accent-strong); }
.notice.is-err { background: #fdecec; color: #8f1d1d; border-color: #f2b8b8; }
.notice.is-err::before { content: "!"; color: #c62828; }
.fnotice.is-ok  { background: rgba(101,173,174,.16); color: #bfe3e3; border: 1px solid rgba(101,173,174,.5); }
.fnotice.is-err { background: rgba(229,72,77,.14); color: #ffbcbc; border: 1px solid rgba(229,72,77,.5); }

/* Referenz-Raster: Spalten nie breiter als der Bildschirm, lange Namen umbrechen */
.clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .clients { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.clients li a span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }

/* Sehr schmale Handys (320 px): lange Wörter trennen, Rasterspalten nicht aufdehnen */
h1, h2, h3, .lead { overflow-wrap: break-word; hyphens: manual; }
/* Silbentrennung nur auf Handys – auf Desktop/Tablet keine Bindestriche */
@media (max-width: 480px) {
  h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; }
  .hero h1 { hyphens: manual; -webkit-hyphens: manual; }   /* Startseiten-Headline nie trennen */
}
@media (max-width: 380px) {
  h2 { font-size: 1.65rem; }
  .page-hero h1 { font-size: 2.05rem; }
}
.split > *, .contact-grid > *, .hero-grid > *, .kugel-body > *, .section-head > * { min-width: 0; }

/* Textlinks im Fließtext: Türkis, etwas kräftiger, Unterstrich bleibt */
main p:not(.crumbs) a:not(.btn):not(.store), .prose a, main label.check a {
  color: var(--accent-ink); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  transition: color .15s;
}
main p:not(.crumbs) a:not(.btn):not(.store):hover, .prose a:hover, main label.check a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
/* auf dunklem Hintergrund das hellere Türkis */
.section--dark p a:not(.btn), .hero p a:not(.btn), .kugel p a:not(.btn), .cta p a:not(.btn), .info-card p a, .regcard a {
  color: var(--accent);
}
.section--dark p a:not(.btn):hover, .kugel p a:not(.btn):hover { color: #8fd0d1; }

/* ---------- Suche: Lupe im Header ---------- */
.nav-search { position: relative; width: 42px; height: 42px; margin-left: .2rem; }
.hsearch { position: absolute; right: 0; top: 0; height: 42px; display: flex; align-items: center; border-radius: 999px; background: transparent; border: 1px solid transparent; transition: background .2s, border-color .2s, box-shadow .2s; z-index: 2; }
.hsearch input {
  width: 0; padding: 0; opacity: 0; border: 0; outline: none; background: transparent; color: #fff;
  font: inherit; font-size: .95rem; transition: width .28s ease, padding .28s ease, opacity .2s;
  -webkit-appearance: none; appearance: none;
}
.hsearch input::placeholder { color: #8d969b; }
.hsearch input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hsearch button { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #d8dfe2; cursor: pointer; display: grid; place-items: center; transition: color .15s, background .15s; }
.hsearch button svg { width: 19px; height: 19px; display: block; }
.hsearch:hover, .hsearch:focus-within, .hsearch.is-open, .hsearch.has-text { background: var(--ink-2); border-color: rgba(101,173,174,.55); box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
.hsearch:hover input, .hsearch:focus-within input, .hsearch.is-open input, .hsearch.has-text input { width: 210px; padding: 0 .2rem 0 1.1rem; opacity: 1; }
.hsearch:hover button, .hsearch:focus-within button { color: var(--accent); }
.hsearch button:focus-visible { outline-offset: -2px; }
@media (max-width: 980px) {
  .nav-search { width: auto; height: auto; margin: .2rem 0 .6rem; order: -1; }
  .hsearch { position: static; width: 100%; background: rgba(255,255,255,.06); border-color: var(--line-dark); box-shadow: none; }
  .hsearch input, .hsearch:hover input, .hsearch:focus-within input { width: 100%; flex: 1; padding: 0 .2rem 0 1.1rem; opacity: 1; font-size: 1rem; }
  .hsearch:hover, .hsearch:focus-within { box-shadow: none; }
}

/* ---------- Suche: Ergebnisseite ---------- */
.search-page-form { display: flex; gap: .7rem; flex-wrap: wrap; max-width: 760px; }
.search-page-form input {
  flex: 1 1 260px; font: inherit; font-size: 1.1rem; padding: .85em 1.1em; border-radius: 999px;
  border: 1.5px solid #cfd5d6; background: var(--white); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.search-page-form input:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 4px rgba(101,173,174,.22); }
.search-count { margin: 1.6rem 0 1rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; max-width: 860px; }
.result { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; transition: border-color .15s, box-shadow .15s, transform .15s; }
.result:hover { border-color: rgba(101,173,174,.7); box-shadow: 0 14px 30px -18px rgba(38,43,48,.35); transform: translateY(-1px); }
.result-where { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .35rem; }
.result h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
.result h3 a { text-decoration: none; color: var(--ink); }
.result h3 a::after { content: " →"; color: var(--accent-strong); transition: margin .15s; }
.result:hover h3 a { color: var(--accent-ink); }
.result p { margin: 0 0 .5rem; color: #3b4045; font-size: .97rem; }
.result-url { font-size: .82rem; color: var(--muted); }
.result mark, mark.hl { background: rgba(101,173,174,.32); color: inherit; border-radius: 3px; padding: 0 .12em; }
mark.hl { animation: hlpuls 1.6s ease 1; }
@keyframes hlpuls { 0%, 30% { background: rgba(101,173,174,.75); } 100% { background: rgba(101,173,174,.32); } }
.search-empty { margin-top: 1rem; }
.search-empty p { color: var(--muted); margin-bottom: .2rem; }
.page-hero--search { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.2rem, 5vw, 3.2rem); }
.page-hero--search h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 1.4rem; }
.page-hero--search .search-page-form input { background: #fff; border-color: transparent; }
.search-count { text-transform: none; letter-spacing: .02em; font-size: .85rem; margin-top: 0; }
.results > li { min-width: 0; }
.result, .result-where { overflow-wrap: anywhere; }
.result-url { word-break: break-all; }
@media (max-width: 380px) { .result { padding: 1.1rem 1.1rem; } }

/* ---------- Lightbox (Aviation-Galerie) ---------- */
.lb { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(20,24,28,.92); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%);
  opacity: 0; transition: opacity .22s ease; }
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(101,173,174,.18), transparent 60%); }
html.lb-offen, html.lb-offen body { overflow: hidden; }
.lb-stage { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 4.5rem 1rem 1.5rem; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: 100%; transform: scale(.96); transition: transform .25s ease; }
.lb.is-open .lb-fig { transform: none; }
.lb-img { display: block; max-width: min(92vw, 640px); max-height: calc(100vh - 9.5rem); width: auto; height: auto;
  border-radius: 16px; border: 1px solid rgba(101,173,174,.45); box-shadow: 0 40px 90px -30px rgba(0,0,0,.85); background: #1b1f23; }
.lb-in-r { animation: lbInR .32s ease; }
.lb-in-l { animation: lbInL .32s ease; }
@keyframes lbInR { from { opacity: 0; transform: translateX(40px) rotate(.6deg); } to { opacity: 1; transform: none; } }
@keyframes lbInL { from { opacity: 0; transform: translateX(-40px) rotate(-.6deg); } to { opacity: 1; transform: none; } }
.lb-cap { display: flex; gap: 1.2rem; align-items: baseline; font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #c9d1d4; }
.lb-count { color: var(--accent); }
/* Blätter-Zonen: linke/rechte Hälfte mit Flugzeug-Cursor */
.lb-zone { position: absolute; top: 0; bottom: 0; width: 50%; border: 0; background: transparent; padding: 0; z-index: 1; }
.lb-prev { left: 0; cursor: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2232%22 height=%2232%22 viewBox=%220 0 32 32%22%3E%3Cg transform=%22rotate(180 16 16)%22%3E%3Cpath d=%22M29.5 16c0-1.1-.9-2-2-2h-7.3L13.6 3.6c-.3-.4-.7-.6-1.2-.6h-1.6c-.5 0-.9.5-.7 1l3.2 10H7.8L5.5 10.8c-.2-.3-.6-.5-1-.5H3.3c-.5 0-.8.4-.7.9L4 16l-1.4 4.8c-.1.5.2.9.7.9h1.2c.4 0 .8-.2 1-.5L7.8 18h5.5l-3.2 10c-.2.5.2 1 .7 1h1.6c.5 0 .9-.2 1.2-.6L20.2 18h7.3c1.1 0 2-.9 2-2z%22 fill=%22%2365ADAE%22 stroke=%22%23ffffff%22 stroke-width=%221.6%22 stroke-linejoin=%22round%22/%3E%3C/g%3E%3C/svg%3E") 16 16, w-resize; }
.lb-next { right: 0; cursor: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2232%22 height=%2232%22 viewBox=%220 0 32 32%22%3E%3Cg transform=%22rotate(0 16 16)%22%3E%3Cpath d=%22M29.5 16c0-1.1-.9-2-2-2h-7.3L13.6 3.6c-.3-.4-.7-.6-1.2-.6h-1.6c-.5 0-.9.5-.7 1l3.2 10H7.8L5.5 10.8c-.2-.3-.6-.5-1-.5H3.3c-.5 0-.8.4-.7.9L4 16l-1.4 4.8c-.1.5.2.9.7.9h1.2c.4 0 .8-.2 1-.5L7.8 18h5.5l-3.2 10c-.2.5.2 1 .7 1h1.6c.5 0 .9-.2 1.2-.6L20.2 18h7.3c1.1 0 2-.9 2-2z%22 fill=%22%2365ADAE%22 stroke=%22%23ffffff%22 stroke-width=%221.6%22 stroke-linejoin=%22round%22/%3E%3C/g%3E%3C/svg%3E") 16 16, e-resize; }
.lb-fig { position: relative; z-index: 0; pointer-events: none; }
.lb-zone:focus-visible { outline: none; }
.lb-zone:focus-visible .lb-arrow { opacity: 1; outline: 3px solid var(--accent); }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.8rem; line-height: 1; color: #fff; background: rgba(49,54,59,.85);
  border: 1px solid rgba(101,173,174,.5); opacity: 0; transition: opacity .2s; }
.lb-prev .lb-arrow { left: 1.2rem; }
.lb-next .lb-arrow { right: 1.2rem; }
@media (hover: none) { .lb-arrow { opacity: .9; } }
.lb-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(101,173,174,.5); background: rgba(49,54,59,.85); color: #fff; font-size: 1.7rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; transition: background .15s, transform .15s; }
.lb-close:hover { background: var(--accent-strong); transform: rotate(90deg); }
.shot { cursor: zoom-in; }
@media (prefers-reduced-motion: reduce) { .lb, .lb-fig, .lb-close { transition: none; } .lb-in-r, .lb-in-l { animation: none; } }

/* ---------- Partner-Logos (abschaltbar über PARTNER_LOGOS in build.py) ---------- */
.partner { position: relative; }
.partner.has-logo .role { display: block; padding-right: 116px; }
.partner-logo {
  position: absolute; top: calc(1.6rem + 3px); right: 1.4rem;   /* Oberkante = Oberkante der Rollen-Überschrift */
  width: 104px; height: 28px; object-fit: contain; object-position: right top;
  filter: grayscale(1); opacity: .6; transition: filter .25s ease, opacity .25s ease, transform .25s ease;
  transform-origin: right top;
}
.partner:hover .partner-logo, .partner:focus-visible .partner-logo { filter: none; opacity: 1; transform: scale(1.06); }
@media (max-width: 520px) {
  .partner.has-logo .role { padding-right: 96px; }
  .partner-logo { width: 88px; height: 24px; right: 1.2rem; }
}
