/* Static replacement for the rappsilberlab.org WordPress theme */
:root {
  --accent: #028ad4;
  --accent-dark: #1e73be;
  --text: #444;
  --heading: #333;
  --muted: #888;
  --line: #e4e4e4;
  --bg-soft: #f6f7f8;
  --dark: #26292c;
  --darker: #1c1e20;
  --font: "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Lato", "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.7 var(--font); color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--heading); line-height: 1.3; margin: 0 0 .6em; font-weight: 400; }
h1 { font-size: 2.2rem; } h2 { font-size: 1.8rem; } h3 { font-size: 1.3rem; } h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
table { border-collapse: collapse; margin-bottom: 1em; }
td, th { padding: .3em 1em .3em 0; vertical-align: top; }
pre, code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
pre { background: var(--bg-soft); padding: 1em; overflow: auto; border-radius: 4px; }
.container { max-width: 1170px; margin: 0 auto; padding: 0 20px; }
main.container { padding-top: 30px; padding-bottom: 60px; }
main.full > .row { max-width: 1170px; margin-left: auto; margin-right: auto; padding: 0 20px; }
main.full > .row:first-child { max-width: none; padding: 0; }
.text-center { text-align: center; }

/* header & navigation */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; }
.logo img { height: 52px; width: auto; display: block; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav li { position: relative; list-style: none; }
.main-nav .menu > li > a { display: block; padding: 28px 14px; font-family: var(--font-head); font-size: 14px;
  text-transform: uppercase; letter-spacing: .04em; color: var(--heading); }
.main-nav .menu > li > a:hover, .main-nav .menu > li.active > a { color: var(--accent); text-decoration: none; }
.main-nav ul ul { display: none; position: absolute; left: 0; top: 100%; min-width: 230px; background: #fff;
  border-top: 2px solid var(--accent); box-shadow: 0 8px 20px rgba(0,0,0,.1); padding: 8px 0; margin: 0; }
.main-nav li:hover > ul, .main-nav li:focus-within > ul { display: block; }
.main-nav ul ul a { display: block; padding: 7px 18px; color: var(--text); font-size: 14px; line-height: 1.4; }
.main-nav ul ul a:hover { background: var(--bg-soft); color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--heading); cursor: pointer; padding: 10px; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 80px); overflow: auto; }
  .main-nav.open { display: block; }
  .main-nav .menu { flex-direction: column; padding: 10px 20px; }
  .main-nav .menu > li > a { padding: 10px 0; }
  .main-nav ul ul { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 8px 14px; }
}

/* WPBakery-style grid */
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.row-inner { margin: 0 -15px; }
.col { padding: 0 15px; position: relative; min-width: 0; }
.w-12 { width: 100%; } .w-10 { width: 83.333%; } .w-9 { width: 75%; } .w-8 { width: 66.666%; }
.w-6 { width: 50%; } .w-4 { width: 33.333%; } .w-3 { width: 25%; } .w-2 { width: 16.666%; }
.w-5f1 { width: 20%; } .w-5f2 { width: 40%; } .w-5f3 { width: 60%; } .w-5f4 { width: 80%; }
@media (max-width: 900px) { .w-3, .w-2 { width: 50%; } }
@media (max-width: 760px) { .col { width: 100% !important; } }
.col-linked:hover { background: var(--bg-soft); }
.stretched-link { position: absolute; inset: 0; z-index: 1; }
.spacer { display: block; }
@media (max-width: 760px) { .spacer { max-height: 24px; } }

/* content elements */
.vc-heading { margin-bottom: .4em; }
.textblock { margin-bottom: 1em; }
.textblock:last-child > :last-child { margin-bottom: 0; }
.image { margin: 0 0 1.2em; }
.image.align-center { text-align: center; } .image.align-right { text-align: right; }
.image img.round { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 200px; max-width: 80%; }
.divider { margin: 10px auto 20px; width: var(--w, 100%); border-top: 1px solid var(--line, #ddd); border-color: var(--line); }
.divider[style*="--line:#"] { border-top: 5px solid; border-color: var(--line); max-width: 60px; }
.divider-title, .divider-icon { border: 0 !important; max-width: none !important; width: 100%; display: flex; align-items: center; gap: 18px; margin: 30px 0 20px; }
.divider-title::before, .divider-title::after, .divider-icon::before, .divider-icon::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.divider-title span { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--heading); font-size: 1.1rem; }
.divider-icon span { color: var(--accent); font-size: 28px; }
.divider-icon { width: var(--w, 30%); margin-left: auto; margin-right: auto; }
.btn { display: inline-block; padding: 10px 24px; border: 2px solid var(--accent); color: var(--accent); border-radius: 3px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: 13px; transition: .2s; }
.btn:hover { background: var(--accent); color: #fff; text-decoration: none; }
.btn-light { border-color: #fff; color: #fff; } .btn-light:hover { background: #fff; color: var(--heading); }
.btn-static { border: 0; padding: 0; font-size: 1.4rem; letter-spacing: 0; color: var(--heading); text-transform: none; }
.btn-wrap { margin: 1em 0; }
.text-center .btn-wrap, .card .btn-wrap { text-align: center; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: #8a8a8a; font-size: 18px; }
.icon-link:hover { color: #00aced; text-decoration: none; }
.icon-big { display: block; font-size: 40px; color: var(--accent); margin: 10px 0; text-align: center; }
.badge-icon { font: 700 11px/1 var(--font); border: 2px solid currentColor; border-radius: 50%; width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center; }
.ribbon { margin: 10px 0; } .ribbon span { background: var(--accent); color: #fff; padding: 4px 14px; font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.callout { border-left: 4px solid var(--accent); background: var(--bg-soft); padding: 18px 22px; margin: 10px 0 20px; }
.callout-title { display: flex; gap: 12px; align-items: flex-start; font-family: var(--font-head); font-size: 1.1rem; color: var(--heading); margin-bottom: 8px; }
.callout-title i { color: var(--accent); font-size: 1.4rem; margin-top: 3px; }
.callout-body > :last-child { margin-bottom: 0; }
.iconcol { margin-bottom: 1em; } .iconcol-title { font-size: 1.2rem; color: var(--accent-dark); }
.card { border: 1px solid var(--line); border-radius: 4px; padding: 24px; margin-bottom: 30px; height: calc(100% - 30px); }
.card .row { margin: 0; } .card .col { padding: 0; }
.card .callout { border: 0; background: none; padding: 0; margin: 0; }
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step-num { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex;
  align-items: center; justify-content: center; font-weight: 700; }
.step-body { flex: 1; min-width: 0; } .step-label { text-transform: uppercase; color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.step .row { margin: 0; } .step .col { padding: 0; }
.video { margin: 0 auto 20px; } .video-ratio { position: relative; padding-top: 56.25%; }
.video-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.markdown { border-top: 1px solid var(--line); padding-top: 20px; }
.markdown img { max-width: 100%; }

/* hero slider */
.hero { position: relative; height: min(70vh, 620px); min-height: 380px; overflow: hidden; background: #222; margin-bottom: 30px; }
.hero .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s;
  display: flex; align-items: center; }
.hero .slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.15)); }
.hero .slide.active { opacity: 1; }
.slide-text { position: relative; max-width: 1170px; width: 100%; margin: 0 auto; padding: 0 40px; color: #fff; }
.slide-text h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 300; max-width: 800px; }
.slide-text p { font-size: clamp(1rem, 1.6vw, 1.25rem); max-width: 760px; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; z-index: 2; }
.hero-dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; margin: 0 4px; padding: 0; cursor: pointer; }
.hero-dots button.on { background: #fff; }

/* publications */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.filters button { border: 1px solid var(--line); background: #fff; padding: 5px 12px; border-radius: 3px; cursor: pointer; font: 13px var(--font); color: var(--text); }
.filters button.active, .filters button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters small { opacity: .7; }
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.pub-card a { display: block; color: inherit; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; height: 100%; transition: box-shadow .2s; }
.pub-card a:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); text-decoration: none; }
.pub-thumb { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.pub-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-info { padding: 14px 16px; }
.pub-info h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; line-height: 1.45; margin-bottom: 6px; }
.meta { color: var(--muted); font-size: 13px; }
.pub-list .pub-card a { display: flex; gap: 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; }
.pub-list .pub-card a:hover { box-shadow: none; }
.pub-list .pub-thumb { flex: 0 0 110px; aspect-ratio: 4 / 3; }
.pub-list .pub-info { padding: 0; }
.hidden { display: none !important; }
.refs li { margin-bottom: .8em; }
.post h1 { font-size: 1.8rem; }
.post-image { float: right; width: 38%; margin: 0 0 20px 30px; }
@media (max-width: 760px) { .post-image { float: none; width: 100%; margin: 0 0 20px; } }
.post-body h2 { font-size: 1.1rem; }
.tags { clear: both; padding-top: 10px; }
.tag { display: inline-block; background: var(--bg-soft); padding: 2px 10px; border-radius: 12px; font-size: 13px; margin: 0 4px 4px 0; }
.page-title { margin-bottom: 30px; }

/* gallery & logos */
.gallery { columns: 4 240px; column-gap: 12px; }
.gallery-item { display: block; margin-bottom: 12px; break-inside: avoid; }
.gallery-item img { display: block; width: 100%; border-radius: 3px; }
.logo-strip { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; margin: 20px 0; }
.logo-strip img { max-height: 90px; width: auto; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; }
.lb img { max-width: 94vw; max-height: 92vh; box-shadow: 0 0 40px rgba(0,0,0,.5); }

/* footer */
.site-footer { background: var(--dark); color: #b8bcc0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; padding-top: 50px; padding-bottom: 30px; }
.site-footer h5 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer a { color: #d7dadd; }
.footer-social a { font-size: 22px; margin-right: 16px; }
.footer-bottom { background: var(--darker); padding: 14px 0; font-size: 13px; color: #8a8f94; }
.map iframe { width: 100%; height: 350px; border: 1px solid var(--line); }

main.full > .row:first-child > .col { padding: 0; }
main.full > .row:first-child { margin: 0 0 30px; }
main.full > .row:first-child .hero { margin-bottom: 0; }
