@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --ink: #464b4f;
  --text: #5f6368;
  --accent: #7a7f84;
  --soft: #f6f6f6;
  --line: #dadbdd;
  --white: #fff;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--white); font-size: clamp(1rem, .94rem + .28vw, 1.125rem); }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
p { color: var(--text); line-height: 1.68; max-width: 58ch; }
h1, h2, h3, h4, figure { margin: 0; }
h1, h2, h3 { letter-spacing: -.055em; line-height: 1; }
h2 { font-size: clamp(2.35rem, 5.7vw, 5.1rem); }
h3 { font-size: clamp(1.75rem, 3.4vw, 3.15rem); }
h4 { font-size: 1.25rem; letter-spacing: -.025em; }
.shell { width: min(1180px, calc(100% - 2 * clamp(20px, 5vw, 72px))); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 0; padding: 12px; background: white; transform: translateY(-120%); }
.skip:focus { transform: translateY(0); }
.top { position: sticky; top: 0; z-index: 2; background: var(--white); border-bottom: 1px solid var(--line); }
.top-row, .brand, .top nav { display: flex; align-items: center; }
.top-row { justify-content: space-between; gap: 14px; min-height: 68px; }
.brand { text-decoration: none; gap: 14px; font-weight: 700; }
.brand img { object-fit: contain; }
.top nav { gap: clamp(12px, 3vw, 34px); }
.top nav a { text-decoration: none; font-weight: 600; }
.top nav a:is(:hover, :focus-visible) {
  color: var(--focus);
  text-decoration: underline;
}
main :is(p, li) a:not(.resource):is(:hover, :focus-visible) {
  color: var(--focus);
}
.hero { display: grid; grid-template-columns: 1fr .88fr; gap: clamp(24px, 5vw, 70px); align-items: center; padding-block: clamp(52px, 6vw, 94px) clamp(44px, 6vw, 86px); }
.hero h1 { font-size: clamp(4rem, 9vw, 8.25rem); font-weight: 700; line-height: .91; letter-spacing: -.054em; font-kerning: normal; }
.subtitle { font-size: clamp(1.17rem, 2.2vw, 1.58rem); font-weight: 600; color: var(--ink); line-height: 1.25; max-width: 34ch; margin-block: clamp(32px, 3.2vw, 48px) clamp(24px, 2.5vw, 34px); }
.hero p:last-child { margin-bottom: 0; }
.photo { display: block; width: 100%; height: auto; object-fit: cover; border-radius: inherit; }
.hero .photo {
  width: 82%;
  aspect-ratio: 1;
  margin-inline: auto;
  mask-image: linear-gradient(to bottom, #000 77%, transparent),
              linear-gradient(to left, transparent, #000 9%);
  mask-composite: intersect;
}
.entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: clamp(14px, 2vw, 26px); margin-bottom: clamp(64px, 10vw, 144px); }
.entry { position: relative; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 3vw, 42px); }
.entry a { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; font-size: clamp(1.125rem, 2.25vw, 1.85rem); line-height: 1.15; letter-spacing: -.035em; text-decoration: none; }
.entry a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.entry p { font-size: .98rem; margin: .9rem 0 0; }
.resource span { display: inline-block; transition: transform .2s ease; }
.field, .contact { padding-block: clamp(68px, 10vw, 150px); }
.field:nth-of-type(odd), .contact { background: var(--soft); }
.field-intro { padding-bottom: clamp(24px, 3.5vw, 48px); margin-bottom: clamp(30px, 5vw, 70px); }
.field-intro p { margin-bottom: 0; }
.feature { margin-block: clamp(32px, 5.5vw, 80px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 82px); align-items: center; }
.split .photo, .media-detail .photo { border-radius: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.links:empty { display: none; }
.resource { display: inline-flex; align-items: center; min-height: 44px; gap: .65em; padding: 8px 14px; border: 1px solid var(--line); border-radius: 7px; font-weight: 600; text-decoration: none; }
.resource:hover span, .resource:focus-visible span { transform: translate(2px, -2px); }
.partner { flex-basis: 100%; margin: 4px 0 0; }
.projects, .products, .notes { display: grid; gap: clamp(14px, 2vw, 26px); }
.projects { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.notes article, .tile { border: 1px solid var(--line); border-radius: 12px; background: white; }
.notes article, .tile > div { padding: clamp(16px, 2vw, 28px); }
.tile { overflow: hidden; }
.tile .photo { aspect-ratio: 1.25; border-radius: 0; }
.product { text-decoration: none; font-weight: 700; }
.product .photo { aspect-ratio: 1; object-fit: contain; }
.media-detail { width: min(650px, 100%); margin-block: clamp(28px, 4vw, 56px) clamp(44px, 7vw, 96px); }
.media-detail:last-child { margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 6vw, 86px); }
.contact .resource { margin: 0 4px 4px 0; }
form { display: grid; gap: 12px; }
form label { display: grid; gap: 5px; font-weight: 600; }
input, textarea, button { font: inherit; }
input:not([type=checkbox]), textarea { width: 100%; border: 1px solid var(--accent); background: white; border-radius: 7px; min-height: 44px; padding: 8px 10px; }
textarea { resize: vertical; }
form .check { display: flex; align-items: start; gap: 8px; }
form button { width: fit-content; padding: 10px 16px; border-radius: 7px; border: 1px solid var(--line); background: white; color: var(--text); }
footer { padding-block: clamp(40px, 6vw, 80px); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(20px, 4vw, 56px);
}
.footer-brand { display: grid; line-height: 1.45; }
.footer-logo { width: 68px; height: 68px; }
.footer-grid > :not(.footer-social) { display: grid; align-self: end; line-height: 1.45; }
.footer-brand .footer-logo { margin-bottom: 12px; }
.footer-copyright { border-top: 1px solid var(--line); padding: 14px 20px; text-align: center; }
.footer-copyright p { margin: 0 auto; font-size: .9rem; }
.footer-grid nav { display: grid; justify-items: start; gap: .4rem; }
@media (max-width: 800px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: clamp(2.25rem, 8vw, 4.9rem); }
}
@media (max-width: 620px) {
  .top-row { min-height: 60px; font-size: .86rem; }
  .brand { gap: 7px; }
  .brand img { width: 35px; height: auto; }
  .hero { grid-template-columns: minmax(0, 1fr) 106px; gap: 16px 12px; align-items: start; padding-block: 44px 30px; }
  .hero > div { display: contents; }
  .hero h1 { grid-column: 1; align-self: center; }
  .hero .subtitle { grid-column: 1; margin: 0; }
  .hero figure { grid-area: 1 / 2 / 3 / 3; align-self: center; }
  .hero .photo { width: 100%; }
  .entries, .split, .contact-grid, .notes { grid-template-columns: 1fr; }
  .entries { gap: 12px; }
  .entry { min-height: 62px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 365px) {
  .top-row { font-size: .78rem; }
  .hero { grid-template-columns: minmax(0, 1fr) 86px; }
  .projects { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.entry a > span, .resource > span, .product span {
  flex: none;
  position: relative;
  width: .78em;
  height: .78em;
  font-size: .85em;
  color: inherit;
}
.entry a > span::before, .resource > span::before, .product span::before {
  content: "";
  position: absolute;
  inset: 10% 10% auto auto;
  width: 57%;
  height: 57%;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
}
.entry a > span::after, .resource > span::after, .product span::after {
  content: "";
  position: absolute;
  top: 48%;
  left: 3%;
  width: 98%;
  border-top: 1.5px solid;
  transform: rotate(-45deg);
}
.entry a > span { rotate: 90deg; }
.product span { display: inline-block; vertical-align: middle; }

:root {
  --chameleon: linear-gradient(112deg, #203c60, #52758f 48%, #9db9d0 70%, #52758f 85%, #203c60);
  --focus: #52758f;
}
.hero-intro { grid-column: 1 / -1; }
.entry { isolation: isolate; }
.entry a > span { color: var(--ink); }
a:focus-visible, input:focus-visible, textarea:focus-visible { outline-color: var(--focus); }
@media (max-width: 620px) {
  .hero-intro { font-size: 1rem; }
  .hero-intro p:first-child { margin-top: 5px; }
}

.field-contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: clamp(24px, 4vw, 52px);
  font-weight: 700;
}
.field-contact:hover, .field-contact:focus-visible { color: var(--focus); }

.legal { padding-block: clamp(48px, 8vw, 112px); }
.legal h1 { font-size: clamp(1.95rem, 6vw, 5rem); overflow-wrap: anywhere; }
.legal h2 { font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.15; margin-top: 2em; }
.legal h3 { font-size: 1.2rem; line-height: 1.3; margin-top: 1.4em; }
.legal li { line-height: 1.65; }

.legal :is(p, ul, ol) { max-width: none; }
@media (min-width: 621px) {
  .legal :is(p, ul, ol) { max-width: 94%; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-pending { opacity: 0; }
  .fade-in-up { animation: fade-in-up 1450ms cubic-bezier(.25, .55, .35, 1) var(--reveal-delay, 0ms) both; }
  .hero .fade-in-up { animation-duration: 900ms; }
  .hero h1.fade-in-up { animation-delay: 0ms; }
  .hero figure.fade-in-up { animation: hero-portrait-fade 1250ms ease-in-out both; }
  .hero .subtitle.fade-in-up { animation-delay: 300ms; }
  .hero .hero-intro.fade-in-up { animation-delay: 450ms; }
  :is(.reveal-pending, .fade-in-up):focus-within { opacity: 1; animation: none; }
}
@keyframes hero-portrait-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* The offer directory and case studies share the main page grid. */
#beratung .field-intro {
  margin-bottom: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(18px, 2.5vw, 34px);
}
.advisory-layout, .case-study {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
.case-lead { margin-top: 0; }
.advisory-links {
  border-top: 4px solid transparent;
  border-image: var(--chameleon) 1;
  background: var(--white);
  padding: clamp(18px, 3vw, 32px);
}
.advisory-group + .advisory-group { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; }
.advisory-group h3 { font-size: 1rem; letter-spacing: 0; margin: 0 0 6px; }
.advisory-group .resource {
  display: flex;
  justify-content: space-between;
  border: 0;
  border-radius: 0;
  padding-inline: 0;
}
.advisory-group .partner { font-size: .9rem; }
.case-study {
  gap: clamp(24px, 4vw, 48px) clamp(28px, 6vw, 76px);
  padding-block: clamp(26px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
}
.case-study + .case-study { margin-top: clamp(24px, 4vw, 54px); }
.case-lead { font-size: .95rem; font-weight: 600; color: var(--focus); }
.case-study h3 { letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.case-gallery .photo { aspect-ratio: 4 / 3; border-radius: 8px; }
.case-study .notes { grid-column: 1 / -1; gap: clamp(20px, 5vw, 64px); }
.case-study .notes article { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 18px 0 0; }
.case-study .notes article p:last-child { margin-bottom: 0; }
#beratung .field-contact { margin-top: clamp(20px, 3vw, 40px); }
@media (max-width: 700px) {
  .advisory-layout, .case-study { grid-template-columns: minmax(0, 1fr); }
  .case-gallery { grid-template-columns: 1fr 1fr; }
  .case-study .notes { grid-template-columns: minmax(0, 1fr); }
}


/* Shared card surfaces for the business sections. */
:root {
  --card-radius: 20px;
  --card-gap: clamp(14px, 2vw, 26px);
  --card-pad: clamp(20px, 3vw, 38px);
  --card-shadow: 0 10px 28px rgba(44, 48, 60, .06);
  --card-tint: #efedf7;
}
.tile, .advisory-group,
.case-study, #entwicklung .split {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background-color: var(--white);
  box-shadow: var(--card-shadow);
}
html[lang="de"] {
  -webkit-hyphens: none;
  hyphens: none;
}

:is(main, .privacy-dialog-copy) :is(p, li) {
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
  -webkit-hyphenate-limit-lines: 1;
  hyphenate-limit-lines: 1;
  text-align: start;
}

:is(h1, h2, h3, h4, h5, h6, a, button, label, summary,
    .subtitle, .case-lead, .merlin-product-name, .brand-name) {
  -webkit-hyphens: none;
  hyphens: none;
}

:is(main, .privacy-dialog-copy) :is(p.subtitle, p.case-lead) {
  -webkit-hyphens: none;
  hyphens: none;
  text-align: inherit;
}
.entry {
  background: var(--white);
  overflow: hidden;
}
.entry:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.entry p { max-width: 47ch; }
.field, .contact { padding-block: clamp(54px, 7.5vw, 104px); }
.field-intro, #beratung .field-intro {
  padding-block-end: clamp(30px, 2.7vw, 38px);
  margin-block-end: clamp(36px, 3.8vw, 52px);
}
.field h2, .contact h2 { font-size: clamp(2.15rem, 5.3vw, 4.5rem); line-height: 1.02; letter-spacing: -.04em; }
.field :is(h3,h4) { letter-spacing: -.025em; }
.field .feature { margin-block: 0 var(--card-gap); }
.field-contact, #beratung .field-contact {
  margin-top: clamp(14px, 2.5vw, 28px);
  text-decoration-thickness: 1px;
}
#beratung .advisory-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--card-gap);
}
.advisory-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  padding: 0;
  border: 0;
  background: transparent;
}
.advisory-group, .advisory-group + .advisory-group {
  margin: 0;
  padding: var(--card-pad);
}
.advisory-group h3 {
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.18;
  margin-bottom: 12px;
}
.advisory-group .resource { justify-content: flex-start; }
.advisory-group .resource + .resource { border-top: 1px solid var(--line); }
.advisory-group .partner { margin: .35rem 0 .5rem; }
.projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.projects .tile {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}
.projects .tile .photo { width: 100%; height: 100%; aspect-ratio: auto; }
.tile > div { padding: var(--card-pad); }
.tile p:last-child { margin-bottom: 0; }
.products .tile img { background: var(--white); }
.products .tile > div { background: var(--soft); }
#entwicklung .split {
  margin-top: clamp(22px, 4vw, 48px);
  padding: var(--card-pad);
  gap: var(--card-gap);
}
#entwicklung .split .photo, .case-gallery .photo { border-radius: 12px; }
.podcast-subtitle { margin-block-start: .65em; }
.case-study {
  padding: var(--card-pad);
  gap: var(--card-gap) clamp(26px, 4vw, 54px);
}
.case-study + .case-study { margin-top: var(--card-gap); }
.case-study .notes { gap: 12px; }
.case-study .notes article {
  border: 0;
  border-radius: 12px;
  padding: clamp(16px, 2vw, 25px);
  background: var(--soft);
}
@media (max-width: 1000px) {
  .projects .tile { display: block; }
  .projects .tile .photo { aspect-ratio: 1.8; height: auto; }
}
@media (max-width: 760px) {
  .advisory-links { grid-template-columns: minmax(0, 1fr); }
  .case-study { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .projects, .products { grid-template-columns: minmax(0, 1fr); }
}

.advisory-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.advisory-group h3 { margin-bottom: 0; }
.advisory-group p { margin: .75rem 0 1.25rem; }
.advisory-group .resource {
  margin-top: auto;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  line-height: 1.25;
}
.advisory-group .resource[href^="#"] > span { rotate: 90deg; }
@media (min-width: 761px) {
  #beratung .advisory-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#beratung .advisory-group h3 { text-wrap: balance; }
#beratung .advisory-group { padding: clamp(20px, 2.6vw, 34px); }

/* Section copy fills its container, with a line of space between paragraphs. */
main :is(.hero-intro, .field, .contact) p {
  max-width: none;
  text-wrap: pretty;
}
main :is(.hero-intro, .field, .contact) p:has(+ p) {
  margin-block-end: 0;
}
main :is(.hero-intro, .field, .contact) p + p {
  margin-block-start: 1.68em;
}
@supports (margin-block-start: 1lh) {
  main :is(.hero-intro, .field, .contact) p + p { margin-block-start: 1lh; }
}
.case-study, #entwicklung .split {
  grid-template-columns: minmax(0, 1fr);
}
.case-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
}
.case-gallery .photo { aspect-ratio: 3 / 2; }
#entwicklung .split .photo { aspect-ratio: 16 / 7; }
@media (max-width: 620px) {
  .case-gallery { grid-template-columns: minmax(0, 1fr); }
  #entwicklung .split .photo { aspect-ratio: 3 / 2; }
}

#beratung .advisory-links { grid-auto-rows: 1fr; }

@media (min-width: 761px) {
  #beratung .advisory-group > h3 {
    min-block-size: 2.36em;
    min-block-size: 2lh;
  }
}
.advisory-group > p { text-wrap: balance; }

.projects .tile p, .case-study .notes p { text-wrap: balance; }
@media (min-width: 801px) {
  .projects .tile > div { padding: clamp(18px, 2vw, 28px); }
}

@media (min-width: 1001px) {
  .projects .tile h4 { min-block-size: 2.4em; line-height: 1.2; }
}

.section-actions { margin-top: clamp(14px, 2.5vw, 28px); gap: 12px 20px; }
.section-actions .field-contact { margin-top: 0; }
.section-actions .resource span { rotate: 90deg; }

.footer-contact {
  display: grid;
  gap: .4rem;
  font-style: normal;
  line-height: 1.45;
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
}

.social-links { display: flex; align-items: center; gap: 2px; }
.social-links a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
}
.social-links a:hover, .social-links a:focus-visible { background: var(--soft); }
.social-links img { display: block; opacity: .82; }
.footer-grid .footer-social {
  grid-column: 1 / -1;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
@media (max-width: 620px) {
  :root { scroll-padding-top: 7rem; }
  .top-row { flex-wrap: wrap; gap: 2px 12px; padding-block: 8px; }
  .top nav { flex-basis: 100%; }
  .top .social-links { margin-left: auto; }
}

.footer-contact a { overflow-wrap: anywhere; }
@media (max-width: 390px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

.hero { position: relative; isolation: isolate; overflow: clip; }
.hero-backdrop {
  background:
    linear-gradient(to bottom, transparent 56%, var(--white) 99%),
    linear-gradient(to right, var(--white) 35%, transparent 67%),
    radial-gradient(ellipse 32% 92% at 72% 82%, #203c603d, #203c601a 48%, #203c6000 85%),
    radial-gradient(ellipse 47% 77% at 106% 6%, #9db9d0a0, #9db9d030 52%, #9db9d000 92%),
    radial-gradient(ellipse 57% 105% at 96% 66%, #52758f70, #52758f29 53%, #52758f00 88%),
    var(--white);
}
@media (min-width: 621px) and (max-width: 1024px) {
  .hero-backdrop {
    background:
      linear-gradient(to bottom, transparent 48%, var(--white) 97%),
      linear-gradient(to right, var(--white) 36%, transparent 70%),
      radial-gradient(ellipse 31% 81% at 74% 72%, #203c6037, #203c6000 85%),
      radial-gradient(ellipse 48% 71% at 109% 4%, #9db9d093, #9db9d029 54%, #9db9d000 92%),
      radial-gradient(ellipse 52% 92% at 95% 56%, #52758f65, #52758f25 55%, #52758f00 89%),
      var(--white);
  }
}
@media (max-width: 620px) {
  .hero-backdrop {
    background:
      radial-gradient(ellipse 55% 175px at 30% 198px, #203c602c, #203c6000 81%),
      radial-gradient(ellipse 78% 255px at 111% 0, #9db9d080, #9db9d020 56%, #9db9d000 96%),
      radial-gradient(ellipse 81% 260px at 97% 76px, #52758f58, #52758f22 50%, #52758f00 93%),
      var(--white);
  }
}
footer { background: var(--soft); padding-block: clamp(40px, 6vw, 72px) clamp(36px, 5vw, 56px); }
.footer-copyright { background: var(--white); padding-block: clamp(21px, 3vw, 30px); }

.logo-slot { display: flex; align-items: center; height: 70px; margin-bottom: 17px; }
.logo-slot img { width: min(107px, 100%); height: auto; max-height: 55px; object-fit: contain; object-position: left; }
.logo-slot .logo-clever { width: min(185px, 100%); }
.logo-merlin, .logo-scoleo {
  display: block;
  background-image: url("assets/Kombi_Logo_MERLIN_Scoleo.png?v=1.10");
  background-repeat: no-repeat;
}
.logo-merlin { width: 38px; height: 70px; background-size: 202px 101px; background-position: -46px -14px; }
.logo-scoleo { width: 113px; height: 70px; margin-bottom: 16px; background-size: 300px 150px; background-position: -141px -39px; }

.back-to-top:not([hidden]) {
  position: fixed;
  z-index: 5;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1;
}
.back-to-top:hover { background: var(--focus); }


@media (max-width:620px) {
 .top-row { row-gap: 12px; padding-block: 12px; }
 :root { scroll-padding-top: 8rem; }
 .hero { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-block: 30px 46px; text-align: center; }
 .hero figure { grid-area: 1 / 1; justify-self: center; width: min(84%, 282px); }
 .hero h1 { grid-area: 2 / 1; margin-top: 32px; font-size: clamp(1.9rem, 10.5vw, 3.65rem); }
 .hero .desktop-break { display: none; }
 .hero .subtitle { grid-area: 3 / 1; margin-top: 30px; max-width: none; font-size: clamp(1.15rem, 4.7vw, 1.55rem); line-height: 1.35; text-wrap: balance; }
 .hero-intro { grid-area: 4 / 1; margin-top: 25px; }
 .hero-intro p { text-wrap: balance; }
 .hero-intro p:first-child { margin-top: 0; }
}

/* Vertical spacing from the introduction to the section content. */
.field, .contact {
  --content-gap: clamp(26px, 3.4vw, 46px);
  --action-gap: clamp(24px, 2.5vw, 32px);
  --heading-content-gap: clamp(20px, 2vw, 28px);
  --media-gap: clamp(36px, 4.4vw, 56px);
  padding-block: clamp(62px, 8vw, 112px);
}

.field :is(h2, h3, h4) + p,
.contact h2 + p {
  margin-block-start: var(--heading-content-gap);
}

.field-intro h2 + p {
  margin-block-start: clamp(26px, 2.5vw, 34px);
}

#beratung .advisory-layout {
  row-gap: var(--content-gap);
}

.field .feature:has(+ :is(.projects, .products)) {
  margin-block-end: var(--content-gap);
}

.case-study {
  row-gap: var(--content-gap);
}

.field .feature-copy > p:has(+ .links:not(:empty)) { margin-block-end: 0; }
.field .feature-copy > .links:not(:empty),
.field .section-actions {
  margin-block-start: var(--action-gap);
}

#beratung .advisory-group > p {
  margin-block-end: var(--action-gap);
}
#schulprojekte .field-contact { margin-block-start: var(--action-gap); }
#kontakt .contact-region-heading {
  margin-block-start: var(--content-gap);
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}
#kontakt .contact-region-heading + p { margin-block-start: .6em; }


.case-study > .case-gallery {
  margin-block-start: max(0px, calc(var(--media-gap) - var(--content-gap)));
}
#entwicklung .split { row-gap: var(--media-gap); }
.field .feature:has(+ :is(.merlin-carousel, [data-merlin-carousel])) { margin-block-end: var(--media-gap); }

.case-study + .case-study {
  margin-block-start: var(--content-gap);
}

.contact-grid {
  row-gap: var(--content-gap);
}

@media (max-width: 620px) {
  .entries { gap: 20px; }
  .entry { display: grid; align-content: center; min-height: 78px; }

  .field, .contact { --content-gap: 34px; }

  .field-intro, #beratung .field-intro {
    padding-block-end: 26px;
    margin-block-end: var(--content-gap);
  }

  .field :is(h2, h3, h4) + p,
  .contact h2 + p { margin-block-start: 26px; }

  .case-lead:has(+ h3) { margin-block-end: 22px; }
}

footer {
  color: #fff;
  background: var(--chameleon) top / 100% 3px no-repeat #27292b;
  padding-block: clamp(44px, 5vw, 72px) 0;
  overflow: hidden;
}

footer a:focus-visible { outline-color: #fff; }
footer .footer-logo {
  width: 64px;
  height: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}
footer .footer-grid { gap: 36px 32px; }
footer .footer-grid > :not(.footer-social) { gap: 5px; }
.footer-contact [download] { margin-top: 6px; }
footer .footer-grid .footer-social {
  gap: 13px;
  padding-top: 25px;
  border-color: #ffffff38;
}
footer .footer-social a {
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff55;
  border-radius: 50%;
}
footer .footer-social a:is(:hover, :focus-visible) { background: #ffffff20; }
footer .footer-social img { filter: brightness(0) invert(1); }
.footer-wordmark {
  margin: clamp(26px, 4vw, 60px) auto 0;
  max-width: 100%;
  color: #fff;
  font-size: 11.2vw;
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.068em;
  text-align: center;
  white-space: nowrap;
  mask-image: linear-gradient(to top, #000 12%, #000c 48%, #0002 98%);
}
@supports (text-box-trim: trim-end) and (text-box-edge: cap alphabetic) {
  .footer-wordmark {
    line-height: 1;
    text-box-trim: trim-end;
    text-box-edge: cap alphabetic;
  }
}
.footer-copyright {
  border-top: 0;
  padding-block: 32px;
}

@media (max-width: 620px) {
  footer .footer-grid { row-gap: 25px; }
  footer .footer-logo { margin-bottom: 8px; }
  .footer-copyright { padding-block: 24px; }
}

@media (orientation: landscape) and (max-width: 950px) and (max-height: 500px) {
  .hero {
    row-gap: 24px;
    padding-block: 32px 36px;
  }
  .hero h1 { font-size: clamp(3rem, 8vw, 4.75rem); }
  .hero .photo { width: min(82%, 225px); }
}

.legal-footer { padding-block-end: clamp(36px, 5vw, 64px); }

@media (max-width: 620px) {
  .top nav { flex-wrap: wrap; gap: 4px 12px; }
  :root { scroll-padding-top: 10rem; }
}

#beratung .advisory-group > p { text-wrap: balance; }

.merlin-carousel {
  --merlin-slide-width: 56%;
  --merlin-fade-width: 22%;
}

.merlin-carousel-viewport {
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  padding-block: 0 2px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--merlin-fade-width), #000 calc(100% - var(--merlin-fade-width)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--merlin-fade-width), #000 calc(100% - var(--merlin-fade-width)), transparent);
}

.merlin-carousel-viewport .product { cursor: inherit; }
.merlin-carousel-viewport.is-dragging { cursor: grabbing; }

.merlin-carousel-side {
  position: absolute;
  z-index: 1;
  inset-block: 0;
  inline-size: 25%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.merlin-carousel-side--previous { inset-inline-start: 0; }
.merlin-carousel-side--next { inset-inline-end: 0; }
.merlin-carousel-side:focus-visible { outline-offset: -5px; }
.merlin-carousel-viewport.is-dragging .merlin-carousel-side { cursor: grabbing; }

.products.merlin-carousel-track {
  display: flex;
  gap: 0;
}

.merlin-carousel-track > .product {
  --slide-inset: clamp(5px, 1vw, 14px);
  box-shadow: none;
  flex: 0 0 calc(var(--merlin-slide-width) - 2 * var(--slide-inset));
  min-width: 0;
  margin-inline: var(--slide-inset);
  display: flex;
  flex-direction: column;
}

.merlin-carousel-track > .product > div {
  flex: 1;
  padding: clamp(9px, 1.5vw, 20px);
  font-size: clamp(.82rem, 2.8vw, 1.08rem);
}

.merlin-carousel-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 10px 12px;
}

.merlin-carousel-controls button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}

.merlin-carousel-dot {
  display: grid;
  width: 44px;
  place-items: center;
}

.merlin-carousel-dot::before {
  width: 9px;
  height: 9px;
  border: 1px solid var(--focus);
  border-radius: 50%;
  content: "";
}

.merlin-carousel-dot[aria-current="true"]::before { background: var(--focus); }
.merlin-carousel-playback { padding-inline: 10px; font-size: .85rem; }


@media (max-width: 620px) {
  .merlin-carousel {
    --merlin-slide-width: 78%;
    --merlin-fade-width: calc((100% - var(--merlin-slide-width)) / 2);
  }

  .merlin-carousel-side { inline-size: var(--merlin-fade-width); }
}

@media (620px < width <= 900px) {
  .entry { padding-inline: clamp(18px, 2.2vw, 20px); }
}


.legal-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
}

.legal-footer-row .site-version {
  margin-inline-start: auto;
  color: #dadbdd;
  font-size: .75rem;
}

.brand-band { margin-top: clamp(48px, 6.5vw, 88px); min-width: 0; }
.brand-window { overflow: hidden; padding-block: 4px; mask-image: linear-gradient(to right, transparent, black clamp(24px, 6%, 72px), black calc(100% - clamp(24px, 6%, 72px)), transparent); }
.brand-track { display: flex; width: max-content; animation: brand-loop 62s linear infinite; }
.brand-track ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; }
.brand-track li { flex: none; width: clamp(126px, 14vw, 184px); height: clamp(66px, 8vw, 92px); display: grid; place-items: center; padding-inline: clamp(13px, 2vw, 25px); }
.brand-track img { width: auto; height: auto; max-width: 100%; max-height: clamp(48px, 6vw, 70px); object-fit: contain; }
.brand-track img[alt="Gowi"] { max-height: clamp(42px, 5.5vw, 64px); }
#beratung .brand-band + .field-contact { margin-top: clamp(38px, 5vw, 72px); }
@keyframes brand-loop { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .brand-window { mask-image: none; }
  .brand-track { width: auto; animation: none; }
  .brand-track ul { flex-wrap: wrap; }
  .brand-track ul[aria-hidden] { display: none; }
}

.project-layout {
  display: grid;
  align-items: start;
  gap: clamp(22px, 4vw, 58px);
  isolation: isolate;
}
.project-intro p { margin-bottom: 0; }

:is(.school-festival, .product-service) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  row-gap: var(--media-gap);
  column-gap: var(--content-gap);
  margin-block-start: clamp(62px, 8vw, 112px);
}
:is(.school-festival, .product-service) > div,
:is(.school-festival, .product-service) > .photo { inline-size: 100%; min-inline-size: 0; }
#schulprojekte :is(.school-festival, .product-service) p { max-inline-size: none; margin-block-end: 0; }
:is(.school-festival, .product-service) .photo { border-radius: 12px; }
.project-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 52px);
  min-width: 0;
}
.project-card {
  min-block-size: var(--project-card-height, auto);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(39, 41, 43, .08);
}
.project-card .photo {
  height: clamp(120px, 26vh, 215px);
  border-radius: 0;
}
.project-card > div { padding: clamp(22px, 4vw, 42px); }
.project-card h4 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.1; }
.project-card p { margin: 1rem 0 0; }

@media (min-width: 1100px) and (min-height: 620px) {
  .project-card { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); grid-template-rows: 1fr; }
  .project-card .photo { height: 100%; min-height: 240px; position: absolute; inset: 0 auto 0 0; width: calc(100% * .7 / 1.7); }
  .project-card > div { grid-column: 2; align-self: center; min-height: 240px; display: grid; align-content: center; }
}
@media (max-height: 619px) and (orientation: landscape) {
  .project-card .photo { height: clamp(78px, 25vh, 150px); }
  .project-card > div { padding: clamp(16px, 3.5vw, 28px); }
}
@media (prefers-reduced-motion: no-preference) {
  .project-stack {
    --project-top: 112px;
    --project-step: 9px;
    --project-last-layer: 3;
    /* Reserve the painted offset so the last card cannot encroach on the next section. */
    padding-block-end: calc(var(--project-last-layer) * var(--project-step));
  }
  /* The last card needs space inside the stack before it can stick. */
  .project-stack::after {
    content: "";
    flex: 0 0 max(0px, calc(clamp(48px, 12vh, 96px) - clamp(20px, 4vw, 52px)));
  }
  .project-card {
    --project-layer: 0;
    position: sticky;
    top: var(--project-top);
    /* Offset the painted layers even when sticky cards reach the stack end. */
    transform: translateY(calc(var(--project-layer) * var(--project-step)));
    z-index: calc(1 + var(--project-layer));
  }
  .project-card:nth-child(2) { --project-layer: 1; }
  .project-card:nth-child(3) { --project-layer: 2; }
  .project-card:last-child { --project-layer: var(--project-last-layer); }
}
@media (max-width: 620px) and (prefers-reduced-motion: no-preference) {
  .project-stack { --project-step: 6px; }
}
@media (min-width: 740px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
  .project-layout > .project-intro { position: sticky; top: 112px; }
}
@media (min-width: 621px) and (max-height: 619px) and (orientation: landscape) {
  .project-stack { --project-top: 80px; }
}

.hero-surname { white-space: nowrap; }

.hero-name, .headline-shimmer {
  display: inline-block;
  /* Keep glyph overhang inside the background-clip area. */
  padding-inline: .14em;
  margin-inline: -.14em;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-name.shimmers {
      background-image: linear-gradient(93deg, #464b4f 34%, #203c60 42%, #52758f 50%, #6c889f 58%, #464b4f 66%);
      background-size: 210% 100%;
      background-position: var(--shimmer-position, 100%) 0;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
    }
  }
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  @media (prefers-reduced-motion: no-preference) {
    .headline-shimmer.is-shimmering {
      background-image: linear-gradient(93deg, #464b4f 35%, #464b4f 42%, #203c60 46%, #52758f 51%, #6c889f 56%, #464b4f 61%, #464b4f 65%);
      background-size: 245% 100%;
      background-position: 100% 0;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
      animation: headline-sweep 2.5s cubic-bezier(.28,.18,.28,1) both;
    }
    @keyframes headline-sweep { to { background-position: 0 0; } }
  }
}

:root:has(.top) { scroll-padding-top: calc(var(--header-height, 69px) + 19px); }

@media (prefers-reduced-motion: no-preference) {
  .motion-pending { opacity: 0; }
  .motion-enter {
    --reveal-distance: 38px;
    animation: motion-enter 820ms cubic-bezier(.22, .61, .36, 1) var(--reveal-delay, 0ms) both;
  }
  :is(.motion-pending, .motion-enter):is(:focus-within, :target, :target *, :has(:target)) {
    opacity: 1;
    animation: none;
  }
  :is(.motion-pending, .motion-enter) .headline-shimmer.is-shimmering {
    animation-play-state: paused;
  }
}
@media (max-width: 620px) {
  .motion-enter { --reveal-distance: 26px; }
}
@keyframes motion-enter {
  from { opacity: 0; transform: translateY(var(--reveal-distance)); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-block-start: clamp(24px, 2.5vw, 34px);
}
.hero .hero-appointment { border-color: var(--ink); }
@media (max-width: 620px) {
  .hero-actions {
    display: grid;
    width: min(100%, 240px);
    margin-inline: auto;
  }

  .hero-actions > .resource { justify-content: center; }
}

.resource.resource-primary {
  background: #27292b;
  color: var(--white);
  border-color: #27292b;
}

.resource:is(:hover, :focus-visible),
#kontakt button[type="submit"]:enabled:is(:hover, :focus-visible),
.product:is(:hover, :focus-visible) .merlin-product-caption > .resource {
  background: #3b4044;
  border-color: #3b4044;
  color: var(--white);
}

.scoleo-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: start;
  margin-block-start: var(--content-gap);
  padding: var(--card-pad);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}
.scoleo-card h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.12; }
.field .scoleo-card h3 + p { margin-block: 12px 20px; }
@media (max-width: 620px) {
  .scoleo-card { grid-template-columns: minmax(0, 1fr); }
}

.concept-grid {
  display: grid;
  grid-auto-rows: 1fr;
  gap: var(--card-gap);
  margin-block-start: var(--media-gap);
}

.concept-grid > .tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.concept-photo {
  display: block;
  width: min(100%, 280px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  padding-block: clamp(14px, 1.8vw, 24px);
  padding-inline: 12px;
  justify-self: center;
  align-self: center;
}

.concept-grid h4 { font-size: clamp(1.35rem, 2.25vw, 1.9rem); }

.concept-grid .concept-copy {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 16px;
}

.field .concept-grid .concept-copy > p { margin: 0; }

.concept-copy > .resource { justify-self: end; align-self: end; }

@media (min-width: 621px) {
  .concept-grid > .tile {
    grid-template-columns: minmax(0, clamp(190px, 28vw, 320px)) minmax(0, 1fr);
  }

  .concept-photo { width: 100%; }
}

.merlin-product-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.merlin-product-name { flex: 1 1 auto; min-width: 0; }
.merlin-product-caption > .resource {
  flex: 0 0 auto;
  align-self: flex-end;
  margin-inline-start: auto;
  padding-inline: clamp(7px, 1.2vw, 14px);
  font-size: clamp(.75rem, 1.35vw, .9rem);
}

.case-gallery.media-portal-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-portal-frame {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 12px;
}
.media-portal-frame img {
  display: block;
  position: absolute;
  max-width: none;
  height: auto;
  width: var(--image-width);
  left: var(--image-left);
  top: var(--image-top);
}
.media-portal-macbook {
  --image-width: 158.595%;
  --image-left: -25.207%;
  --image-top: -2.686%;
}
.media-portal-iphone {
  --image-width: 121.810%;
  --image-left: -3.810%;
  --image-top: -102.976%;
}
@media (max-width: 620px) {
  .case-gallery.media-portal-gallery { grid-template-columns: minmax(0, 1fr); }
}

:is(.entry, .tile, .advisory-group, .project-card, .case-study,
    #entwicklung .split, .scoleo-card, .contact-grid) :is(h3, h4, p),
.entry > a,
#beratung .advisory-group :is(h3, p),
main .field .case-study p {
  text-wrap: wrap;
}

main .field :is(.field-intro, .feature-copy, .project-intro) > p,
main .contact-grid > div > p {
  max-width: none;
  text-wrap: wrap;
}

@media (min-width: 621px) {
  main .field :is(.field-intro, .feature-copy, .project-intro) > p,
  main .contact-grid > div > p {
    max-width: 94%;
  }
}

.top .nav-pages { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 3vw, 34px); }
.top .nav-pages [aria-current="page"] { color: var(--focus); text-decoration: underline; text-underline-offset: .24em; }
@media (max-width: 620px) {
  .top .nav-pages { gap: 4px 12px; }
}

/* Editorial recruiting page */
.jobs-head {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: var(--media-gap) var(--content-gap);
  padding-block: var(--job-section-space);
}
.jobs-page {
  --job-section-space: clamp(52px, 6.65vw, 93px);
  --content-gap: clamp(26px, 3.4vw, 46px);
  --media-gap: clamp(36px, 4.4vw, 56px);
}
.jobs-head h1 { font-size: clamp(2.2rem, 6vw, 5.75rem); line-height: 1.04; letter-spacing: -.04em; hyphens: none; }
.jobs-head p { max-width: 58ch; margin: 1lh 0 0; font-size: clamp(1.04rem, 2vw, 1.26rem); }
.jobs-photo { display: block; width: min(100%, 440px); height: auto; border-radius: 12px; justify-self: end; }
.jobs-page :is(.job-opening, .job-offer) { background: var(--soft); }
.jobs-page :is(.job-hero, .job-requirements, .job-closing) { background: var(--white); }
.jobs-page .field { padding-block: var(--job-section-space); }
.job-summary .case-lead { color: var(--focus); margin: 0 0 .75rem; }
.job-summary h2 { font-size: clamp(2rem, 4.5vw, 3.9rem); line-height: 1.08; letter-spacing: -.035em; max-inline-size: 21ch; }
.job-summary .job-gender { font-size: .6em; white-space: nowrap; }
.job-summary p, .job-invitation p { max-width: 68ch; margin: 1lh 0 0; }
.job-summary .job-schedule + p { margin-block-start: 0; }
main .job-summary p + p { margin-block-start: .65lh; }
.job-schedule {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: var(--action-gap);
  padding: clamp(13px, 2vw, 24px) 0;
  border-block: 1px solid var(--line);
  text-align: center;
  font-size: clamp(.8rem, 1.7vw, 1rem);
  font-weight: 600;
}
.job-schedule > li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  text-align: center;
  padding-inline: clamp(5px, 1.5vw, 22px);
  line-height: 1.3;
}
.job-schedule > li + li::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  border-inline-start: 1px solid var(--line);
}
.job-details, .job-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--media-gap) var(--content-gap);
}
.job-details { align-items: start; }
.job-details h3, .job-offer h3, .job-callout h2 { font-size: clamp(1.75rem, 3.4vw, 3.15rem); line-height: 1.12; letter-spacing: -.018em; }
.job-details ul, .job-benefits ul { margin: 0; padding-inline-start: 1.2em; }
:is(.job-details ul, .job-benefits) { margin-block-start: var(--heading-content-gap); }
:is(.job-details, .job-benefits) li { line-height: 1.68; }
:is(.job-details, .job-benefits) li + li { margin-block-start: .35em; }
:is(.job-details, .job-benefits) li::marker { color: var(--focus); }
.job-details p, .job-perspective p { margin: 1lh 0 0; max-width: 68ch; }
.job-benefits { margin-block-end: var(--content-gap); row-gap: .35em; }
.job-perspective h4 + p { margin-block-start: var(--heading-content-gap); }
main .job-perspective p + p { margin-block-start: .65lh; }
.job-perspective h4 { letter-spacing: -.008em; }
.job-callout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: var(--media-gap) var(--content-gap);
}
.job-invitation p:first-child { margin-block-start: 0; }
.job-actions { display: grid; justify-items: start; gap: var(--action-gap); margin-block-start: var(--heading-content-gap); }
.job-number { font-size: clamp(1.125rem, 1.7vw, 1.4rem); font-weight: 700; }
@media (max-width: 760px) {
  .jobs-head, .job-details, .job-benefits, .job-callout { grid-template-columns: minmax(0, 1fr); }
  .jobs-photo { justify-self: start; }
}

.nav-toggle { display: none; }

@media (max-width: 620px) {
  .has-mobile-menu { scroll-padding-top: 5.5rem; }
  .top .nav-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .top .nav-toggle:not([hidden]):is(:hover, :focus-visible, [aria-expanded="true"]) {
    color: var(--focus);
    border-color: var(--focus);
  }
  .top .nav-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
  .nav-toggle-icon {
    width: 16px;
    height: 12px;
    border-block: 2px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  }
  .has-mobile-menu .top nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px clamp(20px, 5vw, 72px) 14px;
    max-height: 75vh;
    overflow: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--card-shadow);
  }
  .top .nav-toggle:not([hidden])[aria-expanded="false"] + nav { display: none; }
  .has-mobile-menu .top .nav-pages {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .has-mobile-menu .top .nav-pages a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .has-mobile-menu .top .social-links { margin-inline: 0; }
}

:root { color-scheme: light; }

.privacy-dialog {
  width: min(880px, calc(100% - 2rem));
  max-height: min(85vh, 46rem);
  max-height: min(85dvh, 46rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
}
.privacy-dialog[open] { display: flex; flex-direction: column; }
.privacy-dialog::backdrop { background: rgb(18 20 23 / 66%); }
.privacy-dialog-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: .8rem clamp(16px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
}
.privacy-dialog-header h2 {
  font-size: clamp(1.15rem, 4vw, 1.7rem);
  overflow-wrap: anywhere;
}
.privacy-dialog-header form { margin: 0; }
.privacy-dialog-header button {
  font: inherit;
  font-weight: 600;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.privacy-dialog-body {
  padding: 0 clamp(16px, 4vw, 32px) 1rem;
  overflow: auto;
  overscroll-behavior: contain;
}
.privacy-dialog-copy { padding-block: 0; }
.privacy-dialog-copy h2 { font-size: clamp(1.2rem, 3vw, 1.65rem); margin-top: 1.2em; }
html:has(.privacy-dialog[open]) { overflow: hidden; }

/* Media-Portal editorial layout. */
.portal-header { margin-block-end: clamp(24px, 4vw, 46px); }
.portal-header h3 { line-height: 1.06; letter-spacing: -.035em; }
.portal-header .case-lead { margin: 0 0 .75rem; }
.field .portal-story h4 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.16;
  letter-spacing: -.008em;
}
.portal-story p { max-width: 100%; }
.portal-origin p, .portal-details p, .portal-story .notes p { margin: .7em 0 0; }
.portal-story-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  grid-template-areas: "origin macbook";
  gap: var(--media-gap) clamp(24px, 5vw, 64px);
}
.portal-origin { grid-area: origin; align-self: center; }
.portal-action { margin-block-start: var(--action-gap); }
.portal-story .media-portal-macbook { grid-area: macbook; align-self: center; }
.portal-details {
  margin-block-start: var(--media-gap);
  background: var(--soft);
  padding: clamp(18px, 3vw, 36px);
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .72fr);
  align-items: start;
  gap: clamp(18px, 3vw, 36px);
}
.portal-story .notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--media-gap) var(--content-gap);
  margin-block-start: var(--media-gap);
}
.portal-story .notes > article {
  border: 0;
  border-block-start: 1px solid var(--line);
  border-radius: 0;
  padding: clamp(18px, 3vw, 32px) 0 0;
  background: transparent;
}
.portal-story + .scoleo-card { margin-block-start: calc(var(--content-gap) * 1.5); }

@media (max-width: 1024px) {
  .portal-story-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "origin" "macbook";
  }
  .portal-origin { max-inline-size: 68ch; }
  .portal-story .media-portal-macbook { width: min(100%, 680px); }
}
@media (701px <= width <= 1024px) {
  .portal-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-details > figure {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 290px);
  }
}
@media (max-width: 760px) {
  .portal-story .notes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .portal-details { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .portal-details > figure { width: min(100%, 290px); }
}
.portal-name { white-space: nowrap; hyphens: none; }
@media (max-width: 620px) {
  .portal-header .portal-name { display: block; }
}

.regional-stats-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  padding-block: var(--action-gap);
  border-block: 1px solid var(--line);
}
#beratung .regional-stats-list li {
  display: grid;
  grid-template-rows: auto 1fr;
  text-align: center;
  row-gap: .3rem;
  padding-inline: clamp(5px, 1.5vw, 22px);
  font-size: clamp(.75rem, 1.5vw, 1rem);
  line-height: 1.25;
}
.regional-stats-list li + li { border-inline-start: 1px solid var(--line); }
.regional-stat-number {
  position: relative;
  color: #52758F;
  font-size: calc(clamp(1.75rem, 4vw, 3rem) * 1.175);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.regional-stat-number > span { display: block; }
.regional-stat-number > .regional-stat-animation {
  position: absolute;
  inset: 0;
}
.regional-stat-number:has(> .regional-stat-animation) > span:first-child { opacity: 0; }
.regional-stats > div > p {
  margin: var(--action-gap) 0 0;
}

.hero-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px clamp(20px, 2.4vw, 32px);
  margin-block-start: clamp(34px, 3.6vw, 50px);
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.35;
  text-align: start;
}
.hero-partner {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex: 0 0 auto;
  max-inline-size: 100%;
}
.hero-partner .brand-name { white-space: nowrap; }
.hero-partner img { display: block; flex: none; }
.hero-merlin img { inline-size: auto; block-size: 44px; }
@media (max-width: 620px) {
  .hero-partners {
    flex-direction: column;
    align-items: flex-start;
    grid-area: 5 / 1;
    inline-size: min(100%, 240px);
    justify-self: center;
  }
  .hero-merlin img { block-size: 38px; }
}
@media (621px <= width < 1280px) and (min-height: 620px) {
  .hero > figure {
    position: relative;
    inset-block-start: -40px;
  }
}

/* Advisory section spacing and offer cards. */
#beratung .field-intro {
  padding-block-end: 0;
  margin-block-end: var(--content-gap);
}
#beratung .advisory-layout { row-gap: var(--media-gap); }
#beratung .advisory-links { gap: var(--card-gap) var(--content-gap); }
#beratung .advisory-group {
  box-shadow: none;
  padding: var(--card-pad);
}
#beratung .advisory-group > .logo-slot {
  height: 88px;
  width: 100%;
  margin-block-end: var(--card-gap);
}
#beratung .logo-slot .logo-merlin {
  width: 47.5px;
  height: 87.5px;
  background-size: 252.5px 126.25px;
  background-position: -57.5px -17.5px;
}
#beratung .logo-slot img { width: min(144px, 100%); }
#beratung .logo-slot .logo-clever { width: min(227px, 100%); }
#beratung .advisory-group > h3 {
  font-size: clamp(1.35rem, 2.35vw, 2rem);
  letter-spacing: -.008em;
}
@media (min-width: 1100px) {
  #beratung .advisory-group > h3 { min-block-size: auto; }
}
#beratung .advisory-group > p { margin-block-start: .7em; }
#beratung .brand-band { margin-block-start: var(--media-gap); }
#beratung .brand-band + .field-contact { margin-block-start: var(--content-gap); }

/* Schulprojekte & Service */
#schulprojekte { background: var(--white); }
#schulprojekte .project-card { box-shadow: var(--card-shadow); }
#schulprojekte .project-card h4 {
  font-size: clamp(1.35rem, 2.25vw, 1.9rem);
  line-height: 1.18;
  letter-spacing: -.008em;
  text-wrap: balance;
}
#schulprojekte .project-card p {
  hyphenate-limit-chars: 8 4 3;
  text-wrap: pretty;
}
#schulprojekte :is(.project-intro, .school-festival, .product-service) h3 {
  letter-spacing: -.018em;
}
@media (min-width: 740px) and (min-height: 620px) {
  #schulprojekte :is(.project-layout, .school-festival, .product-service) {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--content-gap);
  }
  #schulprojekte .project-intro,
  #schulprojekte .school-festival > div { grid-column: 1 / 6; }
  #schulprojekte .project-stack,
  #schulprojekte .school-festival > .photo { grid-column: 6 / -1; }
  #schulprojekte .product-service > .photo { grid-area: 1 / 1 / 2 / 8; }
  #schulprojekte .product-service > div { grid-area: 1 / 8 / 2 / -1; }
}
@media (min-width: 1100px) and (min-height: 620px) {
  #schulprojekte .project-card {
    --project-image-share: 45%;
    grid-template-columns: minmax(0, var(--project-image-share)) minmax(0, 1fr);
  }
  #schulprojekte .project-card .photo { width: var(--project-image-share); }
  #schulprojekte .project-card > div { padding-inline: clamp(22px, 2.2vw, 32px); }
}
@media (min-width: 740px) and (max-height: 619px) and (orientation: landscape) {
  #schulprojekte .project-layout { grid-template-columns: minmax(0, 1fr); }
  #schulprojekte .project-card {
    --project-image-share: 45%;
    grid-template-columns: minmax(0, var(--project-image-share)) minmax(0, 1fr);
    grid-template-rows: 1fr;
  }
  #schulprojekte .project-card .photo {
    height: 100%;
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--project-image-share);
  }
  #schulprojekte .project-card > div {
    grid-column: 2;
    align-self: center;
    padding: var(--card-gap);
  }
}
@media (740px <= width <= 780px) and (max-height: 619px) and (orientation: landscape) {
  #schulprojekte .project-card { --project-image-share: 40%; }
}

/* Produktentwicklung */
#entwicklung .feature:has(+ :is(.merlin-carousel, [data-merlin-carousel])) .feature-copy {
  max-inline-size: 92ch;
}
#entwicklung .feature:has(+ :is(.merlin-carousel, [data-merlin-carousel])) h3 {
  letter-spacing: -.018em;
}
#entwicklung .feature:has(+ :is(.merlin-carousel, [data-merlin-carousel])) p {
  max-inline-size: none;
}
#entwicklung .merlin-carousel-track .merlin-product-caption {
  background: var(--white);
  border-block-start: 1px solid var(--line);
  align-items: center;
}
#entwicklung .merlin-product-name { letter-spacing: -.008em; }
#entwicklung .merlin-product-caption > .resource { align-self: center; }

#entwicklung .concept-grid {
  grid-auto-rows: auto;
  gap: var(--media-gap);
  margin-block: var(--media-gap);
}
#entwicklung .concept-grid > .tile {
  align-items: center;
  gap: var(--content-gap);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
#entwicklung .concept-photo {
  width: min(100%, 440px);
  padding: var(--card-gap);
  border-radius: var(--card-radius);
  background: var(--white);
}
#entwicklung .concept-grid .concept-copy {
  padding: 0;
  grid-template-rows: auto;
  gap: 0;
}
#entwicklung .concept-copy h4 {
  line-height: 1.18;
  letter-spacing: -.008em;
}
#entwicklung .concept-grid .concept-copy > p { margin-block-start: .7em; }
#entwicklung .concept-copy > .resource {
  justify-self: start;
  margin-block-start: var(--action-gap);
}
@media (min-width: 761px) {
  #entwicklung .concept-grid > .tile {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
  #entwicklung .concept-grid > .tile:nth-child(2) {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
  #entwicklung .concept-grid > .tile:nth-child(2) .concept-photo {
    grid-area: 1 / 2;
    justify-self: end;
  }
  #entwicklung .concept-grid > .tile:first-child .concept-photo { justify-self: start; }
  #entwicklung .concept-grid > .tile:nth-child(2) .concept-copy { grid-area: 1 / 1; }
}
@media (max-width: 760px) {
  #entwicklung .concept-grid > .tile { grid-template-columns: minmax(0, 1fr); }
  #entwicklung .concept-photo { justify-self: start; }
}

/* Praxis-Podcast */
#praxis-podcast .podcast-editorial {
  display: grid;
  align-items: center;
  gap: var(--media-gap) var(--content-gap);
  margin-block-start: var(--media-gap);
}
#praxis-podcast .podcast-editorial .portal-header { margin-block-end: 0; }
#praxis-podcast .podcast-editorial .case-lead { color: #52758f; }
#praxis-podcast .podcast-intro { margin-block: clamp(20px, 2vw, 28px) 0; }
#praxis-podcast .podcast-body { margin-block-start: var(--action-gap); }
#praxis-podcast .podcast-body p:first-child { margin-block-start: 0; }
#praxis-podcast .podcast-body p:last-of-type { margin-block-end: 0; }
#praxis-podcast .podcast-body .links,
#praxis-podcast .podcast-platforms { margin-block-start: var(--action-gap); }
#praxis-podcast .podcast-platforms p { margin: 0 0 .6rem; font-size: .9rem; }
.podcast-platform-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}
.podcast-platform-links a { display: inline-flex; align-items: center; min-block-size: 44px; }
.podcast-platform-links img { display: block; block-size: 40px; inline-size: auto; }
.podcast-photo {
  display: block;
  inline-size: min(100%, 352px);
  block-size: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  justify-self: center;
}
@media (min-width: 761px) {
  #praxis-podcast .podcast-editorial { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  #praxis-podcast .podcast-copy h3 { max-inline-size: 18ch; }
  .podcast-photo { inline-size: min(100%, 396px); justify-self: end; }
}

#geschaeftsfelder {
  margin-block-end: clamp(62px, 8vw, 112px);
  gap: clamp(36px, 4.4vw, 56px) clamp(26px, 3.4vw, 46px);
}
#geschaeftsfelder .entry {
  padding: clamp(18px, 3vw, 32px) 0 0;
  border: 0;
  border-block-start: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  min-block-size: 0;
}
#geschaeftsfelder .entry a {
  gap: 16px;
  letter-spacing: -.008em;
  transition: color .2s ease;
}

#geschaeftsfelder .entry:is(:hover, :focus-within) a { color: var(--focus); }
#geschaeftsfelder .entry p { max-inline-size: 56ch; }
@media (max-width: 620px) {
  #geschaeftsfelder {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-block-end: 1px solid var(--line);
  }
  #geschaeftsfelder .entry {
    min-block-size: 60px;
    padding: 16px 8px 16px 0;
  }
  #geschaeftsfelder .entry a { font-size: clamp(1.125rem, 5vw, 1.3rem); }
  #geschaeftsfelder .entry p { display: none; }
}

/* Functional chevrons in the service index. */
#geschaeftsfelder .entry a > span {
  display: grid;
  place-items: center;
  inline-size: 16px;
  block-size: 16px;
  color: currentColor;
  rotate: none;
}
#geschaeftsfelder .entry a > span::before {
  position: static;
  box-sizing: border-box;
  inline-size: 8px;
  block-size: 8px;
  border-width: 1.5px;
  transform: rotate(45deg);
}
#geschaeftsfelder .entry a > span::after { content: none; }

/* Text buttons retain their existing hierarchy and affordance. */
.resource,
.advisory-group .resource,
#kontakt button[type="submit"] {
  justify-content: center;
  text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.resource:focus-visible,
#kontakt button[type="submit"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

/* Hintergrundflächen und redaktionelle Bildachsen */
#beratung, #entwicklung, #digitale-projekte { background: var(--soft); }
#schulprojekte, #praxis-podcast, #kontakt,
.hero-backdrop + .shell,
#digitale-projekte :is(.portal-details, .scoleo-card) { background: var(--white); }
#entwicklung .concept-grid { margin-block-end: 0; }
#praxis-podcast { padding-block-start: var(--media-gap); }
#praxis-podcast .podcast-editorial { margin-block-start: 0; }
#praxis-podcast .podcast-photo {
  inline-size: min(100%, 440px);
  justify-self: start;
}
@media (min-width: 761px) {
  #entwicklung .concept-grid > .tile:first-child {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
  #entwicklung .concept-grid > .tile:first-child .concept-photo { justify-self: start; }
  #entwicklung .concept-grid > .tile:nth-child(2),
  #praxis-podcast .podcast-editorial {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
  #entwicklung .concept-grid > .tile:nth-child(2) .concept-copy { grid-area: 1 / 1; }
  #entwicklung .concept-grid > .tile:nth-child(2) .concept-photo { grid-area: 1 / 2; }
  #entwicklung .concept-grid > .tile:nth-child(2) .concept-photo,
  #praxis-podcast .podcast-photo { justify-self: end; }
}

/* Contact form and editorial contact details */
#kontakt .contact-grid { align-items: start; }
#kontakt .contact-copy > p { text-wrap: pretty; }
.contact-methods {
  display: grid;
  justify-items: start;
  gap: .45rem;
  margin-block: var(--action-gap);
}
.contact-methods a {
  max-inline-size: 100%;
  overflow-wrap: anywhere;
  font-weight: 600;
  transition: color .2s ease;
}
.contact-methods a:is(:hover, :focus-visible) { color: var(--focus); }
#kontakt form {
  min-inline-size: 0;
  gap: clamp(16px, 2vw, 24px);
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--white);
}
#kontakt form label { gap: .5rem; }
#kontakt :is(input:not([type="checkbox"]), textarea) {
  min-inline-size: 0;
  min-block-size: 48px;
  padding: .65rem .85rem;
  border-color: var(--accent);
  color: var(--ink);
  transition: border-color .2s ease;
}
#kontakt :is(input:not([type="checkbox"]), textarea):is(:hover, :focus) {
  border-color: var(--focus);
}
#kontakt :is(input:not([type="checkbox"]), textarea):user-invalid {
  border-color: var(--ink);
  box-shadow: inset 3px 0 var(--ink);
}
#kontakt form .check {
  gap: .7rem;
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
}
#kontakt .check input {
  flex: none;
  margin: .22em 0 0;
  accent-color: var(--focus);
}
#kontakt .check input:user-invalid { outline: 1px solid var(--ink); outline-offset: 2px; }
#kontakt form :is(input, textarea):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
#kontakt button[type="submit"] { min-block-size: 44px; }
#kontakt button[type="submit"]:disabled {
  background: var(--soft);
  border-color: var(--line);
  color: var(--text);
  cursor: not-allowed;
}

/* Readable line lengths without changing the editorial grids. */
main .field .field-intro > p {
  max-inline-size: min(94%, 82ch);
  text-wrap: pretty;
}
#geschaeftsfelder .entry > p { text-wrap: balance; }
main.jobs-page .job-summary p,
main.jobs-page .job-perspective p { max-inline-size: 68ch; }
.job-benefits li { text-wrap: balance; }
@media (max-width: 620px) {
  main .field .field-intro > p { max-inline-size: 100%; }
}
